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

alv

Former Member
0 Likes
1,016

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.

6 REPLIES 6
Read only

Former Member
0 Likes
978

Use two container and display the alv inside the two different container,

Regards,

Midhun abraham

Read only

Former Member
0 Likes
978

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  OUTPUT

Where the screen is.

process before output.

  module pbo.

process after input.

  module pai.

Regards,

Darren

Read only

0 Likes
978

thank u,

but iam not using oops concept, kindly tell me how to achive this using normal alv.

Read only

0 Likes
978

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.

Read only

Former Member
0 Likes
978

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.

Read only

uwe_schieferstein
Active Contributor
0 Likes
978

Hello

You may want to have a look at:

Regards

Uwe