Fonction SAP BBP_ICC_NF_GET_DOCREF - Get original NF number

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
IV_GR_NUMBER LFBNR C 10 Document number of a reference document
IV_GR_YEAR LFGJA N 4 Fiscal year of current period
IV_PO_ITEM EBELP N 5 Item number of purchasing document
IV_PO_NUMBER EBELN C 10 Purchasing document number

Paramètre Reférence Type Long. Description
ET_NFDOC PI_NFDOC_T h 1051 PlugIn: Table of Nota Fiscal Headers

Exception Description
GR_NOT_FOUND Goods receipt not found in PO history
IV_NOT_FOUND No invoice found in PO history
NF_DB_INCONSISTENT Inconsistency in NF database
NF_NOT_FOUND No nota fiscal of invoice found
PO_NOT_FOUND Error reading PO history