Skip to Content
Technical Articles
Author's profile photo Petra Hunger

TM-EWM Integration with FO and TU in SAP S/4 Hana

SAP S/4 Hana implementations that include EWM and TM need a certain set up to allow posting an end-to-end process with a sales order, delivery, freight unit, freight order, transportation unit, picking, packing and goods issue. The below step by step guide explains the most critical steps to allow freight order to transportation unit Integration. The below 12 steps summarize what needs to be done:


PICTURE 2 – Location and packing material assignment

STEP 1 – Go to transaction /SCMTMS/LOC3

STEP 2 – Assign a warehouse and a Logical System to the related shipping point Location (TM tab)

STEP 3- Assign a packign material to the related means of Transport (same as the one in the resource used on the FO).

PICTURE 3 – Activate PPF messages

The TM to EWM Integration is done via an XML message (even in embedded TM and EWM). This means, the XML Framework needs to be set up and the following message type need activation.

STEP 1 – Go to SPPFC , choose /SCWM/SHP_REV and /SCMWM/TU

STEP 2 – activate the below marked messages

PICTURE 4 – Remove scheduling conditions

Scheduling condition check certain pre-requisites before they are executed. This will lead to non-generation of the Messages that you need if you do not remove them. double-click on the item on the Right side and click on “no condition” for each one of the messages.

PICTURE  5 –  Configure ewm Integration profile and assign it to the FO type

SPRO -> TM-> Integration -> Define EWM Int Profile
SPRO -> TM – Freight order management – FO type

STEP 1 – Create Integration profile

Make sure to set multiple updates. This avoids that the Fo becoms uneditable after generating the TU.

STEP 2 – Assign Integration profile to the freight order type.

PICTURE  6 –  Create carrier/supplier roles

STEP 1 – go to BP and Change to edit mode
STEP 2 – create carrier and supplier role
STEP 3 – this is required to add the carrier to the FO (TM) and receive it in ewm (supplier)


PICTURE  7 –  Create Fo and set load plan Status to finalized

STEP 1 – Create the road freight order in TM

Type “edit road freight order” in sap business client or type/n/ui2/flp. Make sure, it has at least a carrier, a vehicle ressource and a freight unit assigned. The freight unit has to have a delivery generated that was distributed to EWM. Else the TU cannot be assigned to the delivery and will not be generated. The ressource have to have a Means of Transport with a package material assigned.

STEP 2 – Set load plan Status to finalized

If all goes well, a XML message is sent and you get the below message:

PICTURE  8 –  Check Tu is created

STEP 1 – call transaction /SCWM/TU

Make sure the warehouse is correctly entered and the period for selection is long enough.

You can type the Fo number into TU external number. They are always the same and usually one to one. If you cannot find the TU, you can check in table /SCWM/TUNIT using TU_NUM_EXT. If it is not There. Check SRT_MONI.

PICTURE  9 –  Check XML message

STEP 1 – call SRT_MONI

STEP 2 – Enter *LOAD* into interface Name.

PICTURE  10 –  Post movements in EWM and Check Fo execution tab

STEP 1 – Tu Generation

Once the TU was generated successfully, the FO Shows Ready for loading on the execution tab.

STEP 2 – Arrival at Checkpoint

Once you have the TU in EWM, post “Arrival at checkpoint” to acknowledge truck arrival. The FO should show “arrival at Destination” on the execution tab.

STEP 3 – Load and Departure from checkpoint

Do picking, packing, load end and departure form checkpoint in ewm. The Fo execution tab should show the events LOAD_END and Departure with the same times as ewm.

These were the summarized steps to set up the TM-EWM integration.


Petra Hunger

