<?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 Rfc_Read_Table : select within select in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-select-within-select/m-p/5610603#M1278501</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;Using RFC_READ_TABLE, i want to extract a list of names from table like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name           date_1          date_2&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------" /&gt;&lt;P&gt;John            1.4.2001       1.4.2005&lt;/P&gt;&lt;P&gt;John            2.4.2005       2.4.2011&lt;/P&gt;&lt;P&gt;Mike            1.4.2005       1.4.2010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question: how I retrieve a list of all names where date_2  is  the latest date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result set should be:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Name           date_1          date_2&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------" /&gt;&lt;P&gt;John            2.4.2005       2.4.2011&lt;/P&gt;&lt;P&gt;Mike            1.4.2005       1.4.2010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using select within select but R3 rejected this trial. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any suggestion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;yuval peery&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 May 2009 11:17:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-04T11:17:57Z</dc:date>
    <item>
      <title>Rfc_Read_Table : select within select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-select-within-select/m-p/5610603#M1278501</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;Using RFC_READ_TABLE, i want to extract a list of names from table like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name           date_1          date_2&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------" /&gt;&lt;P&gt;John            1.4.2001       1.4.2005&lt;/P&gt;&lt;P&gt;John            2.4.2005       2.4.2011&lt;/P&gt;&lt;P&gt;Mike            1.4.2005       1.4.2010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question: how I retrieve a list of all names where date_2  is  the latest date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result set should be:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Name           date_1          date_2&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------" /&gt;&lt;P&gt;John            2.4.2005       2.4.2011&lt;/P&gt;&lt;P&gt;Mike            1.4.2005       1.4.2010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using select within select but R3 rejected this trial. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any suggestion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;yuval peery&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 11:17:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-select-within-select/m-p/5610603#M1278501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T11:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Rfc_Read_Table : select within select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-select-within-select/m-p/5610604#M1278502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean by latest date.&lt;/P&gt;&lt;P&gt;Is it only after the current year ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 11:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-select-within-select/m-p/5610604#M1278502</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2009-05-04T11:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Rfc_Read_Table : select within select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-select-within-select/m-p/5610605#M1278503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Before loop push ITAB data to a TEMP_ITAB.&lt;/P&gt;&lt;P&gt;Inside the LOOP use a read statement for TEMP_ITAB where NAME = ITAB-NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If found (sy-subrc = 0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check for the latest date by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ITAB-DATE_2 &amp;gt; TEMP_ITAB-DATE_2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;take ITAB-DATE_2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEMP_ITAB-DATE_2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ags.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 11:27:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-select-within-select/m-p/5610605#M1278503</guid>
      <dc:creator>agnihotro_sinha2</dc:creator>
      <dc:date>2009-05-04T11:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rfc_Read_Table : select within select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-select-within-select/m-p/5610606#M1278504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; U can simply sort ur table by date_2 in descending order and delete adjacent duplicates by comparing name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab by date_2.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from itab comparing name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;   Yog&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 11:35:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-select-within-select/m-p/5610606#M1278504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T11:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rfc_Read_Table : select within select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-select-within-select/m-p/5610607#M1278505</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;What you suggest is to wrap RFC_READ_TABLE with custom fuction.&lt;/P&gt;&lt;P&gt;Unfortunately I cannot do it since I call RFC_READ_TABLE ffrom java Web Dynpro &lt;/P&gt;&lt;P&gt;where I can only pass in the where clause (under 'options').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;yuval&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 11:47:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-select-within-select/m-p/5610607#M1278505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T11:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Rfc_Read_Table : select within select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-select-within-select/m-p/5610608#M1278506</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;Apperantly RFC_READ_TABLE does not support select within select.&lt;/P&gt;&lt;P&gt;The solution, as far as I was concerned, was to filter out the values I need at the front end using &lt;/P&gt;&lt;P&gt;java web dynpro (portal).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yuval peery&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 08:29:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-read-table-select-within-select/m-p/5610608#M1278506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T08:29:52Z</dc:date>
    </item>
  </channel>
</rss>

