Skip to Content

Leave screen

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Sep 02, 2008 at 01:57 PM

    Hi,

    IF sy-mandt EQ '004'.

    ELSE.

    Message 'Exit Program' type 'I'.

    LEAVE screen.

    ENDIF.

    Regards

    Lekha.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 02, 2008 at 02:00 PM

    Hello,

    START-OF-SELECTION.
    
    IF sy-mandt EQ '004'.
    ELSE.
    
    MESSAGE 'Message in a Method' TYPE 'I'.
    
    LEAVE screen.
    ENDIF.
    

    Regards

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 02, 2008 at 02:01 PM

    START-OF-SELECTION.

    IF sy-mandt EQ '004'.

    ELSE.

    MESSAGE i000(ZZ) WITH 'Exit Program'.

    ENDIF.

    Add comment
    10|10000 characters needed characters exceeded