on 05-19-2014 10:48 AM
Dear Experts,
I need to apply a validation at the time of sales order creation, if the user selects the shipping type that does not have any condition records maintained in VK13 then I need to display error message and shall not allow sales order creation.
Thanks
Hi Harsh,
This is not standard
probably you may have to look to put a piece of code
check standard user exit MV45AFZZ
thanks
santosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I believe you maintained Shipping type as one condition in determining the condition records.
Have you tried by using sub-total field(KOMP-KZWI1 Etc) and include this KZWI in your Incompletion procedure--there by not allowing the user to save sales order without the condition record for this requirement.
Hope this helps.
Phanikumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If the solution of Phanikumar is not working, you an always add the check in userexit_save_document_prepare (MV45AFZZ). You have to check if the subtotal of the new lines is empty or not.
Ex.:
LOOP AT xvbap.
CHECK xvbap-kzwi1 = '0.00'.
...
Naturally you must assign the freight condition to kzwi1 (or 2, 3, 4, 5, 6) in calculation scheme.
Gr.
J.
Hi Jimmy,
Actually I have written code for in userexit_pricing_prepare_tkomp but the problem is the code is written for shipping type. But since its gets executed when i enter material and throws a error i cant do anything further.
My requirement is that, when user create a sales order, system should check the freight master maintained in VK13 and condition type ZFRD shall have value as maintained in VK13.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.