<?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 query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2687970#M621676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to read all the entries you are currently getting from the SELECT directly into an internal table and then loop through it and do the further processing then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2007 15:09:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-09T15:09:58Z</dc:date>
    <item>
      <title>Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2687969#M621675</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;Can this select statement be changed with removing endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT partner INTO t_db_pos_match-partner&lt;/P&gt;&lt;P&gt;            FROM ekun&lt;/P&gt;&lt;P&gt;            WHERE dr_license = t_bp_obj-act-ekun-dr_license&lt;/P&gt;&lt;P&gt;              AND partner   NE t_bp_obj-act-ekun-partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            SORT t_db_pos_match BY partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            READ TABLE t_db_pos_match WITH KEY&lt;/P&gt;&lt;P&gt;                         partner = t_db_pos_match-partner BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;              t_db_pos_match-match_type = '2'.&lt;/P&gt;&lt;P&gt;              APPEND t_db_pos_match.&lt;/P&gt;&lt;P&gt;            ELSE.&lt;/P&gt;&lt;P&gt;              CLEAR: t_db_pos_match.&lt;/P&gt;&lt;P&gt;            ENDIF.&lt;/P&gt;&lt;P&gt;          ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply me.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Binay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 15:05:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2687969#M621675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T15:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2687970#M621676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to read all the entries you are currently getting from the SELECT directly into an internal table and then loop through it and do the further processing then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 15:09:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2687970#M621676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T15:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2687971#M621677</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 using the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********************************************************************&lt;/P&gt;&lt;P&gt;data t_temp like t_db_pos_match.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT partner INTO corresponding fields of table t_temp&lt;/P&gt;&lt;P&gt;FROM ekun&lt;/P&gt;&lt;P&gt;WHERE dr_license = t_bp_obj-act-ekun-dr_license&lt;/P&gt;&lt;P&gt;AND partner NE t_bp_obj-act-ekun-partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_temp.&lt;/P&gt;&lt;P&gt;SORT t_db_pos_match BY partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE t_db_pos_match WITH KEY&lt;/P&gt;&lt;P&gt;partner = t_temp-partner BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;t_temp-match_type = '2'.&lt;/P&gt;&lt;P&gt;APPEND t_temp to t_db_pos_match.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;CLEAR: t_temp.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt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L&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 03:57:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2687971#M621677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T03:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2687972#M621678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT partner INTO CORRESPONDING FIELDS OF TABLE t_db_pos_match-partner
FROM ekun
WHERE dr_license = t_bp_obj-act-ekun-dr_license
AND partner NE t_bp_obj-act-ekun-partner ORDER BY partner. "sort done by ORDER BY addition

*SORT t_db_pos_match BY partner. " TSort can also be done out side SELECT for that remove ORDER BY in above query
loop at t_db_pos_match where match_type &amp;lt;&amp;gt; '2'. " Delete where match_type not equal to 2.
delete t_db_pos_match.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 04:25:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2687972#M621678</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-08-10T04:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2687973#M621679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Binay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first get all the data into internal table,&lt;/P&gt;&lt;P&gt;if t_bp_obj [] is not initial.&lt;/P&gt;&lt;P&gt;select partner from ekun into table it_part for all entries in t_bp_obj  where dr_license = t_bp_obj-act-ekun-dr_license&lt;/P&gt;&lt;P&gt;AND partner NE t_bp_obj-act-ekun-partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now u have data in it_part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort it_part by partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_part.&lt;/P&gt;&lt;P&gt;READ TABLE t_db_pos_match WITH KEY&lt;/P&gt;&lt;P&gt;partner = it_part-partner BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;it_part-match_type = '2'.&lt;/P&gt;&lt;P&gt;APPEND it_part.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;CLEAR: it_part.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward points to all helpful answers &lt;/P&gt;&lt;P&gt;kiran.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 04:32:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2687973#M621679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T04:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2687974#M621680</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;yes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT partner &lt;/P&gt;&lt;P&gt;INTO &amp;lt;u&amp;gt;&amp;lt;b&amp;gt;table&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;  t_db_pos_match-partner&lt;/P&gt;&lt;P&gt;FROM ekun&lt;/P&gt;&lt;P&gt;WHERE dr_license = t_bp_obj-act-ekun-dr_license&lt;/P&gt;&lt;P&gt;AND partner NE t_bp_obj-act-ekun-partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT t_db_pos_match BY partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE t_db_pos_match WITH KEY&lt;/P&gt;&lt;P&gt;partner = t_db_pos_match-partner BINARY SEARCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;t_db_pos_match-match_type = '2'.&lt;/P&gt;&lt;P&gt;APPEND t_db_pos_match.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;CLEAR: t_db_pos_match.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if usefull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 09:25:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2687974#M621680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T09:25:08Z</dc:date>
    </item>
  </channel>
</rss>

