Hi lokesh,
Consider that if your screen has mandatory fields and if you press enter or any other key the error message keeps on coming . So to avoid this you can code your exit code in special modules .
In the opening screen of our custom screen in PAI , create a module like
Module exit at exit-command.
after that double click on the exit , and write your normal coding for exit like Leave to screen 0 or etc., )
you can also alter the code as you wish .
Regards,
Sivaganesh