Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ALV Tooltip question

I met a very strange problem, when I set tool tip for a ALV column header, I found the column name is always in front of the ALV table.

For example, if the column name is 'ID', I set the tooltip as 'Hello world', the tooltip will always be 'ID - Hello World'.

But I only need 'Hello World'.

Can anybody assist?

Best regards,

Blake Le

replied

I can confirm that the same thing happens in my 7.0 EnhP2 system. It appears that no matter what settings you use the column title is always prefixed in front of the tooltip you specify. I am assuming that this is how it is designed to work. I even tried clearing the DDIC Binding to make sure that wasn't causing it.

DATA l_header TYPE REF TO cl_salv_wd_column_header.
  DATA l_column TYPE REF TO cl_salv_wd_column.
  l_column = l_table->if_salv_wd_column_settings~get_column( 'CREATED_BY' ).
  l_header = l_column->get_header( ).
  l_header->set_prop_ddic_binding_field(
    property =  if_salv_wd_c_ddic_binding=>bind_prop_text
    value = if_salv_wd_c_ddic_binding=>ddic_bind_none ).
  l_header->set_prop_ddic_binding_field(
    property =  if_salv_wd_c_ddic_binding=>BIND_PROP_TOOLTIP
    value = if_salv_wd_c_ddic_binding=>ddic_bind_none ).
  l_header->set_tooltip( `TTCreated By` ).
  l_header->set_text( `Created By` ).
  l_header->set_header_text_wrapping( abap_true ).
  l_column->set_resizable( abap_true ).

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question