Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Create Incoming invoice for subsequent credit and debit

I try to use BAPI BAPI_INCOMINGINVOICE_CREATE to create subsequent credit and debit with material account posting.

In the previous issue, I received some examples with PO reference. But in my case, the PO has already invoiced. I just need to do credit and debit adjustment by material account.

Can you tell me how to use the bapi or give me a simple example.

thank you very much!

Jun

Tags:
Former Member
Former Member replied

I have done subsequent debit/credit against invoices and credit memo. Perhaps this will help. here's how it's done.

To create a Subsequent Debit:

Set field BAPI_INCINV_CREATE_HEADER-REF_DOC_NO = Ref Doc #.

Set field BAPI_INCINV_CREATE_HEADER-INVOICE_IND = 'X' .

Set field BAPI_INCINV_CREATE_ITEM-INVOICE_DOC_ITEM = 'X'.

Call bapi_incominginvoice_create.

To create a Subsequent Credit:

Set field BAPI_INCINV_CREATE_HEADER-REF_DOC_NO = Ref Doc #.

Set field BAPI_INCINV_CREATE_HEADER-INVOICE_IND = Space.

Set field BAPI_INCINV_CREATE_ITEM-INVOICE_DOC_ITEM = 'X'.

Call bapi_incominginvoice_create.

Note:

For unit-of-measures, populate field BAPI_INCINV_CREATE_ITEM-INVOICE_DOC_ITEM-

PO_UNIT_ISO as the bapi might fail when using UOM other than 'EA'.

Jim

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question