Fonction SAP BAPI_COSTESTIMATE_UPDATE_PRICE - Update of Prices in Material Master

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CONSIDER_MATERIAL_COMPONENTS BAPIPRICEUPDATE-CONSIDER_MATERIAL_COMPONENTS C 1 SPACE X Update Planned Prices for Material Components Also
COSTINGRUN BAPIPRICEUPDATE-COSTINGRUN C 8 X Name of Costing Run
COSTINGRUN_DATE BAPIPRICEUPDATE-COSTINGRUN_DATE D 8 X Costing Run Date
CSTG_VRNT BAPIPRICEUPDATE-CSTG_VRNT C 4 Fiscal Year of Future Standard Cost Estimate
PLANNED_PRICE_ADDITIONS BAPIPLANNEDPRICEADDITIONS u 10 X Update of Other Prices
PRICE_FIELD BAPIPRICEUPDATE-PRICE_FIELD C 2 Checkbox
TESTRUN BAPIPRICEUPDATE-TESTRUN C 1 SPACE X Execute Test Run
VALID_FROM BAPIPRICEUPDATE-VALID_FROM D 8 Period of Future Standard Cost Estimate
VERSION BAPIPRICEUPDATE-VERSION N 2 Valuation Views

Paramètre Reférence Long. Facultatif Description
IN_COMP_CODE BAPICOMPANYCODE 11 X Ranges Table for Organizational Unit Company Code
IN_MATERIAL BAPIMATERIAL 39 X Ranges Table for Material
IN_PLANT BAPIPLANT 11 X Ranges Table for Organizational Unit Plant
OUT_LIST BAPIPRICEUPDATEOUTLIST 178 X Structure for Output List Marking
RETURN BAPIRET2 548 X Return Parameters

Functionality
You use the method BAPI_COSTESTIMATE_UPDATE_PRICE to update theresults of multiple cost estimates to the material master based onselection criteria.
Only one of the material master prices is updated:

  • Planned price 1 - 3

  • Commercial price 1 - 3

  • Tax price 1 - 3

  • You can use the following parameters as selection criteria:
    • IN_MATERIALS (material)

    • IN_COMP_CODE (company code)

    • IN_PLANTS (plant)

    • COSTINGRUN (costing run)

    • COSTINGRUN_DATE (costing run date)

    • All selection criteria are optional. If you don't specify any selectioncriteria, all standard cost estimates with status KA are selected.

      Required Parameters

      • CSTG_VRNT (costing variant)

      • VALID_FROM (costing date valid from)

      • VERSION (costing version)

      • PRICE_FIELD (price field)

      • If the price field is a planned price, the fieldPLANNED_PRICE_ADDITIONS must be filled as well.
        If the indicator CONSIDER_MATERIAL_COMPONENTS is not selected,(normal case), the raw materials are not updated.
        The costing variant/costing type controls whether the following pricesare updated:
        • Commercial price

        • Tax price

        • Other price except standard price

        • This method locks selected materials and associated cost estimates.

          Further information
          Test program SAPBAPITESTUPDATEPRICES provides an example scenario.
          The functionality of these interfaces corresponds to the functionalityOther Prices of CK24 Price Update.
          More information is available in transaction CK24 under Help ->Application Help.
          For more information, see Update Planned Prices forMaterial Components Also.

          Description
          Selection condition for the costing run. Entry is optional.
          Cost estimates selected accordingly can be further restricted throughadditional selection criteria.

          Description
          Selection condition for the costing run date. Entry is optional.
          Cost estimates selected accordingly can be further restricted throughadditional selection criteria.

          Description
          Costing variant for the cost estimates to be updated.

          Description
          If planned price 1, 2, or 3 was selected in the parameter PRICE_FIELD,structure PLANNED_PRICE_ADDITIONS must be filled.

          Description
          Specifies which price field in the materialmaster is updated.
          For more information, see Execute Test Run.

          Description
          Cost estimates with this date are included in the price update.

          Description
          Costing version of the cost estimates to be updated.

          Description
          Selection criteria for the company code (ABAP ranges table).

          Description
          Selection criteria for the material (ABAP ranges table).

          Description
          Selection criteria for the plant (ABAP ranges table).

          Description
          Output list of cost estimates for the update of other prices.

          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