<?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: how to control data retrieval in rfc programming? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-control-data-retrieval-in-rfc-programming/m-p/4265105#M1017677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ama ctually putting this back into a regular process - no rfc calls or what so ever and will execute this in back ground.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a couple of other cases where the data is even larger. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the dialog.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Aug 2008 19:54:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-01T19:54:45Z</dc:date>
    <item>
      <title>how to control data retrieval in rfc programming?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-control-data-retrieval-in-rfc-programming/m-p/4265099#M1017671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'ZGET_COSS'&lt;/P&gt;&lt;P&gt;    STARTING NEW TASK 'COSS'&lt;/P&gt;&lt;P&gt;    DESTINATION IN GROUP DEFAULT&lt;/P&gt;&lt;P&gt;    PERFORMING get_coss ON END OF TASK&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     objnr    = objnr&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      gjahr    = gjahr&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      tbl_coss = t_coss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'ZGET_COSP'&lt;/P&gt;&lt;P&gt;    STARTING NEW TASK 'COSS'&lt;/P&gt;&lt;P&gt;    DESTINATION IN GROUP DEFAULT&lt;/P&gt;&lt;P&gt;    PERFORMING get_cosp ON END OF TASK&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     objnr    = objnr&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      gjahr    = gjahr&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      tbl_coss = t_cosp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wait until count = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Form  get_cosp&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_cosp  USING name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the result back from the RFC FM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  RECEIVE RESULTS FROM FUNCTION 'ZGET_COSP'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        tbl_cosp = t_cosp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Confirmation that FM is done processing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  count = count + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " get_cosp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Form  get_coss&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_coss  USING name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the result back from the RFC FM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  RECEIVE RESULTS FROM FUNCTION 'ZGET_COSS'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        tbl_coss = t_coss.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Confirmation that FM is done processing&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  count = count + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " get_coss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ZGET function modules have simple select statements with all the key fields populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this fails when there is a large volume of data as the RECEIVE part is getting triggered even before the function modules completes data retrieval - and the program dumps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to control this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 17:58:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-control-data-retrieval-in-rfc-programming/m-p/4265099#M1017671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-01T17:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to control data retrieval in rfc programming?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-control-data-retrieval-in-rfc-programming/m-p/4265100#M1017672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've used asynchrnous RFCs with return data several times without issue.  A few questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- What exactly is it saying in the dump?&lt;/P&gt;&lt;P&gt;- How has the server side of the RFC been developed?  Is it SAP/ABAP or another platform that is exposing itself via the RFC SDK?&lt;/P&gt;&lt;P&gt;- Do you know if there is a timeout occuring on the RFC call?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is an RFC implimented on the SAP/ABAP platform (i.e. you are using this in order to do divide and coquor processing by doign the two selects in parallel) then the calling program is either a background process or a dialog process but the called function is always running in a dialog process.  Based on this you can sometimes have timeout issues on the called function module due to the time-out limit allowed for a dialog process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some more questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- What is the time-out limit for dialog processes in your system?&lt;/P&gt;&lt;P&gt;- How long is it running before it dumps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 18:43:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-control-data-retrieval-in-rfc-programming/m-p/4265100#M1017672</guid>
      <dc:creator>ian_maxwell2</dc:creator>
      <dc:date>2008-08-01T18:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to control data retrieval in rfc programming?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-control-data-retrieval-in-rfc-programming/m-p/4265101#M1017673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is data selection with in the same system. Since the volume of data is pretty huge, just thought of this task approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dump does not really say much except that DBIF RSQL error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It fails as soon as it hits the RECEIVE step. And it reaches the RECEIVE step within a couple of seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 19:08:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-control-data-retrieval-in-rfc-programming/m-p/4265101#M1017673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-01T19:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to control data retrieval in rfc programming?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-control-data-retrieval-in-rfc-programming/m-p/4265102#M1017674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmmm... Wish I was more help on this one, I haven't seen that happen before like that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how much data it is attempting to pass back?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the RFC executing on the same instance as the caller?  The reason I ask is that if it is there could be an incompatibility of version of the RFC specification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 19:14:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-control-data-retrieval-in-rfc-programming/m-p/4265102#M1017674</guid>
      <dc:creator>ian_maxwell2</dc:creator>
      <dc:date>2008-08-01T19:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to control data retrieval in rfc programming?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-control-data-retrieval-in-rfc-programming/m-p/4265103#M1017675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is on the same server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is trying to retrieve some 1 million records belonging to 25000 orders.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 19:34:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-control-data-retrieval-in-rfc-programming/m-p/4265103#M1017675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-01T19:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to control data retrieval in rfc programming?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-control-data-retrieval-in-rfc-programming/m-p/4265104#M1017676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think I've ever used this feature with that size of data.  So you might be hitting somesort of internal issue with regards to the RFC protocol or memory restrictions on the two processes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you use a further divide and conquor the approach where you make a series of multiple calls to the RFC where on each call you are looking at a smaller subset?  For example retrieving at most 1000 orders at a time and adding a where clause such that you are getting the next set of records greater then the last set that you had?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 19:46:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-control-data-retrieval-in-rfc-programming/m-p/4265104#M1017676</guid>
      <dc:creator>ian_maxwell2</dc:creator>
      <dc:date>2008-08-01T19:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to control data retrieval in rfc programming?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-control-data-retrieval-in-rfc-programming/m-p/4265105#M1017677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ama ctually putting this back into a regular process - no rfc calls or what so ever and will execute this in back ground.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a couple of other cases where the data is even larger. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the dialog.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 19:54:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-control-data-retrieval-in-rfc-programming/m-p/4265105#M1017677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-01T19:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to control data retrieval in rfc programming?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-control-data-retrieval-in-rfc-programming/m-p/4265106#M1017678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe the solution for you is to use select statement&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT u2026 UP TO n ROWS 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because only the requested number of data records are transferred from the database to the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you add new input parameter to your FM like how much rows you want to return, resp. you can use this logic to implement from to n rows ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 20:13:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-control-data-retrieval-in-rfc-programming/m-p/4265106#M1017678</guid>
      <dc:creator>karol_seman</dc:creator>
      <dc:date>2008-08-01T20:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to control data retrieval in rfc programming?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-control-data-retrieval-in-rfc-programming/m-p/4265107#M1017679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Resolved by eliminating the RFC access and reading the tables directly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2008 19:46:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-control-data-retrieval-in-rfc-programming/m-p/4265107#M1017679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-10T19:46:48Z</dc:date>
    </item>
  </channel>
</rss>

