on 07-16-2007 9:20 AM
Dear All,
I am closing the sales order by giving the reason for rejection on item level status reason for rejection, after saving the SO will be closed. But if u again go to vao2 and select the reason for rejection as blank the so will be open. Now I want that once you give the reason for rejection the system should close the SO and next time not allow to anyone to modify in vao2. I would like to know how to work out?
I need help.
nikhil d
9325064414
Hi,
You can manage this with help of user exit SAVE_DOCUMENT_PREPARE in MV45AFZZ..
In this exit you can write the code as to check field VBAP-ABGRU (Reason for rejection).
This check should only work in case of VA02 only.So you will have to keep this in mind.
If say user has set the reason for rejection once saved the document.After word if he comes back and tries to clear this reason then you check the field VBAP-ABGRU.Initially this field will be set in VBAP table.
In the internal table if you find this as black then you can throw the error.
Reward points if useful
Regards,
Amrish Purohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try to make it as a z- transaction code like zva02 . it will work for u.
cheeers
kira
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
10 | |
10 | |
6 | |
3 | |
3 | |
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.