2007 Sep 28 4:57 PM
I have 2 pushbuttons on my screen using screen painter. But when I debug they dont hold sy-ucomm or ok_code. DEL and CLR are pushbuttons but the code is not working because they dont hold sy-ucomm value. However the other buttons are working as they are not pushbuttons but are on the menu bar or application bar. Any idea why this is happening?
PROCESS AFTER INPUT.
MODULE user_command_0100.
MODULE user_command_0100 INPUT.
save_ok = ok_code.
CLEAR ok_code.
CASE save_ok.
WHEN 'BACK'. LEAVE PROGRAM.
WHEN 'EXIT'. LEAVE PROGRAM.
WHEN 'CANCEL'. LEAVE PROGRAM.
WHEN 'CREATE'.
WHEN 'DEL'. LEAVE PROGRAM.
WHEN 'CLR'. LEAVE PROGRAM.
WHEN OTHERS. CALL SCREEN 100.
ENDCASE.
2007 Sep 28 5:00 PM
Hi,
Just Double click on the Pushbutton, then the attributes window will open, there Fctcode will be there, give the Function code over there, and beside that you will find the function type, that function tpe should be blank
Regards
Sudheer
I have 2 pushbuttons on my screen using screen painter. But when I debug they dont hold sy-ucomm or ok_code. DEL and CLR are pushbuttons but the code is not working because they dont hold sy-ucomm value. However the other buttons are working as they are not pushbuttons but are on the menu bar or application bar. Any idea why this is happening?
PROCESS AFTER INPUT.
MODULE user_command_0100.
MODULE user_command_0100 INPUT.
save_ok = ok_code.
CLEAR ok_code.
CASE save_ok.
WHEN 'BACK'. LEAVE PROGRAM.
WHEN 'EXIT'. LEAVE PROGRAM.
WHEN 'CANCEL'. LEAVE PROGRAM.
WHEN 'CREATE'.
WHEN 'DEL'. LEAVE PROGRAM.
WHEN 'CLR'. LEAVE PROGRAM.
WHEN OTHERS. CALL SCREEN 100.
ENDCASE.
2007 Sep 28 5:00 PM
Hi,
Just Double click on the Pushbutton, then the attributes window will open, there Fctcode will be there, give the Function code over there, and beside that you will find the function type, that function tpe should be blank
Regards
Sudheer
2007 Sep 28 5:04 PM
Is the function type S -- I am using DEL pushbutton to del line from table control.