How to hide selection-screen fields dynamically

Hiding fields on selection-screen dynamically Screen 1   Screen 2     Codes:   report  zanil   . * Selection-Screen Hiding Fields Dynamically tables: mara. parameter: rb1 radiobutton group rb1            default ‘X’ user-command comm. parameter: rb2 radiobutton group rb1 . select–options: s_matnr for mara–matnr no intervals                        modif id I1. at selection-screen output.   if rb1 eq ‘X’.   loop at screen.     case screen–group1.       when ‘I1’.         screen–active = ‘1’.         modify screen.     endcase.   endloop.   else.   loop at screen.     case screen–group1.       when ‘I1’.         screen–active = ‘0’.         modify screen.     endcase.   endloop.   endif.

How to define a button on Selection-Screen toolbar

Selection-Screen:     Result:     Codes:   report  zanil. * Job: Define button on selection screen. tables: sscrfields. data lv_result type i. data lv_val    type string. * Parameters parameters: p_val1 type i obligatory. parameters: p_val2 type i obligatory. selection-screen function key 1. initialization.   move ‘Sum Values’ to sscrfields–functxt_01. at selection–screen.   if sscrfields–ucomm eq ‘FC01’.      lv_result = p_val1 + p_val2.      lv_val    = lv_result.      message lv_val type ‘S’.      return.   endif.