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

TWO ALV USING SPLITTER CONTAINER

Former Member
0 Likes
2,663

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

6 REPLIES 6
Read only

former_member242255
Active Contributor
0 Likes
1,568

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.

Read only

Former Member
0 Likes
1,568

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

Read only

Former Member
0 Likes
1,568

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

Read only

Former Member
0 Likes
1,568

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.

Read only

0 Likes
1,568

i want in same screen

Read only

0 Likes
1,568

Yes using the steps given ny Murali your achievement will be achieved on the same screen

regards

Isaac Prince