‎2010 Dec 02 9:41 AM
HI ALL.
I WANT TO DISPLAY TWO DIFFERENT ALV USING SPLITTER.
ON DOUBLE CLICKING THE FIRST ALV THE SECOND ALV GET CALLED RESPECTIVE OF THE FIELDS I CHOOSE ON CLICKING
THE FIRST LIST IS IN LEFT SPLITTER . AND THE SECOND LIST IS IN RIGHT SPLITTER .
Moderator message: many examples are available, please search before asking, do not post in all upper case in these forums.
Edited by: Thomas Zloch on Dec 2, 2010 1:08 PM
‎2010 Dec 02 10:49 AM
CASE R_UCOMM.
WHEN '&IC1'.
READ TABLE IT_EKKO INTO WA_EKKO INDEX RS_SELFIELD-TABINDEX.
By writing this you can get the data for the line you have clicked and then call the method to display the day in the right side container by filling the field catalog and all the process.
‎2010 Dec 02 10:52 AM
Hello,
This thing would be approached by OOPS ALV.The steps for the same would be as follows:
-> Create a custom control on the screen.
-> create a custom container using CL_GUI_CUSTOM_CONTAINER
-> Create a splitter container using CL_GUI_SPLITTER_CONTAINER with the above created custom container as parent. Pass the rows as 2 and column as 1 or vice-versa
-> using the method GET_CONTAINER get the container name
-< Then use CL_GUI_ALV_GRID to create ALV Grid on the fetched container name.
Hope this helps.
Regards,
Himanshu
Edited by: Himanshu Aggarwal on Dec 2, 2010 4:32 PM
‎2010 Dec 02 11:04 AM
Hi,
CREATE OBJECT g_custom_container
EXPORTING
container_name = 'CONTAINER'.
CREATE OBJECT g_custom_container1
EXPORTING
container_name = 'CONTAINER1'.
CREATE OBJECT g_splitter
EXPORTING parent = G_CUSTOM_container
rows = 1
columns = 2.
CALL METHOD g_splitter->get_container
EXPORTING row = 1
column = 1
RECEIVING container = g_container_1.
CALL METHOD g_splitter->get_container
EXPORTING row = 1
column = 2
RECEIVING container = g_container_2.
CREATE OBJECT g_splitter1
EXPORTING parent = G_CUSTOM_container
rows = 1
columns = 2.
CALL METHOD g_splitter->get_container
EXPORTING row = 1
column = 1
RECEIVING container = g_container_1.
CALL METHOD g_splitter->get_container
EXPORTING row = 1
column = 2
RECEIVING container = g_container_2.
CALL METHOD g_splitter->get_container
EXPORTING row = 1
column = 2
RECEIVING container = g_container_2.
call method g_splitter1----
>set_table_for_first_display.
call method g_splitter2----
>set_table_for_first_display.
regards,
muralii
‎2010 Dec 02 11:31 AM
Hi,
If you want this kind scenario, better u can use method
METHODS
handle_double_click
FOR EVENT double_click
OF cl_gui_alv_grid
IMPORTING e_row.
just tell me you need the second screen on the same first screen or in the next screen.bcoz if you want display the
double clicked screen in the next screen . pls use the above method.
‎2010 Dec 02 11:33 AM
‎2010 Dec 02 11:39 AM
Yes using the steps given ny Murali your achievement will be achieved on the same screen
regards
Isaac Prince