Skip to Content
avatar image
Former Member

ALV functions using the class cl_salv_gui_table_ida for ALV display

Hi Gurus,

I am trying to use some ALV functionalities using the class : CL_SALV_GUI_TABLE_IDA. My requirement is to get the column-width optimize functionality and also, I have a column with various icons, for which I need to have tool tips.

Could please specify its use via this class ?

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jul 24, 2017 at 08:44 PM

    Icon tooltips seem to work like this:

    go_alv->field_catalog( )->display_options( )->set_tooltip_for_icons(
      iv_field_name = 'ICON_COL'
      its_tooltips  = VALUE #( ( icon = icon_oo_class tooltip = 'Text' ) )
    ).
    

    Regarding column width optimization: In my testing it seems to be always on. Also in the layout settings there is no tab to enable / disable it. I assume because of the grouping / paging functionality there is no setting for it. Anyways you can optimize column width on demand using the context menu.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      I think you are right... There might be a issue with the data-element !!

      The icons are extracted from a CDS view, and the field is calculated in the view.

      I will try with another one and get back to you...

      Thanks,

      Fabian...

  • avatar image
    Former Member
    Jul 27, 2017 at 07:55 AM

    bonjour

    Add comment
    10|10000 characters needed characters exceeded