Skip to Content
author's profile photo
Former Member

pushbutton not holding sy-ucomm

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 04: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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 04:04 PM

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

    Add comment
    10|10000 characters needed characters exceeded