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: 

Leave screen

former_member603051
Participant
0 Kudos

Hello

What must I do to display or write any message before instruccion "Leave screen" or "leave programm"?

I am sure than I am running the program in client 010, it should display the message "Exit Program" in the screen.

START-OF-SELECTION.

IF sy-mandt EQ '004'.

ELSE.

WRITE:/ 'Exit Program'.

LEAVE screen.

ENDIF.

Thanks

Best Regards

3 REPLIES 3

Former Member
0 Kudos

Hi,

IF sy-mandt EQ '004'.

ELSE.

Message 'Exit Program' type 'I'.

LEAVE screen.

ENDIF.

Regards

Lekha.

Former Member
0 Kudos

Hello,


START-OF-SELECTION.

IF sy-mandt EQ '004'.
ELSE.

MESSAGE 'Message in a Method' TYPE 'I'.

LEAVE screen.
ENDIF.

Regards

former_member585060
Active Contributor
0 Kudos

START-OF-SELECTION.

IF sy-mandt EQ '004'.

ELSE.

MESSAGE i000(ZZ) WITH 'Exit Program'.

ENDIF.