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

ParameterTypeDescriptionRequired
HEADERDATABAPI_INCINV_CREATE_HEADERInvoice header dataYes
ADDRESSDATABAPI_INCINV_CREATE_ADDRESSDATAAddress data (one-time vendor)—

Exporting parameters

ParameterTypeDescription
INVOICEDOCNUMBERBAPI_INCINV_FLD-INV_DOC_NONumber of the parked invoice
FISCALYEARBAPI_INCINV_FLD-FISC_YEARFiscal year

Tables parameters

ParameterTypeDescriptionRequired
ITEMDATABAPI_INCINV_CREATE_ITEMInvoice item dataYes
ACCOUNTINGDATABAPI_INCINV_CREATE_ACCOUNTAccount assignment data—
GLACCOUNTDATABAPI_INCINV_CREATE_GL_ACCOUNTG/L account postings—
MATERIALDATABAPI_INCINV_CREATE_MATERIALMaterial account postings—
TAXDATABAPI_INCINV_CREATE_TAXTax data—
WITHTAXDATABAPI_INCINV_CREATE_WITHTAXWithholding tax data—
RETURNBAPIRET2Return messagesYes
EXTENSIONINBAPIPAREXCustomer 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.

Request a custom report