FI Function module Used the same way in S/4HANA

FI_DUPLICATE_INVOICE_CHECK Duplicate Invoice Check for Vendor Invoices

Checks whether a vendor invoice was already posted, based on fields such as reference number, document date, currency and amount, using the FI duplicate invoice check logic. Developers use it in programs that upload invoices from external systems to stop the same invoice from being posted twice. Pass I_REPRF from the vendor's LFB1-REPRF field; when this flag is empty, no check is made.

Function group
FIS0
Remote-enabled (RFC)
No
Type
Function module

Importing parameters

ParameterTypeDescriptionRequired
I_BUKRSBKPF-BUKRSCompany codeYes
I_LIFNRBSEG-LIFNRVendor accountYes
I_XBLNRBKPF-XBLNRReference document numberYes
I_BLDATBKPF-BLDATDocument dateYes
I_WAERSBKPF-WAERSCurrencyYes
I_KOARTBSEG-KOARTAccount typeYes
I_SHKZGBSEG-SHKZGDebit/credit indicatorYes
I_BSTATBKPF-BSTATDocument statusYes
I_REPRFLFB1-REPRFCheck double invoices flagYes
I_XUMSWBSEG-XUMSWSales-related item indicatorYes
I_WRBTRBSEG-WRBTRAmount in document currency—
I_BLARTBLARTDocument type—
I_BELNRBSEG-BELNRDocument number—
I_GJAHRBSEG-GJAHRFiscal year—
I_BUZEIBSEG-BUZEILine item number—

Exceptions

  • MISSING_DATA — Missing data

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

CALL FUNCTION 'FI_DUPLICATE_INVOICE_CHECK'
  EXPORTING
    i_bukrs = lv_i_bukrs
    i_lifnr = lv_i_lifnr
    i_xblnr = lv_i_xblnr
    i_bldat = lv_i_bldat
    i_waers = lv_i_waers
    i_koart = lv_i_koart
    i_shkzg = lv_i_shkzg
    i_bstat = lv_i_bstat
    i_reprf = lv_i_reprf
    i_xumsw = lv_i_xumsw
  EXCEPTIONS
    missing_data = 1
    OTHERS = 2.

Related tables

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report