Skip to Content
0
Former Member
Aug 30, 2012 at 12:38 PM

Not able to trigger double click on oops alv

99 Views

Hi

I have designed a program for alv oops using class cl_salv_data,

I am successfully able to run first output but when i double click on any field on first screen than i am not able to go inside of it

I have written code like this

CALL SCREEN 100.
*
INCLUDE YSDR_TEST_MP.

*----------------------------------------------------------------------*
CLASS event_class DEFINITION.
*Handling double click
PUBLIC SECTION.
METHODS:
handle_double_click
FOR EVENT double_click OF cl_gui_alv_grid IMPORTING e_row .
ENDCLASS. "lcl_event_receiver DEFINITION
*----------------------------------------------------------------------*
* CLASS lcl_event_receiver IMPLEMENTATION
*----------------------------------------------------------------------*
CLASS event_class IMPLEMENTATION.
METHOD handle_double_click.
BREAK-POINT.
clear wa_data.
*Reading the selected data into a variable
READ TABLE it_data INDEX e_row-index INTO wa_data.

CALL SCREEN 101.
ENDMETHOD. "handle_double_click
ENDCLASS. "lcl_event_receiver IMPLEMENTATION

MODULE PBO_100 OUTPUT.

PERFORM set_status_For_checkbox.

SET PF-STATUS 'MAIN100'.

IF G_CUSTOM_CONTAINER IS INITIAL.

CREATE OBJECT G_CUSTOM_CONTAINER
EXPORTING
CONTAINER_NAME = G_CONTAINER.

TRY.
CALL METHOD CL_SALV_TABLE=>FACTORY(
EXPORTING
* LIST_DISPLAY = IF_SALV_C_BOOL_SAP=>FALSE
R_CONTAINER = G_CUSTOM_CONTAINER
* CONTAINER_NAME = G_CUSTOM_CONTAINER
IMPORTING
R_SALV_TABLE = O_ALV
CHANGING
T_TABLE = it_data )
.
CATCH CX_SALV_MSG .
ENDTRY.
O_ALV->DISPLAY( ).

ENDIF.
ENDMODULE. "PBO OUTPUT