<?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: Continuous background job in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/continuous-background-job/m-p/7442606#M1551893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the job is active, it only show the log "Job started".&lt;/P&gt;&lt;P&gt;Once the job is completed or cancled then only you can see the log "Step 001 started (programXXXX...."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you have used endless loop in your report, the log should only display "Job started".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;No, that's not true.  The visibility of the job log messages is controlled by program commits.  If you execute a commit work in the program or an implicit commit at program/step end, all of the messages issued up to that point will be displayed/visible in the log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't see the point of trying to keep up with a never-ending job/report.  I would opt for a periodic job that runs at a certain interval and adjust the report in question - why does a report need to run forever?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Dec 2010 15:28:40 GMT</pubDate>
    <dc:creator>brad_bohn</dc:creator>
    <dc:date>2010-12-15T15:28:40Z</dc:date>
    <item>
      <title>Continuous background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/continuous-background-job/m-p/7442599#M1551886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I  have a requirement , where a program need to be executed as a continuous job. In the logic of the program, there is a&lt;/P&gt;&lt;P&gt;'Do.. EndDo'  , which would be continuously running. &lt;/P&gt;&lt;P&gt;I have set the program as a background job, where I have a single step , which would execute  the Report.&lt;/P&gt;&lt;P&gt;As the report has a never ending loop, it would keep running.&lt;/P&gt;&lt;P&gt;Now I am facing  a problem. In the job log, it keeps on updating the message '1  step(s) found ( ABAP_PROGRAM: XXX ; ABAP_VARIANT:  ; EXT_PROGRAM:  ; STATUS: R ) '.&lt;/P&gt;&lt;P&gt;Though I have a single step, it is updating the message for every 20 secs in the log.&lt;/P&gt;&lt;P&gt;And also, I am thinking , if the job log gets overflowed or any memory issue .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest, how to stop the job log updating the same message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Lalitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 10:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/continuous-background-job/m-p/7442599#M1551886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-15T10:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/continuous-background-job/m-p/7442600#M1551887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lalitha, &lt;/P&gt;&lt;P&gt;So you mean to say that there will be a single job and that job will run in infinite time ? Or in the DO while loop every time a new Job will be kicked off. I believe SAP will not allow to change the Log for any current job, there might be a locking. I think it will only allow to change or delete job log for finished jobs. &lt;/P&gt;&lt;P&gt;I think for job log you dont have to bother that much. How long you people want to keep that job log ?You can delete the job log older that 15 day or like this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 11:23:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/continuous-background-job/m-p/7442600#M1551887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-15T11:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/continuous-background-job/m-p/7442601#M1551888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushik,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;There is only a single job which will run for infinite time&lt;/P&gt;&lt;P&gt;Basically, I have only one step. But why the job log keeps on updating the message,  '1  step(s) found ( ABAP_PROGRAM: XXX ; ABAP_VARIANT:  ; EXT_PROGRAM:  ; STATUS: R ) '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if the job log is getting updated continuously, will there be any situation , where overflow problem would occur.&lt;/P&gt;&lt;P&gt;Ofcourse, older job log  gets deleted, based on the settings. But might be overflow can happen before only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Lalitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 11:30:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/continuous-background-job/m-p/7442601#M1551888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-15T11:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/continuous-background-job/m-p/7442602#M1551889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Obviously you have some code in your DO loop that issues this message.&lt;/P&gt;&lt;P&gt;With infinite processing, of course you will hit &lt;EM&gt;some&lt;/EM&gt; disk or memory limit at some point in the near or distant future...&lt;/P&gt;&lt;P&gt;What is the purpose of a continuously running job?&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 11:39:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/continuous-background-job/m-p/7442602#M1551889</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-12-15T11:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/continuous-background-job/m-p/7442603#M1551890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Thomas,&lt;/P&gt;&lt;P&gt;In the 'Do .. Enddo' loop, there is no logic, which would issues this message to joblog.&lt;/P&gt;&lt;P&gt;I have cleared all the variables, internal tables etc, at the end of each loop pass,  to make sure that memory limit is not exceeded.&lt;/P&gt;&lt;P&gt;Is this sufficient or any other measures to be taken to see that memory limit is not execeeded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Lalitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 11:45:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/continuous-background-job/m-p/7442603#M1551890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-15T11:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/continuous-background-job/m-p/7442604#M1551891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lalitha Bhagi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- please check again your job definition, is STATUS: R for repeat?&lt;/P&gt;&lt;P&gt;- in your endless DO loop you may insert &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WAIT UP TO 10 SECONDS&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; statement. This will reduce system load significantly. But you should have any exit condition anyway, because the WAIT sends the process to an OS SLEEP state from where it can not be interrupted or stopped.&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>Wed, 15 Dec 2010 12:29:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/continuous-background-job/m-p/7442604#M1551891</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-12-15T12:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/continuous-background-job/m-p/7442605#M1551892</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;When the job is active, it only show the log "Job started".&lt;/P&gt;&lt;P&gt;Once the job is completed or cancled then only you can see the log "Step 001 started (programXXXX...."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you have used endless loop in your report, the log should only display "Job started".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using FM job_open in your report then use FM job_close to close the background request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also verify how you have scheduled the job??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 12:55:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/continuous-background-job/m-p/7442605#M1551892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-15T12:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/continuous-background-job/m-p/7442606#M1551893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the job is active, it only show the log "Job started".&lt;/P&gt;&lt;P&gt;Once the job is completed or cancled then only you can see the log "Step 001 started (programXXXX...."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you have used endless loop in your report, the log should only display "Job started".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;No, that's not true.  The visibility of the job log messages is controlled by program commits.  If you execute a commit work in the program or an implicit commit at program/step end, all of the messages issued up to that point will be displayed/visible in the log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't see the point of trying to keep up with a never-ending job/report.  I would opt for a periodic job that runs at a certain interval and adjust the report in question - why does a report need to run forever?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 15:28:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/continuous-background-job/m-p/7442606#M1551893</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2010-12-15T15:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/continuous-background-job/m-p/7442607#M1551894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the valuable inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have commit statement in the program. Regarding the  point that 'The visibility of the job log messages is controlled by program commits.'  , but I am not getting, why the message is getting repeated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically the program flow is like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program continuous_report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wait for 10 sec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Commit work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The log message is that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;16.12.2010 05:31:20 Job started&lt;/P&gt;&lt;P&gt;16.12.2010 05:31:20 Step 001 started (program  Continuous_Report, variant , user ID XXX)&lt;/P&gt;&lt;P&gt;16.12.2010 05:31:30 1  step(s) found ( ABAP_PROGRAM: Continuous_Report,; ABAP_VARIANT:  ; EXT_PROGRAM:  ; STATUS: R )&lt;/P&gt;&lt;P&gt;16.12.2010 05:31:56 1  step(s) found ( ABAP_PROGRAM: Continuous_Report, ; ABAP_VARIANT:  ; EXT_PROGRAM:  ; STATUS: R )&lt;/P&gt;&lt;P&gt;16.12.2010 05:32:17 1  step(s) found ( ABAP_PROGRAM: Continuous_Report, ; ABAP_VARIANT:  ; EXT_PROGRAM:  ; STATUS: R )&lt;/P&gt;&lt;P&gt;16.12.2010 05:32:39 1  step(s) found ( ABAP_PROGRAM: Continuous_Report, ; ABAP_VARIANT:  ; EXT_PROGRAM:  ; STATUS: R )&lt;/P&gt;&lt;P&gt;.....................................&lt;/P&gt;&lt;P&gt;...................................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Lalitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 08:53:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/continuous-background-job/m-p/7442607#M1551894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-16T08:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Continuous background job</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/continuous-background-job/m-p/7442608#M1551895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lalitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your posting behavior reminds me of a guilty politician: Reveal the truth slice by slice...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know what else you do between DO and ENDDO, format all code as code (use above &amp;amp;LT;&amp;amp;GT; code button).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: WAIT interrupts the process and causes an implicit database commit. COMMIT WORK is required only for function calls IN UPDATE TASK and use of PERFORM ON COMMIT (frequently used in BAPIs).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; You can also remove code slice by slice and observe when the job log changes...&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;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Clemens Li on Dec 16, 2010 10:03 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 09:01:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/continuous-background-job/m-p/7442608#M1551895</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-12-16T09:01:53Z</dc:date>
    </item>
  </channel>
</rss>

