<?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: CURSOR - FETCH Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-fetch-error/m-p/3956873#M945533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Alex,&lt;/P&gt;&lt;P&gt;Can u tel me, how you have solved the issue? Even i facing the same problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jun 2008 15:21:00 GMT</pubDate>
    <dc:creator>former_member206396</dc:creator>
    <dc:date>2008-06-27T15:21:00Z</dc:date>
    <item>
      <title>CURSOR - FETCH Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-fetch-error/m-p/3956867#M945527</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 am new to ABAP and I have a situation and don't know why it is erroring out. Could anyone point it out for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF allper,&lt;/P&gt;&lt;P&gt;      mbegda   TYPE hrp1001-begda,&lt;/P&gt;&lt;P&gt;      mendda   TYPE hrp1001-endda,&lt;/P&gt;&lt;P&gt;      mpos       TYPE hrp1001-objid,&lt;/P&gt;&lt;P&gt;      morg        TYPE hrp1001-sobid,&lt;/P&gt;&lt;P&gt;      mper        TYPE hrp1001-sobid,&lt;/P&gt;&lt;P&gt;      mmgr_id   TYPE hrp1008-btrtl,&lt;/P&gt;&lt;P&gt;      END OF  allper.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab_allper1 LIKE TABLE OF allper.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN CURSOR WITH HOLD S_CURSOR FOR&lt;/P&gt;&lt;P&gt;     SELECT DISTINCT a&lt;SUB&gt;begda a&lt;/SUB&gt;endda a&lt;SUB&gt;objid a&lt;/SUB&gt;sobid b&lt;SUB&gt;sobid c&lt;/SUB&gt;btrtl&lt;/P&gt;&lt;P&gt;     FROM HRP1001 AS a&lt;/P&gt;&lt;P&gt;     LEFT OUTER JOIN HRP1001 AS b ON a&lt;SUB&gt;objid = b&lt;/SUB&gt;objid  AND&lt;/P&gt;&lt;P&gt;                                                               b~subty = 'A008'   AND&lt;/P&gt;&lt;P&gt;                                                               b~sclas = 'P'&lt;/P&gt;&lt;P&gt;     LEFT OUTER JOIN HRP1008 AS c ON a&lt;SUB&gt;objid = c&lt;/SUB&gt;objid&lt;/P&gt;&lt;P&gt;     WHERE a~subty = 'A003' AND&lt;/P&gt;&lt;P&gt;                   a~sclas = 'O'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    FETCH NEXT CURSOR S_CURSOR&lt;/P&gt;&lt;P&gt;              APPENDING CORRESPONDING FIELDS&lt;/P&gt;&lt;P&gt;              OF TABLE itab_allper&lt;/P&gt;&lt;P&gt;              PACKAGE SIZE 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get a shohrt dump in the FETCH statment. Looks to me some fields don't match? any clues?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;P&gt;Alex.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 21:37:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-fetch-error/m-p/3956867#M945527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T21:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: CURSOR - FETCH Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-fetch-error/m-p/3956868#M945528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does the short dumpo says.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table is declared as &lt;STRONG&gt;itab_allper1&lt;/STRONG&gt; but your sentence says&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FETCH NEXT CURSOR S_CURSOR&lt;/P&gt;&lt;P&gt;APPENDING CORRESPONDING FIELDS&lt;/P&gt;&lt;P&gt;OF TABLE &lt;STRONG&gt;itab_allper&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PACKAGE SIZE 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe that's the problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 21:42:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-fetch-error/m-p/3956868#M945528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T21:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: CURSOR - FETCH Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-fetch-error/m-p/3956869#M945529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ramiro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for looking at this. I do have an internal table as itab_allper as well as itab_allper1 both are of the type allper structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think the syntax and the way the variable declarations are correct? I am not sure of those..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankx again.&lt;/P&gt;&lt;P&gt;Alex.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 21:55:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-fetch-error/m-p/3956869#M945529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T21:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: CURSOR - FETCH Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-fetch-error/m-p/3956870#M945530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see nothing wrong.&lt;/P&gt;&lt;P&gt;What does the dump says? Can you post it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I do find weird is the join on the same table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 22:00:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-fetch-error/m-p/3956870#M945530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T22:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: CURSOR - FETCH Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-fetch-error/m-p/3956871#M945531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ramiro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the cause for the ABEND because it was not  on a development client, after copying to the correct client it does not abend but the cursor fetches only 0's. Is my declaration of structure, table, cursor and FETCH are all correct? Can I Fetch into an internal table?. I am concerned about the declaration part. The SQL is correct and it works right now when I have it with out cursor when I load it in to an internal table. Please let me know my validations are correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alex.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 12:45:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-fetch-error/m-p/3956871#M945531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-28T12:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: CURSOR - FETCH Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-fetch-error/m-p/3956872#M945532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2008 16:01:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-fetch-error/m-p/3956872#M945532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-02T16:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: CURSOR - FETCH Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-fetch-error/m-p/3956873#M945533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Alex,&lt;/P&gt;&lt;P&gt;Can u tel me, how you have solved the issue? Even i facing the same problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 15:21:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cursor-fetch-error/m-p/3956873#M945533</guid>
      <dc:creator>former_member206396</dc:creator>
      <dc:date>2008-06-27T15:21:00Z</dc:date>
    </item>
  </channel>
</rss>

