on 06-21-2012 6:48 PM
Hi Experts,
I want to set a error message at sales order level if say material A having base unit of measure NR(piece).
When user will to create a sales order for say any partial quantity say 0.5, 1.5 ,2.5, etc...
The user should get error message that "Please take the round quantity for material A " & should restrict to create Sales Order.
I have tried to do by maintaing the Deliver unit =1 at sales org .1 tab of material master.
The system gives normal message but if ignored it allows to create a sales order.
But our requirement is to restrict to create a sales order with partial quantity.
Your reply is highly expected & appreciated.
Regards
HiI Rock,
Was my answer helpful to you?
Umesh Karane
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Rock,
YOu should take a help of a ABAP and write a validation in the user-exit that gets executed while saving the Order.
In the validation ,you check the Order qty from the table ,schedule line table - VBEP and the order qty field -WMENG.,
If it's in WHOLE numbers without decimals ,then you can proceed to SAVE,else give a ERROR message and do not SAVE the Order.
Let me know if you still have a query or is this useful to you.
Thanks and Regards,
Umesh Karane.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rock,
Why don't you try to change the Warning message you mentioned to Error?
Check the following:
Hope it's useful.
Regards,
Ornella
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try with any of the following sale order exits:-
G. Lakshmipathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"The system gives normal message but if ignored it allows to create a sales order."
What is the message number that you are seeing here?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Go to Se38 enter program mv45afzz.
Scroll down to where you see USEREXIT_SAVE_DOCUMENT_PREPARE.
If you can write codes do so here or take help of your ABAPer and they can write code to enter only whole numbers here and only then will you be able to save the document or you will get an error message.
hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
you can use the userexit USEREXIT_SAVE_DOCUMENT_PREPARE of programm MV45AFZZ to check specific data before saving the order.
Benni
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
7 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.