MM
BAPI
RFC
Used the same way in S/4HANA
BAPI_INCOMINGINVOICE_PARK Park Incoming Invoice
Parks a vendor invoice in Logistics Invoice Verification (as in MIR7) instead of posting it, using the same structures as BAPI_INCOMINGINVOICE_CREATE. It suits interfaces where invoices must be checked or completed by an accountant before posting. Check RETURN, call BAPI_TRANSACTION_COMMIT and post the parked document later in MIR4 or MIRO.
- Function group
- MRM_BAPI
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| HEADERDATA | BAPI_INCINV_CREATE_HEADER | Invoice header data | Yes |
| ADDRESSDATA | BAPI_INCINV_CREATE_ADDRESSDATA | Address data (one-time vendor) | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| INVOICEDOCNUMBER | BAPI_INCINV_FLD-INV_DOC_NO | Number of the parked invoice |
| FISCALYEAR | BAPI_INCINV_FLD-FISC_YEAR | Fiscal year |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| ITEMDATA | BAPI_INCINV_CREATE_ITEM | Invoice item data | Yes |
| ACCOUNTINGDATA | BAPI_INCINV_CREATE_ACCOUNT | Account assignment data | — |
| GLACCOUNTDATA | BAPI_INCINV_CREATE_GL_ACCOUNT | G/L account postings | — |
| MATERIALDATA | BAPI_INCINV_CREATE_MATERIAL | Material account postings | — |
| TAXDATA | BAPI_INCINV_CREATE_TAX | Tax data | — |
| WITHTAXDATA | BAPI_INCINV_CREATE_WITHTAX | Withholding tax data | — |
| RETURN | BAPIRET2 | Return messages | Yes |
| EXTENSIONIN | BAPIPAREX | Customer fields (inbound) | — |
Call template (ABAP)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
CALL FUNCTION 'BAPI_INCOMINGINVOICE_PARK'
EXPORTING
headerdata = lv_headerdata
IMPORTING
invoicedocnumber = lv_invoicedocnumber
fiscalyear = lv_fiscalyear
TABLES
itemdata = lt_itemdata
accountingdata = lt_accountingdata
glaccountdata = lt_glaccountdata
materialdata = lt_materialdata
taxdata = lt_taxdata
withtaxdata = lt_withtaxdata
return = lt_return
extensionin = lt_extensionin.Related tables
Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.