<?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: background execution in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-execution/m-p/872061#M50070</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;Take a look at SUBMIT (report) USER user VIA JOB job NUMBER n. Do an F1 on SUBMIT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To check whether you are in background or foreground mode, check the value of sy-batch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using CALL TRANSACTION, use addition MODE 'N' for background, and UPDATE 'A' for asynchronous update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Shehryar Khan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Feb 2005 08:38:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-02-21T08:38:12Z</dc:date>
    <item>
      <title>background execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-execution/m-p/872060#M50069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you guys,&lt;/P&gt;&lt;P&gt;I have one more problem.&lt;/P&gt;&lt;P&gt;When i click clock button(Execute button), iwant to&lt;/P&gt;&lt;P&gt;execute the program in background.&lt;/P&gt;&lt;P&gt;Howto do this..&lt;/P&gt;&lt;P&gt;i know to check with background..ie..sscrfields-ucomm =' SJOB'.&lt;/P&gt;&lt;P&gt;For Online do we have to check for any value at screenfields?&lt;/P&gt;&lt;P&gt;could you pls help me out.&lt;/P&gt;&lt;P&gt;ambichan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2005 08:31:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-execution/m-p/872060#M50069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-21T08:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: background execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-execution/m-p/872061#M50070</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;Take a look at SUBMIT (report) USER user VIA JOB job NUMBER n. Do an F1 on SUBMIT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To check whether you are in background or foreground mode, check the value of sy-batch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using CALL TRANSACTION, use addition MODE 'N' for background, and UPDATE 'A' for asynchronous update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Shehryar Khan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2005 08:38:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-execution/m-p/872061#M50070</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-21T08:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: background execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-execution/m-p/872062#M50071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ambichan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The normal Execute Button has the Function Code &amp;lt;b&amp;gt;ONLI&amp;lt;/b&amp;gt;. you will just have to set this to &amp;lt;b&amp;gt;SJOB&amp;lt;/b&amp;gt; in the PAI to make the same button trigger the Background job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at this code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tables sscrfields.

parameters p_test.

at selection-screen.
  if sscrfields-ucomm = 'ONLI'.
    sscrfields-ucomm = 'SJOB'.
  endif.

start-of-selection.
  write p_test.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get back if you have any doubts.&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>Mon, 21 Feb 2005 08:48:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-execution/m-p/872062#M50071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-21T08:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: background execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-execution/m-p/872063#M50072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;i checked sy-batch, i guess its initial.&lt;/P&gt;&lt;P&gt;can we submit the same program once again to execute in background..as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-batch is initial.&lt;/P&gt;&lt;P&gt;submit zglto_shintani003 and return&lt;/P&gt;&lt;P&gt;            user sy-uname via job jobname number jobcount.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think its wrong way of coding..how to do this..&lt;/P&gt;&lt;P&gt;my program is "zglto_shintani003" when i click execute button it should work in background.&lt;/P&gt;&lt;P&gt;anything have to do now... i have not wrote anycode for background process inside program.&lt;/P&gt;&lt;P&gt;ambichan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2005 08:57:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-execution/m-p/872063#M50072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-21T08:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: background execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-execution/m-p/872064#M50073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, when i click execute button, i want to call the&lt;/P&gt;&lt;P&gt;Background execution Function code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i say simple words, I want my Online Execute button to act as "Background Execution Button".&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;ambichan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2005 09:02:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-execution/m-p/872064#M50073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-21T09:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: background execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-execution/m-p/872065#M50074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ambichan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did the code I gave you below fail to give you the desired functionality?&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>Mon, 21 Feb 2005 09:04:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-execution/m-p/872065#M50074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-21T09:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: background execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-execution/m-p/872066#M50075</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;I think Anand just answered that...right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2005 09:06:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-execution/m-p/872066#M50075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-21T09:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: background execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-execution/m-p/872067#M50076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ambichan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code you have written is not wrong at all !! That is exactly how it is supposed to be written. I would suggest that you also take a look at this post which I think is relevant : &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="27023"&gt;&lt;/A&gt;&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>Mon, 21 Feb 2005 09:10:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-execution/m-p/872067#M50076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-21T09:10:00Z</dc:date>
    </item>
  </channel>
</rss>

