‎2010 Oct 06 12:15 PM
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
‎2010 Oct 06 12:20 PM
‎2010 Oct 06 12:20 PM
Standard functionality of the display button on ALV toolbar....
Otherwise, question is not new, search the forum.
‎2010 Oct 06 12:21 PM
‎2010 Oct 06 12:25 PM
‎2010 Oct 06 12:45 PM
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
‎2010 Oct 06 12:55 PM