Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Community WIKI SAP Community Welcome, Guest Login Register Search the Community
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:
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
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
IMG: Integration with Other SAP Components - Transportation Management - Order Integration
BREAK-POINT ID int_tms_erp_sc.
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
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.
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
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)
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
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
https://wiki.scn.sap.com/wiki/display/ERPSCM/Transportation+Management+Integration 1/17/2018