<?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 Creation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-creation/m-p/4254860#M1015673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi all,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; i have a requirement where i need to create Background Job for a program when another program is being executed.&lt;/P&gt;&lt;P&gt;&amp;gt; Can some one tell me any Function modules for the same along with parameters.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; AJ&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Anurag,&lt;/P&gt;&lt;P&gt;  Yes, you can do it.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;follow the bellow example&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

CALL FUNCTION 'JOB_OPEN'
         EXPORTING
              JOBNAME          = 'GCERTS'
        IMPORTING
             JOBCOUNT          = JOBCOUNT
        EXCEPTIONS
             CANT_CREATE_JOB  = 1
             INVALID_JOB_DATA = 2
             JOBNAME_MISSING  = 3
             OTHERS           = 4.

    IF SY-SUBRC &amp;lt;&amp;gt; 0.
      MESSAGE E050 WITH TEXT-024.
    ENDIF.


    SUBMIT RSBDCSUB AND RETURN
                    USER SY-UNAME
                    VIA  JOB 'GCERTS' NUMBER JOBCOUNT
                    WITH MAPPE    = 'GCERTS'
                    WITH VON      = SY-DATUM
                    WITH BIS      = SY-DATUM
                    WITH Z_VERARB = 'X'.

    CLEAR JOB_RELEASED.
    CALL FUNCTION 'JOB_CLOSE'
         EXPORTING
              JOBCOUNT                    = JOBCOUNT
              JOBNAME                     = 'GCERTS'
              STRTIMMED                   = 'X'
         IMPORTING
              JOB_WAS_RELEASED            = JOB_RELEASED
         EXCEPTIONS
              CANT_START_IMMEDIATE        = 1
              INVALID_STARTDATE           = 2
              JOBNAME_MISSING             = 3
              JOB_CLOSE_FAILED            = 4
              JOB_NOSTEPS                 = 5
              JOB_NOTEX                   = 6
              LOCK_FAILED                 = 7
              OTHERS                      = 8.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here first we need to open the job first and then submit your program through that job to schedule for particular date and time&lt;/P&gt;&lt;P&gt;and after words close job.It will run the Job when it reaches that particular date and time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jul 2008 09:03:43 GMT</pubDate>
    <dc:creator>former_member761936</dc:creator>
    <dc:date>2008-07-31T09:03:43Z</dc:date>
    <item>
      <title>Batch Job Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-creation/m-p/4254859#M1015672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a requirement where i need to create Background Job for a program when another program is being executed.&lt;/P&gt;&lt;P&gt;Can some one tell me any Function modules for the same along with parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2008 08:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-creation/m-p/4254859#M1015672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-31T08:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Job Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-creation/m-p/4254860#M1015673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi all,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; i have a requirement where i need to create Background Job for a program when another program is being executed.&lt;/P&gt;&lt;P&gt;&amp;gt; Can some one tell me any Function modules for the same along with parameters.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; AJ&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Anurag,&lt;/P&gt;&lt;P&gt;  Yes, you can do it.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;follow the bellow example&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

