cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Assign freight units to a freight booking by calling action

Former Member
0 Kudos
846

I have a requirement to create freight booking and assign already created fright units to it. I used action add_fu_by_fuid to assign freight units to the booking but it's not linking them to the booking. Is this action is the correct one or there is any other action I need to call for the same.

booking is created successfully but FUs are not getting assigned. Below is the code snippet I used.

CONCATENATE LINES OF lt_fu INTO lv_fu_str SEPARATED BY ','.

TRY.
CALL METHOD lo_srv_mgr->do_action
EXPORTING
iv_act_key = /scmtms/if_tor_c=>sc_action-root-add_fu_by_fuid
it_key = VALUE #( ( key = ls_tor_root-key ) )
is_parameters = NEW /scmtms/s_tor_a_add_elements( string = lv_fu_str )
IMPORTING
eo_message = lo_msg
et_failed_key = DATA(lt_fail).
CATCH /bobf/cx_frw_contrct_violation.
ENDTRY.

View Entire Topic
0 Kudos

Hi,

Are you able to succeed in this, please even I have the same issue, can you provide the information if you are successful in this, thank you.