I am using BAPI_ACC_DOCUMENT_POST to Post the vendor invoice within my custom program to post the vendor invoice, But the invoice that is being getting post with Posting Key 21 (Cedit Memo) and 11 (Credit Memo) where in my selection screen I do have the options same like in FB60 e.g. (Invoice, Credit Memo).
Currently while executing this BAPi no matter what option is being selected, the posting keys are updated as 21 and 11.
I am not able to find the place holder or any parameter within this BAPi "BAPI_ACC_DOCUMENT_POST" where I can mention the Transaction type.
Thanks in advance..