Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with call screen

Former Member
0 Likes
1,285

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?

6 REPLIES 6
Read only

Former Member
0 Likes
980

Hi,

For push button BACK , EXIT try to give the functional type as 'E' in the menu painter.

Regards,

Srini.

Read only

praveen_reddy2
Active Participant
0 Likes
980

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

Read only

Former Member
0 Likes
980

HI

Try

SET SCREEN 0.
      LEAVE SCREEN.

nafran

Read only

Former Member
0 Likes
980

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

Read only

Former Member
0 Likes
980

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

Read only

kartikrajag
Participant
0 Likes
980

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.