I am trying to create a vendor invoice (like for a utility bill, rent bill, etc..) much like a user would via FB01 or FB60. But I am having some trouble understanding the structures associated with the BAPI. For example, these vendor invoices need a Cost Center (KOSTL) associated with it, but I dont see cost center in the ACCOUNTPAYABLE structure...
In what structure/field do I put the Cost center value ? Since I am using this BAPI to create a vendor invoice I guess I would use the ACCOUNTPAYABLE structure to define the line items, but there is no field in this structure to reference the Cost center for the line to be applied against ... I see Tax code, Tax Juris. code, GL acct - but no cost center field - ANY HELP appreciated.
If anyone has a working program that calls this BAPI, I would appricaite seeing that code as well. Thanks for your time
David