Fonction SAP BAPI_GL_ACC_GETDETAIL - G/L account details

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
COMPANYCODE BAPI3006_0-COMP_CODE C 4 Company code
GLACCT BAPI3006_0-GL_ACCOUNT C 10 G/L account number
LANGUAGE BAPI3006_5-LANGU C 1 X Language
LANGUAGE_ISO BAPI3006_5-LANGU_ISO C 2 X Language according to ISO 639
TEXT_ONLY BAPI3006_5-TEXT_ONLY C 1 X

Paramètre Reférence Type Long. Description
ACCOUNT_DETAIL BAPI3006_2 u 102 G/L account detailed data
RETURN BAPIRETURN u 452 Return code

Functionality
This method provides the user with further information about a G/Laccount. The system provides detailed data about the G/L account.Problems arising are returned in the form of a return code message.
If you only want text to be output, you can set this using the parameterTEXT_ONLY.

Notes
The same authorization checks are carried out as take place whendisplaying information within a transaction.
The only exception is the output of text only. In this case, only theauthorization check for the charts of accounts is carried out.
The system does not convert the input parameter COMPANYCODE, meaningthat leading blank characters within this parameter are not cleared.Likewise, no conversion is carried out for the parameter GLACCT. G/Laccount numbers must therefore be entered with leading zeros (forexample, 0000113100).
Depending upon the LANGUAGE parameter, any description, in so far as itexists, appears in the desired language. Where no description exists inthe desired language for the G/L account in question, nothing isreturned and the parameter RETURN contains a warning. Alternatively, youcan also specify the language as an ISO code in the LANGUAGE_ISOparameter. The LANGUAGE and LANGUAGE_ISO parameters are optional. In theabsence of any langauge being entered, the user's logon language isused. If both parameters are set, the system ignores the LANGUAGE_ISOparameter.
Messages are returned in the RETURN parameter, the parameterdocumentation for which contains the return codes and their meaning.

Description
The detailed information about a G/L account is provided in astructure. You can find information about the meaning of the variousparameters in the related data element documentation:
Structure
COMP_CODE Company code
GL_ACCOUNT G/L account number
SHORT_TEXT G/L account short text
LONG_TEXT G/L account long text
CHRT_ACCTS Chart of accounts
ACCT_GROUP G/L account group
BAL_SH_ACC Indicator: Account is a balance sheet a
ccount?
INC_ST_ACT P&L account statement type
ACCT_CURR Account currency
ACCT_CURR_ISO ISO code of the currency key
TAX_CODE Tax category in account master record
NO_TAX_REQUIRED Posting without tax allowed

Description
The return code for the method is supplied in a structure containingfive fields. You will find information on the significance of theindividual fields in the relevant data element documentation:
Layout of structure
TYPE Message type
CODE Message code
MESSAGE Message text
LOG_NO Application log: Log number
LOG_MSG_NO Application log: Sequence number of message

Description
You will find information on the significance of the company code inthe relevant data element documentation:
Company code

Description
You will find information on the significance of the G/L account numberin the relevant data element documentation:
G/L account number

Description
You can find information about the meaning of the language in therelated data element documentation:
Language
You can also enter the languge by using an ISO-Code in the LANGUAGE_ISOparameter.

Default
If no language is entered, the logon language is used. If you have setboth parameters, the LANGUAGE_ISO parameter is ignored.

Description
Alternative parameter to LANGUAGE