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 build fieldcatalog dynamically

Building fieldcat dynamically. Class-Method:   Parameters:     Codes:   data lt_fieldcat type slis_t_fieldcat_alv. data ls_fieldcat type slis_fieldcat_alv. data ls_layout   type      slis_layout_alv. data lo_aele  type ref to cl_abap_elemdescr. data lo_asdes type ref to cl_abap_structdescr. data ls_dfies type        dfies. field-symbols <fs_comp>             like line of lo_asdes->components. field-symbols <fs_field> type any. * Creating Structure Obj. lo_asdes ?= cl_abap_structdescr=>describe_by_data(    p_data = is_structure ). Click here for downloading full code