Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

at line-selection using classes

Former Member
0 Likes
403

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

1 REPLY 1
Read only

Former Member
0 Likes
367

*----


*

  • 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