<?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 problem in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-problem-in-background/m-p/5216756#M1206445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at example code: BCALV_GRID_01, where they suppress the error by catching it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using the ABAP Grid Control (OO object), you can still create the ALV list as a spool listing for the background job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest way to do this is to put all the create object statements and method calls for the custom container and ALV grid object inside a subroutine (for example, present_grid).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All that is required is a simple check of the sy-batch variable to determine if the program is being executed in the foreground or background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. if sy-batch is initial.&lt;/P&gt;&lt;P&gt;call screen 0100.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;perform present_grid.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a PBO module of screen 0100, the subroutine present_grid is also performed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set_table_for_first_display method will be invoked in the routine present_grid, however, due to the job being executed in the background, the ALV list output will be written as spool output for the background job.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 22 Feb 2009 20:09:09 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2009-02-22T20:09:09Z</dc:date>
    <item>
      <title>ALV Grid problem in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-problem-in-background/m-p/5216755#M1206444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I schedule normal ALV Grid report in background I am getting "GUI can't be reached" in spool.&lt;/P&gt;&lt;P&gt;Any solution for this....?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot..&lt;/P&gt;&lt;P&gt;Apps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Feb 2009 19:01:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-problem-in-background/m-p/5216755#M1206444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-22T19:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid problem in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-problem-in-background/m-p/5216756#M1206445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at example code: BCALV_GRID_01, where they suppress the error by catching it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using the ABAP Grid Control (OO object), you can still create the ALV list as a spool listing for the background job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest way to do this is to put all the create object statements and method calls for the custom container and ALV grid object inside a subroutine (for example, present_grid).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All that is required is a simple check of the sy-batch variable to determine if the program is being executed in the foreground or background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. if sy-batch is initial.&lt;/P&gt;&lt;P&gt;call screen 0100.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;perform present_grid.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a PBO module of screen 0100, the subroutine present_grid is also performed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set_table_for_first_display method will be invoked in the routine present_grid, however, due to the job being executed in the background, the ALV list output will be written as spool output for the background job.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Feb 2009 20:09:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-problem-in-background/m-p/5216756#M1206445</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-02-22T20:09:09Z</dc:date>
    </item>
  </channel>
</rss>

