Skip to Content
author's profile photo Former Member
Former Member

SET_HORIZONTAL_SCROLLBARS

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 18, 2005 at 10:52 AM

    Hi Sandeep,

    The column headings are to be populated in the FIELDCATALOG-COLTEXT field.

    Regards,

    Anand Mandalika.

    Could you please close the other threads by marking them as answered ?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 18, 2005 at 11:27 AM

    Hi Anand,

    I tried with col_text also that is not working. Regarding closing of the other threads in fact I wanted to have some more clarification in those cases but anyways I will close them .

    Best Regards

    Sandeep

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.