Sapass

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



Index

CostEstimate

CostEstimate


The business object Cost estimate is a statement of costs for a
costing object. It is created according to a costing variant.


Structure
The cost estimate consists of detailed statements that contain
information on the origin of the costs, and cost-type statements, which group together the costs according to cost types.

In addition, the cost estimate of a plant material contains a cost component split, which divides up the costs according to cost
components, e.g. material costs, personnel costs, overhead surcharges.
Integration

For a costing object several cost estimates can be created.
In the case of plant materials these may differ, for example, with
regard to their period of validity and the valuation method used.

In the case of costing objects that take the form of an order, there
are e.g. estimates of planned costs (preliminary costing) and actual costs (simultaneous costing).


Comment
Cost estimates form the basis for stock valuation, pricing and price
policy, manufacturing cost controlling and profitability analysis.

The cost estimate of a plant material is used to determine a standard
price for online valuation of the material movements and to determine
the manufacturing costs or total production costs for contribution margin accounting in profitability anaysis.

Other versions of cost estimates for a plant material can offer alternative valuation methods for stock valuation according to
commercial-law and tax-law viewpoints.
The preliminary costing of a manufacturing order shows the planned
debitings (material withdrawals, internal activity-based allocations, overhead surcharges etc.) and creditings (goods receipts).

Within the framework of simultaneous costing, cost estimates with reference to the manufacturing order are prepared whenever goods
movements, confirmations etc. occur. These cost estimates show the actual costs associated with these business operations.


11-Dec-2005


Methods

Available Methods


  • GetDetail : Determine detailed information for a cost estimate [ BAPI_COSTESTIMATE_GETDETAIL ]
  • GetExplosion : Determine BOM Explosion for a Cost Estimate [ BAPI_COSTESTIMATE_GETEXPLOSION ]
  • GetItemization : Determine itemization for a cost estimate [ BAPI_COSTESTIMATE_ITEMIZATION ]
  • GetList : Determine cost estimate lists [ BAPI_COSTESTIMATE_GETLIST ]

11-Dec-2005


GetDetail

GetDetail


You can use BAPI_COSTESTIMATE_GETDETAIL to access cost estimates for materials in the R/3 System.

You receive the following data from the costing header:

  • Currency
  • Material
  • Plant
  • Valid from

  • Valid to
  • Valuation date
  • Quantity structure date
  • Costing status
  • Costing lot size
  • Costing variant
  • Material with BOM (indicator 01)
  • Material without BOM (indicator 02)
  • You receive the following data based on the cost component split


  • Fixed costs
  • Total costs
  • You receive the following data based on the cost component split and a certain cost component:

  • Fixed costs
  • Total costs
  • Notes

    Requirements for this method:

  • Display authorization for Product Costing (K_KEKO)

  • Results of the method BAPI_COSTESTIMATE_GETLIST, with which the cost estimates were selected.
  • Messages are returned in the parameter return. The parameterdocumentation shows the return codes and their meanings.

    Further Information


    You can find further information in the CO Product Cost Planning
    documentation.


    11-Dec-2005


    GetExplosion

    GetExplosion


    With the method BAPI_COSTESTIMATE_GETEXPLOSION, you can display the data of the costed multilevel BOM for a cost estimate.

    Notes

  • Requirements to display the costed multilevel BOM are:
  • the results of method BAPI_COSTESTIMATE_GETLIST with which the cost estimates were selected

  • authorization to display the product cost estimate (K_KEKO)
  • Messages are returned in the parameter return. The parameterdocumentation shows the return codes and their meanings.

    Further Information

    Further information on costing can be found in the documentation for Product Cost Controlling.


    11-Dec-2005


    GetItemization

    GetItemization


    The method BAPI_COSTESTIMATE_ITEMIZATION enables you to read the data of an itemization for a cost estimate.

    Notes

    Prerequisites to display an itemization for a cost estimate are:

  • Selecting a key with the method BAPI_COSTESTIMATE_GETLIST.

  • Display authorization for the product cost estimate (K_KEKO)
  • Messages are returned in the parameter return. The parameterdocumentation shows the return codes and their meanings.

    Further Information

    Further information on costing can be found in the documentation for Product Cost Controlling.


    11-Dec-2005


    GetList

    GetList


    The method BAPI_COSTESTIMATE_GETLIST enables you to access cost estimates for materials in the R/3 System.

    The selection provides you with the following data:

  • Reference object
  • Cost estimate number
  • Costing type

  • Costing date
  • Costing version
  • Valuation variant
  • Manual cost estimate
  • Cost estimate valid to
  • Costing status
  • Material with BOM (indicator 01)
  • Material without BOM (indicator 02)
  • Notes

    For selection, you require display authorization for Product Costing (K_KEKO).


    If you don't enter any selection criteria, the system will select all cost estimates.

    You can obtain further information about these cost estimates by selecting the following methods:

    o BAPI_COSTESTIMATE_GETDETAIL

    o BAPI_COSTESTIMATE_ITEMIZATIONL


    o BAPI_COSTESTIMATE_GETEXPLOSION

    If the settings in Customizing for the organizational units areincorrect, the affected cost estimates will not be selected. Cost estimates that are not affected by the error are selected.

    Messages are returned in the parameter return. The parameter
    documentation shows the return codes and their meanings.

    Further Information

    You can obtain further information about costing in the CO Product
    Cost Planning documentation.


    11-Dec-2005