FI BAPI RFC Used the same way in S/4HANA

BAPI_AP_ACC_GETSTATEMENT Vendor Account Statement for a Period

Returns all line items posted to a vendor account in a company code within a date range. It is used for vendor portals, statement printouts and reconciliation interfaces. Pass the vendor number with leading zeros and set NOTEDITEMS only if noted items should also be returned.

Function group
3008
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
COMPANYCODEBAPI3008_1-COMP_CODECompany codeYes
VENDORBAPI3008_1-VENDORVendorYes
DATE_FROMBAPI3008-FROM_DATEDate fromYes
DATE_TOBAPI3008-TO_DATEDate toYes
NOTEDITEMSBAPI3008-NTDITMS_RQInclude noted items—

Exporting parameters

ParameterTypeDescription
RETURNBAPIRETURNReturn message

Tables parameters

ParameterTypeDescriptionRequired
LINEITEMSBAPI3008_2Line itemsYes

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 'BAPI_AP_ACC_GETSTATEMENT'
  EXPORTING
    companycode = lv_companycode
    vendor = lv_vendor
    date_from = lv_date_from
    date_to = lv_date_to
  IMPORTING
    return = lv_return
  TABLES
    lineitems = lt_lineitems.

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