Ansicht
Dokumentation

TCM_SE_TORINVPREPRE2 - BAdI: Freight Order Invoicing Preparation: Data Modify

TCM_SE_TORINVPREPRE2 - BAdI: Freight Order Invoicing Preparation: Data Modify

ABAP Short Reference   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the ERP Invoice Verification Preparation (TM-FRS-IP) component. You can use this BAdI to change the account assignment in SAP ERP. You can change the account assignment when SAP Transportation Management (SAP TM) passes a message to SAP ERP to create or change a freight settlement document and the associated purchase order and service entry sheet (SES) in SAP ERP.

The system uses the Request Transportation Order Invoicing Preparationservice operation to transfer information on a new or changed freight settlement document from SAP TM to SAP ERP.

You can use the ACCOUNT_ASSIGNMENT_MODIFY method to change the account assignment. The system calls the method when you trigger the service operation. For example, you can change the following account assignments:

  • Cost center
  • General ledger (G/L)
  • Internal order

You can use this BAdI to create your own logic to override the default account assignment information. For example, you can use information from the freight settlement document to change the default cost center. You can also deselect the flag EV_DEFAULT_ACC, to indicate you have changed the account assignment in the BAdI.

Alternatively, in a shipper scenario, you can use this BAdI to include the cost split from a cost distribution in a service line of a service entry sheet (SES). This enables you to create a multiple account assignment in an SES. You take the following steps:

  1. Build the logic in this BAdI to extract the cost distribution information from the input deep structure IS_TCM_INV_PREP.
You summarize the cost distribution information by each charge type and delivery item.
  1. Extract other relevant information from the delivery, for example, accounting information such as cost center and profit center.
  2. Loop at each charge element in internal table IT_TCM_ELEMENT and build the split of the accounting posting in internal table ET_TCM_ELEMENT_ACC.

For more information about the standard settings (filters, single or multiple uses), see the Enhancement Spot Element Definitions tab in the BAdI Builder (transaction SE18).

For information about implementing BAdIs as part of the enhancement framework, see SAP Library for SAP NetWeaver Platformon SAP Help Portal at http://help.sap.com/nw_platform. Choose a release and then Application Help. In SAP Library, choose SAP NetWeaver Library: Function-Oriented View → Application Server → Application Server ABAP → Application Development on AS ABAP → ABAP Customer Development → Enhancement Framework.

For more information about the service operation, see SAP Library for SAP Transportation Managementon SAP Help Portal at http://help.sap.com/tm. In SAP Library, choose SAP Transportation Management (SAP TM) → Enterprise Services and ESR Content → Enterprise Services → Transportation Order Processing → Transportation Order → Transportation Order Invoicing Preparation Out → Request Transportation Order Invoicing Preparation.






rdisp/max_wprun_time - Maximum work process run time   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 3648 Date: 20240523 Time: 151858     sap01-206 ( 78 ms )