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
|