I have been trying assigning a delivery( which got created in run time only) to a TU using class: /SCWM/CL_SR_BO_TU -> Method: ADD_TU_DLV.
Delivery is getting assigned to TU successfully but transport planning type and Receiving system fields under Header section of TU are not getting updated from delivery, though it gets updated when i do it manually in Transaction /SCWM/TU. Also in debug mode, i have checked all parameter values passed to method: ADD_TU_DLV are exactly same as while doing it manually.
Please help if i am missing something here, to get these fields in header section of TU updated from delivery values.
Thanks in advance!