<?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: Internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2737153#M635757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can achieve this by using the At NEW control statement within the loop for internal table. The pseudo code for this looks something like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at tab2 into wa2.&lt;/P&gt;&lt;P&gt;at new custid.&lt;/P&gt;&lt;P&gt;move wa2 into wa1.&lt;/P&gt;&lt;P&gt;append wa1 to tab1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, wa1 and wa2 are work areas for tab1 and tab2 respectively. &lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Subray Hegde&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Sep 2007 21:01:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-04T21:01:03Z</dc:date>
    <item>
      <title>Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2737152#M635756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus, &lt;/P&gt;&lt;P&gt;I have a conditon where in I have two internal tables tab1 and tab2, tab 2 has the following records:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;custid	 material    date&lt;/P&gt;&lt;P&gt;101	123		01/01/2008&lt;/P&gt;&lt;P&gt;101	456		01/01/2008&lt;/P&gt;&lt;P&gt;102	123		01/01/2008&lt;/P&gt;&lt;P&gt;102	456		01/01/2008&lt;/P&gt;&lt;P&gt;102	789		01/01/2008&lt;/P&gt;&lt;P&gt;103	111		01/01/2008&lt;/P&gt;&lt;P&gt;103	112		01/01/2008&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I need to move only the unique cusid in table tab1, so basically tab1 shld have one field custid with the following records:&lt;/P&gt;&lt;P&gt;101&lt;/P&gt;&lt;P&gt;102&lt;/P&gt;&lt;P&gt;103&lt;/P&gt;&lt;P&gt;can you please help me how to write this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajeev Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 20:55:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2737152#M635756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T20:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2737153#M635757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can achieve this by using the At NEW control statement within the loop for internal table. The pseudo code for this looks something like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at tab2 into wa2.&lt;/P&gt;&lt;P&gt;at new custid.&lt;/P&gt;&lt;P&gt;move wa2 into wa1.&lt;/P&gt;&lt;P&gt;append wa1 to tab1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, wa1 and wa2 are work areas for tab1 and tab2 respectively. &lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Subray Hegde&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 21:01:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2737153#M635757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T21:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2737154#M635758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the easist and the best way to get this is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1[] = itab2[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort itab1 with key custid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete adjacent duplicates from itab1 comparing custid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shreekant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 21:07:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2737154#M635758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T21:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2737155#M635759</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;Move tab2 to tab1 , sort and delete adjacent duplicates comparing custid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tab1 = tab2.&lt;/P&gt;&lt;P&gt;SORT tab1 BY custid.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES from tab1 comparing custid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 21:09:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2737155#M635759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T21:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2737156#M635760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for the answer i specified above, ITAB1 and ITAB2 should have the same structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT ITAB1 by CUSTID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then delete adjacent duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However if ITAB1 and ITAB2 dont have the same structure use control commands like at new.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shreekant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2007 21:10:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/2737156#M635760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-04T21:10:07Z</dc:date>
    </item>
  </channel>
</rss>

