cancel
Showing results for 
Search instead for 
Did you mean: 

SCREENS

Former Member
0 Kudos

This is lalitha .

Here is my program.

In my program exit pushbutton is not responding .

please correct me .

for exit what should i give in 'SE51' ?

DATA: CB1,

CB2,

X(10) value 'sap' ,

Y(10) value 'abap' ,

TEMP(10) ,

E(4) .

CALL SCREEN 100 .

MODULE CHECKBOX INPUT .

CASE sy-ucomm.

WHEN 'C1' .

IF CB1 = 'X' .

TEMP = 'SAP'.

ELSE .

CLEAR TEMP .

ENDIF .

WHEN 'C2' .

IF CB2 = 'X' .

TEMP = 'ABAP' .

ELSE .

CLEAR TEMP .

ENDIF .

WHEN 'E'.

LEAVE PROGRAM .

ENDCASE .

ENDMODULE .

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Check the ok code for the push button in SE51.

Here in your code you are using 'E'.

So it should be 'E' there.

Also the type should be exit.

Former Member
0 Kudos

Hi,

For EXIT,

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

When you double click on the exit pushbutton in the layout, <b>Make the function type 'E'</b> for the exit pushbutton.

Regards,

Pritha.

Reward if helpful.

Former Member
0 Kudos

see first check ur ok code for pushbutton..whether u have given it or not

This is given on the screen properties tab where u place the pushbtn

its a 4 char code..suppose'EXIT'

then while writing CASE write WHEN 'EXIT'.

LEAVE PROGRAM.

Hope this helps

Reward if it does

Former Member
0 Kudos

Hi,

if you have any mandatory fields then in the GUI status if you have to give type as exit command..

Then create a module in the PAI with the addition exit-command.

MODULE exit_command AT EXIT-COMMAND.

In that module do your coding..

Otherwise LEAVE PROGRAM should work.

Thanks

Naren