Supply Chain Management Blogs by SAP
Expand your SAP SCM knowledge and stay informed about supply chain management technology and solutions with blog posts by SAP. Follow and stay connected.
cancel
Showing results for 
Search instead for 
Did you mean: 
Rogerio_Lima
Product and Topic Expert
Product and Topic Expert
2,508

SAP TM Strategy to Send Notification E-mail Carrier and Person Responsible

Follow up the previous Blogs for the Alert notification (Set-up Alert Management in SAP Transportation Mana... - SAP Community), in this blog will explain how to Send Notification E-mail Carrier and Person Responsible in the Freight Document.

This step will send email to the Carrier or Person Responsible in the FO in case i.e item quantity changes.

Follow this step-in order to properly set up the strategy creation, you can find it in SPRO à SAP Transportation Management -> Basic Functions-> Process Controller for all the steps below.

  1. Define methods:

Method: NTFN_MAIL
Service: TOR_CHACO
Description: Description text
Method Type: Basic Method
Class/Interface: /SCMTMS/CL_CHACO_METHODS
Interface Component: SEND_NOTIFICATION_MAIL

Rogerio_Lima_0-1729520630974.png

  1. Define Strategy:

Strategy: NTFN_S
Service: TOR_CHACO
Description: SEND_NOTIFICATION_MAIL

Rogerio_Lima_1-1729520630975.png

  1. Assign Methods to a Strategy:

Strategy: NTFN_S
Method: NTFN_MAIL
Sequence: 10
Description: SEND_NOTIFICATION_MAIL 

Rogerio_Lima_2-1729520630977.png

  1.  Define Parameters

Parameter: NOTIFY_CAR
Service: TOR_CHACO
Param. Type: Logical Value
Data Element: BOOLE_D

Rogerio_Lima_3-1729520630978.png

  1. Define Parameters

Parameter: MAIL_SNDR
Service: TOR_CHACO
Param. Type: Character String
Data Element: /SCMTMS/UI_EMAIL

Rogerio_Lima_4-1729520630980.png

  1. Assign Parameters to a Method

Method: NTFN_MAIL
Parameter Name: NOTIFY_CAR

Method: NTFN_MAIL
Parameter Name: MAIL_SNDR

Rogerio_Lima_5-1729520630981.png

  1. Assign Method Parameters to a Strategy

Strategy: NTFN_S
Method: NTFN_MAIL
Parameter Name: NOTIFY_CAR
Param. Type: Logical Value
Number:
Text Field: X

Strategy: NTFN_S
Method: NTFN_MAIL
Parameter Name: MAIL_SNDR
Param. Type: Character String
Number:
Text Field:

Rogerio_Lima_6-1729520630983.png

After creating it assign the strategy to your Document Type direct or via Condition:

Rogerio_Lima_7-1729520630985.png

Is very important the Email will only send out to Carrier if the Freight Document have the   Subcontracting Status (Send to Carrier or Changed After Sending)

The email to the Person Responsible in the Freight Document will only consider if the change does not belong to the same.

If you want to check more technical the criteria you can see in this class /SCMTMS/CL_CHACO_NOTIFICATION - GROUPED_NOTIFY Line 81 to 133.

Rogerio_Lima_8-1729520630989.png

Now let’s give a try in the FO which I have remove one Sales Order after planning.

FO is Send to Carrier:

Rogerio_Lima_9-1729520630991.png

 

Rogerio_Lima_10-1729520630993.png

After remove Sales order 100484 the message is trigger

Rogerio_Lima_11-1729520630994.png

The email is sent and you can open direct the Freight order via Hyper Link.

Rogerio_Lima_12-1729520630995.png

Refer to 2624842 - Change Controller Strategy to send notifcation E-mail after item quantity changes - SAP ON...

Hope this help you!

Thank you and regards.

Rogerio Lima.

 

1 Comment
d_meneguzzi
Product and Topic Expert
Product and Topic Expert

Another great content provided by Rogério. Thanks a lot!