I have used exit "Exit_sapfv45k_001" .
The requirement is when the user clicks on the icon 'Check item availabilty",he
should not be taken to the availability control screen.
I trigger an error msg if the user is unauthorised for which a table is being maintained.
However,as the error msg is triggered the whole screen freezes and when the user double-clicks on any other icon,everything normalises,"Check Item availability"icon still being disabled.
howver when the screen freezes and if the user presses the Enter twice the availability screen appears.
How can this be resolved .Also when the user clicks on 'Schedule lines icon',In that screen also the same icon is available.
How could the requirement be met.