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.

Function:

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

/wp-content/uploads/2014/07/1_497908.png

/wp-content/uploads/2014/07/3_497976.png

  2.   Assign the event profile to the order type

/wp-content/uploads/2014/07/2_497975.png

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.

/wp-content/uploads/2014/07/4_497977.png

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

/wp-content/uploads/2014/07/5_497997.png

Technical:

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

/wp-content/uploads/2014/07/7_498011.png

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

/wp-content/uploads/2014/07/8_498012.png

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

/wp-content/uploads/2014/07/9_498013.png

   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.

/wp-content/uploads/2014/07/11_498014.png

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

/wp-content/uploads/2014/07/12_498015.png

Assigned Tags

      7 Comments
      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