CALL FUNCTION 'JOB_OPEN'
         EXPORTING
              JOBNAME          = 'GCERTS'
        IMPORTING
             JOBCOUNT          = JOBCOUNT
        EXCEPTIONS
             CANT_CREATE_JOB  = 1
             INVALID_JOB_DATA = 2
             JOBNAME_MISSING  = 3
             OTHERS           = 4.

    IF SY-SUBRC &amp;lt;&amp;gt; 0.
      MESSAGE E050 WITH TEXT-024.
    ENDIF.


    SUBMIT RSBDCSUB AND RETURN
                    USER SY-UNAME
                    VIA  JOB 'GCERTS' NUMBER JOBCOUNT
                    WITH MAPPE    = 'GCERTS'
                    WITH VON      = SY-DATUM
                    WITH BIS      = SY-DATUM
                    WITH Z_VERARB = 'X'.

    CLEAR JOB_RELEASED.
    CALL FUNCTION 'JOB_CLOSE'
         EXPORTING
              JOBCOUNT                    = JOBCOUNT
              JOBNAME                     = 'GCERTS'
              STRTIMMED                   = 'X'
         IMPORTING
              JOB_WAS_RELEASED            = JOB_RELEASED
         EXCEPTIONS
              CANT_START_IMMEDIATE        = 1
              INVALID_STARTDATE           = 2
              JOBNAME_MISSING             = 3
              JOB_CLOSE_FAILED            = 4
              JOB_NOSTEPS                 = 5
              JOB_NOTEX                   = 6
              LOCK_FAILED                 = 7
              OTHERS                      = 8.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here first we need to open the job first and then submit your program through that job to schedule for particular date and time&lt;/P&gt;&lt;P&gt;and after words close job.It will run the Job when it reaches that particular date and time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2008 09:03:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-creation/m-p/4254860#M1015673</guid>
      <dc:creator>former_member761936</dc:creator>
      <dc:date>2008-07-31T09:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Job Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-creation/m-p/4254861#M1015674</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 the function module SUBST_SCHEDULE_GENERATOR to schedule a background job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'SUBST_SCHEDULE_GENERATOR'
 EXPORTING
   JOBNAME            = 'Z_TEST_JOB'
   REPNAME            = 'Z_TEST_PROG'
   VARNAME            = 'Z_VAR1'
*   AUTHCKNAM          = 'DDIC'
*   BATCHHOST          = ' '
*   LANGUAGE           = SY-LANGU
*   PRIPARAMS          = ' '
*   IV_SCHEDEVER       = ' '
*   PARAM              = 0
*   SDLSTRTDT          = '         '
*   SDLSTRTTM          = '        '
*   STRTIMMED          = 'X'
* IMPORTING
*   JOBCOUNT           =
*   RC_START           =
* TABLES
*   SELTAB             = .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will instantly start the background job for this program. In case you want to give a start date and time, you can mention the same in the parameter SDLSTRTDT and SDLSTRTTM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Biswa...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2008 09:09:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-creation/m-p/4254861#M1015674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-31T09:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Job Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-creation/m-p/4254862#M1015675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thnks for the useful response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways, The FM specified was not working in my case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2008 12:30:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-creation/m-p/4254862#M1015675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-31T12:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Job Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-creation/m-p/4254863#M1015676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use function modules(Job_open,Job_submit and job_close).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use  submit command for scheduling like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT RSBDCSUB AND RETURN&lt;/P&gt;&lt;P&gt;                    USER SY-UNAME&lt;/P&gt;&lt;P&gt;                    VIA  JOB 'GCERTS' NUMBER JOBCOUNT&lt;/P&gt;&lt;P&gt;                    WITH MAPPE    = 'GCERTS'&lt;/P&gt;&lt;P&gt;                    WITH VON      = SY-DATUM&lt;/P&gt;&lt;P&gt;                    WITH BIS      = SY-DATUM&lt;/P&gt;&lt;P&gt;                    WITH Z_VERARB = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;mani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 08:42:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-creation/m-p/4254863#M1015676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-01T08:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Job Creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-creation/m-p/4254864#M1015677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I have gone through ur reply but in SUBMIT i didnt get the significant of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                    &lt;STRONG&gt;WITH MAPPE    = 'GCERTS'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                    &lt;STRONG&gt;WITH VON      = SY-DATUM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                    &lt;STRONG&gt;WITH BIS      = SY-DATUM&lt;/STRONG&gt;                    &lt;/P&gt;&lt;P&gt;                    &lt;STRONG&gt;WITH Z_VERARB = 'X'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explain ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards Dev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2008 09:57:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-job-creation/m-p/4254864#M1015677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-15T09:57:14Z</dc:date>
    </item>
  </channel>
</rss>

