<?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: check if program is executed in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972772#M70085</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;  If the issue is to displaying the error message in selection screen, you can use leave list-processing the moment you give the error message after the validation in Start-of-selection event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jul 2005 10:33:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-07-12T10:33:02Z</dc:date>
    <item>
      <title>check if program is executed in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972769#M70082</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;i have to perform certain selection option checks if the program is &amp;lt;b&amp;gt;executed in foreground only&amp;lt;/b&amp;gt;..&lt;/P&gt;&lt;P&gt;For this i am checking SY-BATCH within start-of-selection and then perform the selection option checks .. If selection option checks are not satisfied i display error message...now this error message is not displayed at the selection screen since i have written the code within START-OF-SELECTION...&lt;/P&gt;&lt;P&gt;I need to display this error message at the selection screen..&lt;/P&gt;&lt;P&gt;If i write the code within AT-SELECTION-SCREEN i am unable to check whether the program is executed in background or foreground since SY-BATCH is not filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swathi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2005 10:04:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972769#M70082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-12T10:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: check if program is executed in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972770#M70083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swathi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just have your checks in the ST SELECTION-SCREEN event. If the program is executed in foreground these checks will be performed. If it is executed in the background, the code within the AT SELECTION-SCREEN is not going to be executed anyways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you do not have to check for the SY-BATCH value at any point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that clear the problem ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2005 10:10:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972770#M70083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-12T10:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: check if program is executed in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972771#M70084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The checks in the SELECTION-SCREEN ST are performed irrespective of the program been executed in foreground or background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swathi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2005 10:18:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972771#M70084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-12T10:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: check if program is executed in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972772#M70085</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;  If the issue is to displaying the error message in selection screen, you can use leave list-processing the moment you give the error message after the validation in Start-of-selection event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2005 10:33:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972772#M70085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-12T10:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: check if program is executed in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972773#M70086</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;The execution of program stops after the display of error message...So the command LEAVE LIST-PROCESSING is not executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i use the command LEAVE LIST-PROCESSING before the message then how do i display the error message????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2005 10:55:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972773#M70086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-12T10:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: check if program is executed in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972774#M70087</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;  Please change the message type to 'S', this should help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2005 11:07:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972774#M70087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-12T11:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: check if program is executed in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972775#M70088</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;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;  CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;    WHEN 'ONLI'.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;foreground processing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;    WHEN 'SJOB'.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;background processing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that it will work.&lt;/P&gt;&lt;P&gt;Svetlin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Svetlin Rusev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2005 12:04:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972775#M70088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-12T12:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: check if program is executed in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972776#M70089</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;user wants the message to be an error message...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Swathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2005 12:05:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972776#M70089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-12T12:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: check if program is executed in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972777#M70090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I understood this a normal report executed in foreground via 'Execute' button (F8). If I am right you can check the foreground processing through the triggered function code, instead of sy-batch, which for 'F8' is 'ONLI' ( sy-ucomm field ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2005 12:13:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972777#M70090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-12T12:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: check if program is executed in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972778#M70091</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;  As far as I know, then there is no other option than validating in at selection-screen on field event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2005 12:17:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972778#M70091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-12T12:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: check if program is executed in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972779#M70092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;In start-of-selection.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;If &amp;lt;your condition&amp;gt;.&lt;/P&gt;&lt;P&gt;  message s398(00) with text-001.&lt;/P&gt;&lt;P&gt;  stop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2005 13:17:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/check-if-program-is-executed-in-background/m-p/972779#M70092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-12T13:17:45Z</dc:date>
    </item>
  </channel>
</rss>

