‎2007 Aug 30 1:44 AM
Hi all:
In BAPI_ACC_DOCUMENT_POST,where is the 'posting key'?
Allen
‎2007 Sep 12 4:19 AM
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.
‎2007 Aug 30 7:16 AM
HI Allen
Tables 'accountgl' has a parameter ACCT_KEY which can be used for posting key.
Regards
‎2007 Sep 12 4:19 AM
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.
‎2007 Sep 12 4:37 AM
‎2007 Sep 17 5:29 AM
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
‎2010 Jul 06 1:36 AM
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.