cancel
Showing results for 
Search instead for 
Did you mean: 

Custom TM event is not visible in EM

anita_takacs
Explorer
0 Kudos

Dear EM experts,

I'm a junior in this area, but I need to setup a custom event in TM and in EM. I created the customizing part, created custom event handler and custom event types. TM config and EM config are done. Once I trigger my custom event in EM it is visible then in TM freight order execution tab, but if I trigger my event in freight order execution tab, event won't be visible in EM. In debug mode I can see my event, it has the right data determined. I can also see in debug mode, that my relevancy check is ok. If I check the entries in application log via SLG1 I can see that relevancy condition for my custom event type was determined to be true for event TMS_TOR. The event message is sent to the corresponding event handler. But if I go to the event handler list transaction I cannot see my custom events, only the SAP standard ones. Same in EM tables, only SAP standard events are there, customs are not.

Could you please help me what did I wrong?

Many thanks for your help in advance!

Anita

Accepted Solutions (0)

Answers (4)

Answers (4)

butschbacher1
Explorer
0 Kudos

Hi Anita,

this means:

R Reported
N Not an Expected Event

but as you have added it to allowed unexpected event list it should be reported.

Regards,

Steffen

butschbacher1
Explorer
0 Kudos

Hi Anita,

please check this link if you have done the setting mentioned here for TM:

https://answers.sap.com/questions/11391793/em---custom-events.html

I have unfortunately no access to a TM system at the moment.

Regards,

Steffen

anita_takacs
Explorer
0 Kudos

Hi Steffen,

This customizing setup was also done already. It is strange that it's not working.

Thanks Steffen for the advices! I appreciated it!

Anita

anita_takacs
Explorer
0 Kudos

Hi Steffen,

During debugging when I check the TM event internal table there is one small difference between the standard events and my custom event: for the standard entries the event status field is "R", but for my custom events this field is always "N". Do you know what does this mean?

Many thanks!

Anita

butschbacher1
Explorer
0 Kudos

Hi Anita,

if you can see the message in table /SAPTRX/EVM_HDR in SE16 you could check if the EH was maybe locked.

Run transaction /SAPTRX/LOCKED_PROC to process locked EHs (should run as background job in a productive system).

Afterwards check in /SAPTRX/EH_LIST the log:

Here you should see if something was processed for your EH.

Regards,

Steffen

anita_takacs
Explorer
0 Kudos

Hi Steffen,

My message is not in table /SAPTRX/EVM_HDR. Only the SAP standard messages are there. What I do not understand, if my custom event is relevant as log says, why it is not in table /SAPTRX/EVM_HDR?

Thanks,

Anita

butschbacher1
Explorer
0 Kudos

Hi Anita,

did you check the log in transaction /SAPTRX/EH_LIST why the event was not processed for your EH?

If it is an Expected Event a reason could be that you have switched on location matching and you have sent a different location in comparison to the expected one.

If it is an unexpected event it could be missing in the list of allowed unexpected event codes in transaction /SAPTRX/TSC0TT.

Regards,

Steffen

anita_takacs
Explorer
0 Kudos

Hi Steffen,

Thank you for your quick response!

This is what I can see in the log:

ZBHS_ODT20_SCANNED is my custom event and according to the log it was determined as relevant if I understood correctly.

I also deactivated Location matching in customizing for this event:

Theoratically this would be an expected event so no entry is required in /SAPTRX/TSC0TT, but just to be sure I tried it defining as unexpected event in /SAPTRX/TSC0TT too, but result was the same: no custom event message was visible in /SAPTRX/EH_LIST.

Do you have any other idea what did I miss?

Many thanks for your help!