I have a requirement in which i have to create a dynamic internal table.The number of fields to be displayed will vary at run time. I am able to create the dynamic internal table as well as able to display it using OOPs. I am passing <fs_dyntable> with dynamic field catalog gint_fldcat in below method
But the problem is that field headings for the fields doesn't display in output. Please find below snapshot.
**--Display the data in the grid control
CALL METHOD gt_grid->set_table_for_first_display
i_buffer_active = 'X'
i_bypassing_buffer = ' '
i_default = 'X'
is_layout = gint_layout
it_outtab = <fs_dyntable>
it_fieldcatalog = gint_fldcat
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc <> 0.
Please help me to get the field headings using OOPs..
Thanks and Regards