cancel
Showing results for 
Search instead for 
Did you mean: 

closing of sales order

0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

try to make it as a z- transaction code like zva02 . it will work for u.

cheeers

kira