10-20-2008 6:17 PM
hey,
i am posting accounts payable data using the bapi BAPI_ACC_DOCUMENT_POST.
my logic arrives at two values
blart = 'KG'.
newbs1 = '21'.
now how do i pass this to the bapi, which structure , which field, so that i get the posting key as 21 in the GL acct line item ??
i am always getting 31 and 40 as the posting keys... now i need 21 and 50..
thnks
10-20-2008 6:38 PM
Hi,
As I know about this BAPI we dont have any field to pass values for posting keys,only the amount sign decides the posting key which is taken care by the bapi.
Thanks
Sudharshan
10-20-2008 7:11 PM
Yes Sudarshan, thats true. But I need to somehow tell SAP that its a vendor credit memo !! When i try to set the doc_type as 'KG' it means so, but then the posting key is not set as 21 but set as 31 !!
what cud be wrong ??
10-21-2008 8:06 PM
hey Sudarshan, I traced the BAPI and found out that it is the amount being positive or negative along with the doc type that determines what the posting shud be..so when i set the doc type say as KG and pass a +ve value, posting key 21 is set , for -ve value posting key 50 is set. i was abt to achieve the result by changing the signs for the currency amt..worked..
10-21-2008 8:08 PM
10-21-2008 8:08 PM