Skip to Content
Author's profile photo Clark Huang

Event base charges adventure

In SAP TM 9.1, we can now apply charge types dependent on events. The blog include the function and technical two parts. The function part introduces the process. The technical part would analysis how the function has been achieved in the code.

The “adventure” would be a series to record my research about the new features of TM.


  1. Create an event profile and map charge types to events



  2.   Assign the event profile to the order type


3.   The forwarding order has two items. Report an event to the one item in the freight order accordingly. The event id and reason code should be the same as the event which assigned in the event profile.


4.   Calculation charge in forwarding order. The event charge type “DEMMURAGE” would charge in the container which has “DELAYED” event.



  1. Get the execution information from freight order, then maintain them in the communication structure.


   2.  When resolve TCCS, compare the charge types in TCCS to the event profile.


   3.  If the charge type is valid, change the resolution base to “EVENT”. Then apply the charge type by the events.


   4.  In the case we use the “ITEM” calculation level, so the logic would use the events in item to apply charge type. The “<ls_comm_item>-event_assgn” is the communication structure which we maintain before.


   5.  Finally, the logic would adjust the result of resolve by the event’s id, reason and status.


Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Great! Thanks for sharing Clark!

      Author's profile photo Former Member
      Former Member

      Thanks..This is interesting! 🙂

      Author's profile photo Karthikeyan Devanthran
      Karthikeyan Devanthran

      EExcellent. Good one.  Cheers.

      Author's profile photo Former Member
      Former Member

      Informative and helpful post!

      Author's profile photo Elizabeth Vail
      Elizabeth Vail

      Well done presentation.  Interesting that SAP is duplicating functionality already available in Event Management that makes freight costing possible anywhere along the route in either ECC or TM (any release), as long as the routes are defined where the cost can be captured.  Also, using EM gives more flexibility in calculation . . .

      Author's profile photo Former Member
      Former Member

      Thank you for sharing

      Author's profile photo vikas chhabra
      vikas chhabra

      Hello Clark,

      Thanks for very good document.

      After activating event based charge calculation, I could calculate charges in FO after the required event was reported. But "Cost Distribution Tab" in my Freight Order stopped showing distributed cost information (CD works very well for me when charges calculation is not event dependent).

      Do you have any idea on this.

      Please advise.

      Thanks and best regards,

      Vikas Chhabra