<?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: Error while running a job in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-running-a-job-in-background/m-p/4524223#M1069545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about or_grid?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Oct 2008 12:49:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-06T12:49:18Z</dc:date>
    <item>
      <title>Error while running a job in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-running-a-job-in-background/m-p/4524219#M1069541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  I got the following error message while running the job in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Step 001 started .&lt;/P&gt;&lt;P&gt;Control Framework: Fatal error - GUI cannot be reached.&lt;/P&gt;&lt;P&gt;ABAP/4 processor: RAISE_EXCEPTION&lt;/P&gt;&lt;P&gt;Job cancelled"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the reason for this error and how to correct it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 11:46:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-running-a-job-in-background/m-p/4524219#M1069541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T11:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error while running a job in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-running-a-job-in-background/m-p/4524220#M1069542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ALV Grid control is based on the custom controls on the screen. When the program is scheduled in background, it tries to create GUI related front-end objects and hence the error u201CFatal Error u2013 GUI cannot be reachedu201D. This type of problem is common with all the programs that use the ALV grid control to display the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever we execute this type of programs in background, we should be passing a blank docking container instead of the custom container as parent to our grid control.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The docking container doesnu2019t need any of the custom controls on the screen; instead it attaches an area to any or all of the four edges of the screen (top, left, right or bottom). The behavior of the areas in the container is determined by the sequence in which they are initialized. Docking Containers are attached to the screen from the inside out. This means that when you create a second container, it is attached to the edge of the screen, and the container that was already there is pushed outwards.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us modify the standard program (by taking a copy of it) to enable it to execute it in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following modifications have to be made:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        Define a docking container in the program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: or_doc  type ref to cl_gui_docking_container .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;·        At the time of creating a custom container, check if the program is being executed in background or foreground. If the program is scheduled in background, then create a docking container instead of custom container.&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;&lt;/P&gt;&lt;P&gt;    create object or_custom_container &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           exporting container_name = c_container. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  create object or_grid &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         exporting i_parent = or_custom_container. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create object or_grid &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         exporting i_parent = or_doc . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif .  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now test executing the program in background. The report would be generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 11:50:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-running-a-job-in-background/m-p/4524220#M1069542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T11:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error while running a job in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-running-a-job-in-background/m-p/4524221#M1069543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to declare for c_container and or_custom_container.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 12:38:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-running-a-job-in-background/m-p/4524221#M1069543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T12:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error while running a job in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-running-a-job-in-background/m-p/4524222#M1069544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C_CONTAINER TYPE SCRFNAME VALUE 'SCREENNAME ',&lt;/P&gt;&lt;P&gt;OR_CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 12:45:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-running-a-job-in-background/m-p/4524222#M1069544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T12:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error while running a job in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-running-a-job-in-background/m-p/4524223#M1069545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about or_grid?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 12:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-running-a-job-in-background/m-p/4524223#M1069545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T12:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error while running a job in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-running-a-job-in-background/m-p/4524224#M1069546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA : or_grid  TYPE REF TO CL_GUI_ALV_GRID,&lt;/P&gt;&lt;P&gt;or_doc type REF TO CL_GUI_DOCKING_CONTAINER .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 12:53:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-running-a-job-in-background/m-p/4524224#M1069546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T12:53:42Z</dc:date>
    </item>
  </channel>
</rss>

