Fonction SAP BAPI_COSTESTIMATE_GETLIST - Determine Cost Estimate Lists

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
COST_ESTIMATE BAPICOSTES-COSESTIMAT N 2 '01' X Costing
MAXROWS BAPIMAXROW I 4 999999999 X Maximum Number of Lines of Hits

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN u 452 Confirmations

Paramètre Reférence Long. Facultatif Description
COSTINGRUN BAPICOSTINGRUN 19 X Costing Run
COSTINGRUN_DATE BAPICOSTINGRUN_DATE 19 X Costing Run Date
COSTING_STATUS BAPICSTGST 7 X Costing Status
COSTING_VARIANT BAPICSTGVA 11 X Costing Variant
COSTING_VERSION BAPICOSTINGVERSION 7 X Costing Version
COST_ESTIMATE_LIST BAPICOLIST 160 Cost Estimate List
MATERIAL BAPIMATERI 39 X Material
PLANT BAPIPLANT 11 X Plant
VALIDITY_FROM BAPIVALIDI 19 X Valid from

Functionality
The method BAPI_COSTESTIMATE_GETLIST enables you to access costestimates for materials in the system.
You receive 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)

  • Costing run

  • Costing run date
  • Notes
    You must have display authorization for product costing (
    K_KEKO) to be able to select.
    If you do not enter any selection criteria, all cost estimates areselected.
    You can obtain further information on these cost estimates, such asinformation on cost component splits, itemizations, or costed multilevelBOMs, by selecting the following methods:

    • BAPI_COSTESTIMATE_GETDETAIL

    • BAPI_COSTESTIMATE_ITEMIZATIONL

    • BAPI_COSTESTIMATE_GETEXPLOSION

    • If there are improper settings in Customizing for the organizationalunits, the affected cost estimates will not be selected. Cost estimatesthat are not affected by the error are selected.
      INCLUDE BAPI_RET

      Further information
      For more information on costing, refer to the SAP Library under
      CO - Product Cost Planning.
      An example scenario is provided in the following test programs:

      • SAPBAPITESTALLOWMARK1

      • SAPBAPITESTDELETING2

      • SAPBAPICOPC
      • Description
        INCLUDE BAPI_TABLE

        Value range

        • CK 800 No error occurred when selecting cost estimates

        • CK 801 No cost estimate could be selected

        • CK 802 No cost estimate found with these selection
        • criteria
          • CK 803 No authorization for displaying cost estimates

          • CK 811 Cost estimate for material &1 in plant &2 could
          • not be selected
            • CK 812 No cost estimate could be selected
            • Description
              See documentation on data element CK_COSESTI.

              Default
              If the parameter contains no values, all cost estimates with quantitystructure will be selected (default value 01).

              Description
              Selection criteria in the costing runs.

              Description
              Selection criteria for the data in the costing runs.

              Description
              See documentation on data element CK_FEH_STA.

              Default
              If the parameter contains no values, all cost estimates will beselected.

              Description
              See documentation on data element CK_KLVAR.

              Default
              If the parameter contains no values, all cost estimates will beselected.

              Description
              See documentation for data element CK_TVERS

              Description
              List of cost estimates that were selected with the methodBAPI_COSTESTIMATE_GETLIST.

              Description
              See documentation on data element MATNR.

              Default
              If the parameter contains no values, all cost estimates will beselected.

              Description
              See documentation on data element WERKS.

              Default
              If the parameter contains no values, all cost estimates will beselected.

              Description
              Date from which a cost estimate is valid.

              Default
              If the parameter contains no values, all cost estimates will beselected.