<?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 job message error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-message-error/m-p/2820681#M659700</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sudheer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u give me any sample code so that that will be clear to me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Oct 2007 14:49:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-05T14:49:24Z</dc:date>
    <item>
      <title>background job message error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-message-error/m-p/2820677#M659696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an alv report.when the user clicks a toolbar button on alv report some transaction runs in the background.When the user again clicks again the same button while still the background job is running i need to pop up a error message saying that already background job is running for this  routine.How can i do that?any sample code please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 14:42:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-message-error/m-p/2820677#M659696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T14:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: background job message error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-message-error/m-p/2820678#M659697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;If the user Press the Button, then check whether the background is running , if the nackground is running then raise a pop-up and give a mesage saying that 'A background program is still running'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to check whether the Background is running or not ---&amp;gt; Goto Table TBTCO, then give the Job name and get the status, if the status is still running then give the message, if the status is completed then run the job&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 14:47:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-message-error/m-p/2820678#M659697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T14:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: background job message error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-message-error/m-p/2820679#M659698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just keep track of whether or not the transaction has been submitted. If it has, give an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 14:47:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-message-error/m-p/2820679#M659698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T14:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: background job message error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-message-error/m-p/2820680#M659699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;In the Interactive Event for that Button call the transaction SM36 by scheduling that Job by calling the fun module JOB_OPEN,...JOB_CLOSE..&lt;/P&gt;&lt;P&gt;and when next time pressed write a select for the tables&lt;/P&gt;&lt;P&gt;TBTCP,TBTCO,TBTCS and fetch the data for that program and job, it will give the SJOB status&lt;/P&gt;&lt;P&gt;based on the status you can call a Progress Indicator fun module or popup to display the status of the job&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 14:48:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-message-error/m-p/2820680#M659699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T14:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: background job message error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-message-error/m-p/2820681#M659700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sudheer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u give me any sample code so that that will be clear to me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 14:49:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-message-error/m-p/2820681#M659700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T14:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: background job message error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-message-error/m-p/2820682#M659701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;write following code after the button click action:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from tbtcp into table i_tbtcp where progname = 'ZXXXXX'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt; loop at i_tbtcp.&lt;/P&gt;&lt;P&gt;   if i_tbtcp-status = 'R'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  message for program already running&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 15:29:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-message-error/m-p/2820682#M659701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T15:29:52Z</dc:date>
    </item>
  </channel>
</rss>

