<?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: Parallel execution of a program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-execution-of-a-program/m-p/7393853#M1545848</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're not interested in the spool output of the scheduled program you don't need the SPOOL PARAMETERS. Read the F1 documentation for further details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Nov 2010 15:08:25 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2010-11-01T15:08:25Z</dc:date>
    <item>
      <title>Parallel execution of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-execution-of-a-program/m-p/7393850#M1545845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a user exit where I need to launch a program, to make a kind of SUBMIT to a Zprogram, but I just want to launch the Zprogram and &lt;STRONG&gt;&lt;EM&gt;not&lt;/EM&gt;&lt;/STRONG&gt; wait for it to finish. I mean, if the Zprogram takes, let's say, an hour, I don't want to wait for an hour in my user exit, I just want to schedule the execution and go on with the rest of the process in the user exit.&lt;/P&gt;&lt;P&gt;Can you get what I mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matias.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 14:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-execution-of-a-program/m-p/7393850#M1545845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-01T14:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel execution of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-execution-of-a-program/m-p/7393851#M1545846</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;Then in this case you schedule the Program as a background right..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA:    l_valid,
           ls_params LIKE pri_params,
           lv_jobname LIKE tbtcjob-jobname,
           lv_jobcount LIKE tbtcjob-jobcount.

*--Get Print Parameters
  CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
      no_dialog      = 'X'
    IMPORTING
      valid          = l_valid
      out_parameters = ls_params.

  CLEAR : ls_params-primm, ls_params-prrel.

lv_jobname = 'ZJOBNAME'.
 *--Create the Background Job
  CALL FUNCTION 'JOB_OPEN'
    EXPORTING
      jobname          = lv_jobname
    IMPORTING
      jobcount         = lv_jobcount
    EXCEPTIONS
      cant_create_job  = 1
      invalid_job_data = 2
      jobname_missing  = 3
      OTHERS           = 4.

*--Submit the Program as the Background step for the above job
  SUBMIT (Program Name)
               WITH p_ufile = v_ufile
              WITH SELECTION-TABLE it_selopt
              VIA JOB     lv_jobname
              NUMBER  lv_jobcount
             TO SAP-SPOOL WITHOUT SPOOL DYNPRO
            SPOOL PARAMETERS ls_params
            AND RETURN.

*--Schedule and close job.
  CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
      jobcount             = lv_jobcount
      jobname              = lv_jobname
      strtimmed            = 'X'
    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;This will schedule the program as a background job which will not stop the execution of the transaction. Let me know if any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 14:37:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-execution-of-a-program/m-p/7393851#M1545846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-01T14:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel execution of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-execution-of-a-program/m-p/7393852#M1545847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it necessary to use the spool parameters?&lt;/P&gt;&lt;P&gt;Or do I get the same effect with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOB_OPEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT zprogram&lt;/P&gt;&lt;P&gt;VIA JOB 1111111&lt;/P&gt;&lt;P&gt;AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOB_CLOSE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand why i'd need the spool stuff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thakns,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matias.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 14:44:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-execution-of-a-program/m-p/7393852#M1545847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-01T14:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel execution of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-execution-of-a-program/m-p/7393853#M1545848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're not interested in the spool output of the scheduled program you don't need the SPOOL PARAMETERS. Read the F1 documentation for further details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 15:08:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-execution-of-a-program/m-p/7393853#M1545848</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-11-01T15:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel execution of a program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-execution-of-a-program/m-p/7393854#M1545849</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;If you don't want to pass the SPOOL PARAMETERS, Comment the SPOOL keywords it will work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  SUBMIT (PROGRAM NAME)
         WITH p_ufile = v_ufile
         WITH SELECTION-TABLE it_selopt
         VIA JOB     lv_jobname
             NUMBER  lv_jobcount
*         TO SAP-SPOOL WITHOUT SPOOL DYNPRO
*            SPOOL PARAMETERS ls_params
            AND RETURN. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the above statment it will work. Let know if any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Nov 2010 16:28:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-execution-of-a-program/m-p/7393854#M1545849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-01T16:28:38Z</dc:date>
    </item>
  </channel>
</rss>

