Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- method ONACTIONGET_FLIGHTS .
- DATA LO_COMPONENTCONTROLLER TYPE REF TO IG_COMPONENTCONTROLLER .
- LO_COMPONENTCONTROLLER = WD_THIS->GET_COMPONENTCONTROLLER_CTR( ).
- LO_COMPONENTCONTROLLER->EXECUTE_BAPI_FLIGHT_GETLIST(
- ).
- DATA LO_ND_FLIGHT_LIST TYPE REF TO IF_WD_CONTEXT_NODE.
- DATA LO_EL_FLIGHT_LIST TYPE REF TO IF_WD_CONTEXT_ELEMENT.
- DATA LS_FLIGHT_LIST TYPE WD_THIS->ELEMENT_FLIGHT_LIST.
- * navigate from <CONTEXT> to <FLIGHT_LIST> via lead selection
- LO_ND_FLIGHT_LIST = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_FLIGHT_LIST ).
- * @TODO handle non existant child
- * IF lo_nd_flight_list IS INITIAL.
- * ENDIF.
- * get element via lead selection
- LO_EL_FLIGHT_LIST = LO_ND_FLIGHT_LIST->GET_ELEMENT( ).
- * alternative access via index
- * lo_el_flight_list = lo_nd_flight_list->get_element( index = 1 ).
- * @TODO handle not set lead selection
- * IF LO_EL_FLIGHT_LIST IS INITIAL.
- * WD_THIS->FIRE_NO_FLIGHTS_FOUND_PLG(
- * ).
- * WRITE : / 'NOT FOUND'.
- * ENDIF.
- WRITE : / 'HERE'.
- * get all declared attributes
- LO_EL_FLIGHT_LIST->GET_STATIC_ATTRIBUTES(
- IMPORTING
- STATIC_ATTRIBUTES = LS_FLIGHT_LIST ).
- endmethod.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement