<?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: ALV GRID with two Containers Background Execution in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-two-containers-background-execution/m-p/5652675#M1286105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In BG Mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the second ALV display, I downloaded the data into XL file and send it as email attachment to the user who executed the Program.&lt;/P&gt;&lt;P&gt;Thanks for your inputs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2009 09:09:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-27T09:09:15Z</dc:date>
    <item>
      <title>ALV GRID with two Containers Background Execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-two-containers-background-execution/m-p/5652666#M1286096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to display two &lt;STRONG&gt;ALV GRIDS&lt;/STRONG&gt; on two Container one below another in one screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with 'DOCKING CONTAINER' - it works fine in foreground and not in BACKGROUND exection. &lt;/P&gt;&lt;P&gt;In background execution (F9) only one grid is getting displayed.&lt;/P&gt;&lt;P&gt;Please suggent whether I can go for CUSTOM CONTAINER or SPLITTER or some other way. &lt;/P&gt;&lt;P&gt;But I should use &lt;STRONG&gt;GRID DISPLAY&lt;/STRONG&gt; and it should work in &lt;STRONG&gt;BACKGROUND EXECUTION&lt;/STRONG&gt; also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Viji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 07:38:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-two-containers-background-execution/m-p/5652666#M1286096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T07:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID with two Containers Background Execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-two-containers-background-execution/m-p/5652667#M1286097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use two custom containers are use different refernce for each.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 07:49:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-two-containers-background-execution/m-p/5652667#M1286097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T07:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID with two Containers Background Execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-two-containers-background-execution/m-p/5652668#M1286098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain in detail.&lt;/P&gt;&lt;P&gt;I have already tried with DOCKING CONTAINER. Only one GRID is getting displayed in the OUTPUT (SM37) when executing in BACKGROUND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Viji.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 10:07:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-two-containers-background-execution/m-p/5652668#M1286098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T10:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID with two Containers Background Execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-two-containers-background-execution/m-p/5652669#M1286099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create tow custom containers.&lt;/P&gt;&lt;P&gt;Creeate two object references for the contatiners &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : cont1 type ref to cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;         cont2 type ref to cl_gui_custom_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can place the grid in these contatiners with the help of two alv grid objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grid1 type ref to cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;grid2 type ref to cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Handle these two objects seperately as two different programs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 10:58:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-two-containers-background-execution/m-p/5652669#M1286099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-05T10:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID with two Containers Background Execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-two-containers-background-execution/m-p/5652670#M1286100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;I have tried with Custom Container. Its working in fore ground. In background execution it displays only one GRID in the output. How to resolve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Viji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 12:59:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-two-containers-background-execution/m-p/5652670#M1286100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T12:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID with two Containers Background Execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-two-containers-background-execution/m-p/5652671#M1286101</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;There is always a problem with the ALV in background if u use Containers / Grid to display more than one List at a time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a workaround solution u can try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the perform where you are displaying the ALVs check for the background mode ( SY-BATCH = 'X' ) and then call REUSE_ALV_LIST_DISPLAY one after another with the data you need to display. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-BATCH EQ 'X'.&lt;/P&gt;&lt;P&gt;PERFORM LIST_DISPLAY1. &lt;/P&gt;&lt;P&gt;PERFORM LIST_DISPLAY2. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the LIST_DISPLAY1 &amp;amp; LIST_DISPLAY2 call REUSE_ALV_LIST_DISPLAY to display the data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can control the SPOOL with IS_PRINT parameter of REUSE_ALV_LIST_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 13:40:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-two-containers-background-execution/m-p/5652671#M1286101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T13:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID with two Containers Background Execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-two-containers-background-execution/m-p/5652672#M1286102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhishek,&lt;/P&gt;&lt;P&gt;I tried with that. But still I'm getting only one GRID in the output Display. Second GRID is not getting displayed while executing in Background (F9). &lt;/P&gt;&lt;P&gt;Is there any other way to acheive this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Viji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 05:00:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-two-containers-background-execution/m-p/5652672#M1286102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T05:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID with two Containers Background Execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-two-containers-background-execution/m-p/5652673#M1286103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijaya, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should work. I am giving you a sample code. Try this and let me know. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT TEST.&lt;/P&gt;&lt;P&gt;data gt_lfa1 type standard table of lfa1.&lt;/P&gt;&lt;P&gt;data gt_kna1 type standard table of kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;  select * from lfa1 into table gt_lfa1 up to 10 rows.&lt;/P&gt;&lt;P&gt;  select * from kna1 into table gt_kna1 up to 20 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-selection.&lt;/P&gt;&lt;P&gt;  if sy-batch eq 'X'.&lt;/P&gt;&lt;P&gt;    perform display_lfa1.&lt;/P&gt;&lt;P&gt;    perform display_kna1.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form display_lfa1 .&lt;/P&gt;&lt;P&gt;  call function 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      i_callback_program = sy-repid&lt;/P&gt;&lt;P&gt;      i_structure_name   = 'LFA1'&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      t_outtab           = gt_lfa1&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      program_error      = 1&lt;/P&gt;&lt;P&gt;      others             = 2.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " DISPLAY_LFA1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form display_kna1 .&lt;/P&gt;&lt;P&gt;  call function 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      i_callback_program = sy-repid&lt;/P&gt;&lt;P&gt;      i_structure_name   = 'KNA1'&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      t_outtab           = gt_kna1&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      program_error      = 1&lt;/P&gt;&lt;P&gt;      others             = 2.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endform.                    " DISPLAY_KNA1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;copy and paste the code and create a program. Activate it and come back to SE38 screen. &lt;/P&gt;&lt;P&gt;Now, in program name give the name of the report created and then &lt;/P&gt;&lt;P&gt;select PROGRAM-&amp;gt;EXECUTE-&amp;gt;BACKGROUND from the MENU bar. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will generate two separate spools . One for KNA1 data &amp;amp; one for LFA1 data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know how it goes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 17:54:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-two-containers-background-execution/m-p/5652673#M1286103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-08T17:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID with two Containers Background Execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-two-containers-background-execution/m-p/5652674#M1286104</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;If you are using the Object method along with DOCKING container then you need &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check IF CL_GUI_ALV_GRID=&amp;gt;OFFLINE( ) IS INITIAL. Then create the container&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will convert the grid to a list in the background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLASS-DATA list TYPE REF TO cl_gui_alv_grid.
 
IF CL_GUI_ALV_GRID=&amp;gt;OFFLINE( ) IS INITIAL.
CREATE OBJECT g_custom_container
EXPORTING container_name = g_container.
ENDIF.
 
CREATE OBJECT list
EXPORTING i_parent = g_custom_container.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and after filling the itab use&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL METHOD list-&amp;gt;set_table_for_first_display
EXPORTING i_structure_name = 'ZTEST'
CHANGING it_outtab = gt_itab
it_sort = i_sort. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2009 18:08:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-two-containers-background-execution/m-p/5652674#M1286104</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-05-08T18:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID with two Containers Background Execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-two-containers-background-execution/m-p/5652675#M1286105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In BG Mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the second ALV display, I downloaded the data into XL file and send it as email attachment to the user who executed the Program.&lt;/P&gt;&lt;P&gt;Thanks for your inputs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 09:09:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-two-containers-background-execution/m-p/5652675#M1286105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-27T09:09:15Z</dc:date>
    </item>
  </channel>
</rss>

