<?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: OPEN CURSOR WITH HOLD problem in a parallel programm in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-cursor-with-hold-problem-in-a-parallel-programm/m-p/7669536#M1574983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ioan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understood your strategy correct you are trying to use one cursor for all your parallel executions, isn't it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm guessing you are failling to keep it only one,&lt;/P&gt;&lt;P&gt;How these variables are being controlled in global execution?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;l_flg_second_time&lt;/P&gt;&lt;P&gt;l_var_cursor&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case it are being initialized for each execution, you are oppening one cursor for each program so wasting the resources...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Fernando Da Ró&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Feb 2011 10:26:20 GMT</pubDate>
    <dc:creator>former_member182114</dc:creator>
    <dc:date>2011-02-03T10:26:20Z</dc:date>
    <item>
      <title>OPEN CURSOR WITH HOLD problem in a parallel programm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-cursor-with-hold-problem-in-a-parallel-programm/m-p/7669535#M1574982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am running a 20 job parallelized programm, that reads two database tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 IF l_flg_second_time = con_off.
    l_flg_second_time = con_on.
    OPEN CURSOR WITH HOLD l_var_cursor FOR
    SELECT * FROM avor2 WHERE vtref IN s_vtref.
  ENDIF.

  TRY.
    FETCH NEXT CURSOR l_var_cursor
    INTO CORRESPONDING FIELDS OF TABLE c_tab_avor2
    PACKAGE SIZE p_block.
  ENDTRY.
  IF sy-subrc NE 0.
    c_flg_exit = con_on.
    CLOSE CURSOR l_var_cursor.
    EXIT.
  ENDIF.

  DESCRIBE TABLE c_tab_avor2.

  IF sy-tfill &amp;lt; p_block.
    c_flg_exit = con_on.
    CLOSE CURSOR l_var_cursor.
  ENDIF.
....
....
....
SELECT * FROM EAKO ...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second job gets terminated with a Dump (Runtime Error "DBIF_RSQL_INVALID_RSQL"): &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;    When attempting to open a cursor for a SELECT or OPEN CURSOR, all 16&lt;/P&gt;&lt;P&gt;    cursors of the SAP-internal database interface were already in use.&lt;/P&gt;&lt;P&gt;    The failed statement accesses table "EAKO ".&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Does anyone know where can i find the customizing for the Cursors so that i can compare more SAP Systems because i have other programms that ar parallelized in the same manor and have no problems running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Regards Ioan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2011 10:15:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-cursor-with-hold-problem-in-a-parallel-programm/m-p/7669535#M1574982</guid>
      <dc:creator>former_member205645</dc:creator>
      <dc:date>2011-02-02T10:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN CURSOR WITH HOLD problem in a parallel programm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-cursor-with-hold-problem-in-a-parallel-programm/m-p/7669536#M1574983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ioan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understood your strategy correct you are trying to use one cursor for all your parallel executions, isn't it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm guessing you are failling to keep it only one,&lt;/P&gt;&lt;P&gt;How these variables are being controlled in global execution?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;l_flg_second_time&lt;/P&gt;&lt;P&gt;l_var_cursor&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case it are being initialized for each execution, you are oppening one cursor for each program so wasting the resources...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Fernando Da Ró&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 10:26:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-cursor-with-hold-problem-in-a-parallel-programm/m-p/7669536#M1574983</guid>
      <dc:creator>former_member182114</dc:creator>
      <dc:date>2011-02-03T10:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN CURSOR WITH HOLD problem in a parallel programm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-cursor-with-hold-problem-in-a-parallel-programm/m-p/7669537#M1574984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fernando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for the answer. I have 20 different jobs and each job needs it's own cursor because each job has its own interval(range) for the select.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Job 1: Interval 1-10&lt;/P&gt;&lt;P&gt;Job 2: Interval 11-20&lt;/P&gt;&lt;P&gt;Job 3: Interval 21-30&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;Because i can't open more then 16 cursors at one time my idea was to wait for on job to finish. Unfortunately the WAIT instruction only works with seconds and thats too much, i need microseconds or milliseconds. So i replaced the cursor with DO-ENDDO and a select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Ioan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 10:45:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-cursor-with-hold-problem-in-a-parallel-programm/m-p/7669537#M1574984</guid>
      <dc:creator>former_member205645</dc:creator>
      <dc:date>2011-02-03T10:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN CURSOR WITH HOLD problem in a parallel programm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-cursor-with-hold-problem-in-a-parallel-programm/m-p/7669538#M1574985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ioan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why are you using OPEN CURSOR and not SELECT INTO TABLE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How many entries have on table avor2  and how is the result set expected for each SELECT on it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also maybe you can use SELECT field1,field2 despite use SELECT * to save some memory and network but it depends of the structure of avor2 and the fields you want to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Fernando Da Ró&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 11:03:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-cursor-with-hold-problem-in-a-parallel-programm/m-p/7669538#M1574985</guid>
      <dc:creator>former_member182114</dc:creator>
      <dc:date>2011-02-03T11:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN CURSOR WITH HOLD problem in a parallel programm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-cursor-with-hold-problem-in-a-parallel-programm/m-p/7669539#M1574986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fernando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well it is a 4 row more than 2 milion lines table and the 4 rows are key fields. I did't want to use select because of the DO ENDDO loop, but it's good now &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;Ioan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 12:08:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-cursor-with-hold-problem-in-a-parallel-programm/m-p/7669539#M1574986</guid>
      <dc:creator>former_member205645</dc:creator>
      <dc:date>2011-02-03T12:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: OPEN CURSOR WITH HOLD problem in a parallel programm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-cursor-with-hold-problem-in-a-parallel-programm/m-p/7669540#M1574987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, how can you do parallel job without open cursor?&lt;/P&gt;&lt;P&gt;I think it will cause a dump if you write SUBMIT or STARTING NEW TASK&lt;/P&gt;&lt;P&gt;in select endselect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 15:20:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-cursor-with-hold-problem-in-a-parallel-programm/m-p/7669540#M1574987</guid>
      <dc:creator>raffinkira</dc:creator>
      <dc:date>2015-02-02T15:20:02Z</dc:date>
    </item>
  </channel>
</rss>

