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: 
HariPanakkal
Product and Topic Expert
Product and Topic Expert
2,319

You might have received email or text notifications about the status of your anticipated delivery from a parcel provider/logistics company. You can navigate to their website and see the basic tracking information of your shipment without logging in. This is a very common in B2C world, but how this is enabled in B2B? A shipper may be managing the transportation and may not provide access to all customers to their own web platform to view detailed status.

The aim of SAP Business Network Global Track and Trace (GTT in short) is to capture, process and store tracking information about tracked business processes. Then, it allows business users to get real-time transparency of the execution of those processes. 

Sending email notification is not new for GTT, but it has some drawbacks,

  • It requires event-to-action script- means business user cannot do it and need support from IT to build and change rules.
  • A GTT user is needed to access the tracking information. By configuring custom roles and assign it to user is one approach used earlier. But managing a user for each customer is not an easy task.

A new feature is available in BN4L GTT which eliminate both the drawbacks. Now business user can define rules for notification with an intuitive app with zero coding. GTT now provides public URL by which anyone can access basic tracking information without logging to GTT with a user (the way you access FedEx or UPS tracking link without having a user in their website) Let's see how this is achieved in simple two steps.

1. Configure email notification template

2. Define Email Rules

Step 1. Configure email notification template

First step is to define an email notification template by opening 'Create Notification Template' app in GTT. If you are not able to see this app, then you may be missing role 'ReminderTemplateProcessTemplate' for your user. The app provides a nice MS word like user interface where you can define your template (see below screenshot). You can have placeholders for information from shipment document using ^{<placeholdername>}. Refer SAP Help for other placeholder types. You may use 'Check Processes and Events' app to know all fields available in shipment document including technical fields. In this case, our template is to notify customer if there is a delay reported on the shipment by logistics service provider. Save the template with a name such as 'Delay'.

HariPanakkal_0-1731790577832.png

HariPanakkal_1-1731790622553.png

Step 2: Define Email Rules

After creating email notification template, second step is to define a rule on when the notification must be triggered by GTT. A new button 'Email Rules' is available on Manage Model app for this purpose (as shown in below screenshot). You must need either 'DataModelAdminTemplate' or 'EmailRulesProcessTemplate' roles to view this button. If you are a business user, the second role is appropriate.

HariPanakkal_0-1731803191139.png

By clicking this link will open the rule definition page as shown below. Add a new rule by clicking the '+' button. Provide a Description and make it active.  The first portion of rule defines 'When' it must be triggered. You can pick any planned or unplanned event on the available tracked process. In our case, it is Delay event on a shipment tracked process. So, select "Shipment.Delay" as Current Event and 'Shipment.Shipment' as Correlated Tracked Process. The search help on both fields brings all available values.

HariPanakkal_5-1731807148778.png

HariPanakkal_6-1731807226068.png

