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

BAPI_GL_ACC_GETLIST Get G/L Account List for Company Code

Returns all G/L accounts of a company code with their short and long texts in the requested language. It is handy for value helps in external front ends and for master data comparisons between systems. Read the result from ACCOUNT_LIST and check RETURN, which uses the older BAPIRETURN structure.

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

Importing parameters

ParameterTypeDescriptionRequired
COMPANYCODEBAPI3006_0-COMP_CODECompany codeYes
LANGUAGEBAPI3006_5-LANGULanguage—
LANGUAGE_ISOBAPI3006_5-LANGU_ISOLanguage (ISO 639)—

Exporting parameters

ParameterTypeDescription
RETURNBAPIRETURNReturn message

Tables parameters

ParameterTypeDescriptionRequired
ACCOUNT_LISTBAPI3006_1List of G/L accountsYes

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_GL_ACC_GETLIST'
  EXPORTING
    companycode = lv_companycode
  IMPORTING
    return = lv_return
  TABLES
    account_list = lt_account_list.

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