07-05-2006 8:28 AM
Hi,
I am getting an alv grid output....and when i double click on a field i want a POP UP GRID ALV to be shown on that same screen.....
Thanks in advance......
07-05-2006 8:31 AM
U can do it triggering the user command event.
Inside the event u call the FM
REUSE_ALV_POPUP_TO_SELECT
Reward points if it is useful.
Regards,
Vasanth
07-05-2006 8:31 AM
U can do it triggering the user command event.
Inside the event u call the FM
REUSE_ALV_POPUP_TO_SELECT
Reward points if it is useful.
Regards,
Vasanth
07-05-2006 8:34 AM
07-05-2006 8:34 AM
You have to capture the double click event in the alv grid, then call function 'POPUP_FOR_INFORMATION' or some related to make the popup.
To capture the event in the ALV:
CLASS lcl_event_handler DEFINITION .
PUBLIC SECTION .
DATA: e_row_id TYPE REF TO lvc_s_row.
DATA: e_column_id TYPE REF TO lvc_s_col.
DATA: es_row_no TYPE lvc_s_roid.
DATA: es_col_id TYPE REF TO lvc_s_col.
*Double-click control
METHODS handle_button_click
FOR EVENT button_click OF cl_gui_alv_grid
IMPORTING es_col_id es_row_no. " E_COLUMN_ID.
PRIVATE SECTION.
ENDCLASS. "lcl_event_handler DEFINITION
CLASS lcl_event_handler IMPLEMENTATION .
*Handle Hotspot Click
METHOD handle_hotspot_click .
PERFORM handle_hotspot_click USING e_row_id e_column_id.
ENDMETHOD . "handle_hotspot_click
*Handle Button Click
METHOD handle_button_click .
PERFORM handle_button_click USING es_col_id es_row_no.
ENDMETHOD . "handle_Button_click
ENDCLASS . "lcl_event_handler IMPLEMENTATION
Then the form to make the popup:
FORM handle_button_click USING es_col_id TYPE lvc_s_col
es_row_no TYPE lvc_s_roid.
ENDFORM. " handle_double_click
Regards