in module pool prg...
I have designed the layout with three mandatory fields.
But at the first run of the screen,when i click EXIT button...the program is not exiting and its reminding me to enter the values in the required fields...
How to solve this?
U need to write the AT EXIT-COMMAND command.
MODULE EXIT_XXXX AT EXIT-COMMAND.
Now u have write the code as.
IF SY-UCOMM = 'EXIT'.
LEAVE TO SCREEN 0.
Now go to EXIT button on the toolbar.U have to make As type E.