not getting the right posting key..
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..