Application Development 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: 

Radio button in two different blocks in the selection screen

Former Member
0 Kudos

Hi folks,

In my selection screen i have two selection blocks. First block to create a new document no, second block to display the list of the created document numbers.User has to go any one of that..can i keep first radio button in the first selection block and the second radio button in the second block...I have already tried..but its not allowing..is this possible..if so please suggest me how...

Thanks,

Shyam.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

No. for radio buttons, they bust belongs to same block. It won't allow to keep them in different blocks.

Do one thing. Donu2019t put in different blocks. Instead of that put radio buttons and select options, parameters in one block. But enable and disable select options and parameters according to user selection of radio button.

regards

KP

6 REPLIES 6

Former Member
0 Kudos

No. for radio buttons, they bust belongs to same block. It won't allow to keep them in different blocks.

Do one thing. Donu2019t put in different blocks. Instead of that put radio buttons and select options, parameters in one block. But enable and disable select options and parameters according to user selection of radio button.

regards

KP

0 Kudos

Hi kodandapani,

Thanks for your ans.But while my report is executed, by default one radio button is checked rite.So hw can i make other fields disabled at runtime...

Thanks.

0 Kudos

Hi,

Hope the following logic will help u.

selection-screen begin of block input with frame title text-000.

parameters :desktop radiobutton group rg_f user-command rg_f,

in_file type ibipparms-path modif id ps,

menu radiobutton group rg_f,

sys_file type ibipparms-path modif id as default '/sapia/iface/in/comm/sapfin/' .

selection-screen end of block input.

**************************************************************************************************

  • AT SELECTION-SCREEN. *

**************************************************************************************************

at selection-screen.

case sy-ucomm.

when 'RG_F' or 'RG_B'.

perform f_toggle_finputs.

when 'ONLI'.

if ( desktop = c_x and in_file is initial ) or ( menu = c_x and sys_file is initial ).

message e100.

endif.

endcase.

**********************************************************************

  • FORM : f_toggle_finputs

**********************************************************************

loop at screen.

if screen-group1 = 'PS'.

if desktop = c_x.

screen-input = 1.

sys_file = c_server_path.

else.

screen-input = 0.

endif.

endif.

if screen-group1 = 'AS'.

if menu = c_x.

screen-input = 1.

clear: in_file.

else.

screen-input = 0.

endif.

endif.

modify screen.

endloop.

endform. "f_toggle_finputs

Thanks.

Former Member
0 Kudos

Hi Shyam,

You can use the radio button in any block, just give the radiobutton group name same in both the block. Try this will work.

Regards,

Md Ziauddin

Former Member
0 Kudos

Hi Prasad,

Try it this way:

Selection-screen begin of block b1 with frame title text001.
Parameters:
  rad1 radiobutton group rad user-command abc
               default 'X',
  rad2 radiobutton group rad.
Selection-screen end of block b1.

Selection-screen begin of block b2 with frame title text002.
Parameters:
  Char1(10) type c MODIF ID abc,
  Char2(10) type c MODIF ID abc,
  Char3(10) type c MODIF ID abc,
  Char4(10) type c MODIF ID def,
  Char5(10) type c MODIF ID def,
  Char6(10) type c MODIF ID def.
Selection-screen end of block b2.

At selection-screen output..

  If rad1 = 'X'.
    Loop at screen.
      If screen-group1 = 'ABC'.
        Screen-active = 0.
        Modify screen.
      Endif.
    Endloop.
  Elseif rad2 = 'X'.
    Loop at screen.
      If screen-group1 = 'DEF'.
        Screen-active = 0.
        Modify screen.
      Endif.
    Endloop.
  Endif.

With luck,

Pritam.

Former Member
0 Kudos

You try this for your requirement,

Selection-screen begin of block a1 with frame.

Parameters:

group1 radiobutton group radi user-command abc

default 'X',

field1(8) type c MODIF ID a,

field2(8) type c MODIF ID a,

field3(8) type c MODIF ID a.

Parameters: group2 radiobutton group radi,

field4(8) type c MODIF ID b,

field5(8) type c MODIF ID b,

field6(8) type c MODIF ID b.

Selection-screen end of block a1.

At selection-screen output..

If group1 = 'X'.

Loop at screen.

If screen-group1 = 'B'.

Screen-active = 0.

Modify screen.

Endif.

Endloop.

Elseif group2 = 'X'.

Loop at screen.

If screen-group1 = 'A'.

Screen-active = 0.

Modify screen.

Endif.

Endloop.

Endif.

Regards,

Joan