11-16-2007 10:58 AM
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
11-16-2007 11:00 AM
ex logic
at selection screen.
screen value put into text-element.
if chk is initial.
modify screen.
text enable.
else.
disable.
endif.
11-16-2007 11:00 AM
Hi,
Write in PAI EVENT..
If check is 'X'.
do what ever u want.
endif.
Rewrad if helpful.
Regards,
nagaraj
11-16-2007 11:53 AM
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
11-16-2007 11:02 AM
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
11-16-2007 11:30 AM
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