Question/problem posting key in account payable in BAPI_ACC_DOCUMENT_POST
I have an ABAP code where I want to Post a Document using BAPI_ACC_DOCUMENT_POST (FB01) where there are G/L items, Customer items and Vendor items.
With the Vendor Items I want to use Posting Keys '29' and '39' but the BAPI Post the Document with Posting Keys '21' and '31', what I don't want.
I have been looking for where to input this in the BAPI Structure (AccountPayable BAPIACAP09) but I have found no where to put it in.
In G/L Posting there is field ACCT_KEY where I can do something like I want, but is G/L and not in AP.
Do you know how to do this? How to use the Posting Keys that I want instead of the Posting Keys that the BAPI use?
Thanks in advance, points waiting.
What about the instruction key fields in BAPIACAP09 (fields INSTR1 through INSTR4)? Can those be used for your purpose? If you can't find a suitable existing field, you could implement the badi or user exit that the function module calls and pass your values in table extension1 or extension2.
- April King