‎2008 Jul 14 6:22 AM
experts,
how to use hide statement to display the line items of the selected row on the basic list using classes .
since the syntactical error states that " hide is not supported with the attributes of a class ".
‎2008 Jul 14 6:33 AM
*----
*
CLASS lcl_handle_events DEFINITION
*----
*
§6.1 define a local class for handling events of cl_salv_table
*----
*
class lcl_handle_events definition.
public section.
methods:
on_double_click for event double_click of cl_salv_events_table
importing row column .
on_single_click FOR EVENT link_click OF cl_salv_events_table
IMPORTING row column.
endclass. "lcl_handle_events DEFINITION
*----
*
CLASS lcl_handle_events IMPLEMENTATION
*----
*
§6.2 implement the events for handling the events of cl_salv_table
*----
*
class lcl_handle_events implementation.
method on_double_click.
perform show_cell_info using 0 row column text-i05.
endmethod. "on_double_click
METHOD on_single_click.
perform show_cell_info using 0 row column text-i04.
ENDMETHOD. "on_single_click
endclass. "lcl_handle_events IMPLEMENTATION
form show_cell_info using i_level type i
i_row type i
i_column type lvc_fname
i_text type string.
use this instead of hide statement.......................
Reward IF.................
Regards
Anbu