‎2005 Dec 06 5:08 AM
Hi Experts,
This is Prabhakararao
I have a small problem.
I had taken two Selection-screens. One having 3 Radiobuttons and second having 2 input fileds. Whenever i executes a program if i click 1st radiobutton on first selection screen then 1st field of the second selection screen will be enable and the other field is disable.
if i click second radiobutton then 2nd field is enable and first one is disable. if i click 3rd radiobutton then two of the fields are enable.
pls.. i need the necessary code urgent....
pls. send the answer to my mailid: prabhu_npr80@yahoo.co.in
‎2005 Dec 06 5:16 AM
Hi prabhakara,
1. There are two things to know:
a) detecting that radio button has been clicked
b) making invisible fields on screen
2. DEMO_SEL_SCREEN_USER_COMMAND
just check out the standard sap demo program
to know of (a)
3. for (b) u shall have to use
Loop at screen.
endloop.
4. Moreover, use this loop at
AT selection-screen OUTPUT.
5. At other events, it won't work.
Hope it helps.
regards,
amit m.
‎2005 Dec 06 5:13 AM
Hi,
Welcome to SDN!!!!!!!!!!
You can do this ...
At selection-screen.
loop at screen.
if rad1 = 'X'.
if screen-name = 'your field'.
screen-input = '0'.
modify screen.
endif.
endif.
endloop.
Try this.
Thanks.
if this helps you reward points and close the thread.
Message was edited by: Deepak333 k
Message was edited by: Deepak333 k
‎2005 Dec 06 5:16 AM
Hi prabhakara,
1. There are two things to know:
a) detecting that radio button has been clicked
b) making invisible fields on screen
2. DEMO_SEL_SCREEN_USER_COMMAND
just check out the standard sap demo program
to know of (a)
3. for (b) u shall have to use
Loop at screen.
endloop.
4. Moreover, use this loop at
AT selection-screen OUTPUT.
5. At other events, it won't work.
Hope it helps.
regards,
amit m.
‎2005 Dec 06 5:16 AM
Hi
Parameters: r1 radiobutton group g1 user-command 'ABC',
r2 radiobutton group g1 ,
r3 radiobutton group g1 .
at selection-screen output .
if r1 = 'X'.
loop at screen.
if screen-field = 'FIELD1'.
screen-input = '1'.
clear FIELD1.
endif.
if screen-field = 'FIELD2'.
screen-input = '0'.
clear FIELD2.
endif.
if screen-field = 'FIELD3'.
screen-input = '0'.
clear FIELD2.
endif.
modify screen.
endloop.
‎2005 Dec 06 5:19 AM
‎2005 Dec 06 5:51 AM
Hi I hope you got the solution....
Please close the thread..
regards
vijay