Fonction SAP BAPI_COSTESTIMATE_CREATE_SPLIT - Create Cost Estimate with Cost Component Split

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
COSTING_HEADER BAPICOSTING_HEADER u 75 Cost Estimate Header for Creating a Cost Estimate
TESTRUN BAPIMARKING-TESTRUN C 1 SPACE Execute Test Run

Paramètre Reférence Type Long. Description
COSTESTIM_ID BAPICOSTRE u 29 Object ID of Cost Estimate
RETURN BAPIRET2 u 548 Return Parameters

Paramètre Reférence Long. Facultatif Description
COST_COMPONENTS BAPICOST_COMPONENTS 51 Value Fields for Individual Cost Components
COST_COMPONENTS_AS BAPICOST_COMPONENTS 51 X Value Fields for Individual Cost Components in Auxiliary Cost Component Split
DIR_PART_BUSINAREA_CC BAPIDIR_PART_BUSINAREA_CC 31 X Value Fields for Individual Cost Components Direct Partner Business Area
DIR_PART_BUSINAREA_CC_AS BAPIDIR_PART_BUSINAREA_CC 31 X Value Fields for Cost Comps in Aux Cost Comp Split Direct Partner Business Area
DIR_PART_COMPCODE_CC BAPIDIR_PART_COMPCODE_CC 31 X Value Fields for Individual Cost Components Direct Partner Company Code
DIR_PART_COMPCODE_CC_AS BAPIDIR_PART_COMPCODE_CC 31 X Value Fields for Cost Comps in Aux Cost Comp Split Direct Partner Company Code
DIR_PART_PLANT_CC BAPIDIR_PART_PLANT_CC 31 X Value Fields for Individual Cost Components Direct Partner Plant
DIR_PART_PLANT_CC_AS BAPIDIR_PART_PLANT_CC 31 X Value Fields for Cost Components in Aux Cost Comp Split Direct Partner Plant
DIR_PART_PRFTCTR_CC BAPIDIR_PART_PRFTCTR_CC 41 X Value Fields for Individual Cost Components Direct Partner Profit Center
DIR_PART_PRFTCTR_CC_AS BAPIDIR_PART_PRFTCTR_CC 41 X Value Fields for Cost Comps in Aux Cost Comp Split Direct Partner Profit Center
PARTNER_COST_COMPONENTS BAPIPARTNER_COST_COMPONENTS 53 X Value Fields for Individual Cost Components - Partner Cost Component Split
PARTNER_COST_COMPONENTS_AS BAPIPARTNER_COST_COMPONENTS 53 X Value Fields for Individual Cost Components in Aux Cost Comp Split for Partner

Functionality
With the method BAPI_COSTESTIMATE_CREATE_SPLIT you can importcost estimates from non-SAP systems into the system or create them inthe system.
In addition to the header information, it supplies data on the costcomponent split, partner cost component split, direct partner costcomponent split, and auxiliary cost component split.
A currency can be transferred into the CURRENCY field. Thetransferred cost component split information is converted accordinglyand saved in the valuation view specified by the costing variant.

Notes
A check is made against authorization object K_KEKO, in which thefollowing parameters must be set:

  • Activity 16 Create/Change

  • Costing variant

  • Company code

  • The sum of the partner cost component splits must equal the main split.
    The partner version assigned to the costing variant defines the partnerterms for partner and direct partner.
    All cost components to be transferred refer to the cost componentstructure assigned to the costing variant. The customizing settings forthe cost components are taken into account. You can see the settings intransaction OKTZ Define Cost Component Structure.
    You must always transfer the main cost component split.
    The partner version defines the tables to be transferred. For example,if the company code and profit center are defined aspartner and direct partner, the table PARNTER_COST_COMPONENTS mustcontain values for the characteristics company code andprofit center. The characteristic controlling area mustalways be transferred.
    For these cost estimates, the field BAPI_CREATED in database table KEKOis set internally in the cost estimate header.
    The main cost component split and the auxiliary split should betreated the same; that is, all information for the main cost componentsplit also applies to the auxiliary split.
    Note: Tables for the auxiliary cost component split end with thesuffix "AS".

    Further information
    Test program: See ABAP program SAPBAPITESTCREATESPLIT

    Description
    The following parameters are returned:

    • Message type: S Success, E Error, W Warning, I Info, A Abort

    • Messages, message class

    • Messages, message number

    • Message text

    • Messages, message variable

    • Parameter name

    • Row in parameter

    • Field in parameter

    • System (logical system) where the message originated
    • Description
      Characterizes the cost estimate header.
      For more information, see Execute Test Run.

      Description
      Cost component split information for the individual cost components.

      Description
      Cost component split information for the individual cost components inthe auxiliary split.

      Description
      Cost component split information on the direct partner businessarea.

      Description
      Cost component split information on the direct partner businessarea in the auxiliary split.

      Description
      Cost component split information on the direct partner companycode.

      Description
      Cost component split information on the direct partner company code
      in the auxiliary split.

      Description
      Cost component split information on the direct partner plant.

      Description
      Cost component split information on the direct partner plant inthe auxiliary split.

      Description
      Cost component split information on the direct partner profitcenter.

      Description
      Cost component split information on the direct partner profitcenter in the auxiliary split.

      Description
      Cost component split information on the individual partners.

      Description
      Cost component split information on the individual partners in theauxiliary split.