Skip to Content
0
Former Member
Jun 16, 2009 at 10:26 AM

Change G/L Account for PO Line Item in BAPI_INCOMINGINVOICE_CREATE

254 Views

Dear Experts,

I believe this BAPI BAPI_INCOMINGINVOICE_CREATE has been brought in question many a times.

But really after a lot of research also I could not find the exact solution to this problem.

The BAPI works all good. I am posting a Invoice Receipt successfully.

--> The problem is, it posts PO Line Item with posting key for Costs i.e. '81' and GL account from PO (suppose '111111').

When I post the same document via MIRO manually, it considers the default GL account for GR/IR (suppose '999999') and the Posting Key is GR/ID Debit '86'. (Configured via OBYC as SAP std.)

How do I enable BAPI to use GR/IR G/L Account '999999' when posting Invoice.

Just for Information :

- The PO is NEITHER goods-receipt-based invoice verification NOR non-valuated GR.

- I tried populating Accounting data Table but it does not accept different GL account num there.(Forces it to be '111111' ).

- Also the Itemdata Table has field for mentioning GR, but allows only for GR-based IV.

Any help in this regards will be great.

Thanks a lot in advance.