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.
- 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
- Define Strategy:
Strategy: NTFN_S
Service: TOR_CHACO
Description: SEND_NOTIFICATION_MAIL
- Assign Methods to a Strategy:
Strategy: NTFN_S
Method: NTFN_MAIL
Sequence: 10
Description: SEND_NOTIFICATION_MAIL
- Define Parameters
Parameter: NOTIFY_CAR
Service: TOR_CHACO
Param. Type: Logical Value
Data Element: BOOLE_D
- Define Parameters
Parameter: MAIL_SNDR
Service: TOR_CHACO
Param. Type: Character String
Data Element: /SCMTMS/UI_EMAIL
- Assign Parameters to a Method
Method: NTFN_MAIL
Parameter Name: NOTIFY_CAR
Method: NTFN_MAIL
Parameter Name: MAIL_SNDR
- 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:
After creating it assign the strategy to your Document Type direct or via Condition:
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.
Now let’s give a try in the FO which I have remove one Sales Order after planning.
FO is Send to Carrier:
After remove Sales order 100484 the message is trigger
The email is sent and you can open direct the Freight order via Hyper Link.
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.