Skip to Content
Technical Articles

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

You must be Logged on to comment or reply to a post.
  • 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


  • 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

  • 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.


    • 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.


  • 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.



    • 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