2023 Jan 16 11:25 PM
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 ?
2023 Jan 17 5:06 AM
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/
2023 Jan 17 5:06 AM
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/