# BAPI_GL_ACC_GETDETAIL — Get G/L Account Details

> Returns the chart-of-accounts and company-code data of one G/L account together with its texts. Interfaces and validation programs use it to check that a G/L account exists in a company code before posting. Pass the account number with leading zeros (conversion exit ALPHA) and read RETURN for errors.

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

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| COMPANYCODE | BAPI3006_0-COMP_CODE | Company code | Yes |
| GLACCT | BAPI3006_0-GL_ACCOUNT | G/L account number | Yes |
| LANGUAGE | BAPI3006_5-LANGU | Language | - |
| LANGUAGE_ISO | BAPI3006_5-LANGU_ISO | Language (ISO 639) | - |
| TEXT_ONLY | BAPI3006_5-TEXT_ONLY | Read texts only | - |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| ACCOUNT_DETAIL | BAPI3006_2 | G/L account details |
| RETURN | BAPIRETURN | Return message |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_GL_ACC_GETDETAIL'
  EXPORTING
    companycode = lv_companycode
    glacct = lv_glacct
  IMPORTING
    account_detail = lv_account_detail
    return = lv_return.
```

## Related tables

SKA1, SKAT, SKB1

