Skip to Content
0
Former Member
Oct 03, 2007 at 11:50 AM

Hiding Selection Screens

12 Views

I wanted to ask for a way to hide my selection screens.

Im working on 3 blocks with all radio buttons. There is block b1 which has 3 radio buttons, and blocks b2 and b3.. which i want hidden and I dont know how to hide it. Blocks b2 and b3 must only show up when a selection from any radio buttons from b1 is made. Can anybody tell me how to hide the blocks at startup?

Here is my code...

data: group_id(3) type c.

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

  • Selection parameters

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

SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE text-001.

PARAMETERS:p_frm LIKE ekko-aedat,

p_to LIKE ekko-aedat.

SELECTION-SCREEN END OF BLOCK a.

selection-screen begin of block b1 with frame title text-002.

parameters: pad radiobutton group one,

pbb radiobutton group one,

pcrc radiobutton group one.

selection-screen begin of block b2 with frame title text-003.

parameters: p_aj radiobutton group thr modif id sru default 'X' user-command ucom,

p_ae radiobutton group thr modif id sru,

p_as radiobutton group thr modif id sru,

p_ak radiobutton group thr modif id sru.

parameters: thr no-display.

selection-screen end of block b2.

selection-screen begin of block b3 with frame title text-003.

parameters: p_bae radiobutton group two default 'X' user-command ucom modif id bb,

p_mg radiobutton group two modif id bb,

p_mkt radiobutton group two modif id bb,

p_co radiobutton group two modif id bb.

parameters: two no-display.

selection-screen end of block b3.

selection-screen end of block b1.

parameters: b2 no-display.

at selection-screen output.

screen-active = 0.

case 'X'.

when pad.

group_id = 'sru'.

when pbb.

group_id = 'bb'.

endcase.

loop at screen.

if screen-group1 = group_id.

screen-active = 1.

modify screen.

endif.

endloop.

Thanks!!! Your help is very much appreciated.