04-12-2006 1:54 PM
Hi,
I have three containers in Alv grid display.And three internal tables.One for each caontainer.Now i want to use double click on a particular row on any one of the three conmntainers.And get a drill down alv ie another alv to be displayed .WHICH FETCHES VALUE FROM A FOURTH INTERNEL TABLE how can i do this.
thanks and regards
Ahasan
04-12-2006 2:02 PM
Hi,
create 3 event listners , in each listner implement the event (method) double_click and set the handler for 3 grids, when ever you double click the corresponding will respond because of set handler.
in that double click event call another alv which shows the data from table 4.
Regards
vijay
04-12-2006 2:02 PM
Hi,
create 3 event listners , in each listner implement the event (method) double_click and set the handler for 3 grids, when ever you double click the corresponding will respond because of set handler.
in that double click event call another alv which shows the data from table 4.
Regards
vijay
04-12-2006 2:10 PM
04-12-2006 2:27 PM
Hi,
if you want a 4th ALV grid and want to use one of the control areas. and to populate this container you ll need to do the following
1. register a double click event for the ALV on which you want to make the double click (DBLCLICK_ROW_COL for CL_GUI_ALV_GRID)
2. call the alv grid similarly as you did for the above 3 in on of the control area while handling this event in the method of the class.
the extract of the code is
CLASS Lcl_application DEFINITION DEFERRED.
data : g_alv type ref to cl_gui_alv_grid,
event_receiver TYPE REF TO lcl_application.
SET HANDLER event_receiver->handle_double_click FOR g_alv.
CLASS lcl_application DEFINITION.
PUBLIC SECTION.
METHODS:
handle_double_click
FOR EVENT DOUBLE_CLICK OF cl_gui_alv_grid
IMPORTING E_ROW E_COLUMN ES_ROW_NO.
ENDCLASS. "lcl_application DEFINITION
CLASS lcl_application IMPLEMENTATION.
method handle_double_click.
code for creation of the 4th ALV goes here...
endmethod.
endclass.
hope you find this answer useful.
do get back in case of further clarifications
regards,
Kinshuk
PS reward points if you find the post helpful