Fonction SAP BAPI_CTR_GETACTIVITYTYPES - List of Cost Centers / Activity Types with Control Information

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ACTTYPEFROM BAPI0012_6-ACTTYPE C 6 X Activity Type
ACTTYPETO BAPI0012_6-ACTTYPE C 6 X To Activity Type (For Interval Entries)
COAREA BAPI0012_6-CO_AREA C 4 Controlling Area
COSTCENTERFROM BAPI0012_6-COSTCENTER C 10 X Cost Center
COSTCENTERGRP BAPI0012_6-COST_CENTER_GRP C 15 X Cost Center Group
COSTCENTERTO BAPI0012_6-COSTCENTER C 10 X To Cost Center (for Interval Entry)
FISCYEAR BAPI0012_6-FISC_YEAR N 4 Fiscal Year
VERSION BAPI0012_6-VERSION C 3 '000' X Version

Paramètre Reférence Long. Facultatif Description
CONTROLDATA BAPI0012_ACTCTRLDATA 95 Table with Control Data for CCtr/AType Object
EXTENSIONIN BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
EXTENSIONOUT BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
RETURN BAPIRET2 548 BAPI Return Struct.

Functionality
This method returns the control data for the cost center/activity typecombinations.
This control data is valid for the entire fiscal year; the parametersindicated with (V) are version-dependent.
The following are returned:

  • COCNTR_TXT Cost center name

  • ACTTYP_TXT Activity type name

  • ALLOC_COST_ELEM Allocation cost element(V)

  • ACTIVITY_CAT Activity type category (V)

  • ACT_CAT_ACTUAL Actual acty type cat. (V)

  • PRICE_INDICATOR Price indicator (V)

  • ACT_PRICE_IND Actual price indicator (V)

  • PREDIS_FXD_COST Predist.of fixed costs (V)

  • MANUAL_ACT_QTY Manual actual qty (V)

  • AVERAGE_PRICE_IND Average price (V)

  • SWITCH_LAYOUT Switching structure (V)

  • ACT_UNIT Activity unit

  • ACT_UNIT_ISO Activity unit (ISO)

  • OUTPUT_UNIT Output unit

  • OUTPUT_UNIT_ISO Output unit (ISO)

  • OUTPUT_FACTOR Output factor
  • Use
    You must enter the following parameters:

    • COAREA Controlling area

    • FISCYEAR Fiscal year

    • VERSION Version

    • You can restrict the number of cost center/activity type combinationsthrough the optional entry of a cost center, a cost center interval ora cost center group or an activity type or activity type interval.
      DEFINE &BELEG& = "an activity type"

      Definition
      INCLUDE 'STAMM' OBJECT DOKU ID TX LANGUAGE EN
      Activity types represent the activity produced by a cost center and aremeasured in units of time or measure (quantities).
      Within activity type planning you can specify control data thatdetermines whether the price for the activity type valuation should beset manually or calculated iteratively using price calculation.

      Definition
      Upper limit for an activity type interval

      Use
      If the ACTTYPETO is filled, the two activity type parameters define aninterval. The system then selects all the activity types existingwithin this interval.

      Definition
      Key that uniquely identifies a controllingarea.
      The controlling area represents the highest organizational unit inControlling.

      Use
      For both a 1:1 as well as for a 1:n relationship between controllingarea and company code, the number of postingperiods of the controlling area and of the company code(s) must beidentical. A variance in the special periodsis allowed by the R/3 System.

      Definition
      Key uniquely identifying a cost center.

      Definition
      Organizational unit for the summarization of multiplecost centers.

      Use
      You can create any number of cost center groups independently of thestandard hierarchy.
      You can summarize the cost center groups into additional cost centergroups to create a cost center hierarchy.
      You can also specify a cost center group for an individual cost centeror a cost center interval.

      Definition
      Upper limit for a cost center interval.

      Use
      If the COSTCENTERTO field is filled, the two cost center parametersdefine an interval. The system then selects all the cost centersexisting within this interval.

      Definition
      INCLUDE 'FI_GJAHR' OBJECT DOKU ID TX

      Definition
      Controlling-area-related summary of fiscal-year-dependent indicatorsfor plan data, such as:

      • Delta version

      • Lock version

      • Integrated planning

      • Copying allowed

      • Iterative prices

      • Average prices

      • Exchange rate type

      • Value date
      • Use
        Within a controlling area there exists precisely one actual- and planversion (version 0). The SAP system creates these automaticallywhen you set up the controlling area. For plan version 0 you only needto maintain the fiscal-year-dependent version data.
        As well as version 0, you can then create any number of additional planversions and plan using the planning transactions.
        You are not able to enter a version in the request screen for actualpostings. Postings are made automatically in version 0 by the system.
        You can use the prices of the activity types for version 0 to carry outactual allocation. This means that price planning within activity typeplanning should be either:

        • Executed only within version 0 or

        • You need to copy the alternative version on version 0 before the first
        • actual posting if these prices are later to be used for direct activityallocation.
          To carry out planning you must maintain the followingfiscal-year-dependent parameters:
          Fiscal-Year-Dependent Parameters
          IF &DEVICE& = "PRINTER"
          INCLUDE "SIMG_XXCONCKP93PVPAR" OBJECT DSYS ID CHAP
          ENDIF
          In Activity-Based Costing you also have the option of working with adelta version. To do this you must specify a valid version to which youwant to make reference to. As soon as you specify a reference version,the system indicates the current version as the delta version. When youuse a delta version, you must specify the business transactions to beadded to the delta version in "User-defined business transactions for adelta version".

          Description
          Return table with the basic data for the cost center / activity type
          The system returns the following fields:

          • COSTCENTER Cost center

          • COCNTR_TXT Cost center name

          • ACTTYPE Activity type

          • ACTTYP_TXT Activity type name

          • ALLOC_COST_ELEM Allocation cost element

          • ACTIVITY_CAT Activity type category

          • ACT_CAT_ACTUAL Actual activity type category

          • PRICE_INDICATOR Price indicator

          • ACT_PRICE_IND Actual price indicator

          • PREDIS_FXD_COST Predistribution of fixed costs

          • MANUAL_ACT_QTY Manual actual quantity

          • AVERAGE_PRICE_IND Average prices

          • SWITCH_LAYOUT Switching structure

          • ACT_UNIT Activity unit

          • ACT_UNIT_ISO Activity unit (ISO)

          • OUTPUT_UNIT Output unit

          • OUTPUT_UNIT_ISO Output unit (ISO)

          • OUTPUT_FACTOR Output factor

          • INCLUDE ACC_NO_BAPI_EXTENSION OBJECT DOKU ID TX
            INCLUDE ACC_NO_BAPI_EXTENSION OBJECT DOKU ID TX

            Description
            Return table containing any errors messages that may have occurred