![](https://community.sap.com/html/assets/img_tile-default.png)
DATA(lt_torlabel_uc) = VALUE /scmtms/t_tor_label
( FOR ls_del IN lt_delivery_number
( |{ ls_del ALPHA = OUT }| )
).
DATA: lt_freightunit_keys TYPE /bobf/t_frw_key.
CALL METHOD go_srv_mgr_fo->convert_altern_key
EXPORTING
iv_node_key = /scmtms/if_tor_c=>sc_node-root
iv_altkey_key = /scmtms/if_tor_c=>sc_alternative_key-root-labeltxt
it_key = lt_torlabel_uc
IMPORTING
et_key = lt_freightunit_keys.
DATA : lt_d_stop_fu TYPE /scmtms/t_tor_stop_k.
CALL METHOD go_srv_mgr_fo->retrieve_by_association(
EXPORTING
it_key = lt_freightunit_keys
iv_association = /scmtms/if_tor_c=>sc_association-root-stop
iv_node_key = /scmtms/if_tor_c=>sc_node-root
iv_fill_data = abap_true
IMPORTING
et_data = lt_d_stop_fu
et_target_key = DATA(lt_target_key_stop) ).
DATA(lt_def_route_key) = VALUE /bobf/t_frw_key
( FOR ls_stop_data IN lt_d_stop_fu
( key = ls_stop_data-route_root_key ) ).
DATA(lob_srv_mgr) = /bobf/cl_tra_serv_mgr_factory=>get_service_manager(
/scmtms/if_fo_schedule_c=>sc_bo_key ).
CALL METHOD lob_srv_mgr->retrieve(
EXPORTING
it_key = lt_def_route_key
iv_node_key = /scmtms/if_fo_schedule_c=>sc_node-root
IMPORTING
eo_message = DATA(lo_message)
et_data = lt_schedule_data ). " This will have Route data
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |