Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Posting Key in BAPI_ACC_DOCUMENT_POST

Hi,

I am using bapi 'BAPI_ACC_DOCUMENT_POST' to post 'Customer Document' in FB01. I was able to post the document but Posting Key in the document is not as desired. When I try to Post the document with out any Posting Key by default I am having Posting Key as '01'(Customer document) and '50'(GL account).

But I want bapi 'BAPI_ACC_DOCUMENT_POST' to post a document with Posting key '15'(Customer Document) and '40'(GL account).

In bapi I am using these tables along with header.

ACCOUNTGL- GL Account

ACCOUNTRECEIVABLE- Customer Document

I tried passing the posting key in ACCT_TYPE in table ACCOUNTGL and passing the the posting key using EXTENSION2 table but was not successful .

Can anyone let me know

How can I pass the Posting Key to the bapi 'BAPI_ACC_DOCUMENT_POST' for Customer Document and GL account?

OR

How can I use EXTENSION2 table to create an appropriate posting key?

please let me know.

Vikki,

In one of your thread you came across the same issue and you solved it. Can you please guide me how to achive appropriate posting key using EXTENSION2 table?

Thanks,

Vijay.

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question