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

BAPI_AR_ACC_GETOPENITEMS Customer Account Open Items at Key Date

Returns the items of a customer account that were open at a given key date, including items cleared later. It is used for aging reports, collection lists and customer self-service portals. Pass the customer number with leading zeros; SECINDEX lets the read use secondary indexes for large accounts.

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

Importing parameters

ParameterTypeDescriptionRequired
COMPANYCODEBAPI3007_1-COMP_CODECompany codeYes
CUSTOMERBAPI3007_1-CUSTOMERCustomerYes
KEYDATEBAPI3007-KEY_DATEKey dateYes
NOTEDITEMSBAPI3007-NTDITMS_RQInclude noted items—
SECINDEXBAPI3007-SINDEX_RQUse secondary index—

Exporting parameters

ParameterTypeDescription
RETURNBAPIRETURNReturn message

Tables parameters

ParameterTypeDescriptionRequired
LINEITEMSBAPI3007_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_AR_ACC_GETOPENITEMS'
  EXPORTING
    companycode = lv_companycode
    customer = lv_customer
    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