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

pushbutton not holding sy-ucomm

Former Member
0 Likes
1,384

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
807

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.

2 REPLIES 2
Read only

Former Member
0 Likes
808

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

Read only

Former Member
0 Likes
807

Is the function type S -- I am using DEL pushbutton to del line from table control.