Advertising:

Classic BAdI ACC DOCUMENT

From SAP Knowledge Base
Revision as of 17:07, 31 December 2024 by Unirab (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

BAdI use in relation to BAPI_ACC_DOCUMENT_POST and its extension parameter 'extension2'

Create implementation in customer namespsace

The BAdI can be used multiple times and your own implementation can be created. Before you can save this, a filter must be assigned which reference process is relevant. With regard to the BAPI_ACC_DOCUMENT_POST, the reference process 'BKPFF' must be used here. For manual posting it would be 'BKPF', for BAPI or batch input folders it is 'BKPFF'.

Procedure: Set posting key explicitly

For example, if an FB01 posting is created with BAPI_ACC_DOCUMENT_POST and the extension parameter 'extension2' was previously specified, the implementation in customer namespsace is run.

Code must be programmed accordingly in the interface method 'CHANGE' so that the BAPI_ACC_DOCUMENT_POST works with the defined posting key: https://answers.sap.com/answers/3883521/view.html


This is a wiki created in the spare time of a private person working in the SAP ERP area. The aim is to collect knowledge for the own use. The wiki is maintained to the best of knowledge and belief.
All products shown, including in form of screenshots, belong to SAP SE. Their trademarks are, among others: SAP®,ABAP®,SAP Fiori®,SAP HANA®,SAP NetWeaver®,SAP® R/3®,SAP S/4HANA®,SAP S/4HANA® Cloud