<?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 Query prob in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-prob/m-p/1267965#M149538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A common scenario -&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Running an sql query , i get 5 values in an internal table itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Running another sql query,i get another 5 values in internal table itab2. I need to enter the corresponding fields of internal table itab1 into itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. the same scenario will continue for 4 internal tables.&lt;/P&gt;&lt;P&gt;and finally my data will be displayed for the 4rth table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know how will bw the flow of my code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly help me with relevant logic and how do i take up with the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Mar 2006 14:07:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-16T14:07:56Z</dc:date>
    <item>
      <title>Query prob</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-prob/m-p/1267965#M149538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A common scenario -&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Running an sql query , i get 5 values in an internal table itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Running another sql query,i get another 5 values in internal table itab2. I need to enter the corresponding fields of internal table itab1 into itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. the same scenario will continue for 4 internal tables.&lt;/P&gt;&lt;P&gt;and finally my data will be displayed for the 4rth table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know how will bw the flow of my code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly help me with relevant logic and how do i take up with the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 14:07:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-prob/m-p/1267965#M149538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-16T14:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Query prob</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-prob/m-p/1267966#M149539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ur query can be something like ths:&lt;/P&gt;&lt;P&gt;loop at table1.&lt;/P&gt;&lt;P&gt;loop at table2 where key = table1-key.&lt;/P&gt;&lt;P&gt;move-corresponding table1 to t_final.&lt;/P&gt;&lt;P&gt;move-corresponding table2 to t_final.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 14:17:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-prob/m-p/1267966#M149539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-16T14:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Query prob</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-prob/m-p/1267967#M149540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradipta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of two tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you want to move the value of field3 and field4 from internal table 1 into internal table 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First your internal table 2 should have the fields which you want to move from internal table 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1 - field1, field2, field3, field4&lt;/P&gt;&lt;P&gt;itab2 - field2, field3, field4, field5, field6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read table itab1 with key field2 = itab2-field2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab2-field3 = itab1-field3.&lt;/P&gt;&lt;P&gt;itab2-field4 = itab1-field4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify itab2 transporting field3 field4.&lt;/P&gt;&lt;P&gt;(This will modify the values for field3 and field4 only)&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;Hope it helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neeraj Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2006 14:27:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-prob/m-p/1267967#M149540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-16T14:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Query prob</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-prob/m-p/1267968#M149541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;kindly provide solution :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ABLEINH ANLAGE FROM EANLH&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE IT_ITAB1&lt;/P&gt;&lt;P&gt;  WHERE EANLH~ABLEINH IN S_MRU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next i need to count that the number of installations 'anlage' for a particular ableinh and store the same in the same internal table IT_ITAB1 .... how do i do it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 07:25:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-prob/m-p/1267968#M149541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-17T07:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Query prob</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-prob/m-p/1267969#M149542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; create another itab with the same fields and another extra field to store the 'count'. copy all the contents to another temp. itab. delete adjacent duplicates comapring ableinh.&lt;/P&gt;&lt;P&gt;then,&lt;/P&gt;&lt;P&gt; loop at it_itab1_temp.&lt;/P&gt;&lt;P&gt;  loop at it_itab1 where ableinh = it.._temp-ableinh.&lt;/P&gt;&lt;P&gt;   keep a counter.&lt;/P&gt;&lt;P&gt;  endloop. &lt;/P&gt;&lt;P&gt;   append the fields to ur 'count itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt; Madan..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 07:37:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-prob/m-p/1267969#M149542</guid>
      <dc:creator>madan_ullasa</dc:creator>
      <dc:date>2006-03-17T07:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Query prob</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-prob/m-p/1267970#M149543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;types: begin of t_itab,&lt;/P&gt;&lt;P&gt;        ableinh like eanlh-ableinh,&lt;/P&gt;&lt;P&gt;        count1  type i,&lt;/P&gt;&lt;P&gt;       end of t_itab.&lt;/P&gt;&lt;P&gt;data: it_itab1 type standard table of t_itab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT ABLEINH count(ANLAGE) FROM EANLH&lt;/P&gt;&lt;P&gt;INTO TABLE IT_ITAB1&lt;/P&gt;&lt;P&gt;WHERE EANLH~ABLEINH IN S_MRU group by ABLEINH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 08:58:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-prob/m-p/1267970#M149543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-17T08:58:27Z</dc:date>
    </item>
  </channel>
</rss>

