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

Former Member
0 Likes
595

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.

&----


*& Report ZSUJU

*&

&----


*&

*&

&----


REPORT ZSUJU.

Tables : zemp.

Data : it like zemp occurs 0 with header line.

&----


*& Module STATUS_2000 OUTPUT

&----


  • text

----


MODULE STATUS_2000 OUTPUT.

SET PF-STATUS 'ZUOM'.

  • SET TITLEBAR 'xxx'.

ENDMODULE. " STATUS_2000 OUTPUT

&----


*& Module USER_COMMAND_2000 INPUT

&----


  • text

----


MODULE USER_COMMAND_2000 INPUT.

CASE SY-UCOMM.

WHEN 'EXIT'.

LEAVE program.

ENDCASE.

ENDMODULE. " USER_COMMAND_2000 INPUT

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

Please do the needful urgently.

thanks,

sujatha

3 REPLIES 3
Read only

Former Member
0 Likes
525

Hi,

Give the type E where you create the layout of table control .

Rewards if helpfull.

Vijay

Read only

ak_upadhyay
Contributor
0 Likes
525

Hi,

Give the function code EXIT to button in the properties.

GOTO ur screen > double click on the button > In FctCode

type exit > Save & Activate > then try

Reward points if useful....

Regards

AK

Read only

Former Member
0 Likes
525

hi,

i think ak give you the right ans..................

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

Save & Activate > then try

ok try this

if useful give reward points

pankaj