Shipment Integration Based on Freight Orders

Use

You use this process to carry out transportation planning in SAP Transportation Management (SAP TM) for transportation activities that are based on deliveries received from SAP ERP. You can then carry out transportation execution in SAP ERP for the freight orders that were created during transportation planning. If you have integrated SAP ERP with the SAP Extended Warehouse Management (SAP EWM) application, you can also carry out warehouse planning and execution in SAP EWM. For more information, see Shipment-based Integration with SAP EWM.

Note the following:

  • SAP TM creates a delivery-based transportation requirement (DTR) for each delivery received from SAP ERP. There is always a one-to-one relationship between an ERP delivery and a DTR.

  • SAP ERP creates an ERP shipment for each freight order received from SAP TM. There is an n-to-one relationship between DTRs and a freight order; and, therefore, between the ERP deliveries that were originally sent to SAP TM and the ERP shipment that SAP ERP creates based on a freight order.

Prerequisites

  • You have set up a configuration scenario for the TM_ERPShipmentIntegration_Out outbound integration scenario in SAP NetWeaver Process Integration (SAP NetWeaver PI).

  • You have created deliveries in SAP ERP and transferred them to SAP TM. SAP TM has created one DTR for each delivery. Each DTR contains all items from the corresponding delivery.

  • You have made sure that the relationships between the relevant business documents meet the following requirements:

    • The freight order (FO) is related only to DTRs (for example, SAP TM cannot send the FO to SAP ERP if it is related to an order-based transportation requirement (OTR), or to an OTR and a DTR).

    • The FO contains all freight units (FUs) from each related DTR (that is, the FO, and therefore the ERP shipment, must contain complete deliveries). This is because we do not perform a subsequent delivery split in SAP ERP.

    • The FO must contain FUs that are derived from either exclusively inbound deliveries or exclusively outbound deliveries. The creation of combined inbound and outbound shipments from ERP deliveries is not supported.

    • The FO contains FUs that are related to deliveries from the same ERP system. SAP TM cannot send the FO to SAP ERP if the FO contains deliveries from different ERP systems.

  • You have made the following settings in the relevant FO types in Customizing for Transportation Management under Start of the navigation pathFreight Order Management Next navigation step Freight Order Next navigation step Define Freight Order TypesEnd of the navigation path:

    • You have assigned an output profile to the FO types.

    • You have defined that the FO types are relevant for shipment creation by selecting the required value in the Shipment Creation Relevance field.

      If you want the shipments in SAP ERP to contain packaging information in the form of handling units, you must specify that packaging information is to be sent to SAP ERP along with the other freight order data. You do this by selecting the relevant option in the Shipment Creation Relevance field. You can send packaging information for the vehicle resource or containers at the highest level of the item hierarchy, or for both of these. Based on this information, SAP ERP creates handling units using container as the packaging material. You can send information only for the top level of the item hierarchy, and you cannot send information about the assignment of the delivery items to the containers or vehicles.

      Note that packaging information is required if you want to send the shipments from SAP ERP to SAP EWM to carry out warehouse planning and execution.

  • You have made sure that the FO is in process and does not have one of the following statuses:

    • Blocked for execution

    • Blocked for planning

    • Marked for deletion

