Delivery-Based Integration with SAP EWM
Use
You can integrate SAP Transportation Management (SAP TM) with SAP Extended Warehouse Management (SAP EWM) based on deliveries and orders.
Prerequisites
-
You have configured the following settings in your freight order type:
-
You have selected the Transportation Activity Creation in SAP EWM option in the Document Creation Relevance field.
-
You have specified an output profile that contains actions for sending LoadingAppointment messages, for example, /SCMTMS/TOR.
-
You have created your EWM integration profile.
For more information, see Customizing for Transportation Management under .
-
-
In Customizing you have activated the direct integration with EWM for your delivery-based transportation requirements. This means that you have set the option Direct EWM Integration in the Dir. EWM Int. Active field. For more information, see Customizing for Transportation Management under .
-
SAP provides the following, predefined event codes for cancelations as well as the corresponding event reason codes:
Event Code
Name
Event Reason Code
Name
CANCEL_EXEC_DOC
Cancel Execution Document
CANCELLED_BY_CARRIER
Canceled by Carrier
CANCEL_STATUS_RESET
Cancel and Reset Cargo Execution Status
TM_PLAN_NOT_READY
TM Planning Not Yet Ready
CANCEL_UNASSIGN_FUS
Cancel and Unassign FUs of Current Stop
STOP_CANCELLED
Loading Appointment Canceled (loading cannot be executed in the warehouse as planned)
These event codes are set as the default codes.
You can define your own event codes and event reason codes. For each event type, you must specify at least one of your event codes as the default code.
For more information, see Customizing for Transportation Management under .
-
If you want to work with trailers, you have configured the following settings in your transportation unit type:
-
You have selected the Transportation Activity Creation in SAP EWM option in the Document Creation Relevance field.
-
You have specified an output profile that contains actions for sending LoadingAppointment messages, for example, /SCMTMS/TOR.
For more information, see Customizing for Transportation Management under .
-
Features
The following processes are supported:
-
Transportation planning based on inbound deliveries (see Inbound-Delivery-Based Transportation Planning)
-
Transportation planning based on outbound deliveries (see Outbound-Delivery-Based Transportation Planning)
-
Transportation planning with trailers (see Transportation Planning with Trailers)
-
Order-based transportation planning (see Order-Based Transportation Planning (Outbound) and Order-Based Transportation Planning (Inbound))
Displaying Data
The warehouse numbers from SAP EWM are displayed in the following locations:
-
Delivery-based transportation requirement: Locations and Dates/Times tab page
-
Freight order: tab page
Changing Data
If you change the following data in SAP EWM, your changes are automatically replicated to SAP TM:
-
Carrier
-
Planned departure time and arrival time
-
Gross weight of the vehicle
-
Packaging material
Actual quantities from SAP EWM are automatically transferred to SAP TM. If the actual quantities and planned quantities differ, the system creates a discrepancy in SAP TM. For more information see Discrepancies and Events.
Actual dates are also reported automatically to SAP TM.
If you reassign a complete delivery in SAP EWM from one transportation unit to another, SAP EWM reports the reassignment to SAP TM. In SAP TM, the delivery is automatically reassigned from the original freight order to the associated freight order.
If you assign a freight unit to a transportation unit in SAP EWM but the freight unit is not assigned to a freight order in SAP TM, this information is also transferred to SAP TM. The system then automatically assigns the freight unit to the corresponding freight order.
Updating Data
If you set the load plan status Load Plan Finalized for your freight order, the system automatically triggers the event Ready for Loading. The system transfers the event to the predecessor document (that is, the freight unit) and changes its status to Load Plan Finalized. When building the freight unit, the system checks whether this status has been set. If so, the freight unit is no longer updated from SAP ERP but from SAP EWM.
The same applies for the load plan status Unload Plan Finalized and the event Ready for Unloading.
If SAP TM receives the LoadingAppointmentNotfication message during outbound-delivery-based transportation planning, the cargo receipt status for the item is automatically set to Shipped. If the item in question is to be unloaded at the next transportation stop, the handling execution status is automatically set to Not Unloaded. In the associated freight unit, the cargo receipt status is also set automatically to Shipped. As a result, the freight unit is no longer updated from the forwarding order or the delivery-based transportation requirement.
Canceling Documents
You can still cancel freight orders and freight bookings up until the goods have arrived in the warehouse and have been reported by SAP EWM as Arrived. If the status Unload Plan Finalized has already been set and you cancel the freight document, the system sends a cancellation request to SAP EWM. This request is checked and processed by the EWM system as follows:
-
If the goods have not yet arrived in the warehouse, SAP EWM confirms the cancellation, and the life cycle status of the freight document is changed to Canceled.
-
If the handling execution status at stop level has already been changed to Arrived, the system sets the Transmission-to-EWM Status to Partially Received or Received. Execution of the transportation continues and the freight document cannot be canceled.
The freight document in SAP TM can be canceled only if cancellation has been confirmed by SAP EWM and reported to SAP TM.
Messaging
Transmission-to-EWM Status provides information about the status of the exchange of messages. For more information, see Explanation of Statuses of Business Documents.

