<?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: How to Execute the program in foreground in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-the-program-in-foreground/m-p/1124299#M109833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is another way to go.  Instead of checking after the fact, take away the option right away.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0003.



* Used to limit user commands on selection-screen
include rsdbc1xx.

* Selection Screen
parameters: p_check type c.

* Events
at selection-screen output.
  append 'ONLI' to current_scr-excl.  " Execute
  append 'PRIN' to current_scr-excl.  " Execute and Print
*  append 'SJOB' to current_scr-excl. " Execute in Background


start-of-selection.

  write:/ 'Start-of-Selection was fired'.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to SDN!!!!!&lt;/P&gt;&lt;P&gt;Please remember to award points for helpful answers and mark your post as solved when solved completely.  Thanks.&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, 07 Feb 2006 14:07:31 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-02-07T14:07:31Z</dc:date>
    <item>
      <title>How to Execute the program in foreground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-the-program-in-foreground/m-p/1124296#M109830</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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;#145;Execution in Foreground&amp;#146; has to be deactivated for the program. Program should be allowed to be executed only in the back ground.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*Spool should provide the list of documents to which changes have applied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2006 12:13:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-the-program-in-foreground/m-p/1124296#M109830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-07T12:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to Execute the program in foreground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-the-program-in-foreground/m-p/1124297#M109831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. sy-batch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  check this variable in program&lt;/P&gt;&lt;P&gt;  if its in backgrounmd, it will be 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-batch = 'X'.&lt;/P&gt;&lt;P&gt;    WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'AAA'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;------- all the code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'Foreground not allowed'.&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;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Amit Mittal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2006 12:21:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-the-program-in-foreground/m-p/1124297#M109831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-07T12:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to Execute the program in foreground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-the-program-in-foreground/m-p/1124298#M109832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put the foll. piece of code in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;if sy-ucomm = 'ONLI'.&lt;/P&gt;&lt;P&gt;    message e000(zz)&lt;/P&gt;&lt;P&gt;    with&lt;/P&gt;&lt;P&gt;    'Execute the report in Background only'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-ucomm &amp;lt;&amp;gt; 'SJOB'.&lt;/P&gt;&lt;P&gt;    message e000(zz)&lt;/P&gt;&lt;P&gt;    with&lt;/P&gt;&lt;P&gt;    'Execute the report in Background only'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. reward the points if it works from ur end.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2006 13:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-the-program-in-foreground/m-p/1124298#M109832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-07T13:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to Execute the program in foreground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-the-program-in-foreground/m-p/1124299#M109833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is another way to go.  Instead of checking after the fact, take away the option right away.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0003.



* Used to limit user commands on selection-screen
include rsdbc1xx.

* Selection Screen
parameters: p_check type c.

* Events
at selection-screen output.
  append 'ONLI' to current_scr-excl.  " Execute
  append 'PRIN' to current_scr-excl.  " Execute and Print
*  append 'SJOB' to current_scr-excl. " Execute in Background


start-of-selection.

  write:/ 'Start-of-Selection was fired'.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to SDN!!!!!&lt;/P&gt;&lt;P&gt;Please remember to award points for helpful answers and mark your post as solved when solved completely.  Thanks.&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, 07 Feb 2006 14:07:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-the-program-in-foreground/m-p/1124299#M109833</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-02-07T14:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Execute the program in foreground</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-the-program-in-foreground/m-p/1124300#M109834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Use system variable&lt;/P&gt;&lt;P&gt;    sy-batch .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if sy-batch eq 'X'.&lt;/P&gt;&lt;P&gt;       endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2006 14:11:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-execute-the-program-in-foreground/m-p/1124300#M109834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-07T14:11:33Z</dc:date>
    </item>
  </channel>
</rss>

