cancel
Showing results for 
Search instead for 
Did you mean: 

I want to create FWO(Forwarding Order) using Helper Class in SAP TM.

gawonlee
Member
0 Kudos

Hi.

I want to make FWO using source code.
I used /SCMTMS/CL_TOR_FACTORY class when creating the TOR document but I can't find a helper class related to TRQ..
Is there any helper class related TRQ?

Please help me. Thank you.

Gawon.

Accepted Solutions (0)

Answers (1)

Answers (1)

hongsy93
Explorer
0 Kudos

I think there is a no helper class like /SCMTMS/CL_TOR_FACTORY. I tried to search all class associated with TRQ, searched like /SCMTMS/CL*TRQ*.

You should just do coding using TRQ service manager and use a method, Moidfy.
For example,
CALL METHOD lo_trq_srvmgr->modify

EXPORTING
it_modification = lt_mod
IMPORTING
eo_change = DATA(lo_chg)
eo_message = DATA(lo_msg).

However, you can create and modify TOR object like TU/FU at the same time before saving TRQ data by using an action called "BUILD_FUS" of ROOT in /SCMTMS/TRQ object.

One important thing is that you should create or update TRQ item before calling the action.

Thanks.