Fonction SAP BAPI_PROFITCENTER_GETLIST - Display list of profit centers

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CONTROLLINGAREA BAPI0015ID-KOKRS C 4 Controlling Area
DATE BAPI0015_3-DATE D 8 ' ' X Date
IN_CHARGE_USER BAPI0015_2-IN_CHARGE_USER C 12 '%' X User Responsible for the Profit Center
PERSONINCHARGE BAPI0015_2-IN_CHARGE C 20 '%' X Person in Charge of Profit Center

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

Paramètre Reférence Long. Facultatif Description
PROFITCENTER_LIST BAPI0015_1 74 List of Profit Centers

Functionality
This method supplies a list of profit centers sorted by controlling areaand person in charge within each controlling area.

Notes
You need authorization for the activity "03" (Display) for the object"K_PCAS_PRC" (Maintain profit centers) in the current controlling area.You also need authorization for the activity "03" (Display) for theobject "K_PCAS_REP" (Summary and line item reports) for the relevantprofit center.
Messages are returned in the parameter RETURN. The documentation forthis parameter explains the return values and their meanings.

Description
The following messages can be returned:
KM025 (error) ,,Controlling area Y does not exist
KM000 ,,No values selected
KM076 (error) ,,You are not authorized to display profit center X in
,,controlling area Y
KM077 ,,BAPI completed

Description
For information on the meaning of the controlling area, see the dataelement documentation Controlling area.

Description
You can submit a date as a parameter. The system finds the master datathat is valid for that date.

Default
If you do not submit a date, the system uses the today's date.

Description
User responsible for the profit center

Default

Description
For information about the person in charge, see the data elementdocumentation person in charge of profit center.

Description
The list contains the following fields:
CO_AREA,,Controlling area
PROFIT_CTR,,Profit center
VALID_TO,,Date valid through
SHORT_TEXT,,General description
IN_CHARGE,,Person in charge