# 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.

- Modules: FI
- Type: BAPI
- Function group: 3006
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-gl-acc-getlist/

## 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)

```abap
CALL FUNCTION 'BAPI_GL_ACC_GETLIST'
  EXPORTING
    companycode = lv_companycode
  IMPORTING
    return = lv_return
  TABLES
    account_list = lt_account_list.
```

## Related tables

SKAT, SKB1

