<?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 completion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-completion/m-p/8746921#M1675082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use FM &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt; BP_JOB_STATUS_GET&lt;/SPAN&gt; to the job status by giving the job name.&lt;/P&gt;&lt;P&gt;Either you can use a timer as said above or put the FM in a DO ENDDO loop and check for the status.&lt;/P&gt;&lt;P&gt;Make sure you put an exit from the loop, once the job status changes to completed or cancelled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also table TBTCO will have the status, if you want to do a select and get the data.&lt;/P&gt;&lt;P&gt;Check fields TBTCP-PROGNAME and TBTCP-STATUS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 May 2012 08:28:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-05-19T08:28:10Z</dc:date>
    <item>
      <title>Background job completion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-completion/m-p/8746919#M1675080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, I schdule and release one of my background jobs&amp;nbsp; through my custom program.Once this job completes, I need to do some databse operations in the custom tables. Could any one tell me how to find whether the background job has been completed or not in the program itself?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Selva.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2012 07:12:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-completion/m-p/8746919#M1675080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-19T07:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Background job completion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-completion/m-p/8746920#M1675081</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;You can use cl_gui_timer class to check for the status of the job for some time. You may use the function module /BDL/_READ_JOB_STATUS to get the status of the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep reading the status of a job till your timer reaches certain value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;kartik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2012 07:25:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-completion/m-p/8746920#M1675081</guid>
      <dc:creator>Kartik2</dc:creator>
      <dc:date>2012-05-19T07:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Background job completion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-completion/m-p/8746921#M1675082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use FM &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt; BP_JOB_STATUS_GET&lt;/SPAN&gt; to the job status by giving the job name.&lt;/P&gt;&lt;P&gt;Either you can use a timer as said above or put the FM in a DO ENDDO loop and check for the status.&lt;/P&gt;&lt;P&gt;Make sure you put an exit from the loop, once the job status changes to completed or cancelled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also table TBTCO will have the status, if you want to do a select and get the data.&lt;/P&gt;&lt;P&gt;Check fields TBTCP-PROGNAME and TBTCP-STATUS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2012 08:28:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-completion/m-p/8746921#M1675082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-19T08:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Background job completion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-completion/m-p/8746922#M1675083</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;why not just put the 'some databse operations in the custom tables' in the second step of the job?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or do you also hate simple solutions?&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2012 19:30:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/background-job-completion/m-p/8746922#M1675083</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2012-05-19T19:30:37Z</dc:date>
    </item>
  </channel>
</rss>

