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

problem in screen painter

Former Member
0 Likes
367

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.

2 REPLIES 2
Read only

Former Member
0 Likes
340

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.

Read only

Former Member
0 Likes
340

Hi aarti,

In screen painter check whether you have included the function code for the button.

Regards,

Sravanthi