<?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 Function module for SAP BW - conflict object-oriented &amp; cursor in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sap-bw-conflict-object-oriented-cursor/m-p/1806799#M346256</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;For extracting data with a function module using the API interface for SAP BW, it is generally recommended to modify the template RSAX_BIW_GET_DATA_SIMPLE.&lt;/P&gt;&lt;P&gt;This template makes use of a CURSOR and the exception &lt;/P&gt;&lt;P&gt;RAISE NO_MORE_DATA to ensure that the API will not call the FM forever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my development team, an ABAPer has created a FM that contains object-oriented programming, namely classes and methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot figure out how to make use of RAISE NO_MORE_DATA to stop the extraction in this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be most welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laurent Querella&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Dec 2006 08:39:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-29T08:39:09Z</dc:date>
    <item>
      <title>Function module for SAP BW - conflict object-oriented &amp; cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sap-bw-conflict-object-oriented-cursor/m-p/1806799#M346256</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;For extracting data with a function module using the API interface for SAP BW, it is generally recommended to modify the template RSAX_BIW_GET_DATA_SIMPLE.&lt;/P&gt;&lt;P&gt;This template makes use of a CURSOR and the exception &lt;/P&gt;&lt;P&gt;RAISE NO_MORE_DATA to ensure that the API will not call the FM forever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my development team, an ABAPer has created a FM that contains object-oriented programming, namely classes and methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot figure out how to make use of RAISE NO_MORE_DATA to stop the extraction in this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be most welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laurent Querella&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2006 08:39:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sap-bw-conflict-object-oriented-cursor/m-p/1806799#M346256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-29T08:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for SAP BW - conflict object-oriented &amp; cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sap-bw-conflict-object-oriented-cursor/m-p/1806800#M346257</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;That excpetion should be triggered after closing the CURSOR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2006 09:00:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sap-bw-conflict-object-oriented-cursor/m-p/1806800#M346257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-29T09:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for SAP BW - conflict object-oriented &amp; cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sap-bw-conflict-object-oriented-cursor/m-p/1806801#M346258</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;This is not the point!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The standard method (BW-API) makes use of a cursor to fetch data from SAP R/3 tables/structures. The abovementioned exception is raised after the cursor is closed. The cursor is closed when the extraction retrieve no more data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my current development, I cannot use a cursor (can I?) because the ABAPer has used classes and methods to fetch data.&lt;/P&gt;&lt;P&gt;All the data are extracted in one and the same step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I raise the exception (without using a cursor) then the FM does not extract any record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do not raise it, the FM works fine in OLTP but when triggered by BW, the FM runs forever...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2006 09:10:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sap-bw-conflict-object-oriented-cursor/m-p/1806801#M346258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-29T09:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for SAP BW - conflict object-oriented &amp; cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sap-bw-conflict-object-oriented-cursor/m-p/1806802#M346259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the select statements and open cursor / fetch next cursor would have been used in the method of the class used in your FM . you may need to raise this exception from the method or return some parameter from this method and based on that raise it in your FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 07:26:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-sap-bw-conflict-object-oriented-cursor/m-p/1806802#M346259</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2007-01-03T07:26:05Z</dc:date>
    </item>
  </channel>
</rss>

