Sei sulla pagina 1di 7

Transportation Management Integration - ERP SCM - SCN Wiki Page 1 of 7

Getting Started Store

Community WIKI SAP Community Welcome, Guest Login Register Search the Community

ERP SCM / … / * Purchase Order

Transportation Management Integration


Created by Gabor Harsfalvi, last modified on Apr 21, 2015

Prerequisites:
To transfer purchase orders and stock transport orders to SAP TM, you have to activate the Operations, Enterprise Services 2 (LOG_ESOA_OPS_2) business function.
The following business functions are also recommended:

• Advanced Returns Management (OPS_ADVRETURNS_1) for transferring returns orders to SAP TM


• Logistics Simplification (SD_01) or Operations, Enterprise Services (ESOA_OPS01) for transferring sales orders to SAP TM

For more information, see SAP Note 1530240.

General settings of the system for integration of SAP ERP in SAP TM are explained in this scenario guide (available only in English)

The integration between Purchase Order and TM is realised by the BADI ME_PROCESS_PO

There are two Enhancement implementations


1. TM_MM_INTEGRATION contains the main processing logic
2. TM_PROCESS_PO_UI deals with the User Interface integration

The implementation is switched on by switch OPS_SFWS_SC_ERPTMS

https://wiki.scn.sap.com/wiki/display/ERPSCM/Transportation+Management+Integration 1/17/2018
Transportation Management Integration - ERP SCM - SCN Wiki Page 2 of 7

The entire integration is based on the Customizing:


a ’TM Control Key’ has to be defined in order to decide if a Purchase Order should be send to TM.

IMG: Integration with Other SAP Components - Transportation Management - Order Integration

Activate Transfer of Purchase Orders


here you can define which PO should be relevant for TM:

There is a break point id for customizing external TMS:

BREAK-POINT ID int_tms_erp_sc.

The most important methods of the Class CL_IM_TM_MM_INTEGRATION:


1. PROCESS_HEADER Processing of Header Data
2. PROCESS_ITEM Processing of Item Data
3. POST Post

https://wiki.scn.sap.com/wiki/display/ERPSCM/Transportation+Management+Integration 1/17/2018
Transportation Management Integration - ERP SCM - SCN Wiki Page 3 of 7

Determination of external TMS Control Key

It happens in Method PROCESS_HEADER and based on the fields ’Purchasing Org.’ + ’Purchasing Group’ + ’Document Type’

The keys of the customizing setting will be evaluated from left to right meaning if you leave a column empty like the purchasing group then the order type has to be empty as well.

You can apply an enhancement implementation of BADI_LO_TM_PUR to clear the TM Control Key based on certain conditions.

The TM relevant data are stored in database table POEXT

https://wiki.scn.sap.com/wiki/display/ERPSCM/Transportation+Management+Integration 1/17/2018
Transportation Management Integration - ERP SCM - SCN Wiki Page 4 of 7

XML communication:
Purchase Order Integration

To transfer individual purchase orders to SAP TM for transportation planning, you use the following service operations in the Purchase Order Processing process component:

• POP_TransportationRequestSUITERequest_Out
• POP_TransportationRequestSUITECancellationRequest_Out

which is based on

• CL_SE_PUR_TRQSUITEREQUEST Outboound Service for TRQSuiterequest


• CL_SE_PUR_TRQCANCELREQUEST Outbound Service for TRQSuiteCancellationRequest

Within these Classes you can find all the processed methods

Internal or Customer BAdI to convert and insert additional backend data to XML

https://wiki.scn.sap.com/wiki/display/ERPSCM/Transportation+Management+Integration 1/17/2018
Transportation Management Integration - ERP SCM - SCN Wiki Page 5 of 7

The XML is triggered similar to the other purchasing Enterprise Services. (see Enhancement Spot PUR_SPOT_SE_PURCHASE_ORDER)

BADI PUR_SE_PO_INTERFACE_OUT_IBS called in Class CL_SE_PUR_PO_WF_OUT :

https://wiki.scn.sap.com/wiki/display/ERPSCM/Transportation+Management+Integration 1/17/2018
Transportation Management Integration - ERP SCM - SCN Wiki Page 6 of 7

Data Mapping

Facing some errors?


You can look at transaction SLG1 (with keys OPS_SE & BUS2012) to see if there is any issue observed while creating the SOA.

For those documents without control key you can force a new sending of the PO using TMTRQINITIALSENDING report.

Why does the system not generate outgoing messages for purchase orders (POP_TransportationRequestSUITERequest_Out and
POP_TransportationRequestSUITECancellationRequest_Out)?
The system does not generate messages (no entries in transaction SXMB_MONI), even though Customizing for order integration has been maintained correctly for purchase orders and the workflow
settings also exist (transaction SWETYPV and entries in the view V_T175SOA in accordance with the IMG documentation).

1. In transaction SM59, check whether a logical connection has been defined for the corresponding client and the workflow user. If it has not been, generate the RFC connection via automatic
workflow Customizing using transacion SWU3: The activity "Configure RFC Destination" exists for this under the point "Maintain Runtime Environment".
2. Check whether active implementations of the BAdI PUR_SE_PO_INTERFACE_OUT_SELECT (enhancement spot PUR_SPOT_SE_PURCHASE_ORDER) exist, which suppress the generation
of outgoing messages generally or for the specified service operations.
3. Check whether active implementations of the BAdI PUR_SE_PO_CRTED_INFO_FILTER or PUR_SE_PO_CHGD_INFO_FILTER (enhancement spot PUR_SPOT_SE_PO_INFO_FILTER) exist,
which suppress the start of the workflow when a purchase order is created or changed, and therefore also prevent the generation of outgoing messages.

How can I find outgoing messages (POP_TransportationRequestSUITERequest_Out ) for a particular purchase order?

1. As of SAP Note 1574209, the system displays messages for the task "Purchase Order Information" (task ID TS53800009) for the service operation
POP_TransportationRequestSUITERequest_Out in the workflow log (transaction SWI1) with the task ID WS53800008.

https://wiki.scn.sap.com/wiki/display/ERPSCM/Transportation+Management+Integration 1/17/2018
Transportation Management Integration - ERP SCM - SCN Wiki Page 7 of 7

2. As of SAP Note 1769663, you can directly use transactions ME21N, ME22N and ME23N to display outgoing messages for a purchase order about services for the object (Menu System ->
services for object). These services include the pushbutton "Display links" that you can use to display messages. You can directly navigate to the XI Monitor by double clicking one of these
messages.
3. After creating a new purchase order, you must restart transaction ME21N to display the relevant messages because the internal buffer must be updated!
mm-pur-int-tm mm-pur tsg mm_tsg mm_po

Contact Us SAP Help Portal


Privacy Terms of Use Legal Disclosure Copyright
Follow SCN

https://wiki.scn.sap.com/wiki/display/ERPSCM/Transportation+Management+Integration 1/17/2018

Potrebbero piacerti anche