Fonction SAP BAPI_CONTROLLINGAREA_GETLIST - Output List of Controlling Areas

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

Paramètre Reférence Long. Facultatif Description
CONTROLLINGAREA_LIST BAPI0004_1 29 Controlling Area List

Functionality
Method offering a list of existing controlling areas.

Example
DATA: RETURN LIKE BAPIRETURN ,
CONTROLLINGAREA_LIST LIKE BAPI0004_1 OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'BAPI_CONTROLLINGAREA_GETLIST'
IMPORTING
RETURN = RETURN
TABLES
CONTROLLINGAREA_LIST = CONTROLLINGAREA_LIST
EXCEPTIONS
OTHERS = 1 .

Notes
You require authorization for object S_TABU_DISand table class KC.
Messages send via parameter RETURN. See the parameter documentation formore information on return values and their uses.
You can find additional information for an individual controlling areawith the method ControllingArea.GetDetail(BAPI_CONTROLLINGAREA_GETDETAIL).

Description
Return code for the method.

Value range
Type Code Description
E(rror) KZ600 No controlling area display authorization
E(rror) KZ602 No controlling areas exist
Blank Blank Method successfully ended

Description
Table with all controlling areas (key, name) from thecurrent client, as long as the RETURN parameter has the value "00".