Show TOC

 TMS-ERP: Invoice Integration


Technical Data

Technical Name of Business Function


Type of Business Function

Enterprise Business Function

Available From

SAP Enhancement Package 4 for SAP ERP 6.0

Technical Usage

Central Applications

Application Component

Logistics Invoice Verification (MM-IV) and Billing (SD-BIL)

Required Business Function

Not relevant

You use this business function to create, change, delete, or display logistical incoming invoices that refer to reference documents in SAP Transportation Management (SAP TM). This allows you to carry out invoice processing for the connected transportation management system in SAP ERP and thus use the main ERP invoice processing functions in MM and SD.

Invoice verification for documents that originate from SAP Transportation Management (SAP TM) is possible with SAP Transportation Management 8.0 (SAP TM 8.0) or higher.


This function is available only if you have SAP TM connected.

Technically, the data is transferred from the transportation management system to SAP ERP using enterprise services:

  • Logistics Invoice Verification (MM-IV)

    In SAP ERP, internal documents that the system requires for invoice creation are created for Logistics Invoice Verification on the basis of the TM data. When incoming invoices are entered or canceled, the connected transportation management system is informed by enterprise service (Supplier Invoice Notification - InvoiceNotification_Out).

    While verifying invoices in SAP ERP, a URI to display a specific freight settlement document can be retrieved from SAP TM by enterprise service (GetTransportationDocumentURI)

  • Billing (SD-BIL)

    In SAP ERP, outgoing invoices are created on the basis of the TM data, which are sent to bill-to parties.


You have installed the following components as of the version mentioned:

Type of Component


Required for the Following Features Only

Software Component


XI/ESR Content

Invoice Notification

  • Set up Customizing

    For incoming and outgoing invoices, make the appropriate Customizing settings in Integration with Other SAP Components under Start of the navigation path Transportation Management Next navigation step Invoice Integration End of the navigation path.

  • Set user parameters

    You must set up the user parameter TM_INVOICE_CLERK in the user data accordingly. With the user parameter TM_INVOICE_CLERK, you control which tabs the user sees when entering or changing incoming invoices in the transactions MIRO and MIR7, in change mode in the transaction MIR4, and in GR/IR clearing account maintenance in the transaction MR11.

    The user parameter has the following alternatives:

    • Blank

      The user sees the TM Reference and PO Reference tabs, as well as the G/L Accounttab that is visible according to Customizing.

    • 01

      The user only sees the TM Reference tab and, depending on Customizing, the G/L Account tab. The PO Reference tab is hidden.

    • 02

      The user does not see the TM Reference tab, but sees the PO Reference tab, as well as all tabs that are visible according to Customizing (Material Account, G/L Account, and Contract Reference).

  • Set up workflow

    You must activate the workflow WS53800006 for the incoming invoice (BUS2081) so that the connected transportation management system is informed by a service. In addition, you must activate event linkage for the events POSTED and CANCELLED.

  • Activate business function

    You must activate the business function Operations, Enterprise Services (LOG_ESOA_OPS_2) to be able to use enterprise services for incoming and outgoing invoices.


Processing of Incoming Invoices

You can use the following functions:

  • Enter and check invoices

    In the transaction MIRO, you can enter and check invoices with reference to the transportation management system. The additional tab TM Reference is available for this purpose. Here you can determine documents based on logistics data such as freight order, carrier, bill of lading, air waybill, voyage number, and flight number.

  • Park and hold invoices

    In the same way as in transaction MIRO, in transaction MIR7 you can park, hold, or completely enter invoices with reference to the transportation management system.

  • Display invoices

    When you display invoices in the transaction MIR4, logistics data from SAP TM is also displayed.

  • List invoices

    In the transaction MIR6, you can list incoming invoices that were entered with reference to the transportation management system. You can restrict the selection to invoice documents with a TM reference.

  • Cancel invoices

    In the transaction MR8M, you can completely cancel invoices that were entered with reference to a transportation management system. The additional tab TM Reference is available when you display the invoice.

Note Note

Note that background processing of invoices is not supported.

End of the note.

For more information, see Processing of Incoming Invoices.

