Skip to Content
Technical Articles
Author's profile photo Dominik Tylczynski

Integration issues in S/4HANA – TM breaks supply chain and how to fix it

Introduction

My recent article Hyperspeed planning in SAP TM has explained TM ⇔ delivery integration issues when statistical stages are used and delivery transportation planning status is “partially planned“. The delivery date can get inconsistent in such a scenario, it can even get earlier then the picking date!

The delivery integration problem is even more severe as it impacts fully planned deliveries in scenarios without statistical stages.

That is the next episode of Integration issues in S/4HANA series.

Sales order scheduling

The following diagram depicts sales order backwards scheduling:
Transportation and Delivery Scheduling

Source: SAP Help

The following dates are calculated for each sales order schedule line starting from requested delivery date:

  • goods issue date – the date when goods issue should be posted for the shipment
  • loading date – the date when goods should be loaded
  • transportation planning date – the date when transportation planning activities should start
  • availability date – the date when the goods should be available

The dates and their correctness is essential so the shipment can be delivered on time to the end customer.

The focus of this article is on the availability date.

In a typical scenario i.e. without transportation planning or with delivery-based transportation planning those dates are copied from the sales order to the delivery.

Sales order transportation planning

One of the most important innovations of SAP TM is order-based transportation planning. Here shipments are planned in advance, as soon as sales order are created. The process, including EWM integration is as follows:
Order-based transportation planning

Source: SAP Help

What is important here, is that delivery dates are determined by the transportation plan, which might differ from the original sales order scheduling. If the shipment is scheduled a bit earlier or later then planned on the sales order, the delivery dates, especially material availability date have to be adjusted correspondingly. Otherwise procurement or production will not provide the goods on time.

Broken integration

The adjustment works fine, at least during outbound deliveries creation. That feature has been implement with the 3230065 – Wrong dates after delivery creation from TM note.

Unfortunately, the integration breaks down when the transportation plan is modified and the changes are propagated to the already existing delivery. The problem has been brought to SAP support and partially fixed with the 3230794 – Outbound delivery update from TM does not include picking date note. Even though it is not stated explicitly only picking and loading dates are updated, material availability date is not!

It basically means that in case of the transportation plan modification, integration with supply chain is broken and production/purchasing does not get the correct information on when they need to provide the goods. They might make the goods available too early or what is worse too late and put the entire shipment at risk.

The root cause of the problem is poor design of delivery update handler. It uses the WS_DELIVERY_UPDATE_2 function, which is incapable of modifying material availability dates.

Solution proposal

SAP support has confirmed that limitation and provided a solution proposal within an OSS ticket. The solution is to implement a custom availability date update routine with the following logic:

Loop at delivery items - for each item:

    Copy picking date (LIKP-KODAT) and time (LIKP-KOHUR) from the delivery header to 
    the material availability date (LIPS-MBDAT) and time (LIPS-MBHUR) of the delivery item.

The solution is very straight forward. It can be implemented either with the LE_SHP_DELIVERY_PROC BAdI or with USEREXIT_SAVE_DOCUMENT_PREPARE enhancement.

If you prefer the latter, make sure to read and follow the 415716 – User exits in delivery processing note.

Final thoughts

What perplexes me is the fact, that SAP has acknowledged the problem. They have provided a solution for delivery creation and partial solution for delivery updates. However even though the final fix is so easy, they refused to provide it in standard or at least with a consulting note.

It is as if they do not understand the ramification of incorrect material availability dates – that breaks the supply chain integration. MRP planning will propagate such inconsistencies across the entire product structure, through all semi finished goods, down to raw material and purchasing, wreaking havoc in SCM.

It just scares me.

Assigned Tags

      8 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Justyna Chmiel
      Justyna Chmiel

      Great blog post!

      Author's profile photo Dominik Tylczynski
      Dominik Tylczynski
      Blog Post Author

      Thank you. You might have a look at my other blogs on Integration issues in S/4HANA The series is not closed yet.

      I hope the voice will be heard and the proposed solutions will be applied in standard, as I do care  deeply about the quality of the product.

      Author's profile photo Stephanie De Camara Marley
      Stephanie De Camara Marley

      Terrific blog!

      Author's profile photo Mateusz Zimny
      Mateusz Zimny

      Correct proposal of the schedule dates in ATP funcitonality and meeting them - always become a challenge in many companies.

      Thanks for this article, for sure this solution can provide better information in case of using TM functionality (instead of using SD routes etc. to fulfill better transportation planning) and as the result improving whole supply chain process.

      Author's profile photo Dominik Tylczynski
      Dominik Tylczynski
      Blog Post Author

      Thank you Mateusz Zimny

      Integration of TM scheduling with sales order scheduling and ATP it's yet another story. It would be nice if sales order scheduling could use embedded TM transportation network seamlessly so we don't need to maintain SD routes anymore.

      Author's profile photo Dominik Tylczynski
      Dominik Tylczynski
      Blog Post Author

      I have opened an improvement proposal with SAP Customer Influence program to have this issue fixed in standard: Update material availability date in sync with all other of delivery dates

      Cast your vote so the proposal is considered for implementation by SAP.

      Author's profile photo Johnny Li
      Johnny Li

      this should be restricted to S/4HANA 2020 as TM have already changed the outbound delivery update process to use a new method provided by logistics integration team.

      /SCMTMS/CL_TM_LE_INTEGRATIO=>ROCESS_SPLIT_UPDAT calls CL_LE_SHP_TM_OBD_UPD=>IF_LE_SHP_TM_OBD_UPD~UPDATE_DELIVERY as of S/4HANA 2021.

      Author's profile photo Dominik Tylczynski
      Dominik Tylczynski
      Blog Post Author

      Hello Johnny Li

      That would be great if the issue was fixed in S/4HANA 2021. Unfortunately it is not.

      First, the note  3230794 – Outbound delivery update from TM does not include picking date is valid up to S4CORE 107.

      Second, CL_LE_SHP_TM_OBD_UPD=>IF_LE_SHP_TM_OBD_UPD~UPDATE_DELIVERY still uses the WS_DELIVERY_UPDATE_2 function that does not handle material availability date changes. That is the root cause of the problem.

      Third, if the issue is fixed in S/4HANA 2021, then SAP will say so answering the improvement proposal Update material availability date in sync with all other of delivery dates. Let's wait and see...