Second portion of the rule is to define further conditions based on attributes of the shipment. You can add condition as dynamic attribute value from current event, correlated event or shipment by clicking 'Compared to Model Field Value'. In our case, I want to trigger notification only for road or parcel mode of transport and the estimated arrival time calculated on the delay event is more than 2 hours of the planned arrival time (I don't want GTT bombarded to customer with hundreds of emails for every minute change, but only if estimated arrival is later than 2 hours from planned considering the arrival delay tolerance). So, I define second condition as "MatchedPlannedEvent.estimatedTimestamp is great than MatchedPlannedEvent.plannedBizTsLatest + 2 Hour ". Here in this context, 'Delay' is the current event, and Matched Planned Event must be Arrival (I am not bothered about a delay if it impacts other events than arrival at customer location). To make sure delay is impacting estimated arrival at customer, we add another condition 'MatchedPlannedEvent.locationAltKey is equal to CorrelatedTrackedProcess.arrivalLocationAltKey'.

Thats complete our triggering conditions. Now feed the placeholder we defined at step 1 from email template. Select the email template ID 'Delay' and language as 'English'. Placeholder Name must match exactly same as defined in email template at step 1. Value can be current/related event or from shipment tracked process. You can select any available fields from shipment including custom fields. Here, I used a custom field ZZ_CUSTOMER_COMM_EMAIL to pass customer's email address since this is not passed to GTT by default. You can easily extend GTT extractor to add custom fields- look at my previous blog on how to do it.  Also note that, GTT now provides a publicly accessible URL to every shipment- use attribute 'CorrelatedTrackedProcess.publicLink'. 

By now, our setup is complete, lets test it. Report a delay event manually in Track Shipment app for a road shipment, for testing purpose and provide estimated time of arrival which is +2 hour than planned arrival.

HariPanakkal_7-1731811238524.png

After reporting this event, shipment looks as shown below. Planned arrival is Nov 21 12:00AM CST and estimated is Nov 21 8:25:02AM CST. 

HariPanakkal_8-1731811371597.png

So, our triggering conditions for email met and GTT sends an email to the customer email address specified in the shipment document as shown below.

HariPanakkal_9-1731811739387.png

You can also configure to send Microsoft365 applications like Teams Channel or Teams Chat for any notification (this requires event-to-action scripting, and your organization must allow incoming webhook).

HariPanakkal_10-1731812002772.png

The shipment URL is accessible without a user in GTT, OfCourse it will display only limited information due to privacy reasons, but sufficient for most use cases.

HariPanakkal_11-1731812614663.png

 

 

 

 

 

 

 

 

 

 

 

 

 

12 Comments
ZenonK
Active Participant
0 Kudos

Great blog Hari!

md_ab
Explorer
0 Kudos

Hello Hari,

Do we have to define the E2A script to pickup the Shipment number, Public URL from Notification template ? can you please tell me how to do that ?

HariPanakkal
Product and Topic Expert
Product and Topic Expert
0 Kudos

You don't need E2A script to pass parameter values. The 'Placeholeder Name' and Value mapping in email rule screen does this.

elainey
Explorer
0 Kudos

Hello, Hari. Hope you can help me with these questions. In the email template, is it possible to:

1. Create a button to track shipment instead of clicking on a link/url?

2. Show company logo

3. Show other graphics

4. Show colored texts

Appreciate your expert advice and guidance.

Thank you and best regards,

Elaine

HariPanakkal
Product and Topic Expert
Product and Topic Expert

Hello Elaine,

See my answers,

1. I am not sure that is possible in an e-mail. What is the use case of button Vs hyperlink?

2. Use place holder   ${BP_LOGO}. This will replace with logo image from 'Manage Business Profile' app.

3. You can have images(static) added in Manage Notification Template app email template

4. Use Editor capability within Manage Notification Template app

elainey
Explorer
0 Kudos

Dear Hari,

Thank you for your response.

Is it possible to create a HTML email template of our own and use that instead of the GTT notification template (WYSIWYG editor)? If it is possible, how can we incorporate this HTML template in the GTT app?

Is there a roadmap to have the GTT notification template to augment to a more robust editor?

Do you have any recommendation on how we can generate an email notification with more depth?

Thank you and best regards,

Elaine

HariPanakkal
Product and Topic Expert
Product and Topic Expert

Hi Elaine

- GTT support the available notification template only by standard. But you can think of getting data out of GTT and use own email software to generate the email you require. 

- Can you elaborate what you meant by 'augment to a more robust editor'? The editor provided have basic editing tools which are enough for an email notification IMHO. Interested to know what is missing.

- Need more details on your comment 'generate an email notification with more depth'? Do you mean more details on the tracked process @elainey ?

 

elainey
Explorer
0 Kudos

Hello, @HariPanakkal , thank you for your response.

We have created our own email response template using HTML and inline CSS. I would greatly appreciate your expert advice on whether it is possible to import this custom template into the system.

Thank you and best regards,

Elaine

HariPanakkal
Product and Topic Expert
Product and Topic Expert

@elainey , I am not aware of such a possibility. I would suggest you create an Improvement Request in influence portal https://influence.sap.com/sap/ino/#/campaign/6/ideas

Chose Category: Global Track and Trace.

You may first search if there are such requests already, if yes, please vote for it, else create a new one for this request.

 

elainey
Explorer
0 Kudos

Thank you, @HariPanakkal!

md_ab
Explorer
0 Kudos

Hi @HariPanakkal  Do we have to add custom field for mail in GTT  only or we have to do in S4 system also ? I tried as per your blog  created custom field in GTT Shipment tracked process User model fields ? after reported the delay event Reminder sent successfully in Logs. but I have not received the mail to the mail id , could you please help ?

HariPanakkal
Product and Topic Expert
Product and Topic Expert
0 Kudos

hi @md_ab , 

If the email id is a custom field, then it must be sent from backend system(S/4HANA). GTT relay on backend data to be passed. You can easily extend GTT extractor to add custom fields- look at my previous blog on how to do it.