cancel
Showing results for 
Search instead for 
Did you mean: 

ToolTipTex on alv

Former Member
0 Kudos

hi

i want to tooltiptex on a column

this my code :

DATA: lr_caption TYPE REF TO CL_SALV_WD_UIE_CAPTION.

DATA l_c TYPE string.

lr_column = l_value->if_salv_wd_column_settings~get_column( 'TXT01').

CONCATENATE gs_tab1-txt01 gs_tab1-txt02 INTO l_c .

CREATE OBJECT lr_caption.

lr_caption->set_text( l_c ).

CALL METHOD LR_CAPTION->SET_TOOLTIP

EXPORTING

VALUE = gs_tab1-hepsi

.

lr_column->set_cell_editor( lr_caption ).

but because of this code my column's value larking

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Mesut ,

Please use the following code

DATA: lr_caption TYPE REF TO CL_SALV_WD_UIE_CAPTION.

DATA l_c TYPE string.

DATA: lr_header type ref to CL_SALV_WD_COLUMN_HEADER.

lr_column = l_value->if_salv_wd_column_settings~get_column( 'TXT01').

lr_header = lr_column->GET_HEADER( ).

CONCATENATE gs_tab1-txt01 gs_tab1-txt02 INTO l_c .

lr_header->SET_TEXT( l_c ).

lr_header->SET_TOOLTIP( gs_tab1-hepsi ).

This will resolve your problem .

Regards

Vivek

Former Member
0 Kudos

Hello Mesut ,

Did you try the solution which i have provided ??

Regards

Vivek

PS: Please provide the points if answer is helpful .

Edited by: Vivek Joshi on Dec 3, 2008 5:23 AM

Answers (0)