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
| Parameter | Type | Description | Required |
|---|---|---|---|
| COMPANYCODE | BAPI3006_0-COMP_CODE | Company code | Yes |
| LANGUAGE | BAPI3006_5-LANGU | Language | — |
| LANGUAGE_ISO | BAPI3006_5-LANGU_ISO | Language (ISO 639) | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| RETURN | BAPIRETURN | Return message |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| ACCOUNT_LIST | BAPI3006_1 | List of G/L accounts | Yes |
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.