i have do a accounting posting for fb01.
so i am using BAPI_ACC_DOCUMENT_post for this.
i have to do a posting for a period which is having two vendor crdit entries and one g/l debit entry.
so in the BAPI,i have maintained 2 account payable entries and one g/l entry and one currencyamount entry.
but in the accountpayable there is no field for posting key whether its a credit or debit.
how to do that.