cancel
Showing results for 
Search instead for 
Did you mean: 

TM Freight Order save action

09-25-2021 5:11 PM
Madjid_Khanevadegi Participant
5234 views 10 comments
0 Likes
SAP Managed Tags
Subscribe

Hello
i would like raised a message after save a fright order in sap TM

how can do it

thank you in advance

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

hongsy93
Explorer

Do enhance and add your code at

Class: /SCMTMS/CL_UI_VIEWEXIT_TOR
Method: EXEC_REPORTPENDING_ADAPT_EVENT

Most of control data of BOPF should use 'Determination' or 'Viewexit Class'.

Madjid_Khanevadegi
Participant
0 Likes

thank you so much

This method is executed several times
I just want to have the end of the save message

hongsy93
Explorer

create determination in ROOT of enhancement of /scmtms/tor and check point at After Commit; also create, update, delete.

Then add your code in determination implementing class

hongsy93
Explorer
0 Likes

refer to below..

/scmtms/cl_msg_helper=>add_message(

exporting

is_msg = value #( msgid = 'your msgid' msgno = 'your msgno' msgty = 'S' )

changing

co_message = eo_message

).

Madjid_Khanevadegi
Participant
0 Likes

thank you hongsy93

in new determination of /scmtms/TOR

what class/interface must be declared.