Process

  1. You send ERP deliveries to SAP TM, and the SAP TM system creates delivery-based transportation requirements (DTRs) for the deliveries.

    For more information, see ERP Logistics Integration.

  2. You plan your transportation process in SAP TM based on the DTRs. During planning, you create freight orders.

    For more information, see Planning.

    Note that if the ERP deliveries were originally derived from order-based transportation requirements, the system reassigns the freight units from the OTRs to the DTRs without carrying out planning again.

  3. You carry out tendering for the freight orders in SAP TM (optional).

    For more information, see Freight Tendering.

  4. You send the freight orders to SAP ERP to carry out transportation execution.

    To send a freight order to ERP, choose Start of the navigation pathFollow-Up Next navigation step Create/Update ERP ShipmentEnd of the navigation path on the freight order UI.

    You also have the following options:

    • You can send a freight order to SAP ERP from the overview of freight orders that are relevant for ERP shipment creation. In SAP NetWeaver Business Client, choose Start of the navigation pathERP Logistics Integration Next navigation step Worklist Next navigation step Overview Freight Orders and Freight Bookings Next navigation step Freight Orders Relevant for ERP Shipment CreationEnd of the navigation path. This worklist shows all FOs that have already been sent to SAP ERP, and all FOs that are relevant for shipment creation in SAP ERP but have not been sent yet. In the worklist, select the freight order and choose the Create/Update ERP Shipment pushbutton.

    • You can use background program /SCMTMS/TOR_FO_PROC_BATCH. For more information, see Processing of Freight Orders.

    After you have initially sent a freight order to SAP ERP, you can send an update that contains information about a proposed carrier. For example, if you send a freight order to SAP ERP before you have performed tendering in SAP TM, you can send an update at a later stage; or if SAP ERP rejects the proposed carrier, you can perform tendering again in SAP TM and send an update with a new proposal.

    SAP TM sends a new or updated freight order to SAP ERP using the enterprise service Request Transportation Order Execution (TransportationOrderSCMExecutionRequest_Out). Note that this enterprise service and all SAP TM enterprise services mentioned below are in the Transportation Order Processing process component.

  5. SAP ERP creates a shipment for each freight order.

    The freight order ID and the TM system ID are displayed in the shipment header. In the standard system, if the execution status of the freight order is Not Started, the overall transportation status of the corresponding shipment is set to Planned. After setting this status, SAP ERP sends a status update to SAP TM. The execution status of the corresponding freight order is then changed to In Execution. As soon as this status is set, no further changes are allowed to the freight order in SAP TM.

    If you sent packaging information to SAP ERP, SAP ERP creates the required handling units using container as the packaging material.

    SAP ERP creates a shipment using IDoc SHPMNT05. It uses the same IDoc to send a confirmation of shipment creation and to send the status update. SAP TM receives the confirmation using the enterprise service Change Transportation Order based on Transportation Order Execution Confirmation (TransportationOrderSCMExecutionConfirmation_In). SAP TM receives the status update using the enterprise service Change Transportation Order based on Transportation Order Execution Status Notification (TransportationOrderSCMExecutionStatusNotification_In).

  6. You carry out transportation execution in SAP ERP for the shipments.

    If a delivery is subsequently removed from or assigned to a shipment in SAP ERP, the corresponding delivery-based transportation requirements (DTRs) and related freight units are reassigned in SAP TM, as follows:

    • If a delivery is removed from a shipment, the corresponding DTRs and related freight units are removed from the freight order. The life cycle status of the DTRs and freight units changes from Planned back to In Planning.

    • If a delivery is assigned to a shipment, the corresponding DTRs and related freight units are assigned to the freight order. The life cycle status of the DTRs and freight units changes from In Planning to Planned.

      If SAP ERP created handling units (HUs) based on packaging information received from SAP TM, SAP ERP sends an update to SAP TM as soon as container IDs and items have been assigned to the HUs. SAP TM can then update the freight order data accordingly by assigning the container IDs and the package items to the containers.

    SAP ERP sends information about changed delivery assignments and updated packaging information using IDoc SHPMNT05. In SAP TM, the delivery assignment information is received by the enterprise service Change Transportation Order Based on Transportation Order Execution Delivery Assignment Changed Notification (TransportationOrderSCMExecutionDeliveryAssignmentChangedNotification_In). The packaging information is received by the enterprise service Change Transportation Order Based on Transportation Order Execution Packaging Assignment Changed Notification (TransportationOrderSCMExecutionItmPckgAssgnmtChangedNotification_In).

Result

If you cancel a freight order that has already been sent to SAP ERP, SAP TM sends a cancellation request using the enterprise service Request Transportation Order Execution Cancellation (TransportationOrderSCMExecutionCancellationRequest_Out). The cancellation request is received by IDoc TPSSHT01 in SAP ERP.

If you cancel an ERP shipment that was created from a freight order, SAP ERP sends a cancellation request using IDoc TPSSHT01. SAP TM receives the cancellation using the enterprise service Cancel Transportation Order (TransportationOrderSCMCancellationRequest_In).