‎2009 Jan 23 12:38 PM
hello all,
i am not very familiar to SCREEN PAINTER and am facing some difficulties working on it...
i have created a screen with a list box and some push buttons on it. when the list box is blank,
the push buttons are disabelled, but when the user selects a value, they are enabelled. but the
problem is when a value is selected the buttons are enabelled but the selected value is not
displayed on the display.. Plz help me with this...
module ENABLE_BUTTON output.
if flag = 1.
LOOP AT SCREEN.
if SCREEN-NAME = 'PUSH1'.
SCREEN-INPUT = '1'.
MODIFY screen .
endif.
ENDLOOP.
endif..
endmodule.
module ENABLE_BUTTON input.
if sy-ucomm = 'SELECTED'.
flag = 1.
endif.
endmodule.
‎2009 Jan 23 12:51 PM
hi aarti ,
I guess sy-ucomm doesnot works in screen programming .
Declare ok_code as sy-ucomm and pass ok_code as sy-ucomm.
Declare data :ok_code like sy-ucomm. in the program and in the screen element.
Hope this works.
module ENABLE_BUTTON input.
case ok_code.
when 'SELECTED'.
flag = 1.
endcase.
endmodule.
‎2009 Jan 23 1:42 PM
Hi aarti,
In screen painter check whether you have included the function code for the button.
Regards,
Sravanthi