ABAP Development for SAP TM

  • LE-TRA
    • User Exits for SD Transport Processing
    • Statusermittlung bei Aufruf aus der Lieferungsbearbeitung
  • Integration
    • Sales Order Integration with External 
    • Delivery Integration with External TMS
    • Purchasing Document Integration with External TMS
    • BAdI: Location Creation for Business Partners
    • Selection of Outbound Interfaces Processed for Purchase Order

LE-TRA

LV45P025/transportstatus_lieferung

* Check if TM controls the planning status

SELECT SINGLE pln_status_upd_tm_ind int_mode FROM tms_c_control
INTO CORRESPONDING FIELDS OF ls_tms_ctrl WHERE tm_ctrl_key = f_likp-tm_ctrl_key.

User Exits for SD Transport Processing

EXIT_SAPLV56U_007: Additional Rules for Determining Transportation Planning Status

The transportation planning status of the affected deliveries is updated if a shipment is saved during shipment processing. You can determine the transportation planning status of deliveries with additional rules in this function.

Integration

Purchasing Document Integration with External TMS

Delivery Integration with External TMS

  • CHANGE_TM_CTRL_KEY: You can use this BAdI method to change the control key assigned to the delivery types.
  • CHANGE_LOG_TM_NR: You can use this BAdI method to change the technical transportation management number assigned to the delivery types.

Sales Order Integration with External TMS BADI_LO_TM_SLS BAdI 

  • CHANGE_TM_CTRL_KEY: You can use this BAdI method to change the control key assigned to the sales document types.
    • Specifies which documents in a document chain are to be integrated into TM.
  • CHANGE_LOG_TM_NR: You can use this BAdI method to change the technical transportation management number assigned to the sales document types.

BAdI: Location Creation for Business Partners /SAPAPO/LOC_CREATE

BAdI: Adaptation of Location Details, Descriptions and Transportation Zone Assignments /SAPAPO/LOC_DETAILS

Selection of Outbound Interfaces Processed for Purchase Order

PUR_SE_PO_INTERFACE_OUT_SELECT
You have activated the workflow for the asynchronous sending of services for purchase orders. You will find the relevant settings in the SAP Easy Access menu under Tools -> ABAP Workbench -> Development -> SAP Business Workflow -> Definition tools -> Events -> Event creation -> Type Linkage Activated (transaction SWETYPV).  You must activate event linkage there for BOR object type BUS2012 (purchase order) and the events CREATED and CHANGED. As standard, this linkage applies to receiver type WS53800008.

PUR_SE_PO_INTERFACE_OUT_SELECT

For purchase orders, transportation relevance in TM is determined by goods movement relevance. In the example implementation, the item category (PSTYP field) is used to decide whether the goods movement relevance indicator is set to 'true' for an item. If it is, the item is given transportation relevance in TM. You can add criteria that are used to determine whether this indicator is set, for example material number, material group, or plant. Note that when querying the item category, you must replace the placeholder with an actual value.

Comments