on 10-09-2007 5:17 PM
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 .
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.