‎2010 Mar 22 5:45 AM
Hi,
Can any one suggest me how to go ahead with gray out the text box on selection of radio button,
simple Scenario ,
i have two radio buttons and two text boxes, so, when i select the 1st radio button second text box(T2) should be grayed out and if i select 2nd radio button then the 1st Text box(T1) should be grayed out.
‎2010 Mar 22 5:54 AM
when you select one check box..
then check SY-UCOMM
if SY-UCOOMM is having that check box value..
then do
LOOP AT SCREEN.
IF SCREEN-NAME EQ 'TEXTBOX' "your text bax name
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
‎2010 Mar 22 5:56 AM
Hi,
There are tons of threads related to your question. Please search the SDN.
‎2010 Mar 22 5:58 AM
Hi Malathesha,
In the PBO module of the screen ... try something like this ..
Check whether the Radio - button is SET ...if yes .. then make the text-box disabled...
LOOP AT SCREEN.
IF SCREEN-NAME EQ 'TEXTBOX' --> Your text box name...
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP
Hope this helps!
Cheers,
Kripa Rangachari.
‎2010 Mar 22 5:58 AM
hi,
try this.
if r1 = 'X'.
loop at screen.
if screen-name = 'T2'.
screen-inpout = 0.
modify screen.
endif.
endloop.
elseif r2 = 'X'.
loop at screen.
if screen-name = 'T2'.
screen-inpout = 0.
modify screen.
endif.
endloop.
endif.
‎2010 Mar 22 6:11 AM
Hi Malathesha,
It is difficult to explain the suggestion, Instead you cut and paste the code below and see the output .
PARAMETERS: rd1 RADIOBUTTON GROUP rad USER-COMMAND abc,
rd2 RADIOBUTTON GROUP rad.
PARAMETERS: mat1 TYPE matnr,
mat2 type matnr.
INITIALIZATION.
LOOP AT SCREEN.
IF screen-name = 'MAT2'.
screen-input = 0.
modify screen.
ENDIF.
ENDLOOP.
AT SELECTION-SCREEN OUTPUT.
IF rd1 IS not INITIAL.
LOOP AT SCREEN.
IF screen-name = 'MAT1'.
screen-input = 1.
modify screen.
ELSEIF screen-name = 'MAT2'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSEIF rd2 IS not INITIAL.
LOOP AT SCREEN.
IF screen-name = 'MAT1'.
screen-input = 0.
modify screen.
ELSEIF screen-name = 'MAT2'.
screen-input = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
Hope this may help you.
Regards,
Smart Varghese
‎2010 Mar 22 10:45 AM