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: 

Hi friends

kesavadas_thekkillath
Active Contributor
0 Kudos

in module pool prg...

I have designed the layout with three mandatory fields.

But at the first run of the screen,when i click EXIT button...the program is not exiting and its reminding me to enter the values in the required fields...

How to solve this?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

U need to write the AT EXIT-COMMAND command.

In PAI

MODULE EXIT_XXXX AT EXIT-COMMAND.

Now u have write the code as.

IF SY-UCOMM = 'EXIT'.

LEAVE TO SCREEN 0.

ENDIF.

Now go to EXIT button on the toolbar.U have to make As type E.

Regards

vasu

6 REPLIES 6

paruchuri_nagesh
Active Contributor
0 Kudos

have u written this

case 'ok_code'

when'exit'.

leave program.

endcase.

regards.

Nagesh.Paruchuri

Former Member
0 Kudos

hI

ENTER SOME VALUES AND PRESS EXIT BUTTON

THEN IT WON'T ASK ANY THING

rEWARD IF USEFULL

former_member200338
Active Contributor
0 Kudos

Hi,

do following

IN PAI,

module user_command <b>at exit-command.</b>

This will solve your problem.

Regards,

Niyaz

Message was edited by:

Niyaz Ahamed

Former Member
0 Kudos

Hi,

U need to write the AT EXIT-COMMAND command.

In PAI

MODULE EXIT_XXXX AT EXIT-COMMAND.

Now u have write the code as.

IF SY-UCOMM = 'EXIT'.

LEAVE TO SCREEN 0.

ENDIF.

Now go to EXIT button on the toolbar.U have to make As type E.

Regards

vasu

0 Kudos

Thanks Vasu...

Former Member
0 Kudos

u r telling that u created mandatory fields then how ll it allow to exit with out inputting.input something and click exit.