Fonction SAP BAPI_INCOMINGINVOICE_POST - Invoice Verification: Post Provisional Invoice

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
FISCALYEAR BAPI_INCINV_FLD-FISC_YEAR N 4 Fiscal Year
INVOICEDOCNUMBER BAPI_INCINV_FLD-INV_DOC_NO C 10 Document Number of an Invoice Document

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 Return Parameter(s)

Functionality
This method enables you to post provisional invoice documents.Provisional invoice documents have the status 'on hold', 'on hold (fromparking)', 'parked', 'parked as complete' or 'parked and released'.
Restrictions
It is not possible to post invoice documents that have been flagged forbackground invoice verification with this method. Neither can you postinvoice documents saved within the framework of the EDI process usingthis method.

Notes
The authorization object M_RECH_WRK is checked withactivity 77 for parked invoice documents. For invoice documents with oneof the other above-mentioned statuses, activity 01 is checked.
Transfer
You must transfer the key fields of the incoming invoice(InvoiceDocNumber and FiscalYear) to the method as import parameters.
Return messages
INCLUDE BAPI_RET OBJECT DOKU ID TX LANGUAGE EN

Further information
The method can only perform its function if no error messages have beengenerated in the Return table. This is the case if it waspossible to process the header data and all items without errors.
No transaction control is implemented. This means that the invoker mustperform the 'Commit Work' itself after successful invocation of thismethod if no errors have been notified to the invoker in the Return
parameter.
INCLUDE BAPI_INCOMINGINVOICE_SPERRL OBJECT DOKU ID TX

Description
INCLUDE BAPI_KEYFIELD
Fiscal Year

Description
INCLUDE BAPI_KEYFIELD
Document Number of an Invoice Document

Description
INCLUDE BAPI_TABLE OBJECT DOKU ID TX LANGUAGE EN
Type,,ID,,Number,,Message
E,,M8,,255,,Document & already posted
E,,M8,,719,,Further processing for document &1 &2 not possible (Faultystatus)
E,,M8,,386,,Parked document is release-relevant and cannot be posted
Further possible messages
Messages may also be issued by other function modules or programs.