2007 Jun 20 7:25 AM
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.
2007 Jun 20 7:32 AM
2007 Jun 20 7:35 AM
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
2007 Jun 20 7:36 AM
2007 Jun 20 8:13 AM
I've changed code, saved and activated. And there are no changes.
When I set just LEAVE SCREEN, code works.