<?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: Execute in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-in-background/m-p/4232728#M1010712</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nuno Silva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the above two reponses ie., copying the status of the mentioned program and using it in the program with the Quoted FM is very helpful and solves the problem by using the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A small change you could do is ..in the status remove 'ONLI' and put 'SJOB'. This solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA itab TYPE TABLE OF sy-ucomm.
PARAMETERS test(10) TYPE c.
set pf-status 'ZTEST'.

AT SELECTION-SCREEN OUTPUT.
  APPEND 'ONLI' TO itab.
  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
    EXPORTING
      p_status  = 'ZTEST'
    TABLES
      p_exclude = itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Chandrashekhar and Nagraj. I didn't know we can do like that. Those were  very useful posts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shailaja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Aug 2008 10:04:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-01T10:04:50Z</dc:date>
    <item>
      <title>Execute in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-in-background/m-p/4232721#M1010705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to disable the execution button of a selection-screen leaving only the option of "Execute in background" or changing the behaviour of the execution button so it executes the report in background?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Nuno Silva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 09:07:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-in-background/m-p/4232721#M1010705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-01T09:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Execute in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-in-background/m-p/4232722#M1010706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quick way is you can code into the program with appropriate message if program is run in foreground mode,  use system variable to determine for if program run in background.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 09:09:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-in-background/m-p/4232722#M1010706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-01T09:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Execute in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-in-background/m-p/4232723#M1010707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi..&lt;/P&gt;&lt;P&gt;check for variable sy-batch if its 'X' program is running in background else show error message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 09:11:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-in-background/m-p/4232723#M1010707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-01T09:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Execute in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-in-background/m-p/4232724#M1010708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But is it not possible to make the program execute itself in background when it is running in foreground?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Nuno Silva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 09:22:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-in-background/m-p/4232724#M1010708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-01T09:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Execute in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-in-background/m-p/4232725#M1010709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont think its possible&lt;/P&gt;&lt;P&gt;When the selection screen appears, just press F9 to execute the program in background and not F8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shailaja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 09:24:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-in-background/m-p/4232725#M1010709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-01T09:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Execute in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-in-background/m-p/4232726#M1010710</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; chk this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT  ztest_cha5.


DATA itab TYPE TABLE OF sy-ucomm.
PARAMETERS test(10) TYPE c.

AT SELECTION-SCREEN OUTPUT.
  APPEND 'ONLI' TO itab.
  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
    EXPORTING
      p_status  = sy-pfkey
    TABLES
      p_exclude = itab.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 09:26:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-in-background/m-p/4232726#M1010710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-01T09:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Execute in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-in-background/m-p/4232727#M1010711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nanu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the following,&lt;/P&gt;&lt;P&gt;The standard gui status for the selection screen 1000 is %_00 and its program is RSSYSTDB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now go to SE41 and Enter your program Name and enter the status say ZTEST.&lt;/P&gt;&lt;P&gt;Now click on Copy Status button in the application Toolbar next to user interface.&lt;/P&gt;&lt;P&gt;A pop window will appear enter the details as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM :&lt;/P&gt;&lt;P&gt;Program Name : RSSYSTDB&lt;/P&gt;&lt;P&gt;Status             : %_00 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To :&lt;/P&gt;&lt;P&gt;Program name : your Program Name&lt;/P&gt;&lt;P&gt;Status            : ZTEST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on copy, a pop up window appears again click COPY. Now you will get a message Status RSSYSTDB %_00 copied to ZTEST01 ZTEST.&lt;/P&gt;&lt;P&gt;Now go to Change Mode, Go to Node: Menu bar and double click on PROGRAM and remove ONLI.&lt;/P&gt;&lt;P&gt;Application Toolbar and remove the Item ONLI  and &lt;/P&gt;&lt;P&gt;go to Function Keys Node and remove ONLI from Freely Assigned Function Keys. Activate your Status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in your program use the status example: make sure that all ONLI is removed in your status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZTEST01.&lt;/P&gt;&lt;P&gt;set pf-status 'ZTEST'.&lt;/P&gt;&lt;P&gt;parameters: c(10) type c.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Nagaraj Kalbavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 09:33:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-in-background/m-p/4232727#M1010711</guid>
      <dc:creator>former_member70391</dc:creator>
      <dc:date>2008-08-01T09:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Execute in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-in-background/m-p/4232728#M1010712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nuno Silva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the above two reponses ie., copying the status of the mentioned program and using it in the program with the Quoted FM is very helpful and solves the problem by using the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A small change you could do is ..in the status remove 'ONLI' and put 'SJOB'. This solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA itab TYPE TABLE OF sy-ucomm.
PARAMETERS test(10) TYPE c.
set pf-status 'ZTEST'.

AT SELECTION-SCREEN OUTPUT.
  APPEND 'ONLI' TO itab.
  CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
    EXPORTING
      p_status  = 'ZTEST'
    TABLES
      p_exclude = itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Chandrashekhar and Nagraj. I didn't know we can do like that. Those were  very useful posts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shailaja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 10:04:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-in-background/m-p/4232728#M1010712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-01T10:04:50Z</dc:date>
    </item>
  </channel>
</rss>

