Skip to Content
0
Former Member
Jun 12, 2007 at 06:54 AM

hiding a block in selection screen

919 Views

Hi everybody,

My requirement is to hide the entire block of a particular selection screen, find the below selection screen code. with my piece of code,iindividual fields are getting hidden, please let me know how to hide the entire block.

If I select rb_det then the block b2 should hide.

Selection screen :

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t02.

PARAMETER: rb_sum RADIOBUTTON GROUP rtyp DEFAULT 'X' USER-COMMAND DISP,

rb_det RADIOBUTTON GROUP rtyp.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t04.

PARAMETER: cb_asco AS CHECKBOX DEFAULT 'X' modif id SEL,

cb_divi AS CHECKBOX modif id SEL,

cb_buen AS CHECKBOX modif id SEL,

cb_prod AS CHECKBOX modif id SEL,

cb_bupa AS CHECKBOX modif id SEL,

cb_inob AS CHECKBOX modif id SEL.

SELECTION-SCREEN END OF BLOCK b2.

Existing code :

----


  • A T S E L E C T I O N - S C R E E N *

----


at selection-screen output.

loop at screen.

if screen-group1 = 'SEL'.

if rb_det = 'X'.

if screen-name = 'CB_ASCO' or

screen-name = 'CB_DIVI' or

screen-name = 'CB_BUEN' or

screen-name = 'CB_PROD' or

screen-name = 'CB_BUPA' or

screen-name = 'CB_INOB' .

screen-active = 0.

modify screen.

endif.

endif.

endif.

endloop.

Thanks in advance...

Regards,

Ravi