<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: 2 ALV_LIST objects in one screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-alv-list-objects-in-one-screen/m-p/2525402#M572048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, you can use custom container for this purpose. And use the class set_table_for_first_display, to display the data inside the container.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jul 2007 07:16:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-20T07:16:49Z</dc:date>
    <item>
      <title>2 ALV_LIST objects in one screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-alv-list-objects-in-one-screen/m-p/2525400#M572046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I have a question. How to display 2 ALV_LISTs with different data in the screen? It's important that both should have separate sorting options bars. Greetings. P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 06:49:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-alv-list-objects-in-one-screen/m-p/2525400#M572046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T06:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: 2 ALV_LIST objects in one screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-alv-list-objects-in-one-screen/m-p/2525401#M572047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Within a dynpro screen, you can should be able to create two custom containers and then put an ALV grid in each (i.e. an cl_gui_alv_grid in each control)... example below is a very quick cut-and-paste based on SAP's report BCALV_GRID_DEMO - screen 0100 was just adjusted slightly to have two customer controls, ALV_CONTAINER1 &amp;amp; ALV_CONTAINER2... in real life you'd obviously be filling each ALV grid from different data sources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;program zlocal_jc_bcalv_grid_twin.

data:
  ok_code               like sy-ucomm,
  gt_sflight            type table of sflight,
  g_container1          type scrfname value 'ALV_CONTAINER1',
  g_container2          type scrfname value 'ALV_CONTAINER2',
  go_grid1              type ref to cl_gui_alv_grid,
  go_grid2              type ref to cl_gui_alv_grid,
  go_custom_container1  type ref to cl_gui_custom_container,
  go_custom_container2  type ref to cl_gui_custom_container.

start-of-selection.

  select * from sflight
    into table gt_sflight.

  call screen 100.


*----------------------------------------------------------------------*
*  MODULE pbo OUTPUT
*----------------------------------------------------------------------*
module pbo output.

  set pf-status 'MAIN100'.
* ALV1
  if not go_custom_container1 is bound.

    create object go_custom_container1
      exporting
        container_name = g_container1.

    create object go_grid1
      exporting
        i_parent = go_custom_container1.

    call method go_grid1-&amp;gt;set_table_for_first_display
      exporting
        i_structure_name = 'SFLIGHT'
      changing
        it_outtab        = gt_sflight.

  endif.
* ALV2
  if not go_custom_container2 is bound.

    create object go_custom_container2
      exporting
        container_name = g_container2.

    create object go_grid2
      exporting
        i_parent = go_custom_container2.

    call method go_grid2-&amp;gt;set_table_for_first_display
      exporting
        i_structure_name = 'SFLIGHT'
      changing
        it_outtab        = gt_sflight.

  endif.

endmodule.                    "pbo OUTPUT

*----------------------------------------------------------------------*
*  MODULE pai INPUT
*----------------------------------------------------------------------*
module pai input.

* to react on oi_custom_events:
  call method cl_gui_cfw=&amp;gt;dispatch.
  case ok_code.
    when 'EXIT'.
      perform exit_program.
    when others.
*     do nothing
  endcase.
  clear ok_code.

endmodule.                    "PAI INPUT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  exit_program
*&amp;amp;---------------------------------------------------------------------*
form exit_program.
  leave program.
endform.                    "EXIT_PROGRAM&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 07:11:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-alv-list-objects-in-one-screen/m-p/2525401#M572047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T07:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: 2 ALV_LIST objects in one screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-alv-list-objects-in-one-screen/m-p/2525402#M572048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, you can use custom container for this purpose. And use the class set_table_for_first_display, to display the data inside the container.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 07:16:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-alv-list-objects-in-one-screen/m-p/2525402#M572048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T07:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: 2 ALV_LIST objects in one screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-alv-list-objects-in-one-screen/m-p/2525403#M572049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey P,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can take 2 subscreen areas and call one ALV list in one subscreen and another list in the other subscreen. Even u r going to get separate sorting options bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert back to me, if any doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;jbs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 08:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-alv-list-objects-in-one-screen/m-p/2525403#M572049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T08:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: 2 ALV_LIST objects in one screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-alv-list-objects-in-one-screen/m-p/2525404#M572050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP program BALVBT01 provides an example of displaying multiple ALV LIST reports on one page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ameet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 08:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-alv-list-objects-in-one-screen/m-p/2525404#M572050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T08:29:12Z</dc:date>
    </item>
  </channel>
</rss>

