Skip to Content
0
Former Member
Dec 18, 2015 at 11:06 AM

User exit for MB22 issue

609 Views

Hi,

I have created reservation manually using Tcode MB21. Then issued material by Tocde MB1A. After issuing material against reservation I tried to change reservation quantity by MB22 which I am able to change.

My requirement is that it shouldnt allow to change the reservation quantity in once material is issued. How to do it using user exit MBCF0007?

I tried in exit MBCF0007, check if "Final Issue for Reservation" indicator is set ,then i am raising an error .

loop at TI_RESB_OLD.

if TI_RESB_OLD-KZEAR = 'X'. ""Final Issue for Reservation

Message 'Not allowed to change Qty' type 'E'.

stop.

endif.

endloop.

But this one still allowing to change the quantity and save it in MB22. My requirement is ..if the user try to change the quantity ,it shouldnt allow to change the quantity, should the cursor blink in quantity field and should throw error in status bar "'Not allowed to change Qty', also should not allow to save it. How to achieve it?

Thanks,

Silviya