Fonction SAP BAPI_COMPANYCODE_GETLIST - List of Company Codes

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

Paramètre Reférence Long. Facultatif Description
COMPANYCODE_LIST BAPI0002_1 29 List of Company Codes

Functionality
This method provides the user with a list of company codes. The systemreturns both the keys and the names of the company codes, in so far asthe latter exist in the system. Problems arising are returned as areturn code message.

Notes
The same authorization checks are carried out as take place whendisplaying information within an R/3 transaction.
Texts for the company code are returned only if these exist in thesystem.
Messages are returned in the RETURN parameter. This parameterdocumentation contains the return codes and their meaning.

Description
The system returns the return code of this method in one structure withfive fields. You can find definitions of these fields in theirrespective data element documentation.
Structure Layout
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
The system returns the list of company codes in one table with twofields. You can find the definition of company code in the data elementdocumentation.
Table Layout
COMP_CODE Company code
COMP_NAME Company code or company name

Value range

1523312Remote function calls of SUS via PI (Process Integration)