‎2010 Dec 15 12:26 AM
Hi everybody, I did work a program with Tx SE38, in the program I call a screen.
START-OF-SELECTION.
PERFORM completa_lista.
CALL SCREEN 0100.
END-OF-SELECTION.
The program run very well, but. When the program is in screen 0100 and push the button BACK or button EXIT. Don't return to program that called to screen 0100, always return to the program SAPMSSY0 and then push again the button BACK or EXIT to return the program that called to screen 0100.
This is my code in the PAI:
MODULE user_command_0100 INPUT.
CASE sy-ucomm.
WHEN 'EXIT' OR 'BACK'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE.
I try with SET SCREEN 0. or LEAVE TO SCREEN 0. But always return to the program SAPMSSY0
Is there a way to skip the program SAPMSSY0?
‎2010 Dec 15 4:26 AM
Hi,
For push button BACK , EXIT try to give the functional type as 'E' in the menu painter.
Regards,
Srini.
‎2010 Dec 15 4:40 AM
Hi,
check it out once the 0100 screen is in activate state or not and check FCT code for BACK/exit in that particular screen.
otherwise check in 0100 screen attribures . IN next screen place empty option.
use LEAVE TO PROGRAM
I hope ur doubt will clear.
Edited by: praveenreddys on Dec 15, 2010 10:11 AM
‎2010 Dec 15 4:44 AM
‎2010 Dec 15 4:59 AM
Hi ,
LEAVE TO SCREEN 0 will work in your case.
it comes back to the point from where it triggered screen 0100.
If you want to leave the program and come back to the easy access screen then you have to use LEAVE PROGRAM.
hope this helps!!
Regards,
Soumya Ranjan
Edited by: Soumya Ranjan on Dec 15, 2010 5:59 AM
‎2010 Dec 15 5:35 AM
HI,
Have you debug the program ? If not then start the debug by /h before pressing the BACK button then check where does the control goes. Then revert back .
Regards,
Madhukar Shetty
‎2020 Jan 08 6:41 PM
I ran into similar (same) issue, the cause in my case was a SKIP statement in SELECTION-SCREEN. The BACK button on ALV is taking to a blank screen (whose Program(GUI) = SAPMSSY0 & GUI status = STLI).
SKIP statement on selection-screen causes a NEW-LINE written(WRITE statement) in program SAPMSSY0, put a break point at FORM new-line & debug BACK button to get a feel of it.
Remove SKIP from selection screen and try.