<?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: Collecting same data with different value into a table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/collecting-same-data-with-different-value-into-a-table/m-p/4905832#M1145467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,,,&lt;/P&gt;&lt;P&gt;my second itab dont v the values of A,B,C,D. I will fill up the second itab with the values of first itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Dec 2008 07:02:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-11T07:02:42Z</dc:date>
    <item>
      <title>Collecting same data with different value into a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collecting-same-data-with-different-value-into-a-table/m-p/4905828#M1145463</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 you people help me with this problem.&lt;/P&gt;&lt;P&gt;I have an internal table with different data e.g :&lt;/P&gt;&lt;P&gt;A    2&lt;/P&gt;&lt;P&gt;B    1&lt;/P&gt;&lt;P&gt;C    3&lt;/P&gt;&lt;P&gt;A    1&lt;/P&gt;&lt;P&gt;D    7&lt;/P&gt;&lt;P&gt;B    5&lt;/P&gt;&lt;P&gt;Now i want to put the values of A,B,C,D into another internal table with some other calculation done.&lt;/P&gt;&lt;P&gt;But when i am using READ Table with KEY my second internal table is getting filled with A=2 and the second A=2 as well instead of 1.I guess because it is reading the first record only as its finding A first.&lt;/P&gt;&lt;P&gt;How will i fix this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 06:56:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collecting-same-data-with-different-value-into-a-table/m-p/4905828#M1145463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T06:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting same data with different value into a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collecting-same-data-with-different-value-into-a-table/m-p/4905829#M1145464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Can you people help me with this problem.&lt;/P&gt;&lt;P&gt;&amp;gt; I have an internal table with different data e.g :&lt;/P&gt;&lt;P&gt;&amp;gt; A    2&lt;/P&gt;&lt;P&gt;&amp;gt; B    1&lt;/P&gt;&lt;P&gt;&amp;gt; C    3&lt;/P&gt;&lt;P&gt;&amp;gt; A    1&lt;/P&gt;&lt;P&gt;&amp;gt; D    7&lt;/P&gt;&lt;P&gt;&amp;gt; B    5&lt;/P&gt;&lt;P&gt;&amp;gt; Now i want to put the values of A,B,C,D into another internal table with some other calculation done.&lt;/P&gt;&lt;P&gt;&amp;gt; But when i am using READ Table with KEY my second internal table is getting filled with A=2 and the second A=2 as well instead of 1.I guess because it is reading the first record only as its finding A first.&lt;/P&gt;&lt;P&gt;&amp;gt; How will i fix this one.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Kind Regards,&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me the exact requirement of yours?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 07:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collecting-same-data-with-different-value-into-a-table/m-p/4905829#M1145464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T07:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting same data with different value into a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collecting-same-data-with-different-value-into-a-table/m-p/4905830#M1145465</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;If your second table also has the values of first itab say A,B,C,D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then sort your first table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at second_tab.&lt;/P&gt;&lt;P&gt;loop at first_tab where fnam = second_tab-fnam&lt;/P&gt;&lt;P&gt;&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;Best Regards&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 07:00:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collecting-same-data-with-different-value-into-a-table/m-p/4905830#M1145465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T07:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting same data with different value into a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collecting-same-data-with-different-value-into-a-table/m-p/4905831#M1145466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the read statement mention both fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; READ TABLE IT_bkpf WITH KEY bukrs = IT_bsis-bukrs&lt;/P&gt;&lt;P&gt;                                                  belnr = it_bsis-belnr&lt;/P&gt;&lt;P&gt;                                                  gjahr = it_bsis-gjahr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 07:01:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collecting-same-data-with-different-value-into-a-table/m-p/4905831#M1145466</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-12-11T07:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting same data with different value into a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collecting-same-data-with-different-value-into-a-table/m-p/4905832#M1145467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,,,&lt;/P&gt;&lt;P&gt;my second itab dont v the values of A,B,C,D. I will fill up the second itab with the values of first itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 07:02:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collecting-same-data-with-different-value-into-a-table/m-p/4905832#M1145467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T07:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting same data with different value into a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collecting-same-data-with-different-value-into-a-table/m-p/4905833#M1145468</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;Instead of Read statement use the Loop at itab with where clause... in this case you get the second record also..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 07:02:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collecting-same-data-with-different-value-into-a-table/m-p/4905833#M1145468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T07:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Collecting same data with different value into a table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/collecting-same-data-with-different-value-into-a-table/m-p/4905834#M1145469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;take an intermediate internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;itab_temp[] = itab[].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now use read table from temp table and delete that entry after reading it so the next read table will point to next entry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 07:03:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/collecting-same-data-with-different-value-into-a-table/m-p/4905834#M1145469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T07:03:36Z</dc:date>
    </item>
  </channel>
</rss>

