cancel
Showing results for 
Search instead for 
Did you mean: 

How to set a Pricing Condition type to inactive during Sales order creation/Change

Gahan_Narayan
Explorer
0 Kudos
94

Hello experts,

We are trying to set a custom condition type to Inactive/active status in Pricing during Sales order creation / change based on few condition checks in BADI's : PRCG_DOCUMENT_ITEM_REQUIREMENT and PRICING_DOCUMENT_REQUIREMENT.

could you please suggest if its feasible using the Above BADI's or if there is any alternative solution.

Thank you In Advance.

View Entire Topic
DequanXu
Product and Topic Expert
Product and Topic Expert

Hello,

When it comes to sales pricing, you can influence the processing logic using BADIs like `PRCG_DOCUMENT_ITEM_REQUIREMENT` and `PRICING_DOCUMENT_REQUIREMENT`. However, deactivating or activating condition types is not typically managed directly through these BADIs since their primary role is to determine the processing of pricing conditions based on the criteria evaluated within them.

You may try the following:

1. **Using BADI `PRCG_DOCUMENT_ITEM_REQUIREMENT`:** This BADI allows you to specify conditions that determine whether a particular condition record is considered during pricing. You could implement business logic here to skip certain conditions by ensuring they don't meet the requirement conditions set in this BADI.

2. **Using BADI `PRICING_DOCUMENT_REQUIREMENT`:** This BADI provides more granular control at the pricing document level, allowing you to influence which pricing procedures or conditions are applicable based on your custom logic. Again, this can be used to determine eligibility criteria which indirectly results in a condition type being inactive if the criteria are not met.

Best regards,

Dequan Xu