FI
BAPI
RFC
Used the same way in S/4HANA
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.
- Function group
- 3006_HRO
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
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)
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_GETDETAIL'
EXPORTING
companycode = lv_companycode
glacct = lv_glacct
IMPORTING
account_detail = lv_account_detail
return = lv_return.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.