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

BAPI_AP_ACC_GETOPENITEMS Vendor Account Open Items at Key Date

Returns the items of a vendor account that were open at a given key date, including items cleared after that date. It is used for payment proposals in external systems, vendor portals and aging reports. Pass the vendor number with leading zeros and check RETURN before processing LINEITEMS.

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

Importing parameters

ParameterTypeDescriptionRequired
COMPANYCODEBAPI3008_1-COMP_CODECompany codeYes
VENDORBAPI3008_1-VENDORVendorYes
KEYDATEBAPI3008-KEY_DATEKey dateYes
NOTEDITEMSBAPI3008-NTDITMS_RQInclude noted items—

Exporting parameters

ParameterTypeDescription
RETURNBAPIRETURNReturn message

Tables parameters

ParameterTypeDescriptionRequired
LINEITEMSBAPI3008_2Open line 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_GETOPENITEMS'
  EXPORTING
    companycode = lv_companycode
    vendor = lv_vendor
    keydate = lv_keydate
  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