Application Development 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: 

return to the main screen

Former Member
0 Kudos

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???

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

Hi,

you can use

<b>set screen 0.

leave screen.</b>

regards

vijay

16 REPLIES 16

abdul_hakim
Active Contributor
0 Kudos

Hi use <b>LEAVE TO SCREEN 0.</b> after message statement

Abdul

hymavathi_oruganti
Active Contributor
0 Kudos

give "leave to screen 0." after message sttement

former_member181962
Active Contributor
0 Kudos

use

IF SY-SUBRC <> '0'.

message i021(zsd) with sy-uname.

leave to screen <screen number of main screen>.

ENDIF.

Former Member
0 Kudos

Hi,

IF SY-SUBRC <> '0'.

message i021(zsd) with sy-uname.

set screen 0.

leave screen.

ENDIF.

Regards,

Amole

0 Kudos

leave screen 0

take me to the start i want to stay in the screen and not continue with the report.

0 Kudos

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

0 Kudos

maybe message E021... instead of message I021 is what you want?

Or why are you not using message <b>E</b>?

former_member188685
Active Contributor
0 Kudos

Hi,

you can use

<b>set screen 0.

leave screen.</b>

regards

vijay

Former Member
0 Kudos

Please eloborate your requirement

0 Kudos

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

0 Kudos

If you need the program to stay where it is, you will need to use message type E (error).

0 Kudos

Then try

IF SY-SUBRC <> '0'.

message <b>E</b>021(zsd) with sy-uname.

ENDIF.

Regards

Rene

0 Kudos

in that case you can use

set screen <num>.
leave screen.

regards

vijay

0 Kudos

as Rene Guenther mentioned just use messge type E instead of I.

Regards

Raja

Former Member
0 Kudos

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

0 Kudos

just leave screen.

thanks