Ansicht
Dokumentation

BAPI_INCOMINGINVOICE_GETDETAIL - Invoice Verification: Display Incoming Invoice

BAPI_INCOMINGINVOICE_GETDETAIL - Invoice Verification: Display Incoming Invoice

General Material Data   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You can use this method to display detail data from an incoming invoice.

Example

Notes

The following authorization object is checked with activity 03:

M_RECH_WRK Plant authorization for entering incoming invoices

M_RECH_BUK Company Code authorization for entering incoming invoices

Input parameters

The key fields of the incoming invoice (InvoiceDocNumber and FiscalYear) must be transferred to the method as import parameters.

Output parameters

The header data for the incoming invoice is returned in the HeaderData structure.

The AddressData structure contains the address data of a one-time supplier or a different payee.

The data for the individual invoice items is exported in the ItemData and AccoutingData tables. The TaxData table contains the tax information in the invoice.

The GlAccountData table contains data for posting to a G/L account, the MaterialData table contains the data for posting to a material account, and the AssetData table contains the data for posting to an asset.

The WithTaxData table is used to return the withholding tax information.

The VendorItemSplitData table contains data if you distribute the gross amount across several supplier lines with different payment methods and terms of payment

The BAPI_TM_DATA table allows you to transfer data from documents that come from a transportation management system to the corresponding incoming invoice document or to the relevant invoice item.

Return messages

Messages are returned in the Return parameter. The parameter documentation shows the return codes and their meanings.

Further information

The method can only perform its function if no error messages were generated in the Return table. This is the case if it was possible to process the header data and all items without errors.

For more information, see the following parameter documentation: AddressData, ItemData, GlAccountData, MaterialData, AssetData, WithTaxData, and VendorItemSplitData.

Further information is available in the method CreateFromData with the parameters HeaderData and AddressData.





Parameters

/AFS/ITEMDATA
ACCOUNTINGDATA
ADDRESSDATA
ASSETDATA
EXTENSIONOUT
FISCALYEAR
GLACCOUNTDATA
HEADERDATA
INVOICEDOCNUMBER
ITEMDATA
MATERIALDATA
NFMETALLITMS
RETURN
TAXDATA
TMDATA
VENDORITEMSPLITDATA
WITHTAXDATA

Exceptions

Function Group

MRM_BAPI

CPI1466 during Backup   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 5491 Date: 20240523 Time: 090058     sap01-206 ( 62 ms )