Assigned tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo santhosh surakasi
      santhosh surakasi

      Very Good explanation...

      Author's profile photo Petra hunger
      Petra hunger

      hi Santhosh, thank you for your feedback.

      let me mention something that I learned in addition.

      if you do not know why the message "location not warehouse relevant" is issued, you can debug by setting a breakpoint into class /SCMTMS/CL_TOR_A_SEND_REQ_LDAP, method CHECK_LDAP_CAN_BE_SENT. The message number is /SCMTMS/TOR_INT. number 159.




      Author's profile photo Rajiv Kanoria
      Rajiv Kanoria

      Very Useful information. Thanks Petra.

      Author's profile photo Antonella Stancato
      Antonella Stancato

      hi Petra,

      I have one question. I have the scenario you described but inside the Freight Order I also have a container Unit. When I send the message to EWM the system automatically creates 2 TU: the first TU is the container which also contains the delivery assignment and the second TU is the vehicle. Both TUs obviously are related to the same Freight Order. My expectation was to have one single TU with the delivery assigned and also the vehicle resource assigned. it makes no sense to me to have 2 TUs. do you agree? do you know which might be the issue here?

      thanks a lot


      Author's profile photo Prashant Suryawanshi
      Prashant Suryawanshi

      Hi Antonella,

      You are right, no need to create two TUs, but this is standard and I am also looking for the rationale behind this behaviour.



      Author's profile photo Roberto Nanga
      Roberto Nanga

      This is related to your Means of Transport customizing in TM.

      You need to set up the active MoTr so that check boxes “No capacity” and “No direct load” are selected.



      Roberto Nanga Martínez

      Author's profile photo Balint Meszaros
      Balint Meszaros

      wow, thanks Roberto I've been looking everywhere for this exact thing

      Author's profile photo Petra Hunger
      Petra Hunger
      Blog Post Author

      hi Roberto, yes, thanks for this useful addition.

      Author's profile photo Tamer ADAM
      Tamer ADAM

      Thanks Petra for the useful and clear steps and screenshots!

      Author's profile photo Vlatko Nesterovic
      Vlatko Nesterovic

      Hi Petra,


      thanks a lot for this how to manual. I have tried to process your steps, but at point 7 I still get no XML message. Are there any other presteps to do to get the XML message?

      Thanks in advance.

      BR Vlatko Nesterovic

      Author's profile photo Petra hunger
      Petra hunger

      hi Vlatko,

      yes, the messages have to be setup in PO. The message types are:

      1. OutboundDeliveryBulkCreateRequest_Out
      2. OutboundDeliveryBulkConfirmation_In
      3. OutboundDeliveryBulkCreateRequest_In
      4. OutboundDeliveryBulkConfirmation_Out
      5. TransportationOrderLoadingAppointmentRequest_Out
        6; TransportationOrderLoadingAppointmentNotification_In

      these messages types can be viewed in SPROXY and you can find them in the naming area http// . They need to be configured in transaction SOAMANAGER.

      thanks for the question. This was missing in the step list.



      Author's profile photo M. Zeer
      M. Zeer

      Hi Petra,

      Thanks for this blog!



      Author's profile photo Youssef El Barzouhi
      Youssef El Barzouhi

      Hello Petra,

      Thank you for this insightful blog! looking forward to read more from you.


      Author's profile photo Jeong Shim Yoon
      Jeong Shim Yoon

      wow, thank you for your detailed explanation.

      I have a question how to update EWM Handling units like Small Box-Large Box-Pallets Hierchies to Delivery and FU items of FO.

      sholud we reflect same EWM Handling Unit Information to DO Handling Units and FU items ?

      can we control Output message of HU information? like.. make top HU output only for DO Handling Unit and FU items.


      Author's profile photo Petra Hunger
      Petra Hunger
      Blog Post Author

      hi Jeong,

      not sure if I understand the requirement well. But, I try to answer anyway:

      If you do NOT use the package builder in TM, you will still see the FU items updated with the package information that you have built in EWM. So, if you make hierarchies in EWM, you should see them in TM.

      If you use the package builder in TM and you are in S/4 Hana 2020, you can decide to build packages in TM based on either pack spec or packing instructions (EWM) or tm package builder rules such as product to package assignments.In TM, you can build packages either on the freight unit (early package building) or make the optimizer generate packages (consolidation) or use buttons in the cockpit or in load planning to build packages in the cockpit or within the freight order. When you transfer the freight order to ewm (as explained above) and use "send loading instructions", this will build planned HUs in EWM.

      with report /SCWM/TEST_PB, you can test the package building with the product that you may have set up in the pack spec. I just tested it, it is definitely possible to build packages in the tm freight unit based on the ewm pack spec (unified package builder). In the pack spec, there is the possibility to build several levels. so, I would think that this may fulfill your requirement.

      to make it work, you need to set up a package builder profile with the option "packspec ticked", then you assign the profile to the freight unit building rule (advanced settings) and choose the option "build hierarchies".

      Of course, you can also build hierarchies using the TM package builder and send those to EWM. In this case, you need to assign a package 1 to product 1 and than another package  2 to package 1. this also builds a hierarchy. you can try with /SCWM/TEST_PB in se38 and /SCWM/PB_PKG_ASS.


      Author's profile photo Atom Yoon
      Atom Yoon

      Wow.. you've answered long time ago..
      so sorry to recognize your comments just now.

      firstly, thank you for your dedicated support.
      I took some notes as below in detail again.

      our team're struggling lots of hu & fu items due to WM output message ( LDAP & qRFC )

      we have TM-EWM thru. DO/TO integration case(for loading insturction) & just D/O integration.

      both of them makes lots of fu items and it affects subsequent documents performances like cost distribution and freight order/book process.

      still we're looking for the way to control output messages from EWM to TM.

      if possible and there is no side effects, we don't want to get EWM HU info for subsequent documents till freight cost clearance.

      for example) 1 do item > batch split 1~2 items ( LIPS/TOR Iitems : 2 lines, VEPO: 0 lines)

      > after ewm gi ( LIPS/TOR Iitems : 190~200 lines, VEPO: 190~200 lines)

      Freight order or Freight book has 10~20 FU .. so, they'll have around 4000 records.


      Any advice would be of great help.

      thank you

      Author's profile photo Guatam S
      Guatam S

      Nice explanation, thanks Petra.

      May I know if anyone have the similar stuff for inbound ( unloading instructions) what all status transmits from EWM to TM.



      Author's profile photo Petra Hunger
      Petra Hunger
      Blog Post Author

      hi Guatam,

      I would expect, it is mainly the same thing. Except you have to use the load plan status "set unload plan status" to finalized. I have used it for returns and it worked.

      hope it helps



      Author's profile photo João Vasconcellos
      João Vasconcellos

      Hi Petra,


      One more time the nice blog. Congrats!

      It is helping me a lot in this moment.

      Hugs and regards



      Author's profile photo Petra Hunger
      Petra Hunger
      Blog Post Author

      Thank you all for taking the time to provide all this friendly feedback.

      Author's profile photo Raj Gaurow
      Raj Gaurow

      Well Explained! 

      Very Useful!

      Thanks, Petra!

      // RAJ


      Author's profile photo MOHAMMAD RAFI SAYYAD

      Thanks a lot Petra!

      Its really useful.


      Is it the same procedure also applicable for old version? (i.e TM 9.5 integration with EWM 9.5)? Can you please confirm?





      Author's profile photo Petra hunger
      Petra hunger

      hi Rafi,

      yes, I woudl think every thing is the same in TM 9.5 if Tm and Ewm run on the same client.



      Author's profile photo Sreenivasan sala
      Sreenivasan sala

      Thanks Petra!


      But in our case, TM and EWM systems are on different clients. Do you think still the same steps would be applicable?



      Author's profile photo Petra hunger
      Petra hunger

      let me try to list the steps for this case:

      STEP 1 - configure DTr type (E direct ewm int)
      STEP 2 - Configure integration profile and assign to Fo type (int profile 3/3/I)
      STEP 3 - Configure Post processing framework  (activate TOR_LDAP_CNC, TOR_LDAP_REQ in/SCMTMS/TOR in appl /SCMTMS/TRANSPORTATION)
      STEP 4- go to the condition part of the ppf, click on techn details and assign or delte the conditions)
      STEP 5 - creater the partner role "carrier" for your carrier in TM and create it in the ewm client too
      STEP 6: in ewm client, assign packing material to your means of transport
      STEP 7: activate vehicle and tu creation in spro - control parameters for vehicle creation in ewm
      STEP 8: in TM, activate detailed messages for your user (SPRO-basic functions - user interface)
      STEP 9: check output management for your sd delivery. There has to be TRD0 on your output profile (you will find the xml number in the output processing log if it has generated)
      STEP 10: create a warehouse (SPRO- SCM EWM - create warehouse) this may be necessary both in tm and EWM.
      STEP 11: assign warehouse to decentralized system (SPRO - int with other components - ewm - additional attributes - assign warehouse to decentralized)
      STEP 12: logical systems: in all systems, you have to create a logical system for erp, ewm and tm. (spro - ewm - define logical system)
      STEP 13: assign logical system to client (step below the previous in customizing)
      STEP 14: assign logical system to the location in /SCMTMS/LOC3 in tm tab.
      STEP 15: assign logical systems in spro - TM - Integration - define SLD-Data of business systems (this has to be done both in ewm and tm)
      STEP 16: define message types in SOAMANAGER
      TM System


      ERP System


      TM System

       TransportationOrderLoadingAppointmentRequest_Out   TransportationOrderLoadingAppointmentNotification_In

      EWM System


      LAST Step : Test the process

      hope it helps. please add to it if something is unclear or needs corrections.

      Of course, it is much easier to use tm-ewm on the same client or embedded. Not a recommended scenario. But, sometimes, you cannot avoid it.



      Author's profile photo MOHAMMAD RAFI SAYYAD

      Thanks very much Petra for providing detailed steps!

      Will test it.

      Author's profile photo Kedarnath Sindole
      Kedarnath Sindole


      Author's profile photo Raul Galicia
      Raul Galicia

      Hi Petra,

      Thanks a lot for the useful information!

      I would like to know if you have faced any similar issue in the 7th step as the following;

      The integration used to work properly as you described it for about 3 months. Suddenly something we have not identified changed the behaviour of the system and when I set load plan Status to finalized, the system does not send the XML message. As a workaround we found that first we have to set load plan Status to Not Planned and then to set load plan Status to finalized and save so as to sent the XML message.

      Do you have any suggestion  to get back to the right behaviour?


      Raúl Galicia

      Author's profile photo Petra Hunger
      Petra Hunger

      hi Raul,

      no, I have not experienced the same behavior on a regular basis. Maybe occasionaly though, I have seen that the xml does not want to generate. The way you solve it is correct "set to planned" and back to "finalized". I suggest, you open an oss incidert with a reproducable example and let sap solve the issue.



      Author's profile photo Raul Galicia
      Raul Galicia

      Thanks a lot for your answer Petra!

      We have opened an incident with SAP and they are analyzing the situation. When we have the solution we share it with you !!



      Raúl Galicia