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

regarding exit

Former Member
0 Likes
656

hi,

i have certain mandatory fields in my screen with automatic customer id creation and have a ' EXIT' pushbutton.My problem is, once the details are entered and saved, it clears the screen and the next customer id is generated. so i am unable to exit out of the screen since some fields are mandatory.

please help me out.

thanks in avance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
637

in..PAI

module EXIT at exit-command.

&----


*& Module EXIT INPUT

&----


  • text

----


module EXIT input.

case sy-ucomm.

WHEN 'EXIT'.

Leave screen. set screen 0.

endcase.

endmodule. " EXIT INPUT

hi...i used this but this is not working..

6 REPLIES 6
Read only

Former Member
0 Likes
637

Hi,

If it is dialog program u have to write code for EXIT command.

MODULE cancel AT EXIT-COMMAND.

MODULE cancel INPUT.

LEAVE PROGRAM.

ENDMODULE. " cancel INPUT

Regards,

Srinivas Ch

Read only

Former Member
0 Likes
637

Hi,

It is module pool program for that u have to write code for EXIT command.

Process before input.

module back at exit-command.

double click on back. & code

case sy-ucomm.

WHEN 'BACK'.

Leave screen. set screen 0.

endcase.

If it is helpfull pls reward

Regards

Srimanta

Read only

Former Member
0 Likes
638

in..PAI

module EXIT at exit-command.

&----


*& Module EXIT INPUT

&----


  • text

----


module EXIT input.

case sy-ucomm.

WHEN 'EXIT'.

Leave screen. set screen 0.

endcase.

endmodule. " EXIT INPUT

hi...i used this but this is not working..

Read only

0 Likes
637

Hi Arunsri

Please check whether you have set the Function type as 'E' for the EXIT push button in screen painter. Else AT EXIT-COMMAND won't trigger. And instead of LEAVE SCREEN use LEAVE TO SCREEN 0.

~ Ranganath

Read only

Former Member
0 Likes
637

Hi Ranganath,

Read only

Former Member
0 Likes
637

Hi Ranganath,

Thanks for the reply...i got the output..and rewarded 10.