Skip to Content

How to pass Business place(BUPLA) to BAPI BAPI_ACC_DOCUMENT_POST

Nov 10, 2017 at 05:42 AM


avatar image

Hi All,

I am posting accounting in a customize program using Bapi BAPI_ACC_DOCUMENT_POST.

But i am not getting option to pass Business place(BUPLA) in any input structure in bapi


Please guide me.


Sunil Sahoo

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

REM REM Nov 10, 2017 at 07:17 AM

Hi ,

1. Use extension2 structure to populate required business place ( by adding a custom field in the append structure J_1IG_BSEG )

2. Implement BADI BADI_ACC_DOCUMENT~CHANGE to map business place to accounting line item.

Thanks and Regards,

Chandra Madapati

10 |10000 characters needed characters left characters exceeded
Nic Teunckens Nov 23, 2017 at 10:08 PM

See SAP-KBA 2086883 "Partner business place missing in interface of BAPI BAPI_ACC_DOCUMENT_POST" : link

See SAP-KBA 487722 "Using EXTENSION1 for accounting BAPIs" : link

See SAP-KBA 306504 "Composite SAP Note: BAPIs for the accounting interface" : link

Extract from the last KBA :

"Customer enhancements: As of Release 4.5, you can also transfer additional information to parameter EXTENSION1 during posting. The data must be read from parameter EXTENSION1 in an exit and then transferred to the accounting interface. For more information, see the long text for the parameter EXTENSION1. In addition, a second parameter, EXTENSION2, is available for the BAPI ACC_DOCUMENT_POST. This parameter is passed on to the BAdI ACC_DOCUMENT. A customer implementation of this BAdI makes it possible to fill additional fields that may not be available in the BAPI interface. In this case, note that the implementation of the BAdI ACC_DOCUMENT is always executed, even if no values are passed on to the BAPI in the parameter EXTENSION2. The BAPI ACC_DOCUMENT_POST has a different response for the parameter EXTENSION1, however. The data of the parameter EXTENSION1 is forwarded to the BTE RWBAPI01. The implementation of the BTE RWBAPI01 is only executed here, however, if at least one line was passed on to the BAPI in the parameter EXTENSION1. This makes it possible to use the BAPI call to control whether the BTE implementation is processed for this posting or not."

10 |10000 characters needed characters left characters exceeded