<?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/1498666#M231224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Christian,  please remember that the gui controls depend heavily on the frontend, in your situation the tree control needs the frontend(sapgui) to render the tree.  So running this in the background will not work and there is no way to get it to work.  You need to come up with a different way to show the data to the user.  One way is to build a custom table with the data with a separate program.  Then develop another program which would read this data and present to the user in your tree control in a online transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to SDN!&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, 05 Sep 2006 23:01:03 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-09-05T23:01:03Z</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/1498665#M231223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario: I have created a report which shows results using an ALV tree (cl_gui_alv_tree). Due to it is a heavy process, it must to be run in the background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem: when running this process in the background I get get the error message: Control Framework: Fatal error - GUI cannot be reached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do? I need to show the resulting tree to the user when the process finishes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me, please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                           Thanks a lot in advance&lt;/P&gt;&lt;P&gt;                            Christian.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2006 22:34:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-framework-fatal-error-gui-cannot-be-reached/m-p/1498665#M231223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-05T22:34:41Z</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/1498666#M231224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Christian,  please remember that the gui controls depend heavily on the frontend, in your situation the tree control needs the frontend(sapgui) to render the tree.  So running this in the background will not work and there is no way to get it to work.  You need to come up with a different way to show the data to the user.  One way is to build a custom table with the data with a separate program.  Then develop another program which would read this data and present to the user in your tree control in a online transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to SDN!&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, 05 Sep 2006 23:01:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-framework-fatal-error-gui-cannot-be-reached/m-p/1498666#M231224</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-05T23:01:03Z</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/1498667#M231225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the function &amp;lt;b&amp;gt;GUI_IS_AVAILABLE&amp;lt;/b&amp;gt; to find out whether GUI is available or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;if return_flag = 'X'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;*Then show your report using CL_GUI_ALV_TREE.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;else.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Show Report tree using RS&lt;/STRONG&gt; Functions.&lt;/P&gt;&lt;P&gt;*Please see the report &amp;lt;b&amp;gt;ERGP2600&amp;lt;/b&amp;gt; for your reference.This can be executed in the background.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;endif.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Sep 2006 08:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-framework-fatal-error-gui-cannot-be-reached/m-p/1498667#M231225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-06T08:38:33Z</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/1498668#M231226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Building a custom table with the data with a separate online transaction seems to be the solution. But I need a way to know when the background process finishes in order to show the tree to the user. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I'm trying the next solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A main program that runs a process in the background, then background process computes data, mean while main process sleeps. After that, background process triggers an event before it fineshes, then (due to the event) main program wakes up and receives data from background process to finally show the desired tree. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I can trigger an event using BP_EVENT_RAISE FM, but I don't how to wake up the main process and how to transfer data between processes (I know I can do it by using a custom table, but maybe there is another way).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 22:41:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-framework-fatal-error-gui-cannot-be-reached/m-p/1498668#M231226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-07T22:41:47Z</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/1498669#M231227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think that it is a good idea to hang up a dialog process for that long, especially in sleep mode.  I would advise that you have one main driver program, on the selection screen the user can elect to kick off the back ground program to do the processing.  Then the use can check in SM37 to see if the job is finished yet,  then he can run the same driver program which he can elect to run the report from the db table.  I'm think the use of radiobuttons on the selection screen.  We have done a couple programs like this at my company.  User seems to be ok with it.&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>Thu, 07 Sep 2006 23:20:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-framework-fatal-error-gui-cannot-be-reached/m-p/1498669#M231227</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-07T23:20:45Z</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/1498670#M231228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I think that's the option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the info.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 17:39:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/control-framework-fatal-error-gui-cannot-be-reached/m-p/1498670#M231228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T17:39:48Z</dc:date>
    </item>
  </channel>
</rss>

