In the SAP system, price conditions are represented by condition types. Price conditions can be, for
example, prices, surcharges, or discounts, and are stored in the system in condition records.
Assigning a search strategy to a condition type in pricing configuration defines which key fields (for
example, customer and material, or customer only) the system uses when searching for a valid
condition record at the time of business document creation (for example, sales order or purchase
order).
When creating a Standard Order the Pricing Elements section under the Conditions tab is pre-populated from the Quotation.
If the Standard Order is created without a reference but relevant Pricing Conditions are available in the system, then also the Pricing Elements section will have the prepopulated details.
If the Pricing Condition for Price is not available then click the Update button and select option C (Copy manual pricing elements and redetermine the others) from the pop-up screen.
If you need to add new conditions, click the Matchcode icon after the last row in the CnTy field to select additional conditions.
Case example with missing price
In the event that the order does not have any price, a blocking message will appear that will prevent the order from being saved.
The blocking message that will be displayed is as follows:
” Base price missing for items 0000*. Set price values”
Restricting the use of a condition type when creating sales orders can be implemented by introducing a control into an existing userexit:
” USEREXIT_SAVE_DOCUMENT_PREPARE “
The user exit “USEREXIT_SAVE_DOCUMENT_PREPARE” is used in VA01 / VA02 transactions. Is very useful to check some input field, put any value in the field or show a popup to the users to confirm the document. You can validate any Z table here before you save the sales order.
Check 1 : Prevent the order from being saved and generate a blocking pop up if at least one line of the order does not have the automatic price condition
Check 2: Prevent the determination of the condition type when certain conditions occur: for example commercial organization, type of material.
This requirement can be accomplished by creating a prerequisite procedure created by copy from the standard LV61A002 procedure to be associated with price conditions within price schemes.