Fonction SAP BAPI_GL_ACC_EXISTENCECHECK - Check existence of G/L account

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

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

Functionality
This function module enables you to determine whether a G/L accountexists in a company code. A return code is issued to denote the resultof the search.

Notes
The same authorization checks are made as take place when you displayinformation in any transaction.
Since the entry parameter COMPANYCODE is not converted, leading blankcharacters in this parameter are not cleared. Similarly, parameterGLACCT is also not converted. G/L account numbers must be entered withthe leading zeros, for example 0000113100.
Messages are displayed in the RETURN parameter, the documentation forwhich contains the return codes and their meaning. If the RETURNparameter is displayed without a message, then this confirms that theG/L account in question exists in this company code.

Meaning
The method return code is provided in a structure with 5 fields. Youwill find information on the meaning of the individual fields in therelevant 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 relevance of the company code in thecorresponding 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