Skip to Content
0
Former Member
May 18, 2005 at 10:41 AM

SET_HORIZONTAL_SCROLLBARS

101 Views

Hi All

In my program I am creating one dynamic internal table (no of columns and their heading known only at run time) with the following method.

CALL METHOD cl_alv_table_create=>create_dynamic_table

EXPORTING

it_fieldcatalog = fieldcatalog

  • it_grid_fcat

IMPORTING

ep_table = dref.

and then calling the following method to show it on the screen to the user

CALL METHOD grid->set_table_for_first_display

EXPORTING

is_layout = struct_grid_lset

CHANGING

it_outtab = <it_disptab>

it_fieldcatalog = fieldcatalog

.

But I am facing 2 problems in that

1) I am unable to get the column heads as passed thruough 'fieldcatalog-seltext'

2) I am not getting the horizontal scroll bar.

I tried to access the method

SET_HORIZONTAL_SCROLLBARS of class CL_GUI_ALV_GRID_BASE

but getting the message as this is protected.

any clue on above.

Best Regards

Sandeep