<?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/6544587#M1428624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;Please cehk it here and search get lot of threads&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="6969634"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jan 2010 06:26:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-22T06:26:16Z</dc:date>
    <item>
      <title>Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/6544586#M1428623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     I am using the following query sum the Quantity but did not come sum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select ekko&lt;SUB&gt;ebeln ekpo&lt;/SUB&gt;matkl Sum( ekpo~MENGE )&lt;/P&gt;&lt;P&gt;          into corresponding fields of table t_pur_reg&lt;/P&gt;&lt;P&gt;          from ekko&lt;/P&gt;&lt;P&gt;            inner join ekpo on ekko&lt;SUB&gt;ebeln = ekpo&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;            inner join ekkn on ekpo&lt;SUB&gt;ebeln = ekkn&lt;/SUB&gt;ebeln and&lt;/P&gt;&lt;P&gt;            ekpo&lt;SUB&gt;ebelp = ekkn&lt;/SUB&gt;ebelp&lt;/P&gt;&lt;P&gt;            where&lt;/P&gt;&lt;P&gt;                ekko~ebeln eq t_ekkn-ebeln and&lt;/P&gt;&lt;P&gt;                ekkn~VBELN eq s_vbeln and&lt;/P&gt;&lt;P&gt;                ekko~FRGKE eq 'R' and&lt;/P&gt;&lt;P&gt;                ekko~bstyp eq 'F' and&lt;/P&gt;&lt;P&gt;                ekpo~loekz eq space&lt;/P&gt;&lt;P&gt;                GROUP by ekko&lt;SUB&gt;ebeln ekpo&lt;/SUB&gt;MATKL&lt;/P&gt;&lt;P&gt;                ORDER BY ekko&lt;SUB&gt;ebeln ekpo&lt;/SUB&gt;MATKL.&lt;/P&gt;&lt;P&gt;Any Body know tell the reason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 06:22:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/6544586#M1428623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-22T06:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/6544587#M1428624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;Please cehk it here and search get lot of threads&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="6969634"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 06:26:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/6544587#M1428624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-22T06:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/6544588#M1428625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : t_pur_reg1 type t_pur_reg .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ekko&lt;SUB&gt;ebeln ekpo&lt;/SUB&gt;ebelp  ekpo&lt;SUB&gt;matkl  ekpo&lt;/SUB&gt;MENGE &lt;/P&gt;&lt;P&gt;into corresponding fields of table t_pur_reg&lt;/P&gt;&lt;P&gt;from ekko&lt;/P&gt;&lt;P&gt;inner join ekpo on ekko&lt;SUB&gt;ebeln = ekpo&lt;/SUB&gt;ebeln&lt;/P&gt;&lt;P&gt;inner join ekkn on ekpo&lt;SUB&gt;ebeln = ekkn&lt;/SUB&gt;ebeln and&lt;/P&gt;&lt;P&gt;ekpo&lt;SUB&gt;ebelp = ekkn&lt;/SUB&gt;ebelp&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;ekko~ebeln eq t_ekkn-ebeln and&lt;/P&gt;&lt;P&gt;ekkn~VBELN eq s_vbeln and&lt;/P&gt;&lt;P&gt;ekko~FRGKE eq 'R' and&lt;/P&gt;&lt;P&gt;ekko~bstyp eq 'F' and&lt;/P&gt;&lt;P&gt;ekpo~loekz eq space&lt;/P&gt;&lt;P&gt;GROUP by ekko&lt;SUB&gt;ebeln ekpo&lt;/SUB&gt;MATKL&lt;/P&gt;&lt;P&gt;ORDER BY ekko&lt;SUB&gt;ebeln ekpo&lt;/SUB&gt;MATKL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e declare another internal table like t_pur_reg ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move  t_pur_reg to_t_pur_reg1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_pur_reg1 = []t_pur_reg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_pur_reg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  t_pur_reg-ebelp = '' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify t_pur_reg transporting ebelp .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_pur_reg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;collect t_pur_reg into t_pur_reg2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you will get sum of ebeln and matkl .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use that table for further .&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;Deepak .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 09:01:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/6544588#M1428625</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2010-01-22T09:01:43Z</dc:date>
    </item>
  </channel>
</rss>

