<?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 Type ref to a table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-ref-to-a-table/m-p/4229878#M1010202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an FM returning a variable which is :&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;abc type ref to data&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This actually returns a table at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However since its declaration is such, I capture the reference in another variable&lt;/P&gt;&lt;P&gt;  xyz type ref to data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to know whether the xyz table has one row or more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Ravi Bhatnagar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Aug 2008 16:03:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-12T16:03:13Z</dc:date>
    <item>
      <title>Type ref to a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-ref-to-a-table/m-p/4229878#M1010202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an FM returning a variable which is :&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;abc type ref to data&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This actually returns a table at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However since its declaration is such, I capture the reference in another variable&lt;/P&gt;&lt;P&gt;  xyz type ref to data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to know whether the xyz table has one row or more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Ravi Bhatnagar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 16:03:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-ref-to-a-table/m-p/4229878#M1010202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T16:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Type ref to a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-ref-to-a-table/m-p/4229879#M1010203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: v_lines type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;fs&amp;gt; type standard table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ASSIGN xyz-&amp;gt;* TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table &amp;lt;fs&amp;gt; lines v_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_liens you get the number of rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 16:05:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-ref-to-a-table/m-p/4229879#M1010203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T16:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Type ref to a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-ref-to-a-table/m-p/4229880#M1010204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like this. Assign the data ref to a field symbol, then use the LINES operator to find out the number of lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: lo_ref TYPE REF TO data.
DATA: lv_lines TYPE i.

FIELD-SYMBOLS: &amp;lt;fs_tab&amp;gt; TYPE table.

ASSIGN lo_ref-&amp;gt;* TO &amp;lt;fs_tab&amp;gt;.

lv_lines = LINES( &amp;lt;fs_tab&amp;gt; ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 16:06:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-ref-to-a-table/m-p/4229880#M1010204</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-08-12T16:06:40Z</dc:date>
    </item>
  </channel>
</rss>

