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

Enable and disable controls

Former Member
0 Likes
462

Hi Experts

In dialog programming, i have check box and some other text controls.

When i select check box, text controls needs to be enabled and when i unselect the check box, same controls needs to be disabled.

I tried this, it works fine after selecting the checkbox and following press enter only.

But my requirement is without pressing enter, only with selecting the check box , it needs to be enabled and disabled.

Is it possible, if so, pls explain me.

Thanks in advance.

Regards

Rajaram

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
413

Double click on the checkbox, it will open the field property in the screen painter. Then assigne the Fuction Code say "CHK1".

In your PBO you can check the OK_CODE or SY-UCOMM with the CHK1 value.

LIKE

CASE OK_CODE.
  WHEN 'CHK1'.
*   ENABLE OR DISALBE AS PER IT'S VALUE
ENDCASE.

Regards,

Naimesh Patel

Hi Experts

In dialog programming, i have check box and some other text controls.

When i select check box, text controls needs to be enabled and when i unselect the check box, same controls needs to be disabled.

I tried this, it works fine after selecting the checkbox and following press enter only.

But my requirement is without pressing enter, only with selecting the check box , it needs to be enabled and disabled.

Is it possible, if so, pls explain me.

Thanks in advance.

Regards

Rajaram

1 REPLY 1
Read only

naimesh_patel
Active Contributor
0 Likes
414

Double click on the checkbox, it will open the field property in the screen painter. Then assigne the Fuction Code say "CHK1".

In your PBO you can check the OK_CODE or SY-UCOMM with the CHK1 value.

LIKE

CASE OK_CODE.
  WHEN 'CHK1'.
*   ENABLE OR DISALBE AS PER IT'S VALUE
ENDCASE.

Regards,

Naimesh Patel