Skip to Content
0
Former Member
Feb 08, 2011 at 04:56 AM

Hide and Show selection screen not working

130 Views

Hi experts,

In my report program i have 2 radio button in one block and another block i have 2 input paramters. If i select 2nd radio button the 2nd block should hide. But its not working for me, any one guide this.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS : p_werks TYPE t001w-werks OBLIGATORY,
           r_amn  RADIOBUTTON GROUP r1 DEFAULT 'X' ,
           r_mnc RADIOBUTTON GROUP r1.
SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002 .
PARAMETERS : p_run TYPE kala-kalaid   MODIF ID SC1.
PARAMETERS : p_date TYPE keko-kaladat  MODIF ID SC1.
SELECTION-SCREEN END OF BLOCK b2.

AT SELECTION-SCREEN OUTPUT.
   IF r_mnc = 'X'.
  LOOP AT SCREEN.
   IF screen-group1 = 'SC1'.
        screen-active = 0.
        MODIFY SCREEN.
       ENDIF.
  ENDLOOP.
 ENDIF.

Mohana