‎2007 Jun 11 1:39 PM
Hi,
<b>My requirement is</b>: I want to display two ALV in my report output.
I have two internal table. I want one ALV for each internal table.
It is almost same as that of Block list(can display multiple blocks in report output). But block list uses Function modules. I want same functionality but using Object oriented model.
Can any one help me please.
It will be great if you can give me ALV output in grid format
Warm Regards,
Izhar A Khan
‎2007 Jun 11 1:54 PM
Hi,
You have to define two screen areas as containers for each of the 2 ALV's. Then construct ALV grid on each of the areas using the CREATE OBJECT statement passing the container references.
Then use the SET_TABLE_FOR_FIRST_DISPLAY using each of the 2 ALV grid references & passing your internal tables.
Regards,
Sharat
‎2007 Jun 11 1:54 PM
Hi,
You have to define two screen areas as containers for each of the 2 ALV's. Then construct ALV grid on each of the areas using the CREATE OBJECT statement passing the container references.
Then use the SET_TABLE_FOR_FIRST_DISPLAY using each of the 2 ALV grid references & passing your internal tables.
Regards,
Sharat
‎2007 Jun 11 1:58 PM
Hi,
Just to elaborate :
Create the container like
(mr_contianer is type ref to CL_GUI_CUSTOM_CONTAINER.)
Draw two custom controls side by side in your screen ( say some 0100 ). Name them 'CNTRL1' & "CNTRL2'.
CREATE OBJECT: mr_container1
EXPORTING
container_name = 'CNTRL1'
repid = sy-repid
dynnr = gc_main.
CREATE OBJECT mr_grid1
EXPORTING
i_parent = mr_container1.
CREATE OBJECT mr_grid2
EXPORTING
i_parent = mr_container2.
‎2007 Jun 11 1:56 PM
‎2007 Jun 11 2:03 PM