Sapass

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



Index

ActivityType

ActivityType


The business object Activity type is a unit within a controlling
area used for classification of activities produced or provided by a cost center.

Integration

A cost center may include one activity type, multiple activity types, or no activity types.

Comment

Planning and allocation of activities requires recording quantities
measured in activity units. Valuations of activity quantities are carried out using activity prices (allocation prices).

In Overhead Cost Controlling (CO-OM), costs are divided into fixed and
variable portions based on the activity quantities. Classifying cost
center activities as separate activity types should therefore take the relevancy of specific costs into account.

Activity prices can be posted manually or calculated automatically
based on the costs assignable to the activities. Different activity prices can be calculated using plan costs and/or actual costs.

Planning, allocation, and monitoring of costs can occur at the activity
type or cost center levels. Actual costs can be posted on the cost
center level only. Assignment of costs so posted proceeds with the aid of the splitting function.

Activity inputs from one cost center to other cost centers, orders, or
business processes represent utilization of the cost center's resources.

Example

Sample activity types in production cost centers would be machine hours or finished units.


11-Dec-2005


Methods

Available Methods


  • ChangeMultiple : Change One or More Activity Types [ BAPI_ACTTYPE_CHANGEMULTIPLE ]
  • CreateMultiple : Create One or More Activity Types [ BAPI_ACTTYPE_CREATEMULTIPLE ]
  • GetDetail : Detailed Information on an Activity Type at Key Date [ BAPI_ACTIVITYTYPE_GETDETAIL ]
  • GetList : List of All Activity Types by Selection Requirements [ BAPI_ACTIVITYTYPE_GETLIST ]
  • GetPrices : Activity Type Prices for Key Date [ BAPI_ACTIVITYTYPE_GETPRICES ]

11-Dec-2005


ChangeMultiple

ChangeMultiple


This module changes one or more activity type master records.

The module interface contains fields that you can also fill when working 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 documentation on Cost Center and Activity Type Accounting.


11-Dec-2005


CreateMultiple

CreateMultiple


This module creates one or more master records for activity types.

The interface of the module includes fields that can also be filledduring online 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 function).


Notes

An activity type can be defined in various time intervals. The following restrictions apply for this module:

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

  • Further Information

    Consult the documentation on Cost Center and Activity Type Accounting.


    11-Dec-2005


    GetDetail

    GetDetail


    This module supplies detailed information on a selected activity type.

    Notes

    Prior to this module, you can determine a list of activity types using function module BAPI_ACTIVITYTYPE_GETLIST.

    Further Information

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


    11-Dec-2005


    GetList

    GetList


    Uses selection criteria for a given day to provide a list of allactivity types (controlling area, activity type, and activity type name) matching the criteria.

    Example

    You want a list of all activity types in controlling area 0001 and allocated through cost element 600000 for today's date.


    Function module callup:

    DATA: I_ACTIVITYTYPE_LIST LIKE BAPI1031_2 OCCURS 0 WITH HEADER LINE,

    I_RETURN LIKE BAPIRETURN

    CALL FUNCTION 'BAPI_ACTIVITYTYPE_GETLIST'

    EXPORTING CONTROLLINGAREA = '0001'

    ALLOC_COST_ELEMENT = '600000'


    DATE = SY-DATUM

    IMPORTING RETURN = I_RETURN

    TABLES ACTIVITYTYPE_LIST = I_ACTIVITYTYPE_LIST

    Notes

    You require system authorization for object K_CSLA.

    You can enter the criteria as single values (such as parameter CONTROLLINGAREA), as intervals (CONTROLLINGAREA and
    CONTROLLINGAREA_TO),or as the upper limit (CONTROLLINGAREA_TO only).

    You may also enter a search string with a masking symbol (* or +). Themodule selects all activity types using the string in their names, titles, or descriptions.

    If you do not enter any criteria, a list of all activity types appears.


    If the R/3 System finds no activity types for the selection criteria,you can find more information in the RETURN parameter regarding any errors that occur.

    Technical note on import parameters ACTIVITYTYPE, ACTIVITYTYPE_TO and SEARCHSTRING:

    The selection first valueates the parameters ACTIVITYTYPE and
    ACTIVITYTYPE_TO. If the criterium is an individual value, an interval,or an upper limit, the module selects master data according to the selection criteria. If you do not enter restrictions, the moduledisplays all activity types fitting the existing criteria.


    Afterwards, the module adds the appropriate texts.

    If you use the parameter SEARCHSTRING, the module checks, after thetext selection, whether the activity type or the short/long textsinclude the search string. If not, the module removes the corresponding entry from the return table.



    11-Dec-2005


    GetPrices

    GetPrices


    Determines, for a given day, activity prices for cost center/activity type combinations.

    The activity types receiving the prices are given in the form of a table with object IDs (controlling area, activity type).

    Example

    You want all activity type prices from table I_OBJECT_IDS for cost center PROCUREMENT on today's date.


    Function module callup:

    DATA: I_OBJECT_IDS LIKE BAPI1031_1,

    I_PRICES LIKE BAPI1031_4,

    I_RETURN LIKE BAPIRETURN

    CALL FUNCTION 'BAPI_ACTIVITYTYPE_GETPRICES'

    EXPORTING COSTCENTER = 'BESCHAFFUNG'


    IMPORTING RETURN = I_RETURN

    TABLES OBJECT_IDS = I_OBJECT_IDS

    PRICES = I_PRICES.

    Notes

    The R/3 System uses the plan activity values (value type 01) from version 0.

    You require system authorization for object K_CSLA.


    You can enter the cost centers by entering:

  • a single value (fill COSTCENTER parameter)
  • an interval (fill COSTCENTER and COSTCENTER_TO parameters)
  • or an upper limit (fill COSTCENTER_TO parameter).
  • If you do not enter any selections, the module searches for all activity types in the object table for cost centers.


    The controlling area is based on the object table entries. These mayvary for different object entries, but the fiscal year variants mustagree on the same key date, in the same period and the same fiscalyear. If this is not the case, processing is ended and the system offers you information about any errors occurring in the RETURN
    parameter.

    Return table PRICES includes all cost center/activity type combinationsfitting the given selection criteria, in addition to the correspondingactivity type prices for the given date's period. The table gives, inaddition to cost center/activity type texts, the total activity price
    per quantity unit, the activity unit, and the activity price unit in controlling area currency.

    If no activity prices could be found for the selection criteria, the system offers more information under the RETURN parameter.

    If controlling areas in the object table have key dates in different
    periods and/or fiscal years, then processing cannot be continued andthe system describes the errors that have occurred in the RETURN parameter.


    11-Dec-2005