Ansicht
Dokumentation

WB2_ACC_EXP_ENHANCE - BAdI: Enhancements to Accrual Processing in Expense Workbench

WB2_ACC_EXP_ENHANCE - BAdI: Enhancements to Accrual Processing in Expense Workbench

Addresses (Business Address Services)   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Global Trade Management (LO-GT) component. You can use this BAdI to change the expenses document before you create the supplier billing document (SBD) using single or collective accrual processing. You can make the following changes using the method CHANGE_BEFORE_DOCUMENT_CREATE:

  • Pass the updated external data to Settlement Management for further processing and create header data with the parameter CT_KOMLFKE
  • Transfer the changed item data (external data) to Settlement Management for further processing to create billing document item data with parameter CT_KOMLFPE
  • Filter value 1 is used for single accrual processing and Filter value 2 is used for collective accrual processing

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

For information about the implementation of BAdIs in the context of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.

In this example, item level data is changed by referring to the header level data of the expense document.

In this case a new tax code is passed to Settlement Management to create the Supplier Billing Document.

data:lt_komlfke type komlfke_tab.

FIELD-SYMBOLS: type KOMLFKE,

type KOMLFPE.

loop atct_komlfke ASSIGNING .

READ TABLEct_komlfpe ASSIGNING with keywbeln = .

* Check if tax code is Null or '**'

checksy-subrc = 0 and-MWSKZ = space

or -MWSKZ = '**'.

if -kappl = 'A'.

if-kunre = 'GTMC001'.

-MWSKZ = 'A1'. "Enter Valid Tax code

endif.

endif.

if-kappl = 'M'.

if-lifre = 'GTMV001'.

-MWSKZ = 'V2'. "Enter Valid Tax code

endif.

endif.

ENDLOOP






ABAP Short Reference   General Material Data  
This documentation is copyright by SAP AG.

Length: 4141 Date: 20240523 Time: 184433     sap01-206 ( 115 ms )