Skip to Content
0
Dec 21, 2007 at 05:01 PM

cl_salv_tooltip error ?

36 Views

Hi,

I am using SALV TREE and make tooltip for tree nodes , but i am getting a syntax error invalid parameter.


method set_color_for_tooltips.
  data: settings type ref to cl_salv_tree_settings,
  tooltips type ref to cl_salv_tooltips, 
  value type lvc_value.
  settings = gr_tree->get_tree_settings( ).
  tooltips = settings->get_tooltips( ).
  value = if_salv_c_tree_style=>emphasized_negative.
try.
  tooltips->add_tooltip(
  type = cl_salv_tooltip=>cl_type_tree_style
  value = value
  tooltip = text-100 ).
  catch cx_salv_existing.
endtry.
  value = if_salv_c_tree_style=>emphasized_positive.
try.
  tooltips->add_tooltip(
  type = cl_salv_tooltip=>cl_type_tree_style 
  value = value
  tooltip = text-101 ). "<<<<<< Error pointing to this
  catch cx_salv_existing.
endtry.
endmethod.