cancel
Showing results for 
Search instead for 
Did you mean: 

Exclude a mandatory pricing condition with entering a manual record

Former Member
0 Kudos

I have prepared a pricing procedure and there is PR00 as the price condition. I have customized PR00 as "required-mandatory" in the pricing procedure and it is also "not possible to process manually". I have another condition which is ZPRM. This is customised as manual in the pricing procedure by me and "Manual entry has priority" for ZPRM.

I want the system to warn me if there is no record about PR00 and keep it as mandatory and "not possible to process manually" but it should be excluded if a new price record is entered in the item conditions with ZPRM.

Can anybody help me to solve this problem? Should they have the same value in the step column at the pricing procedure? Also should I use the counter column and how can I make use of the requirement column?

Thanks in advance for the answers.

Accepted Solutions (1)

Accepted Solutions (1)

Manoj_Mahajan78
Active Contributor
0 Kudos

Hikmet,

No...use USEREXIT_PRICING_PREPARE_TKOMP

take help from ABAPer...

REWARD IF U FINDS THIS AS USEFUL....

Regds

MM

Answers (2)

Answers (2)

Former Member
0 Kudos

Here is a suggestion that will help you achieve the same functionality you want using sub-total and incompletion procedure:

1) Mark your PR00 condition as non mandatory

2) Define a new sub-total after PR00 and ZPRM. Since both these conditions are price conditions only one of them will be active so if PR00 exists then sub-total will be equal to PR00 and if ZPRM exists then it will make PR00 inactive and sub-total will be equal to ZPRM. Now instead of controlling whether PR00 exists or not control whether this sub-total has any value or not. To do this assign any value (from 1 thru 6) to sum-to field against the sub-total in your pricing proc.

3) Assign VBAP-KZWI1 (thru KZWI6 - depending what value you assigned to the sub-total) to your item incompletion procedure. Mark this field to generate error message in case it is missing.

While creating sales order for the first time when PR00 and ZPRM is missing system will give error message order incomplete -subtotal is missing. If you maintain ZPRM the message should disappear.

Regards

Former Member
0 Kudos

Well when you have maintained PR00 as not possible to process manually then if you have not maintained condition records for this its obvious that even if you try to process this manually the system wont take it ,

Which in turn implies that you need to use the other condition ZPRM and system will warn when you try you enter manually when you have not configured the same for it ....

if you want to Hard code and do it then you can use an userexit to achive the same FORM USEREXIT_PRICING_PREPARE_TKOMP/ TKOMK

Hope this helps

Cheers