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

ParameterTypeDescriptionRequired
COMPANYCODEBAPI3006_0-COMP_CODECompany codeYes
GLACCTBAPI3006_0-GL_ACCOUNTG/L account numberYes
LANGUAGEBAPI3006_5-LANGULanguage—
LANGUAGE_ISOBAPI3006_5-LANGU_ISOLanguage (ISO 639)—
TEXT_ONLYBAPI3006_5-TEXT_ONLYRead texts only—

Exporting parameters

ParameterTypeDescription
ACCOUNT_DETAILBAPI3006_2G/L account details
RETURNBAPIRETURNReturn 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.

Request a custom report