cancel
Showing results for 
Search instead for 
Did you mean: 

ALV Tooltip question

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

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 ).

Former Member
0 Kudos

Hi Thomas,

Thansk for your information.

Best regards,

Blake Le

Answers (1)

Answers (1)

Former Member
0 Kudos

up