<?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: Select duplicates in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-duplicates/m-p/5686825#M1292425</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;Use like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  DISTINCT * FROM fupararef INTO TABLE i_list&lt;/P&gt;&lt;P&gt;                WHERE  ( parameter = 'I_RLTYP' OR parameter = 'I_AKTYP' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 May 2009 10:32:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-28T10:32:47Z</dc:date>
    <item>
      <title>Select duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-duplicates/m-p/5686821#M1292421</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 want to select those function names from table fupararef where all the given parameters are existing.&lt;/P&gt;&lt;P&gt;I use this selection:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM fupararef&lt;/P&gt;&lt;P&gt;    INTO TABLE i_list&lt;/P&gt;&lt;P&gt;    WHERE parameter = 'I_RLTYP' OR&lt;/P&gt;&lt;P&gt;          parameter = 'I_AKTYP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need only those function names where all two parameters existing, so if it is only 1 of the two is existing I don't need that anymore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 10:20:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-duplicates/m-p/5686821#M1292421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T10:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-duplicates/m-p/5686822#M1292422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT * FROM fupararef
INTO TABLE i_list
WHERE parameter = 'I_RLTYP'.

SELECT * FROM fupararef
INTO TABLE i_list2
WHERE parameter = 'I_AKTYP'.

loop at i_list.
  read table i_list2 with key funcname = i_list-funcname.
  if sysubrc = 0.
    append i_list to i_list_final.
  endif.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Florian Kemmer on May 28, 2009 12:28 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 10:28:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-duplicates/m-p/5686822#M1292422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T10:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-duplicates/m-p/5686823#M1292423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just replace the OR with AND...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wont that solve ur case??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 10:32:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-duplicates/m-p/5686823#M1292423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T10:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Select duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-duplicates/m-p/5686824#M1292424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT * FROM fupararef&lt;/P&gt;&lt;P&gt;INTO TABLE i_list&lt;/P&gt;&lt;P&gt;WHERE (parameter = 'I_RLTYP' AND parameter = 'I_AKTYP').&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 10:32:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-duplicates/m-p/5686824#M1292424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T10:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-duplicates/m-p/5686825#M1292425</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;Use like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  DISTINCT * FROM fupararef INTO TABLE i_list&lt;/P&gt;&lt;P&gt;                WHERE  ( parameter = 'I_RLTYP' OR parameter = 'I_AKTYP' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 10:32:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-duplicates/m-p/5686825#M1292425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T10:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Select duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-duplicates/m-p/5686826#M1292426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Try This:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * &lt;/P&gt;&lt;P&gt;FROM   FUPARAREF&lt;/P&gt;&lt;P&gt;WHERE parameter EQ 'I_RLTYP' &lt;/P&gt;&lt;P&gt;AND       parameter EQ 'I_AKTYP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes &lt;STRONG&gt;=&lt;/STRONG&gt; sign acts as an assignment operator and hence leads to retrival of records which are not expected, so it is always prefrable to make use of EQ, NE, GT, LT, etc in where as well as in IF conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gaurav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 10:51:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-duplicates/m-p/5686826#M1292426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T10:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Select duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-duplicates/m-p/5686827#M1292427</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;you can use the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

select fieldname 
from table name
into internal_table
where field in ('value1','value2').
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can use a ranges table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

ranges: r_range for table-fieldname.

r_range-sign = 'I'.
r_range-option = 'EQ'.
r_range-low = 'value1'.
append r_range. clear r_range.


r_range-sign = 'I'.
r_range-option = 'EQ'.
r_range-low = 'value2'.
append r_range. clear r_range.

select fieldname 
from table name
into internal_table
where field in range.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abdullah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 10:58:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-duplicates/m-p/5686827#M1292427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T10:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-duplicates/m-p/5686828#M1292428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you could try something like this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT funcname FROM fupararef
INTO TABLE i_list WHERE parameter = 'I_RLTYP'
AND funcname IN ( SELECT funcname FROM fupararef WHERE parameter =
'I_AKTYP' ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 11:08:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-duplicates/m-p/5686828#M1292428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T11:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Select duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-duplicates/m-p/5686829#M1292429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;    try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : i_list TYPE TABLE OF fupararef WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;       i_list_tmp TYPE TABLE OF fupararef,&lt;/P&gt;&lt;P&gt;       w_list LIKE LINE  OF i_list_tmp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT DISTINCT * FROM fupararef INTO TABLE i_list&lt;/P&gt;&lt;P&gt;WHERE ( parameter = 'INTERNAL_ERROR' OR parameter = 'SEND_ERROR' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND LINES OF i_list TO i_list_tmp .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SORT i_list_tmp BY funcname r3state parameter paramtype.&lt;/P&gt;&lt;P&gt;  DELETE ADJACENT DUPLICATES FROM i_list_tmp COMPARING funcname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT i_list_tmp INTO w_list .&lt;/P&gt;&lt;P&gt;    READ TABLE i_list INTO w_list WITH KEY funcname = w_list-funcname&lt;/P&gt;&lt;P&gt;                                           parameter = 'I_RLTYP' .&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      READ TABLE i_list INTO w_list WITH KEY funcname = w_list-funcname&lt;/P&gt;&lt;P&gt;                                             parameter =  'I_AKTYP'.&lt;/P&gt;&lt;P&gt;      IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;        DELETE i_list WHERE  funcname = w_list-funcname.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      DELETE i_list WHERE  funcname = w_list-funcname.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH i_list_tmp.&lt;/P&gt;&lt;P&gt;  clear :  w_list,i_list.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly give points if u find it useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 11:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-duplicates/m-p/5686829#M1292429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-28T11:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select duplicates</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-duplicates/m-p/5686830#M1292430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2009 09:44:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-duplicates/m-p/5686830#M1292430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-29T09:44:45Z</dc:date>
    </item>
  </channel>
</rss>

