Application Development and Automation 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: 

BAPI_ACC_DOCUMENT_POST tax line item

former_member355261
Participant
0 Kudos
1,611

I'm using BAPI_ACC_DOCUMENT_POST to post an FI document with two line items: GL ACCOUNT line item and TAX line item.

The document is correctly posted and I can see the line items in BSEG and BSET tables.

The problem is that I need to update some BSEG values for the TAX line item but the ACCOUNTTAX in the BAPI doesn't have those fields: ALLOC_NBR (ZUONR) for example.

My question is How can I populate BSEG-ZUONR for example for a TAX line item (ACCOUNTAX BAPI parameter) using BAPI_ACC_DOCUMENT_POST ?

1 ACCEPTED SOLUTION

19sandesht
Explorer
0 Kudos
1,398

Hii Occoro,

Extension fields in the structure of BAPI can be used to passed data, mapping of data from extension to fields while posting can be done by implementing BADI.

Please refer below Links:

https://blogs.sap.com/2018/03/27/enlarging-the-use-of-bapi_acc_document_post/

1 REPLY 1

19sandesht
Explorer
0 Kudos
1,399

Hii Occoro,

Extension fields in the structure of BAPI can be used to passed data, mapping of data from extension to fields while posting can be done by implementing BADI.

Please refer below Links:

https://blogs.sap.com/2018/03/27/enlarging-the-use-of-bapi_acc_document_post/