Application Development and Automation 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: 
Read only

screen programme

Former Member
0 Likes
541

Hello,

Please help me, i have made one screen there i have given one exit button when i am clicking exit button that programme have to leave programme.

I have wirrten the below mentioned codes. here i am not getting any error of my codes and when i am clicking exit it is not leaving the programme.

Please let me know what i have to do more at your earliest and oblige.

Please do the needful urgently.

thanks,

sujatha

4 REPLIES 4
Read only

Former Member
0 Likes
526

Hi,

In the PAI of the screen you must handle the 'EXIT' button and so you do :

LEAVE SCREEN or LEAVE PROGRAM.

Read only

Former Member
0 Likes
526

hi sujata

why r you asking this question many times.................

check your screen


GOTO ur screen > double click on the exit button >then a window apper see FctCode in fctcode write exit
Save & Activate > then try 

pankaj

Read only

ak_upadhyay
Contributor
0 Likes
526

Hi Sujatha,

Why r u asking same question again & again, just check ur

previous thread.

Regards

AK

Read only

venkat_o
Active Contributor
0 Likes
526

Hi Sujatha, 1. Double click on the button set Function type = E (Exit Command). 2. Write Module Exit at Exit-command under Process After Input event.

PROCESS BEFORE OUTPUT.
* MODULE STATUS_1001.

PROCESS AFTER INPUT.
  MODULE exit AT EXIT-COMMAND.

* MODULE USER_COMMAND_1001.
3. Then write module Exit like this.
*&---------------------------------------------------------------------*
*&      Module  exit  INPUT
*&---------------------------------------------------------------------*
MODULE exit INPUT.
  IF sy-ucomm = 'EXIT' OR
     sy-ucomm = 'BACK'.
    LEAVE PROGRAM.
  ENDIF.
ENDMODULE.                 " exit  INPUT
I hope that it helps u. Regards, Venkat.O