‎2008 Jan 02 11:04 AM
Hi,
i need to put 2 radio buttons on selection screen. like : open item
cleared item
Based on that if i selected first one i need to do diable second radio button and i need to get 1 radio button data only .
if i select second radiobutton i need to do disable fisrt radio button i need to get second
radiobutton releated data.
plz give me solution urgent.
‎2008 Jan 02 11:31 AM
Hi Vasanth,
One of the answer for ur question is correct.But there are some small errors are present.I will modify those statemets check it once.And also i execute the code it is executing the code successfully check it once..
code:
Parameters:
button1 radiobutton group g1 USER-COMMAND C1,
button2 radiobutton group g1.
AT SELECTION-SCREEN OUTPUT.
if button1 = 'X'.
loop at screen.
if screen-name = 'BUTTON2' .
screen-input = 0.
endif.
modify screen.
endloop.
endif.
if button2 = 'X'.
loop at screen.
if screen-name = 'BUTTON1' .
screen-input = 0.
endif.
modify screen.
endloop.
endif.
start-of-selection.
if button1 = 'X'.
write:/ 'kiran'.
endif.
if button2 = 'X'.
write:/ 'kiran kumar'.
endif.
Award Points if helpful..
Kiran Kumar.G
Have a Nice Day
‎2008 Jan 02 11:11 AM
Hi,
Parameters:
p_button1 radiobutton group g1 USER-COMMAND C1.
p_button2 radiobutton group g1.
AT-SELECTION-SCREEN OUTPUT.
if p_button1 = 'X'.
loop at screen.
if screen-name = 'p_button2' .
screen-input = 0.
endif.
modify screen.
if p_button2 = 'X'.
loop at screen.
if screen-name = 'p_button1' .
screen-input = 0.
endif.
modify screen.
start-of-selection.
if p_button1 = 'X'.
select data of one type(ex-mara).
else.
select data of one type(ex-marc).
endif.
‎2008 Jan 02 11:13 AM
HI.
Here it is:
PARAMETERs: p_open RADIOBUTTON GROUP gr1,
p_clear RADIOBUTTON GROUP gr1.
Reward points please.
George
‎2008 Jan 02 11:17 AM
HI,
Keep both the radio buttons in same group nad make one of them DEFAULT VALUE 'X'.
Reward if useful
Regards
ANUPAM
‎2008 Jan 02 11:19 AM
Hi,
I think you have to disable the some other input fields based on the radio button selection.
pls find the below sample code.
----
S E L E C T I O N S C R E E N *
----
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-s00.
PARAMETERS: p_test AS CHECKBOX DEFAULT c_x.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN: POSITION 1.
PARAMETERS: r_ppath RADIOBUTTON GROUP g1 DEFAULT 'X'
USER-COMMAND u1.
SELECTION-SCREEN COMMENT 3(10) text-r00. "Local file
SELECTION-SCREEN: POSITION 24.
PARAMETERS: r_dpath RADIOBUTTON GROUP g1.
SELECTION-SCREEN COMMENT 26(10) text-r01.
SELECTION-SCREEN END OF LINE.
PARAMETERS: p_ppath LIKE rlgrap-filename,
p_apath TYPE rlgrap-filename,
p_infile TYPE rlgrap-filename,
p_oufile TYPE rlgrap-filename,
p_erfile TYPE rlgrap-filename.
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN OUTPUT.
IF NOT r_ppath IS INITIAL.
LOOP AT SCREEN.
IF screen-name = c_dpath OR
screen-name = c_infile.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF NOT r_dpath IS INITIAL.
LOOP AT SCREEN.
IF screen-name = c_ppath.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
Reward if useful.
Thanks,
Sreeram.
‎2008 Jan 02 11:31 AM
Hi Vasanth,
One of the answer for ur question is correct.But there are some small errors are present.I will modify those statemets check it once.And also i execute the code it is executing the code successfully check it once..
code:
Parameters:
button1 radiobutton group g1 USER-COMMAND C1,
button2 radiobutton group g1.
AT SELECTION-SCREEN OUTPUT.
if button1 = 'X'.
loop at screen.
if screen-name = 'BUTTON2' .
screen-input = 0.
endif.
modify screen.
endloop.
endif.
if button2 = 'X'.
loop at screen.
if screen-name = 'BUTTON1' .
screen-input = 0.
endif.
modify screen.
endloop.
endif.
start-of-selection.
if button1 = 'X'.
write:/ 'kiran'.
endif.
if button2 = 'X'.
write:/ 'kiran kumar'.
endif.
Award Points if helpful..
Kiran Kumar.G
Have a Nice Day
‎2008 Jan 02 11:33 AM
LOOP AT SCREEN.
screen-name = .
screen-input = 0.
screen-active = 0.
endloop.
try this sort of code.
i hope it will work.