Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass Business place(BUPLA) to BAPI BAPI_ACC_DOCUMENT_POST

0 Kudos

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

BAPI_ACC_DOCUMENT_POST.

Please guide me.

Thanks,

Sunil Sahoo

2 REPLIES 2

Former Member

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

NTeunckens
Active Contributor
0 Kudos

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."