Workflow for parked TM documents (S/4HANA)
Since xSuite Cube version 5.2.12, a workflow can be started for posted TM documents. With the new version, a workflow can now also be started for parked TM documents.
SAP Transportation Management creates a purchase order based on the freight order or settlement document. This purchase order is created as a service order with goods-receipt-related invoice verification, but without service-related invoice verification. Goods receipt and the service entry sheet are created together with the purchase order.
Technically speaking, TM documents are therefore MM invoices (invoices with purchase order reference) that are assigned to a service order in SAP. When posting an invoice such as this, SAP uses logistical invoice verification, as with all MM invoice documents.
To start a workflow for such TM documents, the system always differentiates between parked and posted documents. For posted TM documents, the event /WMD/CL_XF_LO->POSTED_TM is used to start a workflow. For parked TM documents, on the other hand, the event /WMD/CL_XF_LO->CREATED is used to start a workflow. Parked TM documents and parked MM documents use the same workflow template. The check function module /WMD/WXF_START_XFLOW in the Workflow Builder also does not differentiate between parked TM documents and parked MM documents.
In the individual workflow tasks, a TM document is treated as such if one of the following two conditions is met:
There is an item that belongs to a TM freight order.
There is no item with PO reference, but the document has been parked in the Invoice Monitor as record type "TM."
In all other cases, the document is treated as an MM document.
The main difference between TM documents and MM documents is the creation of new order-related items in the account assignment block. A value help is available for TM documents, which the user can use to select a freight order.
![]() |
After selecting a freight order, a new item data proposal is created. The Freight Order and Freight Order Item fields are available in the account assignment block.

If set in xSuite Customizing, the new item will be added to the SAP document later. The rest of the process is identical for MM and TM documents.
