<?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: Batch job in a report program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-in-a-report-program/m-p/7379883#M1544011</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jain,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am passing the Date in the FM then How should I schedule my batch job while creating it in SM36.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Srikanth.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Oct 2010 06:02:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-19T06:02:53Z</dc:date>
    <item>
      <title>Batch job in a report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-in-a-report-program/m-p/7379880#M1544008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abappers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a peculiar scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My report has 2 PERFORMS lets say&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a DATE criterion in PERFORM 1.&lt;/P&gt;&lt;P&gt;Based on that date only I have to execute my PERFORM2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:   The Date consideration is Suspension of a Contract Date: which is 01/12/2010.(dd/mm/yyyy)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now based on the this date I have to execute the 2nd PERFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean I have to create a Sales Order on this date only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To summarize,Execution of a program in a future date whose date is dynamic in nature &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i achieve this using a BATCH JOB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me how to schedule a BATCH JOB for a future date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i call a BATCH JOB froma  REPORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please your inputs shall be of great help to me in solving my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Srikanth.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 07:16:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-in-a-report-program/m-p/7379880#M1544008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-18T07:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Batch job in a report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-in-a-report-program/m-p/7379881#M1544009</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 call the FM for scheduling backgorund job i.e JOB_OPEN and pass the value of the dynamically generated date to the parameter SDLSTRTDT of the function moduel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Sakshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 07:27:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-in-a-report-program/m-p/7379881#M1544009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-18T07:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Batch job in a report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-in-a-report-program/m-p/7379882#M1544010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jain,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am passing the Date in the FM then How should I schedule my batch job while creating it in SM36.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Srikanth.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 15:51:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-in-a-report-program/m-p/7379882#M1544010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-18T15:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Batch job in a report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-in-a-report-program/m-p/7379883#M1544011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jain,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am passing the Date in the FM then How should I schedule my batch job while creating it in SM36.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Srikanth.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 06:02:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-in-a-report-program/m-p/7379883#M1544011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-19T06:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Batch job in a report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-in-a-report-program/m-p/7379884#M1544012</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;There are 2 ways of scheduling jobs either in SM36 or programmatically in your report.&lt;/P&gt;&lt;P&gt;since you have to pass the date value dynamically depending on perform1.&lt;/P&gt;&lt;P&gt;Schedule job in your report using the FM and you dont need to schedule it in SM36&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 06:04:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-in-a-report-program/m-p/7379884#M1544012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-19T06:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Batch job in a report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-in-a-report-program/m-p/7379885#M1544013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sakshi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case of using the FM&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;g_date is sy-datum.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;g_time is sy-uzeit&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'JOB_OPEN'
  EXPORTING
*   DELANFREP              = ' '
*   JOBGROUP               = ' '
    JOBNAME                = 'Z_BATCHJOB_TRGT'
    SDLSTRTDT              = g_date
   SDLSTRTTM               = g_time.
*   JOBCLASS               =
* IMPORTING
*   JOBCOUNT               =
* CHANGING
*   RET                    =
* EXCEPTIONS
*   CANT_CREATE_JOB        = 1
*   INVALID_JOB_DATA       = 2
*   JOBNAME_MISSING        = 3
*   OTHERS                 = 4
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above case how would the Job name get mapped to the Report. / Or / How can we assign the Job Name to the Report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no scope of giving the Report name in the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please elucidate.(EXP parameters)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way Thanks for your quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 06:16:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-in-a-report-program/m-p/7379885#M1544013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-19T06:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Batch job in a report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-in-a-report-program/m-p/7379886#M1544014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check the below links.&lt;/P&gt;&lt;P&gt;[&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="728299"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="677890"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 06:33:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-in-a-report-program/m-p/7379886#M1544014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-19T06:33:14Z</dc:date>
    </item>
  </channel>
</rss>

