<?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: Control Framework: Fatal error - GUI cannot be reached in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-framework-fatal-error-gui-cannot-be-reached/m-p/1222789#M136985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andrew, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to 1.) If SY-Batch is initial. &lt;/P&gt;&lt;P&gt;         " it's dialog. &lt;/P&gt;&lt;P&gt;       ELSE.&lt;/P&gt;&lt;P&gt;       " it's batch&lt;/P&gt;&lt;P&gt;       ENDIF. &lt;/P&gt;&lt;P&gt;to 2.) Display data in batch in an old fashioned way, e.g. &lt;/P&gt;&lt;P&gt;using FM 'REUSE_ALV_LIST DISPLAY' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Apr 2006 14:05:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-21T14:05:58Z</dc:date>
    <item>
      <title>Control Framework: Fatal error - GUI cannot be reached</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-framework-fatal-error-gui-cannot-be-reached/m-p/1222788#M136984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written a program that uses the cl_gui_alv_grid class to display data.  The program works fine when run in the foreground but if a user tries to run it in the background they get the above error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that this is because the program is unable to access gui components when running in the background. I therefore need to test for background processing and either:&lt;/P&gt;&lt;P&gt;1. terminate the program&lt;/P&gt;&lt;P&gt;2. have some fallback procedure within the program to deal with background processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is therefore in two parts:&lt;/P&gt;&lt;P&gt;1. How do I find out if the program has been set to run in the background?&lt;/P&gt;&lt;P&gt;2. What do I need to do to allow my program to work in the background? i.e. is there a function/class that I can pass the data to that will do this or do I have to re-write the report in full as if I wasn't using the grid viewer at all?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2006 13:59:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-framework-fatal-error-gui-cannot-be-reached/m-p/1222788#M136984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-21T13:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Control Framework: Fatal error - GUI cannot be reached</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-framework-fatal-error-gui-cannot-be-reached/m-p/1222789#M136985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Andrew, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to 1.) If SY-Batch is initial. &lt;/P&gt;&lt;P&gt;         " it's dialog. &lt;/P&gt;&lt;P&gt;       ELSE.&lt;/P&gt;&lt;P&gt;       " it's batch&lt;/P&gt;&lt;P&gt;       ENDIF. &lt;/P&gt;&lt;P&gt;to 2.) Display data in batch in an old fashioned way, e.g. &lt;/P&gt;&lt;P&gt;using FM 'REUSE_ALV_LIST DISPLAY' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2006 14:05:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-framework-fatal-error-gui-cannot-be-reached/m-p/1222789#M136985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-21T14:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Control Framework: Fatal error - GUI cannot be reached</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-framework-fatal-error-gui-cannot-be-reached/m-p/1222790#M136986</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;Do this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE the container only upon the following condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF CL_GUI_ALV_GRID=&amp;gt;OFFLINE IS INITIAL&lt;/P&gt;&lt;P&gt; CREATE THE CONTAINER&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Continue with creating the grid, field catalog etc etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note :Please close the post, if the issue is answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2006 14:08:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-framework-fatal-error-gui-cannot-be-reached/m-p/1222790#M136986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-21T14:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Control Framework: Fatal error - GUI cannot be reached</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-framework-fatal-error-gui-cannot-be-reached/m-p/1222791#M136987</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;You should check the CL_GUI_ALV_GRID=&amp;gt;OFFLINE as Ravi said and the force the print.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do it setting the IS_PRINT-PRINT of method SET_TABLE_FOR_FIRST_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way you program should generate a spool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2006 14:16:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-framework-fatal-error-gui-cannot-be-reached/m-p/1222791#M136987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-21T14:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Control Framework: Fatal error - GUI cannot be reached</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/control-framework-fatal-error-gui-cannot-be-reached/m-p/1222792#M136988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone for your really fast responses!  It seems to be working so points duly awarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Apr 2006 14:59:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-framework-fatal-error-gui-cannot-be-reached/m-p/1222792#M136988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-21T14:59:11Z</dc:date>
    </item>
  </channel>
</rss>

