<?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: System Variable to Identify Background Task? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-to-identify-background-task/m-p/564318#M21755</link>
    <description>&lt;P&gt;Not sure, but you could look in the Abap stack (call FM SYSTEM_CALLSTACK) for function AFRC_EXECUTE?&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jan 2018 11:59:57 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2018-01-17T11:59:57Z</dc:date>
    <item>
      <title>System Variable to Identify Background Task?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-to-identify-background-task/m-p/564317#M21754</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;Is there any system variable to identify whether a FM is called in background task, similar to SY-BATCH which is set when program is run in background mode.&lt;/P&gt;
  &lt;P&gt;[I have checked SY-BATCH, it is not set in case of BACKGROUND TASK.]&lt;/P&gt;
  &lt;P&gt;I need to put some condition inside the FM when it is run in background task as below:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'Z_TEST'
    IN BACKGROUND TASK
    DESTINATION 'NONE'
...
...
.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt; Is there any way to identify this using any existing system parameters or any other FM ?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 09:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-to-identify-background-task/m-p/564317#M21754</guid>
      <dc:creator>former_member208149</dc:creator>
      <dc:date>2018-01-17T09:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: System Variable to Identify Background Task?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-to-identify-background-task/m-p/564318#M21755</link>
      <description>&lt;P&gt;Not sure, but you could look in the Abap stack (call FM SYSTEM_CALLSTACK) for function AFRC_EXECUTE?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 11:59:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-to-identify-background-task/m-p/564318#M21755</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2018-01-17T11:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: System Variable to Identify Background Task?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-to-identify-background-task/m-p/564319#M21756</link>
      <description>&lt;P&gt;Depends on what you consider "Background". What if it's running in Web GUI, Web Dynpro, UI5, mobile?&lt;/P&gt;
  &lt;P&gt;If it's specifically SapGUI related, then you could use FM GUI_IS_AVAILABLE&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 13:04:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-variable-to-identify-background-task/m-p/564319#M21756</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2018-01-17T13:04:20Z</dc:date>
    </item>
  </channel>
</rss>

