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

help with selection screen

Former Member
0 Likes
840

Hi all,

i have a selection screen in which i have to select one of the 3 things using radio button.

based on each selection i.e radio button , i want to see a different selection screen.

let me know as how to proceed with this.

deepthi

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
815

You can try something like this.



report zrich_0001.


selection-screen begin of block b1 with frame.
parameters: p_g1 radiobutton group gp1 default 'X' user-command chk,
            p_g2 radiobutton group gp1.
selection-screen end of block b1.

selection-screen begin of block b2 with frame.
parameters: p_gltrp type afko-gltrp modif id g1.
parameters: p_werks type aufk-werks modif id g1.
parameters: p_datum type afko-gltrp modif id g2.
parameters: p_uzeit type aufk-werks modif id g2.
selection-screen end of block b2.

at selection-screen output.

  loop at screen.
    if p_g1 = 'X' and screen-group1 = 'G2'.
      screen-active = 0.
      modify screen.
    endif.
    if p_g2 = 'X' and screen-group1 = 'G1'.
      screen-active = 0.
      modify screen.
    endif.
  endloop.

Regards,

Rich Heilman

7 REPLIES 7
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
816

You can try something like this.



report zrich_0001.


selection-screen begin of block b1 with frame.
parameters: p_g1 radiobutton group gp1 default 'X' user-command chk,
            p_g2 radiobutton group gp1.
selection-screen end of block b1.

selection-screen begin of block b2 with frame.
parameters: p_gltrp type afko-gltrp modif id g1.
parameters: p_werks type aufk-werks modif id g1.
parameters: p_datum type afko-gltrp modif id g2.
parameters: p_uzeit type aufk-werks modif id g2.
selection-screen end of block b2.

at selection-screen output.

  loop at screen.
    if p_g1 = 'X' and screen-group1 = 'G2'.
      screen-active = 0.
      modify screen.
    endif.
    if p_g2 = 'X' and screen-group1 = 'G1'.
      screen-active = 0.
      modify screen.
    endif.
  endloop.

Regards,

Rich Heilman

Read only

0 Likes
815

hI ,

tHANKS FOR THE REPLY.

I UNDERSTOOD WHAT YOU ARE TALKING ABOUT.

THE SELECTION SCREEN AT THE BOTTOM CHANGES BASED ON THE RADIO BUTTON SELECTION.

INITIALLY I AM ABLE TO SEE THE THE SELECTION FOR THE RADIO BUTTON WHICH IS CHECKED BY DEFAULT.

IS THAT HOW IT WORKS

THANKS

Read only

0 Likes
815

Yep.

Regards,

Rich Heilman

Read only

0 Likes
815

You could set it so that the default radio button hides all of the fields (except the radio buttons) and when one of the other ones is selected, only the fields you want to display are shown.

Rob

Read only

0 Likes
815

Hi ,

i awarded points to all

thanks

Read only

Former Member
0 Likes
815

hi deepthi,

try doing this...

at selection-screen output.

Loop at screen.

IF p_rad1 = 'X'.(first radiobutton is selected)

IF screen-group1 = 'GR2'

screen-active = '0'.

screen-invisible = '1'.

ELSE.

screen-active = '1'.

screen-invisible = '0'.

ENDIF.

MODIFY SCREEN.

ELSE.

IF screen-group1 = 'GR1'. (second is selected)

screen-active = '0'.

screen-invisible = '1'.

ELSE.

screen-active = '1'.

screen-invisible = '0'.

ENDIF.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

hope this helps,

do reward if it helps,

priya.

Read only

SantoshKallem
Active Contributor
0 Likes
815

with the help of SCREEN table u can hide the block of selection-screen.

based on radio button u may see the area of screen.

regards.

santhosh

Message was edited by:

santhosh reddy