Fonction SAP BAPI_PROFITCENTER_CREATE - Create Profit Center

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ADDRESS BAPI0015_5 u 313 X Transfer Structure for Address
BASICDATA BAPI0015_4 u 136 Transfer Structure for Basic Data
COMMUNICATION BAPI0015_6 u 159 X Transfer Structure for Communication
INDICATORS BAPI0015_8 u 11 X Transfer Structure for Indicators
LANGUAGE BAPI0015_10 u 3 X Language in which PrCtr texts are saved
PROFITCENTERID BAPI0015ID2 u 14 Profit Center Structure Object Key
TESTRUN BAPI0015_9 u 1 X Test Run
VALIDFROM BAPI0015_3-DATE D 8 Valid-from date
VALIDTO BAPI0015_3-DATE D 8 Valid-to Date

Paramètre Reférence Type Long. Description
CONTROLLINGAREA BAPI0015ID2-CO_AREA C 4 Controlling area
PROFITCENTER BAPI0015ID2-PROFIT_CTR C 10 Profit Center
RETURN BAPIRET2 u 548 Return Code

Paramètre Reférence Long. Facultatif Description
COMPANYCODES BAPI0015_7 28 X Table of Company Codes


This function module is used to create a new profit center, or a newanalysis period for an existing profit center. Depending on thetime-dependence rules set in Customizing, the system either creates anew analysis period or merges an analysis period with an existing one.The fields ProfitCenter, ControllingArea, valid_from, valid_toand the fields Pctr_Name, In_Charge and PrCtr_Hier_Groupare all mandatory fields.
Authorizations:
Authorization object K_PCA is relevant here.

Description
Clearly identifies a controlling area.
The controlling area is the highest organizational unit in
Controlling.

Description
Key which, together with the controlling area, serves to unambiguouslyidentify a profit center.

Description
Return messages

Value range
Messages related to entries
Type ,,ID ,,number ,,message
E,,KM,,999,,
E,,KM ,,025
E,,KM,,024
E,,KM,,357
E,,KM,,060
E,,KM,,001
E,,KM,,503
Problems related to time dependency
E,,KM,,002
E,,KM,,003
E,,KM,,004
E,,KM,,018
E,,KM,,674
E,,KM,,020
Problems with company codes
E,,KM,,112
E,,KM,,543
E,,KM,,392
E,,KM,,393
Lock administration
E,,KM,,801
E,,KM,,800
System error or error in system setting
E,,KM,,088
E,,KM,,802
E,,KM,,019
Authorization
E,,KH,,739
E,,KH,,740
Entries which are only valid with certain system settings
E,,KH,,740
E,,KH,,358
E,,KM,,201
E,,KM,,163
E,,KM,,198
E,,KM,,153
W,,KM,,494

Description
Address data for a profit center.

Description
Basic data of a profit center. In particular, this includes allmandatory fields when creating a profit center. These fields arePRCTR_NAME, IN_CHARGE, PRCTR_HIER_GROUP and, possibly, LOGSYSTEM.

Description
Communication data for a profit center, such as telephone numbers.

Description
Indicator which controls posting to a profit center.

Description
The texts for a profit center are saved according to language. Withthis parameter, you decide which language the texts are saved in. Thetexts in question are those in the fields PRCTR_NAME and LONG_TEXT inthe BasicData parameter.

Description
Key which clearly identifies a profit center.

Description
If this parameter is set, the method will only be executed in the testrun. All checks are then carried out, without an entry being made inthe database.

Description
Date which specifies from when an entry is valid.

Description
Date which specifies until when the entry is valid.

Description
The Companycodes table contains a list of the company codes which areto be activated/deactivated for the corresponding profit center. TheAssign_to_PrCtr field determines whether an assignment or deactivationis to be made ('X' signifies assignment, ' ' signifies deactivation).If you do not make any entries in the Companycodes table when creatinga profit center, the system will assign all company codes.
When a new analysis period starts for a profit center, the existingcompany code assignment are retained (assignment of a company codemeans that it continues to be assigned; accordingly, company codes forwhich the Assign_to_PrCtr field is not set are removed from the list ofassigned company codes).