cancel
Showing results for 
Search instead for 
Did you mean: 

events posting in TM and EM web UI

former_member193027
Participant
0 Kudos

Hi,

I have couple of questions regarding event posting in TM:

a) When we report event in execution tab in TM, location field is disabled.However business requires that the location field is editable.

b) When the actual events are posted by carrier and if the location is different than that specified in the execution tab in TM, does the location from where the carrier is reporting gets updated directly via the interface in TM which gets propagated to EM.How does the system work.

c) The business requires that historical data for specific events be maintained.Like if i post an event-vessel departure which has planned and actual dates and again if we post the same event after 3 days, system should retain the historical data.

d) How can we capture the user ID in TM when event is posted.

e) When we report events in EM web Ui if a particular event is applicable for 10 different freight orders, business wants to report the event at one shot so that the user do not need to enter 10 times to report event but rather when he reports events, it should be cascaded to all freight orders.

Accepted Solutions (1)

Accepted Solutions (1)

former_member186607
Active Contributor
0 Kudos

Hi Dipak,

regarding your first two points I have the following comments/questions:

a) When we report event in execution tab in TM, location field is disabled.However business requires that the location field is editable.

As you already wrote the location field for reporting an expected event is not editable in TM - it is only possible to insert a new event to achieve this. In SAP EM you can also (depending on the customizing) report an expected event with a changed location.

b) When the actual events are posted by carrier and if the location is different than that specified in the execution tab in TM, does the location from where the carrier is reporting gets updated directly via the interface in TM which gets propagated to EM.How does the system work.

In the standard integration scenario there is no such logic implemented. In the standard set-up the expected events in EM are configured to be identified by combination of event code and location. If an expected event with a changed location is reported, this will be ignored. But this behaviour can, of course, be changed in the customizing (Expected Event Profile). It would also be possible to trigger further actions for an event with a changed location then via the rule.

Best regards, Daniel

former_member193027
Participant
0 Kudos

thanks for the answer.

Regarding point c, EM all events are persisted and available in the database, although these on the EM UI only the most recent one is displayed.

Is it possible to display all the historical events from the database to EM web UI.If yes how.

former_member190756
Active Contributor
0 Kudos

Display of historical Event data is only possible in transaction /SAPTRX/EH_LIST but not in the Web UI.

Best regards,

Steffen

former_member193027
Participant
0 Kudos

But in transaction /SAPTRX/EH_LIST i dont find the way to view historic events.

former_member186607
Active Contributor
0 Kudos

Hi Dipak,

you can see all the events that have been reported to an event handler in transaction /SAPTRX/EH_LIST. Select the event handler and on the EH overview page you can check all the historical events on the tab "Event Messages".

Best regards, Daniel

former_member193027
Participant
0 Kudos

Kindly inform if the functionality of bulk reporting is possible based on events reported for container ID

former_member193027
Participant
0 Kudos

Hi Daniel,

Business requires that the historic events should nbe made visible only in EM web UI and not through  /SAPTRX/EH_LIST.Kindly inform how its possible.

former_member186607
Active Contributor
0 Kudos

Hi Dipak,

maybe you can explain in more detail, what your question is about. What do you mean with bulk reporting? Reporting for multiple EHs from EM web UI? What is in your scenario a container ID? Are you referring to the enhancements of the standard TM - EM integration scenario for having expected events on conatiner level?

Best regards, Daniel

former_member186607
Active Contributor
0 Kudos

Hi Dipak,

for this method AFTER_GET_DATA_DISP of BAdI /SAPTRX/BADI_EH_S can be used. In EVENT_MSGS all the event messages (including the historic ones) are available and the historic ones then can be added to CONSOLIDATEDEVENTS for display in EM web UI.

Best regards, Daniel

former_member193027
Participant
0 Kudos

Thanks.

However since the business also requires to capture the user ID in the event message who has posted the previous events, do we need to enhance the EE extractor to include sndid in the event message as well.

former_member193027
Participant
0 Kudos

kindly inform to view the historic events in Em web Ui, shall we have a new tab of historic events or under which section of web Ui we can see the historic events.

Secondly we want to have the user ID captured as who had reported the events for historical events.How we can achive this

Answers (1)

Answers (1)

former_member186607
Active Contributor
0 Kudos

Hi Dipak,

please see my comments to some of your points below:

c) The business requires that historical data for specific events be maintained.Like if i post an event-vessel departure which has planned and actual dates and again if we post the same event after 3 days, system should retain the historical data.

In TM the historical data of the events is not persisted, the existing event entry is updated if the same event is posted multiple times. But in EM all events are persisted and available in the database, although these on the EM UI only the most recent one is displayed.

d) How can we capture the user ID in TM when event is posted.

The user ID of the user that captures the event in TM is stored in the field CHANGED_BY of the node EXECUTIONINFORMATION. If you want to have this information also in EM, you have to create your own event type and in the event type extractor the data from CHANGED_BY field can be put e.g. in SNDID field of event message.

e) When we report events in EM web Ui if a particular event is applicable for 10 different freight orders, business wants to report the event at one shot so that the user do not need to enter 10 times to report event but rather when he reports events, it should be cascaded to all freight orders.

In customizing in EM you can allow for an event that it can be posted to multiple EHs: Start the IMG activity "Define User Profile" via transaction /SAPTRX/UCUP and select the event message profile and the event reporting item. Here set the "Mult. Eh Ind.". Then this event can be posted to multiple event handlers that are selected on the search result list.

Best regards, Daniel

former_member193027
Participant
0 Kudos

For part c) kindly inform how we can make the historical data available on EM Web Ui.

also any update on question a and b.