Fonction SAP BAPI_PROFITCENTER_CHANGE - Change Profit Center

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ADDRESS BAPI0015_5 u 313 X Transfer Structure for Address
ADDRESSX BAPI0015_5X u 14 X X Bar for Address
BASICDATA BAPI0015_4 u 136 X Transfer Structure for Basic Data
BASICDATAX BAPI0015_4X u 8 X X Bar for Basic Data
COMMUNICATION BAPI0015_6 u 159 X Transfer Structure for Communication
COMMUNICATIONX BAPI0015_6X u 9 X X Bar for Communication
CONTROLLINGAREA BAPI0015ID2-CO_AREA C 4 Controlling Area
INDICATORS BAPI0015_8 u 11 X Transfer Structure for Indicators
INDICATORSX BAPI0015_8X u 2 X X Bar for Indicators
LANGUAGE BAPI0015_10 u 3 X Language in Which PrCtr Texts Are Saved
PROFITCENTER BAPI0015ID2-PROFIT_CTR C 10 Profit Center
TESTRUN BAPI0015_9 u 1 ' ' X Test Run
VALIDFROM BAPI0015_3-DATE D 8 Valid from
VALIDTO BAPI0015_3-DATE D 8 Valid to

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 Confirmations

Paramètre Reférence Long. Facultatif Description
COMPANYCODES BAPI0015_7 28 X Table of Company Codes
COMPANYCODESX BAPI0015_7X 11 X X Bar for Table of Company Codes


This method is used to change a profit center. The following fields areall mandatory:
  • ProfitCenter

  • ControllingArea

  • valid_from

  • valid_to

  • The change period must not exceed the limit of the existing periods ofvalidity. If you want to extend an existing period of validity, youmust create a new period using ProfitCenter.Create. Thisperiod will follow on seamlessly from the current period.
    If the change period encompasses several analysis periods, the onlydata which can be changed for the profit center is that data which isidentical in the previous/existing analysis periods. If the requiredchange period lies within a previous analyis period, the new value willbe valid in the entire analysis period or, alternatively, the systemwill create a new analysis period (the latter occurs if the fields youwish to change are time-dependent).
    There are X-fields for all data fields. By settings an X-field, youdecide whethe the corresponding field is to be changed.

    Authorizations:
    Authorization object K_PCA is relevant here.

    Value range
    Notifications for entry values
    Type ,,ID ,,Number ,,Notification
    E,,KM,,999,,
    E,,KM ,,025
    E,,KM,,024
    E,,KM,,357
    E,,KM,,060
    E,,KM,,001
    E,,KM,,503
    Problems connected with 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 management
    E,,KM,,801
    E,,KM,,800
    System errors or erroneous system settings
    E,,KM,,088
    E,,KM,,802
    E,,KM,,019
    Authorization
    E,,KH,,739
    E,,KH,,740
    Entries which are only valid if certain system settings are made
    E,,KH,,740
    E,,KH,,358
    E,,KM,,201
    E,,KM,,163
    E,,KM,,198
    E,,KM,,153
    W,,KM,,494

    Description
    Adress data for a profit center

    Description
    Determines which fields are to be read from the addressparameter when making changes.

    Description
    Profit Center Basic Data
    When creating a profit center, the following fields are mandatory:

    • PRCTR_NAME

    • IN_CHARGE

    • PRCTR_HIER_GROUP

    • and, where appropriate LOGSYSTEM
    • Description
      Determines which fields are to be read from the basic dataparameter when making changes.

      Description
      Communication data for a profit center.

      Description
      Determines which fields are to be read from the communicationparameter when changes are made.

      Description
      Clearly identifies a controlling area
      In Controlling, the controlling area is the highest organizationalunit.

      Description
      Indicator which determines

      • whether a profit center is posted to or is locked

      • whether a profit center functions as a dummy profit center
      • Description
        Determines which fields in the Indicators parameter should betaken into account when changes are made.

        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 andLONG_TEXT in the BasicData parameter.

        Description
        Key which, together with the controlling area, serves to unambiguouslyidentify 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 specified from when an entry is valid.

        Description
        Date which specifies until when an entry is valid.

        Description
        The company code table contains a list of all company codes which areto be activated/deactivated for the profit center in question. Thefield Assign_to_PrCtr in the company codes table determines whether anassignment or deactivation is to be made ('X' signifies assignment, ' 'signifies deactivation). The field Assign_to_PrCtr in the company codetable must also be set for the corresponding company code, so that thecorrect company code assignment can actually be changed.

        Description
        In this table, you must enter all company codes which you assign ordeactivate using the Companycodes table. The system only takes accountof company codes for which Assign_to_Prctr has been set as 'X'.