Fonction SAP BAPI_INCOMINGINVOICE_RELEASE - Invoice Verification: release invoice

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DISCOUNT_SHIFT BAPI_INCINV_FLD-DISC_SHIFT C 1 SPACE X Move Cash Discount Date
FISCALYEAR BAPI_INCINV_FLD-FISC_YEAR N 4 Fiscal Year
INVOICEDOCNUMBER BAPI_INCINV_FLD-INV_DOC_NO C 10 Invoice Document Number

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 Return Messages

Functionality
You can use this method to release blocked invoices.

Notes
The system checks the following authorization object with activity 02:
M_RECH_EKG
You must convert invoices posted using Logistics Invoice Verification inreleases earlier than SAP R/3 4.6A using reportRM08RBKPBLOCKED.
Transfer
You must pass on to the method the key fields of the invoice(InvoiceDocNumber and FiscalYear) as import parameters. You can choosewhether the system moves the cash discount days when paying the invoice.
Return messages
INCLUDE BAPI_RET OBJECT DOKU ID TX LANGUAGE EN
Further information
The method can only execute the function if no error messages have beencreated in the Return table. This is the case if the system wasable to process the header data and all the items without any errors.
No transaction control is implemented. That means that the invoker hasto carry out the 'Commit Work' after successfully invoking this methodifno errors are reported to the invoker in the Return parameter.

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_KEYFIELD

Description
INCLUDE BAPI_KEYFIELD

Description
INCLUDE BAPI_TABLE OBJECT DOKU ID TX LANGUAGE EN

Value range
Type,,ID,,Number,,Message
E,,M8,,063,,Document does not contain any items
E,,M8,,184,,Invoice document & & does not exist
E,,M8,,382,,Invoice &1 &2 is not blocked for payment
E,,M8,,383,,You do not have authorization to release
,,,,,,invoice &1 &2
Other possible messages
Messages from other function modules or programs could also appear,such as:

381593MIRO/MIR7/MIRA: Batch Input is not possible