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 LEAVE TO SCREEN

Former Member
0 Likes
668

Hi. I have a code

*&---------------------------------------------------------------------*
*&      Module  USER_COMMAND_1001  INPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE USER_COMMAND_1001 INPUT.
  CASE SY-UCOMM.
    WHEN 'EXIT'.
      LEAVE PROGRAM.
    WHEN 'BACK'.
      LEAVE TO SCREEN '0400'.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_1001  INPUT

BACK is connected with green arrow from the StatusGUI. When I click it I receive

<i>The screen 0400 cannot be an INCLUDE-type screen</i> When I change 0400 to other screen similar error occurs.

Greetings. P.

Hi. I have a code

*&---------------------------------------------------------------------*
*&      Module  USER_COMMAND_1001  INPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE USER_COMMAND_1001 INPUT.
  CASE SY-UCOMM.
    WHEN 'EXIT'.
      LEAVE PROGRAM.
    WHEN 'BACK'.
      LEAVE TO SCREEN '0400'.
  ENDCASE.
ENDMODULE.                 " USER_COMMAND_1001  INPUT

BACK is connected with green arrow from the StatusGUI. When I click it I receive

<i>The screen 0400 cannot be an INCLUDE-type screen</i> When I change 0400 to other screen similar error occurs.

Greetings. P.

4 REPLIES 4
Read only

Former Member
0 Likes
635

HI,

Try like this,

<b>LEAVE TO SCREEN 400.</b>

Regards,

Padmam.

Read only

Former Member
0 Likes
635

Hi

Don't put the screen number in quotes while useing the commands like CALL SCREEN, LEAVE TO SCREEN etc..

just use

LEAVE TO SCREEN 400.

Reward points for useful Answers

Regards

Anji

Read only

S0025444845
Active Participant
0 Likes
635

hi,

Use just

leave to screen 400.

without quotes.

regards,

sudha

Read only

0 Likes
635

I've changed code, saved and activated. And there are no changes.

When I set just LEAVE SCREEN, code works.