‎2010 Nov 24 7:34 PM
Hi Guis,
I have a requirement on selection screen.
I have one check box and one input field on the screen.If i select the check box then i have to display the input filed in the same screen if I deselect the check box then I have to disappear the input field .
I write the logic under AT SELECTION OUTPUT i can able to disappear the input field but if I select the check box I am unable to display the input field.
please anyone give the solution.
thanks,
Santhosh
‎2010 Nov 25 2:48 AM
Hi,
<li>Try this way.
REPORT ztest_notepad.
PARAMETERS:
c_check AS CHECKBOX USER-COMMAND uc1,
p_input TYPE char5 modif id md1.
AT SELECTION-SCREEN output.
LOOP AT SCREEN.
IF screen-group1 EQ 'MD1'.
CASE c_check.
WHEN 'X'.
screen-active = '1'.
WHEN OTHERS.
screen-active = '0'.
ENDCASE.
MODIFY SCREEN.
ENDIF.
ENDLOOP.Regards,
Venkat.O
‎2010 Nov 24 7:57 PM
Hi,
I think you should get a lot of threads related to this kind of requirement if you search SCN.
It should be done like below:
parameters: p_check as checkbox user-command ucom,
p_field like mara-matnr.
at selection-screen output.
loop at screen.
if screen-name = 'p_field'.
if p_check eq ' '.
screen-invisible = 1.
modify screen.
else.
screen-input = 1.
modify screen.
endif.
endif.
endloop.
hope it helps
Regards,
Himanshu
‎2010 Nov 25 2:48 AM
Hi,
<li>Try this way.
REPORT ztest_notepad.
PARAMETERS:
c_check AS CHECKBOX USER-COMMAND uc1,
p_input TYPE char5 modif id md1.
AT SELECTION-SCREEN output.
LOOP AT SCREEN.
IF screen-group1 EQ 'MD1'.
CASE c_check.
WHEN 'X'.
screen-active = '1'.
WHEN OTHERS.
screen-active = '0'.
ENDCASE.
MODIFY SCREEN.
ENDIF.
ENDLOOP.Regards,
Venkat.O
‎2010 Nov 25 4:46 AM
Hi friend,
Please excute this code first input field disappeard.when u select the check box and press the enter then u can get the field.
i thing this is code is usefull for u.
PARAMETERS:c1 as CHECKBOX,
p1 type string MODIF ID 001.
AT SELECTION-SCREEN OUTPUT.
loop AT SCREEN.
if c1 = 'X'.
if screen-group1 eq '001'." and screen-group1 eq 003.
screen-INVISIBLE = 1.
SCREEN-ACTIVE = 1.
MODIFY SCREEN.
endif.
else.
if screen-group1 eq '001'." and screen-group1 eq 003.
screen-INVISIBLE = 0.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
endif.
endif.
endloop.
thanks,
muralii