<?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: Only 10000 records being returned by function module? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861743#M1593027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's picking up 11372, but only returning the first 10000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 May 2011 16:18:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-05-03T16:18:00Z</dc:date>
    <item>
      <title>Only 10000 records being returned by function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861740#M1593024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a hard limit of 10000 records that can be returned in a function module export parameter?  I tried looking everywhere I could think of and couldn't find any solid documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're having a problem with a function module used by our BW.  It takes a range table of funds, and breaks it out into a table that lists each fund on its own line, and returns that in the export parameter.  In the function, there are 11,000+ funds in the range table, but the export parameter is always returning exactly 10,000 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is a limit, does anyone know if it can be expanded.  Thanks for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 16:10:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861740#M1593024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-03T16:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Only 10000 records being returned by function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861741#M1593025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not that I know of.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you debugged the FM to see how many funds it is picking up?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 16:14:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861741#M1593025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-03T16:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Only 10000 records being returned by function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861742#M1593026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe some package size that can be adjusted somewhere deep down in BW customizing? Also have a look in the BW (or is it BI?) forums, but do not cross-post, please.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 16:16:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861742#M1593026</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2011-05-03T16:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Only 10000 records being returned by function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861743#M1593027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's picking up 11372, but only returning the first 10000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 16:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861743#M1593027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-03T16:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Only 10000 records being returned by function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861744#M1593028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's an internal table that is looping filling up the export parameter, it continues through the loop for all 11000+ records, but after the 10000th loop, the export table just stops growing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 16:21:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861744#M1593028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-03T16:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Only 10000 records being returned by function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861745#M1593029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a standard R3 FM? If so, what is its name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 16:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861745#M1593029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-03T16:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Only 10000 records being returned by function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861746#M1593030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, it's custom, but it's pretty straight forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION ZBW_BPS_FILLVAR_ZFUND.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     REFERENCE(I_AREA) TYPE  UPC_Y_AREA OPTIONAL
*"     REFERENCE(I_VARIABLE) TYPE  UPC_Y_VARIABLE OPTIONAL
*"     REFERENCE(I_CHANM) TYPE  UPC_Y_CHANM OPTIONAL
*"     REFERENCE(ITO_CHANM) TYPE  UPC_YTO_CHA OPTIONAL
*"  EXPORTING
*"     VALUE(ETO_CHARSEL) TYPE  UPC_YTO_CHARSEL
*"----------------------------------------------------------------------
*------------------------------------------------------------------------

  data: ze_subrc type sy-subrc.
  data: xreceivers like upc_ys_api_varsel occurs 0 with header line.
  data: ls_charsel type upc_ys_charsel.


* Used to hold individual funds found in the selected range
  data: begin of it_fund occurs 0,
        zfund like /BI0/TFUND-fund,
        end of it_fund.


  call function 'API_SEMBPS_VARIABLE_GETDETAIL'
    EXPORTING
      i_area     = 'ZABCNM01'
      i_variable = 'ZFDFUNCT'
    IMPORTING
      e_subrc    = ze_subrc
    TABLES
      etk_varsel = xreceivers.


  loop at xreceivers.

* occasionally a '#' comes in as a selection, skip these records
    if ls_charsel-low &amp;lt;&amp;gt; '#'.

      select fund
      from
        /BI0/TFUND
      into it_fund-zfund
      where
        fund &amp;gt;= xreceivers-low
        and fund &amp;lt;= xreceivers-high.

        append it_fund.

      endselect.

    endif.

  endloop.


* Loop at it_fund to build list of individual funds (from range)

  loop at it_fund.

    ls_charsel-chanm = '0FUND'.
    ls_charsel-seqno = sy-tabix.
    ls_charsel-sign = 'I'.
    ls_charsel-opt = 'EQ'.
    ls_charsel-low = it_fund-zfund.
*  ls_charsel-high = xreceivers-high.

    insert ls_charsel into table eto_charsel.

    clear ls_charsel.

  endloop.

ENDFUNCTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The relevant part is that last loop.  There are 11k+ records in the internal table.  And it does the loop that many times.  But the table eto_charsel never gets bigger than 10k records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 16:28:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861746#M1593030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-03T16:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Only 10000 records being returned by function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861747#M1593031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;eto_charsel has a unique key. Are you sure there are no duplicates in it_fund or xreceivers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course - seqno has a type of NUMC(4)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on May 3, 2011 12:50 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 16:39:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861747#M1593031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-03T16:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Only 10000 records being returned by function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861748#M1593032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;eto_charsel has a unique key. Are you sure there are no duplicates in it_fund or xreceivers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course - seqno has a type of NUMC(4)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 16:47:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861748#M1593032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-03T16:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Only 10000 records being returned by function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861749#M1593033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And, that explains that, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 16:50:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861749#M1593033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-03T16:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Only 10000 records being returned by function module?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861750#M1593034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;... or as one of my previous project managers used to put it, you are "the man" &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 20:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/only-10000-records-being-returned-by-function-module/m-p/7861750#M1593034</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2011-05-03T20:48:37Z</dc:date>
    </item>
  </channel>
</rss>

