2011 Oct 24 10:06 AM
Hi All,
In my module pool program in PAI modules I keep one information message after getting the information message the control should not go further program lines, it should stop there and selection screen should appear with input values the user will correct the input value and run the program.
How can I forcefully exit the another modules(program lines).
Thanks and regards,
Krish.......
2011 Oct 24 10:16 AM
Hi ,
Use set screen 0 and leave screen statement to come out .
Hi All,
In my module pool program in PAI modules I keep one information message after getting the information message the control should not go further program lines, it should stop there and selection screen should appear with input values the user will correct the input value and run the program.
How can I forcefully exit the another modules(program lines).
Thanks and regards,
Krish.......
2011 Oct 24 10:16 AM
Hi ,
Use set screen 0 and leave screen statement to come out .
2011 Oct 24 10:31 AM
Hi Krish,
If i understood the problem correctly, you need to use EXIT statement.
IF flag EQ 'X'.
MESSAGE i087(ztest) DISPLAY LIKE 'E'.
EXIT.
ENDIF.
Depending on screen sequence use it.
If you want to skip some screens and come back to particular screen after some user action ;
you can use SET SCREEN 0 and then LEAVE TO SCREEN 0.
Please read F1 help for it.
I hope this will help you.
Regards,
Rahul
2011 Oct 24 10:53 AM
hi Krish,
Try with
1. Call Screen <SELECTION SCREEN No.> OR
2. Leave to SCREEN <SELECTION SCREEN No.> OR
at the point wher you like to stop the process and call the Selection Screen.
Regards,
Anirban
2011 Oct 24 11:19 AM
Hi,
Please use the below code
code
Process After Inpt.
Module exit AT EXIT-COMMAND.
In module pool program.
Module exit.
Case Okcode.
When 'Exit'.
leave to screen 0.
Thanks and Regards
chitra
2011 Oct 24 12:36 PM
Hi
After The Information Message
like :
If Sy-subrc ne 0 .
Message'XYZ' type 'I'.
Call Selection-Screen 1000.
Endif.