Sapass

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



Index

CostType

CostType


The business object Cost type is a classification of the
organization's valuated consumption of production factors within a controlling area.


A cost type corresponds to a cost-relevant item in the chart of accounts.


11-Dec-2005


Methods

Available Methods


  • CreateMultiple : Create One or More Cost Elements [ BAPI_COSTELEM_CREATEMULTIPLE ]
  • GetDetail : Detailed information on a cost element at a key date [ BAPI_COSTELEM_GETDETAIL ]
  • GetFixaccount : Read fixed account assignment for company code/business area/cost element [ BAPI_COST_ELEM_FIXACCOUNT_GET ]
  • GetFixaccountList : Read Fixed Account Assignments (from TKA30) [ BAPI_FIXACCOUNT_GETLIST ]
  • GetList : Determine list of cost elements according to selection criteria [ BAPI_COSTELEM_GETLIST ]

11-Dec-2005


CreateMultiple

CreateMultiple


The module creates one or more master records for primary and secondary cost elements.

The interface of the module comprises fields that can also be filledduring online processing. The appropriate field checks take place.

If you set the flag TESTRUN only the checks occur. The subsequent posting does not happen (Check Functions).


Notes

A cost type can be defined in different periods. The following restrictions apply for this module:

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

  • Further Information

    Consult Cost Center and Cost Element Accounting documentation.


    11-Dec-2005


    GetDetail

    GetDetail


    The module supplies detailed information for a selected cost element.

    Notes

    You can generate a list of cost elements prior to this using the function module BAPI_COSTELEM_GETLIST.

    Further Information

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


    11-Dec-2005


    GetFixaccount

    GetFixaccount


    This method supplies, for a combination of company code, business areaand cost element, the account assignment stored in CO Customizing, that is, a cost center and/or an overhead order.
    The method does not give a result if no controlling area is assigned to
    the company code. As this is not a problem from a business perspective, the R/3 System does not issue an error message.
    If no account assignment is stored in CO Customizing at the companycode / business area / cost element level, the system searches for and
    returns an account assignment at the company code / cost element level.
    If no account assignment is stored at the company code /cost element level, the system enters "E" in the "Type" field of the RETURNstructure.


    11-Dec-2005


    GetFixaccountList

    GetFixaccountList


    Method supplying all fixed account assignments in CO Customizing forcombinations of company code, business area, and cost element. If COhas no such account assignments, value E appears in field TYPE for structure RETURN.


    11-Dec-2005


    GetList

    GetList


    This module determines a list of cost elements that comply with the selection criteria in the interface.

    Notes

    You can subsequently use the function module BAPI_COSTELEM_GETDETAIL todetermine further detailed information for a single cost element.


    Further Information

    You can find further information on this subject in the SAP Library under Cost Center Accounting and Cost Element Accounting.


    11-Dec-2005