01-18-2006 10:26 AM
i gave this
IF SY-SUBRC <> '0'.
message i021(zsd) with sy-uname.
ENDIF.
and i want him to go back to the main screen
hoe???
01-18-2006 10:33 AM
01-18-2006 10:29 AM
01-18-2006 10:29 AM
01-18-2006 10:29 AM
use
IF SY-SUBRC <> '0'.
message i021(zsd) with sy-uname.
leave to screen <screen number of main screen>.
ENDIF.
01-18-2006 10:31 AM
Hi,
IF SY-SUBRC <> '0'.
message i021(zsd) with sy-uname.
set screen 0.
leave screen.
ENDIF.
Regards,
Amole
01-18-2006 10:35 AM
leave screen 0
take me to the start i want to stay in the screen and not continue with the report.
01-18-2006 10:36 AM
Give your current screen number in LEAVE TO SCREEN <num>.
else u can u se SET SCREEN <num>
Where num is the current screen number.
Abdul
01-18-2006 10:38 AM
maybe message E021... instead of message I021 is what you want?
Or why are you not using message <b>E</b>?
01-18-2006 10:33 AM
01-18-2006 10:37 AM
01-18-2006 10:42 AM
i'm entering number
if it's not exist i get message "information"
and the report is continue without dat.
leave screen get me to the start i want to stay in the screen so the customer will put another number
01-18-2006 10:43 AM
If you need the program to stay where it is, you will need to use message type E (error).
01-18-2006 10:43 AM
Then try
IF SY-SUBRC <> '0'.
message <b>E</b>021(zsd) with sy-uname.
ENDIF.
Regards
Rene
01-18-2006 10:44 AM
in that case you can use
set screen <num>.
leave screen.
regards
vijay
01-18-2006 10:51 AM
as Rene Guenther mentioned just use messge type E instead of I.
Regards
Raja
01-18-2006 10:46 AM
Hi,
at selection-screen.
IF SY-SUBRC <> '0'.
message e021(zsd) with sy-uname.
ENDIF.
Give error message the field will be input enabled
to allow user to enter another data.
Regards,
Amole
01-18-2006 10:51 AM