cancel
Showing results for 
Search instead for 
Did you mean: 

TM Freight Order save action

Madjid
Participant
0 Kudos

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

how can do it

thank you in advance

FredericGirod
Active Contributor
0 Kudos

Did you search for Badi ?

Madjid
Participant
0 Kudos

Hello

frdric.girod

yes , this badi "BADI_FPM_TRANSACTION" might work. But I'm not sure.

FredericGirod
Active Contributor
0 Kudos

not sure you could use, it is not a multiple implementation, and there are already standard implementation in my system

Madjid
Participant
0 Kudos

with "/SCMTMS/CL_UI_CONTROLLER_CMN" class and "OVERRIDE_EVENT_OVP" or "TM_TOOLBAR_PE" methods i can trap the save action.

but it raise on every sub system for example in forwarding order and freight order.

and other way in "/BOFU/WDC_FBI_CONTROLLER" web dynpro in save method of componentcontroller can trap the save action , but it raised on Everywhere.

Madjid
Participant
0 Kudos

Hello

frdric.girod

That's a question for me
That is, the event "FPM_SAVE" (FPM Event ID) for save button in freight order must be unique
But in many, places have been used
How is the response to this event isolated?

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
Participant
0 Kudos

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 Kudos

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
Participant
0 Kudos

thank you hongsy93

in new determination of /scmtms/TOR

what class/interface must be declared.