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

2 Alv on same screen

Former Member
0 Likes
785

Hi,

i need to use two alv on the same screen, for example when you clicked one key field on one of the alvs, the details of this data should be displayed in the second alv without disappering the main alv.

Is that possible?

Thanks.

Moderator Message: Easily searchable. Thread locked.

Edited by: kishan P on Oct 6, 2010 5:51 PM

6 REPLIES 6
Read only

Former Member
0 Likes
726

Hi,

yes it's possible.

regards, Dieter

Read only

Former Member
0 Likes
726

Standard functionality of the display button on ALV toolbar....

Otherwise, question is not new, search the forum.

Read only

Former Member
0 Likes
726

Yes there is a concept called Block ALVs. Try searching for it.

Example:

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
726

Search in sdn for ALV Splitter Container

Read only

Former Member
0 Likes
726

Hi

yes it is possible

you can do this by splitter container or define two diffrent containers on the same screen say container1 and container2.

then by using the OOPs concepts you can assign your both the alvs to respective containers.

for that you need to go through the ALV OOPS concepts and the classes and methods

Or you can define one container and by using splitter container you can dplit your one container in two containers and then define your ALV to respective container.

I cannot write the whole code, for this you need to search on net

Define container, ALV and fieldcatalog as below:

DATA : CUST_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER .

DATA : CUST_CONTAINER1 TYPE REF TO CL_GUI_CUSTOM_CONTAINER .

DATA : MY_ALV TYPE REF TO CL_GUI_ALV_GRID .

DATA : MY_ALV1 TYPE REF TO CL_GUI_ALV_GRID .

*DATA : EVENT TYPE REF TO MY_EVENT_HANDLER .

DATA: I_FCAT TYPE LVC_T_FCAT,

WA_FCAT TYPE LVC_S_FCAT.

DATA: I_FCAT1 TYPE LVC_T_FCAT,

WA_FCAT1 TYPE LVC_S_FCAT.

Create a class MY_EVENT_HANDLER DEFINITION.

and use the METHOD HANDLE_DOUBLE_CLICK For handling the double click on the first ALV.

Create objects for container and AVL and then call method set_table_for_first_display to display the ALV.

I mean It may not be clear to you so you need to sear on the net and see the class CL_GUI_ALV_GRID for ALv and CL_GUI_CUSTOM_CONTAINER for container.

Thanks

Lalit Gupta

Read only

Clemenss
Active Contributor
0 Likes
726

Hi hakaramakara,

SBP

{search before post}

Regards, Clemens