2008 Oct 07 6:16 PM
hi all,
can any one tell me how to display tow alv's side by side on one
screen.
thanks.
hi all,
can any one tell me how to display tow alv's side by side on one
screen.
thanks.
2008 Oct 07 6:18 PM
Use two container and display the alv inside the two different container,
Regards,
Midhun abraham
2008 Oct 07 6:18 PM
Hi,
This code will do it.
report ztwo_alvs.
data: gt_alv1 type table of t001,
gt_alv2 type table of t001.
data: gr_splitter type ref to cl_gui_easy_splitter_container,
gr_alv1 type ref to cl_gui_alv_grid,
gr_alv2 type ref to cl_gui_alv_grid.
start-of-selection.
call screen 0100.
*&---------------------------------------------------------------------*
*& Module pbo OUTPUT
*&---------------------------------------------------------------------*
module pbo output.
data: lv_name type dd02l-tabname value 'T001'.
check ( gr_splitter is initial ).
create object gr_splitter
exporting parent = cl_gui_container=>screen0
orientation = 1
sash_position = 50.
create object gr_alv1
exporting i_parent = gr_splitter->top_left_container.
create object gr_alv2
exporting i_parent = gr_splitter->bottom_right_container.
call method gr_alv1->set_table_for_first_display
exporting
i_structure_name = lv_name
changing
it_outtab = gt_alv1.
call method gr_alv2->set_table_for_first_display
exporting
i_structure_name = lv_name
changing
it_outtab = gt_alv2.
endmodule. " pbo OUTPUTWhere the screen is.
process before output.
module pbo.
process after input.
module pai.Regards,
Darren
2008 Oct 07 6:21 PM
thank u,
but iam not using oops concept, kindly tell me how to achive this using normal alv.
2008 Oct 07 6:32 PM
As, per the requirement these function modules may be handy.
REUSE_ALV_BLOCK_LIST_APPEND
REUSE_ALV_BLOCK_LIST_DISPLAY
If you have a link in between the two lists and it is something like a secondary list, you can even use
REUSE_ALV_HIERSEQ_LIST_DISPLAY by passing two internal table fields with common field in table item.
Thanks,
Sudhir.
2008 Oct 07 6:26 PM
it is not possible if you don't use OO ALV. in case of normal ALV you have only option left which is Block list , which comes one after the other. not side by side.
2008 Oct 07 8:35 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |