<?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: Bacground Job Scheduling Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bacground-job-scheduling-problem/m-p/6850850#M1474336</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;To run your report in background you can create a job first. And then through that job call your report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create a job you can use JOB_OPEN FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: lw_number      TYPE   tbtcjob-jobcount,&lt;/P&gt;&lt;P&gt;             lw_name        TYPE   tbtcjob-jobname VALUE 'ZBack_job'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'JOB_OPEN'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      jobname          = lw_name&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      jobcount         = lw_number&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      cant_create_job  = 1&lt;/P&gt;&lt;P&gt;      invalid_job_data = 2&lt;/P&gt;&lt;P&gt;      jobname_missing  = 3&lt;/P&gt;&lt;P&gt;      OTHERS           = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*---  Call the Report in Background&lt;/P&gt;&lt;P&gt;    SUBMIT  z_report  VIA JOB  lw_name  NUMBER  lw_number&lt;/P&gt;&lt;P&gt;                                AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At last on sy-subrc =0 close the job using FM JOB_CLOSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vaibhav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 May 2010 04:49:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-06T04:49:48Z</dc:date>
    <item>
      <title>Bacground Job Scheduling Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bacground-job-scheduling-problem/m-p/6850849#M1474335</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 have created a report , using this report we can create inbound deliveries. This report first brings one out put, in the first out put we have to select some check boxes and clike on create button on application tool bar, then we can create inbound deliveries. Can you help me how we can execute this report in back ground&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 20:31:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bacground-job-scheduling-problem/m-p/6850849#M1474335</guid>
      <dc:creator>former_member382123</dc:creator>
      <dc:date>2010-05-05T20:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Bacground Job Scheduling Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bacground-job-scheduling-problem/m-p/6850850#M1474336</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;To run your report in background you can create a job first. And then through that job call your report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To create a job you can use JOB_OPEN FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: lw_number      TYPE   tbtcjob-jobcount,&lt;/P&gt;&lt;P&gt;             lw_name        TYPE   tbtcjob-jobname VALUE 'ZBack_job'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'JOB_OPEN'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      jobname          = lw_name&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      jobcount         = lw_number&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      cant_create_job  = 1&lt;/P&gt;&lt;P&gt;      invalid_job_data = 2&lt;/P&gt;&lt;P&gt;      jobname_missing  = 3&lt;/P&gt;&lt;P&gt;      OTHERS           = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*---  Call the Report in Background&lt;/P&gt;&lt;P&gt;    SUBMIT  z_report  VIA JOB  lw_name  NUMBER  lw_number&lt;/P&gt;&lt;P&gt;                                AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At last on sy-subrc =0 close the job using FM JOB_CLOSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vaibhav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 04:49:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bacground-job-scheduling-problem/m-p/6850850#M1474336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-06T04:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Bacground Job Scheduling Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bacground-job-scheduling-problem/m-p/6850851#M1474337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dont think the report can directly be scheduled as a background job since it requires the user intervention to select the checkboxes and hit the create button. You could try doing it in BDC and using the background mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 05:36:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bacground-job-scheduling-problem/m-p/6850851#M1474337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-06T05:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Bacground Job Scheduling Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bacground-job-scheduling-problem/m-p/6850852#M1474338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Since this REPORT not only needs intervention of the USER at SELECTION Screen level but also at REPORT ALV Output, hence I dont think this can be scheduled as Background job. The Report ALV output changes dynamically, so its not possible to AUTOMATIZE the process for Background processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only if the Output rows are same every time, then we can have a BDC recording for the tCODE of this REPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, why do you want the user to select rows at output and generate Deliveries. Cant you do the same thing from inside the Report based on some logic?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ags.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 07:35:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bacground-job-scheduling-problem/m-p/6850852#M1474338</guid>
      <dc:creator>agnihotro_sinha2</dc:creator>
      <dc:date>2010-05-06T07:35:18Z</dc:date>
    </item>
  </channel>
</rss>

