×

[PR]この広告は3ヶ月以上更新がないため表示されています。
ホームページを更新後24時間以内に表示されなくなります。




Sapass

 Simplify SAP R/3 development with Excel VBA/VB RFC  
Home> Bapi>CostCenter



Index

CostCenter

CostCenter


The business object Cost center is an organizational unit within
a controlling area that represents a separate location of cost incurrence. The definition can be based on functional requirements,
allocation criteria, activities or services provided, location, and/or area of responsibility.



Comment
Cost centers are combined into hierarchical decision, managerial, and responsibility groups.


Cost centers support differentiated assignment of overhead costs to
organizational activities based on utilization of the relevant areas
(cost determination function) and for differentiated controlling of costs arising in an organization (cost controlling functions).


Cost centers can include activity types, which categorize the specific actions taken by cost centers.


11-Dec-2005


Methods

Available Methods


  • ActivateMultiple : Activate Inactive Cost Centers [ BAPI_CTR_ACTIVATE_MULTIPLE ]
  • ChangeMultiple : Change One or More Cost Centers [ BAPI_COSTCENTER_CHANGEMULTIPLE ]
  • CheckMultiple : Check Changes Made to One or More Cost Centers [ BAPI_COSTCENTER_CHECKMULTIPLE ]
  • CreateMultiple : Create One or More Cost Centers [ BAPI_COSTCENTER_CREATEMULTIPLE ]
  • DeleteMultiple : Delete One or More Cost Centers [ BAPI_COSTCENTER_DELETEMULTIPLE ]
  • GetActivityPrices : Read Prices for Cost Center/Activity Type [ BAPI_CTR_GETACTIVITYPRICES ]
  • GetActivityQuantities : Read Plan Activity [ BAPI_CTR_GETACTIVITYQUANTITIES ]
  • GetActivityTypes : List of Cost Centers/Activity Types [ BAPI_CTR_GETACTIVITYTYPES ]
  • GetDetail : Detailed Information About Cost Center For Key Date [ BAPI_COSTCENTER_GETDETAIL ] (Obsolete in 46A)
  • GetDetail1 : Detailed Information About Cost Center For Key Date [ BAPI_COSTCENTER_GETDETAIL1 ]
  • GetList : List of All Cost Centers According to Selection Criteria [ BAPI_COSTCENTER_GETLIST ] (Obsolete in 46A)
  • GetList1 : Determine List of Cost Centers According to Selection Criteria [ BAPI_COSTCENTER_GETLIST1 ]

11-Dec-2005


ActivateMultiple

ActivateMultiple


This module activates the inactive version of a cost center.

Notes

To determine all the inactive cost center data in a controlling areayou can use the function module BAPI_COSTCENTER_GETLIST1. If you dothis you must transfer the parameter MASTER_DATA_INACTIVE with the value 'X'.



11-Dec-2005


ChangeMultiple

ChangeMultiple


This module changes one or more of the cost center master records.

The module interface contains fields that you can alsso fill online. The appropriate field checks are performed.

If you set the TESTRUN flag, only the checks are made. The subsequent posting is not carried out (check function).


Further Information

Consult the Cost Center Accounting documentation.


11-Dec-2005


CheckMultiple

CheckMultiple


A table with changes for the cost centers is transferred to thefunction module. A check is performed as to whether these changes may be made.

Further Information

Consult the Cost Center Accounting documentation.


11-Dec-2005


CreateMultiple

CreateMultiple


This module creates one or more master records for cost centers.

The module interface contains fields that can also be filled duringonline processing. The appropriate field checks are performed.

If you set the flag TESTRUN, only the checks take place. The subsequent posting does not occur (check functions).


Notes

