Skip to Content
0
Sep 28, 2013 at 07:15 PM

Field Headings for Dynamic internal table doesn't get displayed using OOPs

29 Views

Hi Experts,

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

gt_grid->set_table_for_first_display.

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

EXPORTING

i_buffer_active = 'X'

i_bypassing_buffer = ' '

i_default = 'X'

is_layout = gint_layout

CHANGING

it_outtab = <fs_dyntable>

it_fieldcatalog = gint_fldcat

EXCEPTIONS

invalid_parameter_combination = 1

program_error = 2

too_many_lines = 3

OTHERS = 4.

IF sy-subrc <> 0.

ENDIF.

Please help me to get the field headings using OOPs..

Thanks and Regards

Shahab

Attachments

Pic.png (9.5 kB)