The preface
We can focus on my public number, the number public in the layout better, read more comfortable.
Body part
There are two pre credentials do BAPI:
BAPI_INCOMINGINVOICE_PARK 和 BAPI_INCOMINGINVOICE_CREATE
Even a difference: only the first pre-invoice, the invoice and the second is to do a posting.
The following briefly BAPI_INCOMINGINVOICE_PARK invoice prefabricated
There are four invoices do business
1. Park as Invoice (HEADERDATA-INVOICE_IND = X, ITEMDATA-DE-CRE_IND = SPACE)
2. Park as Credit Memo (HEADERDATA-INVOICE_IND = SPACE, ITEMDATA-DE-CRE_IND = SPACE)
3. Park as Subsequent Debit (HEADERDATA-INVOICE_IND = X, ITEMDATA-DE-CRE_IND = X)
4. Park as Subsequent Credit (HEADERDATA-INVOICE_IND = SPACE, ITEMDATA-DE-CRE_IND = X)
Then you encounter a problem
The return of documents, invoices do pass BAPI error, do not know how to handle.
Now only do the invoice receipt.