<?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: RFC_READ_TABLE - Count? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211754#M1522668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the RFM 'RFC_GET_TABLE_ENTRIES'. You get the number of records via the param: NUMBER_OF_ENTRIES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Aug 2010 16:57:18 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2010-08-26T16:57:18Z</dc:date>
    <item>
      <title>RFC_READ_TABLE - Count?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211752#M1522666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using RFC_READ_TABLE to retrieve data. Is there a chance to remotely call something similar for a count?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes we would need a quick estimation of the result's size before retrieving it. As with count this should be as fast / lightweight as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;Regards TJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 16:48:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211752#M1522666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-26T16:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_READ_TABLE - Count?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211753#M1522667</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;Check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="51308"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 16:51:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211753#M1522667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-26T16:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_READ_TABLE - Count?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211754#M1522668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the RFM 'RFC_GET_TABLE_ENTRIES'. You get the number of records via the param: NUMBER_OF_ENTRIES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 16:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211754#M1522668</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-08-26T16:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_READ_TABLE - Count?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211755#M1522669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your quick response. As I see it, both approaches&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- EM_GET_NUMBER_OF_ENTRIES&lt;/P&gt;&lt;P&gt;- RFC_GET_TABLE_ENTRIES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;provide the overall count only, and there is no chance to provide a selection criteria as with RFC_READ_TABLE.&lt;/P&gt;&lt;P&gt;So I cannot use it, since I need to provide a "WHERE CLAUSE". I should have been a more specific on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 17:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211755#M1522669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-26T17:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_READ_TABLE - Count?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211756#M1522670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well in this case is better to make a new FM where you pass parameters for the where clause and you can make a select count to retrieve the number of rows in the selection&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 17:56:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211756#M1522670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-26T17:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_READ_TABLE - Count?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211757#M1522671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;You can use this FM TABLE_ENTRIES_GET_VIA_RFC where you can pass the table name and the where clause in SEL_TAB internal table of this FM. &lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Debaraj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Debaraj Sahoo on Aug 26, 2010 11:55 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 18:24:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211757#M1522671</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-26T18:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_READ_TABLE - Count?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211758#M1522672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again for your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At JMG:&lt;/P&gt;&lt;P&gt;Writing own code is not possible in my particular case, since we focus on the remote program and do not want to "touch" the SAP system. Thanks anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At DS:&lt;/P&gt;&lt;P&gt;TABLE_ENTRIES_GET_VIA_RFC seems to be very much the same as RFC_READ_TABLE. However, I still do not get how to call it just to get the count. It returns the full data table, not just the count. So I do have the same overhead as with RFC_READ_TABLE. It takes some time to transfer the data via RFC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Motivation: &lt;/P&gt;&lt;P&gt;I just want to predict how many data I will get for a certain query before I transfer it REMOTELY(!).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Aug 2010 10:48:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211758#M1522672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-27T10:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_READ_TABLE - Count?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211759#M1522673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After a little search in SE90 I found CATT_GET_TABLE_ENTRIES, maybe this comes close.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Aug 2010 10:57:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211759#M1522673</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-08-27T10:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_READ_TABLE - Count?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211760#M1522674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the code for CATT_GET_TABLE_ENTRIES, i see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT COUNT(*) FROM (table) INTO x
   WHERE (itab).
  IF sy-subrc = 0.
    anzahl = sy-dbcnt.
  ELSE.
    anzahl = 0.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OP could have created a simple custom RFC utilizing the SELECT statements instead of searching for standard "unreleased" FMs &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Aug 2010 11:02:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211760#M1522674</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-08-27T11:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_READ_TABLE - Count?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211761#M1522675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, he doesn't want to touch the system, and c'mon, are you never using unreleased FMs? I'm doing fine since 1993 &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Aug 2010 11:15:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211761#M1522675</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-08-27T11:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_READ_TABLE - Count?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211762#M1522676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; c'mon, are you never using unreleased FMs? I'm doing fine since 1993 &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ROFL ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Aug 2010 11:23:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211762#M1522676</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-08-27T11:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_READ_TABLE - Count?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211763#M1522677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys for supporting me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@TZ; CATT_GET_TABLE_ENTRIES is a prospect, but it is not available in my WebAS 7.0 / nor in my WebAS 7.01. As of [this thread|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="678516"&gt;&lt;/A&gt;; it even has a select condition. However, obviously it's beyond the scope of a standard WebAs 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Susha: We simply cannot install something in the backend. The company I am working with is in .net business and does not want to have somebody to install a FM or something similar. I am completely aware this is simple to write, on the other hand I also get their point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Aug 2010 15:58:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211763#M1522677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-29T15:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: RFC_READ_TABLE - Count?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211764#M1522678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On a slightly different note, do you think a quick Table Analyzer run (Tcode TAANA) would help you? True that you are not using your tool to check the number of entries, but it gets the work done. You'll have to run this in the system from which you are pulling data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jinesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Oct 2010 06:10:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-count/m-p/7211764#M1522678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-20T06:10:59Z</dc:date>
    </item>
  </channel>
</rss>

