Fonction SAP BAPI_GL_ACC_GETLIST - List of G/L accounts for each company code

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

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN u 452 Return code

Paramètre Reférence Long. Facultatif Description
ACCOUNT_LIST BAPI3006_1 84 List of G/L accounts

Functionality
This method provides a list of G/L accounts for a company code. The datadetermined by the system is returned in a table. Problems arising arereturned in the form of a return code message.

Notes
The same authorization checks are carried out as take place whendisplaying information within a transaction.
The system does not convert the input parameter COMPANYCODE, meaningthat leading blank characters within this parameter are not cleared.
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. The LANGUAGE parameter is optional. In the absence of anylangauge being entered, the user's logon language is used.
Messages are returned within the RETURN parameter, the parameterdocumentation for which contains the return codes and their meaning.

Further information

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 the 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
The list of G/L accounts is supplied in a table. You will findinformation on the significance of the parameters in the relevant dataelement documentation:
Structure of the table
COMP_CODE Company code
GL_ACCOUNT G/L account number
SHORT_TEXT G/L account short text
LONG_TEXT G/L account long text