Fonction SAP BAPI_COSTESTIMATE_GETDETAIL - Determine Detailed Information for a Cost Estimate

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
COSTINGDATE BAPICOSTRE-CSTG_DATE D 8 Costing Date
COSTINGNUMBER BAPICOSTRE-CSTG_NUM N 12 Cost Estimate Number
COSTINGTYPE BAPICOSTRE-CSTG_TYPE C 2 Costing Type
COSTINGVERSION BAPICOSTRE-VERSION N 2 Costing Version
COST_COMPONENT_GROUP BAPICOSTES-CCOMPGROUP C 2 X Cost Component Group
COST_COMPONENT_VIEW BAPICOSTES-VIEW N 2 Cost Component View
CURRENCY_ORG_UNIT BAPICOSTES-CURRENCY N 2 X Currency (No Entry -> Company Code Currency)
ENTEREDMANUALLY BAPICOSTRE-ENTER_MAN C 1 Entered manually
REFERENCEOBJECT BAPICOSTRE-REF_OBJECT C 1 Reference Object
VALUATIONVARIANT BAPICOSTRE-VLTN_VRNT C 3 Valuation Variant

Paramètre Reférence Type Long. Description
COST_ESTIMATE_HEADER BAPIHEADER u 255 Cost Estimate Header
DIRECT_PARTNER BAPIDIRECT_PARTNER u 4 Partner Version - Definition of Organizational Units
PARTNER BAPIPARTNER u 4 Partner Version - Definition of Organizational Units
RETURN BAPIRETURN u 452 Confirmations

Paramètre Reférence Long. Facultatif Description
COST_COMPONENTS BAPISPLITT 95 X Cost Component Split
COST_COMPONENTS_AS BAPISPLITT 95 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 Components Aux Cost Comp Split Dir 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 Components Aux Cost Comp Split Dir 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 Auxiliary 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 Components Aux Cost Comp Split Direct Partner Profit Ctr
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 - Partner Cost Component Split

Functionality
With the method BAPI_COSTESTIMATE_GETDETAIL you can access costestimates for materials in the SAP system.
It supplies the following data from the cost estimate 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)

  • The following data is supplied based on the cost component split
    • Fixed costs

    • Total costs

    • The following data is supplied based on the cost component split and aparticular cost component:
      • Fixed costs

      • Total costs

      • The cost component split information is differentiated by partner splitsand direct partner splits. If auxiliary cost component splits exist,they are output as a cost component split, partner cost component split,and direct partner cost component split.

        Notes
        Prerequisites for this method:

        • Display authorization for product costing (K_KEKO)

        • Results of the method BAPI_COSTESTIMATE_GETLIST with which cost
        • estimates are selected
          INCLUDE BAPI_RET

          Further information
          For more information, see the SAP Library under CO ProductCost Planning.
          Test program SAPBAPICOPC provides an example scenario.

          Description
          Contains general data on the cost estimate.

          Description
          The direct partner is read from the partner version. Correspondingoutput tables can be interpreted.

          Description
          The partner terms are read directly from the partner version.Corresponding characteristics from the output tables can beinterpreted.

          Description
          Possible system messages:

          • CK 804 Cost estimate was successfully read

          • CK 805 Cost component view &1 does not exist

          • CK 806 Cost component group &1 does not exist

          • CK 807 The cost estimate does not exist

          • CK 808 The organizational units for plant &1 are
          • inconsistent
            • CK 809 No authorization for displaying this cost
            • estimate
              • CK 810 Cost component layout could not be determined
              • Description
                Date with which a cost estimate is saved.

                Description
                See documentation on data element CK_KALNR1.

                Description
                See documentation on data element CK_KALKA.

                Description
                See documentation on data element CK_TVERS.

                Description
                See documentation on data element CK_EL_GRUP.

                Description
                See documentation on data element CK_SICHT.

                Description
                See documentation for data element CK_CURRENY.

                Description
                See documentation on data element CK_KKZMA.

                Description
                Reference object of the cost estimate.

                Description
                See documentation on data element CK_BWVAR.

                Description
                See documentation on data element CK_ELEMENT.

                Description
                Cost component split information on 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 company code
                .

                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.