A cost center can be defined in various time intervals. The following restrictions apply for this module:

  • Only one time interval can be entered for a specified cost center.
  • The cost center cannot already have time intervals entered for it in the database.

  • Further Information

    Consult the documentation on Cost Center Accounting.


    11-Dec-2005


    DeleteMultiple

    DeleteMultiple


    You can use this mnodule to delete cost centers in the specified timeperiods. You can also use it just to check whether deletion is possible.


    11-Dec-2005


    GetActivityPrices

    GetActivityPrices


    This method returns the planned prices for the cost center / activity type combination.

    The following fields are supplied for the selected periods:

  • PRICE_INDICATOR Price indicator
  • PRICE_CCURR_FIX Fixed price CO area currency

  • PRICE_CCURR_VAR Variable price CO area currency
  • PRICE_CCURR_UNIT Price unit CO area currency
  • CURR_COAREA Currency key CO area
  • CURR_COAREA_ISO Currency key CO area (ISO)
  • PRICE_OCURR_FIX Fixed price Object currency

  • PRICE_OCURR_VAR Variable price Object currency
  • PRICE_OCURR_UNIT Price unit CO area currency
  • CURR_CCENTER Currency key Object
  • CURR_CCENTER_ISO Currency key Object (ISO)
  • Use

    You must enter the following parameters:


  • COAREA Controlling area
  • FISCYEAR Fiscal year
  • VERSION Version
  • PERIODFROM From period (The "To period" is optional)
  • You can restrict the number of cost center/activity type combinationsthrough the optional entry of a cost center, a cost center interval or an activity type interval.


    11-Dec-2005


    GetActivityQuantities

    GetActivityQuantities


    This method returns the planned activities for the cost center / activity type combinations.

    The system returns the following fields for the periods selected:

  • ACT_QUANTITY Planned activity
  • ACT_CAPACITY Capacity

  • ACT_SCEDULED_QTY Scheduled activity
  • ACT_UNIT Activity unit
  • ACT_UNIT_ISO Activity unit (ISO)
  • OUTPUT_UNIT Output unit
  • OUTPUT_UNIT_ISO Output unit (ISO)
  • Use

    You must enter the following parameters:


  • COAREA Controlling area
  • FISCYEAR Fiscal year
  • VERSION Version
  • PERIODFROM From period (To period is optional)
  • You can restrict the number of cost center/activity type combinationsthrough the optional entry of a cost center, a cost center interval or
    a cost center group or an activity type or an activity type interval.


    11-Dec-2005


    GetActivityTypes

    GetActivityTypes


    This method returns the control data for the cost center/activity type combinations.

    This control data is valid for the entire fiscal year; the parameters indicated 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 or
    a cost center group or an activity type or activity type interval.


    11-Dec-2005


    GetDetail

    GetDetail


    This method supplies detailed information for a cost center.

    The method requires the controlling area, the cost center, and a key date.

    The method gives the name and description of the cost center, costcenter manager and structures with address and communication data.


    Warning: This method is obsolete.

    The GetDetail method is out-of-date as of Release 4.6. Functionality will be transferred from the GetDetail1 method.

    If you have already used this method, you should change over to the new method.

    Otherwise, use the new GetDetail1 method.


    Example

    You want to see the present cost center manager and telephone number of cost center PRODUCTION in controlling area 0001.

    Function module callup:

    DATA: I_CONTROLLINGAREA LIKE BAPI0012_1-CO_AREA,

    I_COSTCENTER LIKE BAPI0012_1-COSTCENTER,


    I_PERSON_IN_CHARGE LIKE BAPI0012_5-INCHARGE,

    I_ADDRESS LIKE BAPI0012_3,

    I_COMMUNICATION LIKE BAPI0012_4.

    I_RETURN LIKE BAPIRETURN.

    I_CONTROLLINGAREA = "0001".

    I_COSTCENTER = "PRODUCTION".


    CALL FUNCTION "BAPI_COSTCENTER_GETDETAIL"

    EXPORTING CONTROLLINGAREA = I_CONTROLLINGAREA

    COSTCENTER = I_COSTCENTER

    DATE = SY-DATUM

    IMPORTING ADDRESS = I_ADDRESS


    COMMUNICATION = I_COMMUNICATION

    PERSON_IN_CHARGE = I_PERSON_IN_CHARGE

    RETURN = I_RETURN.

    Notes

    You require system authorization for object K_CSKS.

    If no detailed information was found by the system for the cost center,
    you can find more information on the errors that occurred in the RETURN parameter.


    11-Dec-2005


    GetDetail1

    GetDetail1


    This odule supplies detailed information for a selected cost center.

    Notes

    You can determine a list of cost centers prior to this using function module BAPI_COSTCENTER_GETLIST1.

    Further Information

    For more information on this topic, see the SAP Library under Cost Center Accounting.


    11-Dec-2005


    GetList

    GetList


    Uses selection criteria for a key date to provide a list of all costcenters that meet this criteria. The list contains controlling area, cost center, and cost center name.

    Caution: This method is out-of-date.

    The GetDetail method is obsolete after Release 4.6. The functionality is borrowed from the GetDetail1 method.


    If you have already used this method, you should change over to the new method.

    Otherwise, use the new GetDetail1 method.

    Example

    You want a list of all cost centers in controlling area 0001 and company code 0002 for the current date.


    Function module call:

    DATA: I_COSTCENTER_LIST LIKE BAPI0012_2 OCCURS 0 WITH HEADER LINE.

    I_RETURN LIKE BAPIRETURN.

    CALL FUNCTION 'BAPI_COSTCENTER_GETLIST'

    EXPORTING CONTROLLINGAREA = "0001"

    COMPANYCODE = "0002"


    DATE = SY-DATUM

    TABLES = I_COSTCENTER_LIST

    IMPORTING RETURN = I_RETURN.

    Notes

    You require system authorization for object K_CSKS.

    The selection criteria can be transferred as:


  • Individual values, for example parameter COMPANYCODE is filled
  • Intervals, for example parameters COMPANYCODE and COMPANYCODE_TO are filled
  • Upper limits, for example parameter COMPANYCODE_TO (the system selects all company codes <= COMPANY_CODE_TO)

  • As an alternative to intervals, you can also select using Cost Center Group (interface parameterCOSTCENTERGROUP). If you have specified intervals and cost center groups, the system evaluates only using cost center groups.
  • If you do not enter any restricting criteria for the controlling area
    and/or cost center, the system issues a list of all cost centers.

    Note that a selection can only be successful if it does not contain anycontradictions. For example, in a controlling area there should not beany cost centers from company codes that are not assigned to the controlling area.


    If no cost centers could be found by the system for the selectioncriteria entered, you can get information about the errors that have occurred by choosing the RETURN parameter.


    11-Dec-2005


    GetList1

    GetList1


    The module identifies a list of cost centers that conform to the selection criteria in the interface.

    Notes

    Afterwards, you can use the function module BAPI_COSTCENTER_GETDETAIL1to determine more detail information for a single cost center.


    Further Information

    For more information, see the SAP Library under Cost Center Accounting.


    11-Dec-2005