SAP Function BBP_ICC_NF_GET_DOCREF - Get original NF number

Parameter Reference Type Length Default Optional Text
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

Parameter Reference Type Length Text
ET_NFDOC PI_NFDOC_T h 1051 PlugIn: Table of Nota Fiscal Headers

Exception Text
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