on 08-18-2014 4:06 PM
Hello All
I have a requirement where we need to add order reason as a warning message whenever users makes following changes in the sales Order using VA02:
1. Change the Order Quantity
2. Change the delivery date for an item or items
3. Delete a particular line item
4. Add a particular line item
I know it can be handled via VA02 user exit. I have listed following user exits will be helpful:
USEREXIT_CHANGE_SALES_ORDER
USEREXIT_CHECK_VBAK
USEREXIT_CHECK_VBAP
USEREXIT_CHECK_VBEP
USEREXIT_CHECK_XVBAP_FOR_DELET
Can you please let me know out of these which one are apt for my requirement and also if let say user makes a change once in the sales order and maintains the order reason before saving it, but how will it be taken care for changes done by the user on some other time. Basically how multiple changes will be controlled?
Looking forward to your response.
Cheers
Ravi
If you keep this order reason in imcompletion log, it will work.
But here the issue is sytem has to validate the order reason field if any of the above mentioned fields has been changed(as suggested, system will give warning in standard except for 1 & 4 options)
Here you can take the report from all the sales orders and differentiate the orders with the above
4-changes with order reason changes into a Z-table with your Abaper.(RVSCD100 program)
But here instead of going for enhancement you can very well control this with user discipline.
system is just an instrument who can help us but cannot think always the way we presume.
Suppose if a user has changed the order qty then he has to keep X as order reason--due to his ignorance he kept Y as order reason.Now system feels that data has been maintained no error in In-Completion log.
Still if you are so keen then you can very well maintain Z-Table with the expected Order reason and you can write a code in USEREXIT_SALESORDER_SAVE(Sorry i am not with SAP now) with your Abaper.
Hope this works and let us know if any.
Regards
Phanikumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Phanikumar for your suggestion. I will work with my ABAP person to develop a solution.
Regards
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your requirement is not clear. Why do you want the Order Reason to be updated when some changes happened in sale order? For information, whatever you listed above, in standard, system will give a warning message and have you tested this before posting. Also let me know how system should behave by updating an Order Reason when one line item is deleted and one line item is added.
G. Lakshmipathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
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.