<?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: More than two alv grid by using Object Model in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/more-than-two-alv-grid-by-using-object-model/m-p/2227442#M478919</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Raja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If "Object Model" includes the "old-fashioned" class CL_GUI_ALV_GRID as well then have a look at my sample reports in the following threads:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="384685"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 May 2007 20:05:20 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2007-05-01T20:05:20Z</dc:date>
    <item>
      <title>More than two alv grid by using Object Model</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/more-than-two-alv-grid-by-using-object-model/m-p/2227440#M478917</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;Can u pls guide me to display more than two alv grids on a single screen by using &amp;lt;b&amp;gt;Object Model&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 18:45:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/more-than-two-alv-grid-by-using-object-model/m-p/2227440#M478917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T18:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: More than two alv grid by using Object Model</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/more-than-two-alv-grid-by-using-object-model/m-p/2227441#M478918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure,  You can simply have two container in your screen.  Check this program.&lt;/P&gt;&lt;P&gt;Create screen 100, and put two custom containers in the screen, call the first one ALV1_CONT and the second ALV2_CONT,  them implement this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT  zrich_0001.

data: ispfli type table of spfli.
data: isflight type table of sflight.

data: alv1_cont type ref to cl_gui_custom_container.
data: alv2_cont type ref to cl_gui_custom_container.
data: gr_alv1 type ref to cl_salv_table.
data: gr_alv2 type ref to cl_salv_table.

start-of-selection.

select * into table ispfli from spfli.
select * into table isflight from sflight.

call screen 100.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module STATUS_0100 output.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.

create object alv1_cont
        exporting
             container_name = 'ALV1_CONT'.

CALL METHOD cl_salv_table=&amp;gt;factory
   EXPORTING
*    list_display   = if_salv_c_bool_sap=&amp;gt;false
     r_container    = alv1_cont
*    container_name =
   IMPORTING
     r_salv_table   = gr_alv1
  CHANGING
    t_table        = ispfli.

gr_alv1-&amp;gt;display( ).

create object alv2_cont
        exporting
             container_name = 'ALV2_CONT'.

CALL METHOD cl_salv_table=&amp;gt;factory
   EXPORTING
*    list_display   = if_salv_c_bool_sap=&amp;gt;false
     r_container    = alv2_cont
*    container_name =
   IMPORTING
     r_salv_table   = gr_alv2
  CHANGING
    t_table        = isflight.

gr_alv2-&amp;gt;display( ).

endmodule.                 " STATUS_0100  OUTPUT

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 19:11:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/more-than-two-alv-grid-by-using-object-model/m-p/2227441#M478918</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-05-01T19:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: More than two alv grid by using Object Model</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/more-than-two-alv-grid-by-using-object-model/m-p/2227442#M478919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Raja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If "Object Model" includes the "old-fashioned" class CL_GUI_ALV_GRID as well then have a look at my sample reports in the following threads:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="384685"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 20:05:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/more-than-two-alv-grid-by-using-object-model/m-p/2227442#M478919</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-05-01T20:05:20Z</dc:date>
    </item>
  </channel>
</rss>

