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: 
Read only

BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
810

Hi all:

In BAPI_ACC_DOCUMENT_POST,where is the 'posting key'?

Allen

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
628

Dear Allen,

Posting key values must be coming from the TEXT file.

According to the values of Posting key, we need to populate the values into the corresponding structures (ACCOUNTGL / ACCOUNTRECEIVABLE / ACCOUNTPAYABLE / ACCOUNTTAX) in the BAPI.

When posting key is 40 or 50, populate the value into ACCOUNTGL.

When posting key is 01 or 11 or 09 or 19, populate the value into ACCOUNTAR.

Definitely this BAPI will work.

For any further queries, please feel free to ask me.

Thanks & Regards,

Neeraj.

5 REPLIES 5
Read only

Former Member
0 Likes
628

HI Allen

Tables 'accountgl' has a parameter ACCT_KEY which can be used for posting key.

Regards

Read only

Former Member
0 Likes
629

Dear Allen,

Posting key values must be coming from the TEXT file.

According to the values of Posting key, we need to populate the values into the corresponding structures (ACCOUNTGL / ACCOUNTRECEIVABLE / ACCOUNTPAYABLE / ACCOUNTTAX) in the BAPI.

When posting key is 40 or 50, populate the value into ACCOUNTGL.

When posting key is 01 or 11 or 09 or 19, populate the value into ACCOUNTAR.

Definitely this BAPI will work.

For any further queries, please feel free to ask me.

Thanks & Regards,

Neeraj.

Read only

Former Member
0 Likes
628

The parameter of Posting Key is ACCT_KEY?

Read only

0 Likes
628

Dear Allen,

ACCT_KEY is not the posting key.

Moreover we don't need to try to pass Posting key. It's only for checking and populating the correct values to the correct structures in the BAPI.

Thanks & Regards,

Neeraj

Read only

Former Member
0 Likes
628

There is no actual Posting Key for this BAPI.

It is determined by the sign of the document amount and the document type.

A standard example is if the amount is < 0 the posting key will be 50.

If the amount is > 0 the posting key will be 40.