Cost Distribution for Shippers 
As a shipper, you create documents such as purchase orders, sales orders, and deliveries in SAP ERP. The SAP Transportation Management (SAP TM) system creates order-based transportation requirement (OTR) and delivery-based transportation requirement (DTR) documents to fulfill the SAP ERP demand. You use these requirements documents to create execution documents such as freight orders or freight bookings. You create a freight settlement document to transfer the transportation costs to SAP ERP for verification.
You must perform cost distribution at the level of ERP item in the freight settlement document.
For example, you have a net amount in document currency of USD 1000, with a cost distribution of USD 700 for product 1, and USD 300 for product 2. When you transfer the settlement document, the SAP ERP system takes the following steps:
Creates a service entry sheet for USD 1000
Creates an agency business document with each product as an item. Each item has the amount of the distributed cost, USD 700 for product 1 and USD 300 for product 2.
You use customizing settings in SAP ERP to specify the type of posting you want to do with the distributed cost, for example, material valuation or general ledger and CO-PA posting. Depending on the settings you have specified, the agency business document posts to these or other cost objects. The SAP ERP system uses the underlying sales order and delivery information from the ERP item to determine from the source SAP ERP document the particular cost object against which it posts the distributed costs.
For example, in Customizing for SAP ERP, you specify that you want to perform CO-PA posting. A particular sales order references a particular CO-PA object. You create OTR or DTR orders in SAP TM for the sales order. When posting the distributed costs in SAP ERP, the system posts to the CO-PA object that is referenced in the sales order.
Examples of cost objects include cost centre, profit centre, CO-PA segment, and internal order.
The system uses the freight settlement document to enable you to integrate with SAP ERP.
You have specified the cost distribution settings in Customizing for SAP ERP under .
If you want to transfer your distributed costs to SAP ERP with the freight settlement document, you have enabled the freight settlement document for cost distribution in Customizing for Transportation Management under .
You have specified the all the relevant internal settlement document prerequisites (see Internal Settlement Management).
The figure below illustrates the process an item in each of two sales orders in SAP ERP take through the SAP TM system until the SAP ERP system updates the distributed costs against cost objects in the agency business document. It is followed by an explanation.

You include two outbound deliveries in a freight order. The total amount in document currency of the freight order is USD 1000. In the associated freight settlement document, the SAP TM system distributes costs to the underlying delivery items by gross weight.
When you transfer the freight settlement document, SAP ERP takes the following steps:
Creates a service purchase order and includes the items that correspond to the total amount in document currency for the freight settlement document.
Posts a service entry sheet (SES) to confirm the services in the service purchase order
Creates an agency business document with two line items. Each line item corresponds to the individual line items in the freight order.
When the SAP ERP system creates the agency business document, it copies the account assignment details from the relevant sales order line item. In this example, the system copies the account assignments from item 10 of sales order 1 to item 10 of the agency business document.
For information about how the invoice is created in SAP ERP, see SAP Library for SAP ERP on SAP Help Portal at http://help.sap.com/erp. In SAP Library, choose .