11-20-2008 2:57 PM
Hi All,
when i am using BAPI_ACC_DOCUMENT_POST.
it executes successfully but
if i enter the amount with + sign it uses 01 as the posting key.
if i entered the amount with - sign it selects 11 as posting key.
but requirement is instead of 11 I want 50 as posting key.
how it determines the key?
and can i change the posting key?
How can I pass the posting key field to this BAPI?
Thanks and regards,
Sri Lakshmi.
11-20-2008 3:02 PM
Please try this link...
https://forums.sdn.sap.com/click.jspa?searchID=18958560&messageID=6545555
11-20-2008 3:10 PM
Hi
The choise of posting key (by BAPI BAPI_ACC_DOCUMENT_POST) depends on the kind of item and the sign of amount.
A) If the item is for customer:
01 if amount > 0
11 if amount < 0
B) If the item is for vendor:
21 if amount > 0
31 if amount < 0
C) If the item is for g/l account:
40 if amount > 0
50 if amount < 0
So if you're obtaining the posting key 11 instead of 50, it means u're transfering item for customer instead of g/l account.
Max