<?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 Processing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing/m-p/7306547#M1534955</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need the output of a report to be generated in the spool and then I am retreiving it later on from the spool and displaying ti along with another ALV in my current program.&lt;/P&gt;&lt;P&gt;I have called the Job Open and Job Close function modules. Between these 2 FM calls, I have written the code for the parallel processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'YFM_OTC_ZSD_ORDER'
    STARTING NEW TASK v_task_name
    DESTINATION 'NONE'
    PERFORMING receive_results ON END OF TASK
    EXPORTING
      iv_repid              = lv_repid
      iv_print_parameters   = v_print_parameters
      iv_name               = v_name
      iv_number             = v_number
    TABLES
      it_rspar_tmp          = t_rspar_tmp[]
    EXCEPTIONS
      communication_failure = 1
      OTHERS                = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this, I retrieve the data from Function Module : RSPO_RETURN_SPOOLJOB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the above steps work while I am in debugging mode.At the RFC call, it opens a new session and i execute the session completely, return to the main program execution, and then execute to the end , and I get the desired output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in debug mode, if i reach the RFC, a new session opens.I do not execute the FM, instead if i go back to the main program and execute it directly, i can replicate the error : Output device "" unknown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i guess it has got something to do with the Submit statment in the RFC.&lt;/P&gt;&lt;P&gt;Any assistance would be great !&lt;/P&gt;&lt;P&gt;Thanks !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Sep 2010 07:05:20 GMT</pubDate>
    <dc:creator>anishoommen</dc:creator>
    <dc:date>2010-09-21T07:05:20Z</dc:date>
    <item>
      <title>Parallel Processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing/m-p/7306544#M1534952</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 am trying to implement parallel processing and am facing a problem where in the Function Module contains the statement :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;submit (iv_repid) to sap-spool
                    with selection-table it_rspar_tmp
                    spool parameters iv_print_parameters
                    without spool dynpro
                    via job iv_name
                    number iv_number
                    and return.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I call the Function Module as such :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'YFM_OTC_ZSD_ORDER'
    STARTING NEW TASK v_task_name
    DESTINATION 'NONE'
    PERFORMING receive_results ON END OF TASK
    EXPORTING
      iv_repid              = lv_repid
      iv_print_parameters   = v_print_parameters
      iv_name               = v_name
      iv_number             = v_number
    TABLES
      it_rspar_tmp          = t_rspar_tmp[]
    EXCEPTIONS
      communication_failure = 1
      OTHERS                = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I keep getting the error Output Device "" unknown.&lt;/P&gt;&lt;P&gt;Kindly advise.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 05:56:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing/m-p/7306544#M1534952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-21T05:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing/m-p/7306545#M1534953</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;From the documentation for the SUBMIT statement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a basic list is created in the program accessed, you should create a spool request with explicit print parameters by specifying TO SAP-SPOOL. Otherwise the VIA JOB addition implicitly creates a spool request that derives its print parameters from standard values, some of which are taken from the user defaults, and which are not necessarily consistent. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the print parameters that you pass to the submit statement. You could use get_print_parameters function module to get the parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sujay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 06:19:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing/m-p/7306545#M1534953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-21T06:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing/m-p/7306546#M1534954</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 achive parallel processing you need to use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IN BACKGROUND TASK&lt;/P&gt;&lt;P&gt;    AS SEPARATE UNIT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just check this llink [http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP&lt;EM&gt;parallel&lt;/EM&gt;processing&lt;EM&gt;using&lt;/EM&gt;RFC]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 06:30:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing/m-p/7306546#M1534954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-21T06:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Parallel Processing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing/m-p/7306547#M1534955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need the output of a report to be generated in the spool and then I am retreiving it later on from the spool and displaying ti along with another ALV in my current program.&lt;/P&gt;&lt;P&gt;I have called the Job Open and Job Close function modules. Between these 2 FM calls, I have written the code for the parallel processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'YFM_OTC_ZSD_ORDER'
    STARTING NEW TASK v_task_name
    DESTINATION 'NONE'
    PERFORMING receive_results ON END OF TASK
    EXPORTING
      iv_repid              = lv_repid
      iv_print_parameters   = v_print_parameters
      iv_name               = v_name
      iv_number             = v_number
    TABLES
      it_rspar_tmp          = t_rspar_tmp[]
    EXCEPTIONS
      communication_failure = 1
      OTHERS                = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this, I retrieve the data from Function Module : RSPO_RETURN_SPOOLJOB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the above steps work while I am in debugging mode.At the RFC call, it opens a new session and i execute the session completely, return to the main program execution, and then execute to the end , and I get the desired output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in debug mode, if i reach the RFC, a new session opens.I do not execute the FM, instead if i go back to the main program and execute it directly, i can replicate the error : Output device "" unknown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i guess it has got something to do with the Submit statment in the RFC.&lt;/P&gt;&lt;P&gt;Any assistance would be great !&lt;/P&gt;&lt;P&gt;Thanks !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 07:05:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parallel-processing/m-p/7306547#M1534955</guid>
      <dc:creator>anishoommen</dc:creator>
      <dc:date>2010-09-21T07:05:20Z</dc:date>
    </item>
  </channel>
</rss>

