Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Selection screen

Former Member
0 Likes
570

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
550

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

6 REPLIES 6
Read only

Former Member
0 Likes
550

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.

Read only

George_Lioumis
Active Participant
0 Likes
550

HI.

Here it is:

PARAMETERs: p_open RADIOBUTTON GROUP gr1,

p_clear RADIOBUTTON GROUP gr1.

Reward points please.

George

Read only

0 Likes
550

HI,

Keep both the radio buttons in same group nad make one of them DEFAULT VALUE 'X'.

Reward if useful

Regards

ANUPAM

Read only

Former Member
0 Likes
550

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.

Read only

Former Member
0 Likes
551

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

Read only

Former Member
0 Likes
550

LOOP AT SCREEN.

screen-name = .

screen-input = 0.

screen-active = 0.

endloop.

try this sort of code.

i hope it will work.