Archiving of Invoices

When invoice documents are archived, TM-relevant data (table RSEG_TM; archiving object MM_REBEL) is also archived. The archiving reports RM08RW47 and RM08RD47 have been adapted.

For more information, see Archiving of Incoming Invoices.

Evaluated Receipt Settlement (ERS)

You can execute evaluated receipt settlement with reference to documents in the transportation management system. Evaluated receipt settlement has been enhanced to include the following functions:

  • The selection screen for evaluated receipt settlement has been enhanced to include TM-specific data (transaction MRRL).

  • Instead of purchasing data, TM-specific data is now output in the invoice. You can transmit messages with the output type ERS by fax and print output (transaction MR90). Transmission by EDI is not implemented.

  • When incoming invoices are entered, the connected transportation management system is informed by enterprise service (SupplierInvoiceNotification - InvoiceNotification_Out).

For more information, see Evaluated Receipt Settlement.

Releasing Blocked Invoices

In the transaction MRBR, you can search for blocked invoices with a TM reference using TM-specific data and release them. You can also navigate to the details of the reference document in the connected transportation management system (via RFC).

For more information, see Release of Incoming Invoices.

Maintaining a GR/IR Clearing Account

In the transaction MR11, you can balance the GR/IR clearing account for documents that refer to the transportation management system. You can also select items with a balance in the clearing account based on transportation-relevant data.

The results list displays information relevant for transportation, such as freight order or bill of lading.

For more information, see Maintenance of GR/IR Clearing Account.


The following BAPIs were enhanced to include TM-specific data:

  • BAPI_INCOMINGINVOICE_CREATE1: Invoice Verification: Hold/ Park/ Park As Complete/ Post Incoming Invoice

    Note Note

    In SAP enhancement package 4, the following BAPIs were enhanced instead of BAPI_INCOMINGINVOICE_CREATE1:

    • BAPI_INCOMINGINVOICE_CREATE: Invoice Verification: Post Incoming Invoice

    • BAPI_INCOMINGINVOICE_PARK: Invoice Verification: Hold/ Park/ Park As Complete Incoming Invoice

    End of the note.
  • BAPI_INCOMINGINVOICE_GETDETAIL: Invoice Verification: Display Incoming Invoice

  • BAPI_INCOMINGINVOICE_GETLIST: Invoice Verification: List Incoming Invoices

  • BAPI_INCOMINGINVOICE_CHANGE: Invoice Verification: Change Provisional Invoice

The following BAPIs were also adapted accordingly:




For more information, see Integration: Invoice Processing (MM-IV/SD-BIL) - SAP Transportation Management (SAP TM).

Invoice Receipt IDocs Enhanced

In the IDoc INVOIC01/INVOIC02 (invoice/billing document) there is a new qualifier in the segment type E1EDP02 that specifies the TM document more exactly. The following qualifiers are new:

  • T01 = Freight order

  • T02 = Bill of lading

  • T03 = Air waybill

  • T04 = Flight number

  • T05 = Voyage number

Note Note

For technical reasons, in SAP ERP one purchase order is created per freight settlement document, which the system requires for invoice creation. If several freight settlement documents are transferred with reference to one TM document, the EDI invoice item can only be assigned using this purchase order number. For a unique assignment, there is also the qualifier TP1 (TM purchase order number) available. It is possible to transfer several segment types E1EDP02 per invoice item with the IDoc (for example, the qualifiers T01, T03, and TP1).

End of the note.
Processing of Outgoing Invoices

You can also use the functions for editing outgoing invoices for invoices that originate from the transportation management system.

See Processing of Outgoing Invoices (LO-TM)

More Information

You can integrate order processing in SAP ERP with the transportation management system.

For more information, see SAP Library for SAP ERP on SAP Help Portal at Start of the navigation path published on non-SAP site Next navigation step SAP ERP Enhancement Packages Next navigation step ERP Central Component Enhancement Package 4 Next navigation step SAP ERP Central Component Next navigation step Logistics Next navigation step Logistics - General (LO) Next navigation step Integration of SAP ERP with SAP Transportation Management (LO-TM) End of the navigation path.