Application Development 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: 

Enable fields by check box

Former Member
0 Kudos

Hi Experts

My requirement is, when i mark the check box in the dialog programming it needs to enable some fields, if i unmark the check box , needs to to disble the fields.

How to achieve this, in which event needs to code and how.

pls explain me.

Thanks in advance.

Regards

Rajaram

5 REPLIES 5

Former Member
0 Kudos

ex logic

at selection screen.

screen value put into text-element.

if chk is initial.

modify screen.

text enable.

else.

disable.

endif.

former_member404244
Active Contributor
0 Kudos

Hi,

Write in PAI EVENT..

If check is 'X'.

do what ever u want.

endif.

Rewrad if helpful.

Regards,

nagaraj

0 Kudos

k thank you yar,

but when i try it,

MODULE check INPUT.

if mark is 'X'.

endif.

ENDMODULE.

mark is check box name,

gives the error as follows, how to declare in main window yar.

Field "MARK" is unknown. It is neither in one of the specified tables nor

defined by a "DATA" statement. "DATA" statement.

Regards

Rajaram

Former Member

Hi,

parameter check  AS CHECKBOX user-command u.


AT SELECTION-SCREEN OUTPUT.
IF check NE ca_x.
LOOP AT screen.
          IF screen-name EQ <YOUR-FIELD>.
            screen-input = '0'.
            MODIFY screen.
          ENDIF.
ENDLOOP.
 ENDIF.

rgs

former_member188827
Active Contributor
0 Kudos

PARAMETERS: ZC1 AS CHECKBOX MODIF ID Z2,zfield1(10) MODIF ID Z1.

at SELECTION-SCREEN output.

loop at SCREEN.

if screen-group1 = 'Z1' and zc1 ne 'X'.

screen-input = 0.

MODIFY SCREEN.

endif.

endloop.

capture da contents of check box in pai and

try da same logic in pbo module of ur screen.

give screen group against screen element in se51.

Message was edited by:

user_15