Dear TM Experts,
I had enhanced data type OutbDelivCrteReqItm with Z fields at ESR. Now I want to map these fields with standard fields (Carrier, Stages & Freight order No.) of SAP TM to these enhanced Z fields as standard XML structure do not pass these fields to SAP ECC.
I had implemented BADI /SCMTMS/DLVP_SE_ODLV_B and in my Method I am having only Importing parameter as IN with field KEY and value 001F29BCEAEC1ED49EBDEFE286660E05. How to read ROOT data of this processing freight order with this key. I tried to read with this IN value but no values are returned to me.
Please suggest what I am missing. Below is my code:
METHOD /scmtms/if_dlvp_se_odlv_b~outbound_processing.
DATA: lo_srv_tor TYPE REF TO /bobf/if_tra_service_manager,
lo_message TYPE REF TO /bobf/if_frw_message,
lo_property TYPE REF TO /bobf/if_frw_property,
lt_root TYPE /scmtms/t_tor_root_k,
lt_failed_key TYPE /bobf/t_frw_key.
* Get an instance of a service manager for e.g. BO tor
lo_srv_tor = /bobf/cl_tra_serv_mgr_factory=>get_service_manager( /scmtms/if_tor_c=>sc_bo_key ).
* Use method RETRIEVE to retrieve ROOT data
lo_srv_tor->retrieve(
EXPORTING
iv_node_key = /scmtms/if_tor_c=>sc_node-root
it_key = in "it_key
iv_edit_mode = /bobf/if_conf_c=>sc_edit_read_only
IMPORTING
eo_message = lo_message
et_data = lt_root
et_failed_key = lt_failed_key ).
ENDMETHOD.
Thanks in advance.
Regards,
Md.Rafi