<?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: Dump in Fetch Cursor Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-fetch-cursor-issue/m-p/6506173#M1422692</link>
    <description>&lt;P&gt;So, Can you describe how did you solve it? I am getting the similar issue.&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2023 12:46:28 GMT</pubDate>
    <dc:creator>jitendra_mehta</dc:creator>
    <dc:date>2023-03-31T12:46:28Z</dc:date>
    <item>
      <title>Dump in Fetch Cursor Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-fetch-cursor-issue/m-p/6506171#M1422690</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 create a Data source at R/3 Side through will standard BI extractor will put the required data from R/3 table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a FM.&lt;/P&gt;&lt;P&gt;Specific for BI extractor , i have written code like shown below&lt;/P&gt;&lt;P&gt;I am getting a Dump when i execute this FM through RSA3 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: l_s_select TYPE srsc_s_select.

  STATICS: s_s_if TYPE srsc_s_if_simple,

                s_counter_datapakid LIKE sy-tabix,

      OPEN CURSOR WITH HOLD s_cursor FOR

        SELECT ktopl
               ktosl
               konts
         FROM  t030
         WHERE ktopl = 'OC01'
         AND   ktosl = 'WRX' OR ktosl = 'FR1' OR ktosl = 'FR2' OR
               ktosl = 'FR3' OR ktosl = 'FR4' OR ktosl = 'KON' OR
               ktosl = 'WRY'.
                            

    FETCH NEXT CURSOR s_cursor
               APPENDING CORRESPONDING FIELDS
               OF TABLE it_t030
               PACKAGE SIZE s_s_if-maxsize.

          s_cursor TYPE cursor.

     IF sy-subrc &amp;lt;&amp;gt; 0.
      CLOSE CURSOR s_cursor.
      RAISE no_more_data.
    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After CLOSE CURSOR statement only i have written my other select query and futher processing.&lt;/P&gt;&lt;P&gt;Acutally i dont understand why i need to write a select query on t030 after OPEN cursor? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_t030 is not my final table which i am passing to the TABLES parameter.&lt;/P&gt;&lt;P&gt;it is e_t_data of type some Z custom structure which i want.&lt;/P&gt;&lt;P&gt;An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt;    The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught&lt;/P&gt;&lt;P&gt;     in&lt;/P&gt;&lt;P&gt;    procedure "Z_FM_AP_OPEN_ACCURALS" "(FUNCTION)", nor was it propagated by a&lt;/P&gt;&lt;P&gt;     RAISING clause.&lt;/P&gt;&lt;P&gt;    Since the caller of the procedure could not have anticipated that the&lt;/P&gt;&lt;P&gt;    exception would occur, the current program is terminated.&lt;/P&gt;&lt;P&gt;    The reason for the exception is:&lt;/P&gt;&lt;P&gt;    The cursor used in a FETCH or CLOSE CURSOR command is&lt;/P&gt;&lt;P&gt;    not open. It was either not yet open or has already&lt;/P&gt;&lt;P&gt;    been closed. You can close the cursor explicitly with&lt;/P&gt;&lt;P&gt;    the CLOSE CURSOR command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: mayank verdia on Jan 14, 2010 11:45 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: mayank verdia on Jan 14, 2010 11:46 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 22:39:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-fetch-cursor-issue/m-p/6506171#M1422690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-14T22:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in Fetch Cursor Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-fetch-cursor-issue/m-p/6506172#M1422691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I sloved it myself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 18:09:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-fetch-cursor-issue/m-p/6506172#M1422691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T18:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dump in Fetch Cursor Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-fetch-cursor-issue/m-p/6506173#M1422692</link>
      <description>&lt;P&gt;So, Can you describe how did you solve it? I am getting the similar issue.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 12:46:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-in-fetch-cursor-issue/m-p/6506173#M1422692</guid>
      <dc:creator>jitendra_mehta</dc:creator>
      <dc:date>2023-03-31T12:46:28Z</dc:date>
    </item>
  </channel>
</rss>

