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: 

selection Screen

Former Member
0 Kudos

Hi ,

I want to Display Four Radio Buttons on the Selection Screen. But the Condition is that first it should show only two radio buttons and by selecting one of the it should show anohter two. I wrote it but it is not working . I wrote it in the At Selection-Output Event that if Screen-group = 'gr' the screen-invisible = 1.

After Execution of the program it shows only two buttons.But after selecting it not showing the remaiaing two buttons.

In which Event should I write the code ?

All these radio buttons are defined in the program.

5 REPLIES 5

Former Member
0 Kudos

change GR to upper case and try

if Screen-group = <b>'GR'</b>

0 Kudos

Hi Satya,

Is your problem Sovled??

if yes, Kindly close the thread.

Regards,

Senthil

Former Member
0 Kudos

Parameters: rd1 RADIOBUTTON group g1 default 'X' user-command ch ,
            rd2 RADIOBUTTON group g1  ,
            rd3 RADIOBUTTON group g1 modif id ID2 ,
            rd4 RADIOBUTTON group g1 modif id ID3 .



AT SELECTION-SCREEN.
check sy-ucomm = 'CH'.

AT SELECTION-SCREEN output.
IF rd1 = 'X'.

LOOP AT SCREEN.
IF screen-group1 = 'ID2' OR  screen-group1 = 'ID3' .
screen-ACTIVE = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.

ENDIF.

Former Member
0 Kudos

Copy and paste this code and check.

parameters : r1 radiobutton group g1 USER-COMMAND OFF,

r2 radiobutton group G1.

parameters : p1(10) MODIF ID SC1,

P2(10) MODIF ID SC1,

P3(10) MODIF ID SC2,

P4(10) MODIF ID SC2.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF R1 = 'X'.

IF SCREEN-GROUP1 = 'SC2'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

CONTINUE.

ENDIF.

ENDIF.

IF R2 = 'X'.

IF SCREEN-GROUP1 = 'SC1'.

SCREEN-INPUT = 0.

MODIFY SCREEN.

CONTINUE.

ENDIF.

ENDIF.

ENDLOOP.

Rreward if useful.

Regards,

Senthil

Former Member
0 Kudos

hi,

try this code

parameters : p_rad1 radiobutton group g1 user-command ABCD,
               p_rad2 radiobutton group g1,
               p_rad3 radiobutton group g1 modif-id GR,
               p_rad4 radiobutton group g1 modif-id GR.
 data: v_chk type c.

 at selection-screen output.
  if v_chk = 'X'.
    loop at screen.
      if screen-group = 'GR'.
        screen-active = 1.
        modify screen.
      endif.
    endloop.
  else.

    loop at screen.
      if screen-group = 'GR'.
        screen-active = 0.
        modify screen.
      endif.
    endloop.
  endif.

  at selection-screen.

    if p_rad1 = 'X'.
      v_chk = ' '.
    else.
      v_chk = 'X'.
    endif.

Regards,

Sailaja.