Skip to Content
avatar image
Former Member

How to get the first visible column of a table?

Hello everybody,

I am working with a normal table (not ALV) and want to know the first visible column of a table, to set the focus to it. Because the Admin can change the standard position of the columns in configuration editor and the even the user can columns hide, it's needed to read at runtime the first visible column out. Or maybe there st an other possibility I doesn't know, you can set the focus to the first column of a table.

Thanks for reply and

kind regards

Christian

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    May 15, 2008 at 12:04 PM

    hi christian.........

    you can use the method get_first_visible_scroll_coll in class cl_wd_table.

    ---regards,

    alex b justin

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Alex,

      also Master column is initial, because I don't use it.

      The Problem is, I can take the attributes of a column from the view in the wdmodifyview. But the get_fixed_position( ) and get_visible attributes are the designtime values and not the current at runtime the user see.

      Kind regards

      Christian