<?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: SELECTING FROM INTERNAL TABLES in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-from-internal-tables/m-p/2335265#M514088</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;read table itab index 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding itab to itab2.&lt;/P&gt;&lt;P&gt;append itab2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2007 04:01:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-14T04:01:41Z</dc:date>
    <item>
      <title>SELECTING FROM INTERNAL TABLES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-from-internal-tables/m-p/2335264#M514087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i have an internal table say i_fpla which has two records. from this internal table i want to get the first row( or any one row) and put it into another internal table. can u plss tell me how to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 04:00:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-from-internal-tables/m-p/2335264#M514087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T04:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTING FROM INTERNAL TABLES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-from-internal-tables/m-p/2335265#M514088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;read table itab index 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding itab to itab2.&lt;/P&gt;&lt;P&gt;append itab2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 04:01:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-from-internal-tables/m-p/2335265#M514088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T04:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTING FROM INTERNAL TABLES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-from-internal-tables/m-p/2335266#M514089</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;Check this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the first row.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;READ TABLE I_FPLA INTO WA INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Move the row to another internal table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MOVE-CORRESPONDING WA TO WA_ANOTHER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;APPEND WA_ANOTHER TO T_ANOTHER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 04:02:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-from-internal-tables/m-p/2335266#M514089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T04:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTING FROM INTERNAL TABLES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-from-internal-tables/m-p/2335267#M514090</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;loop at that table into work area.&lt;/P&gt;&lt;P&gt;Now you have one record in work area.&lt;/P&gt;&lt;P&gt;you can move it in another table work area and append that to another table.&lt;/P&gt;&lt;P&gt;for choosing a particular row, you can specify where condition or you can use sy-tabix. which is the index of internal table inside loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ruchika &lt;/P&gt;&lt;P&gt;reward if useful....................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 04:02:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-from-internal-tables/m-p/2335267#M514090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T04:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTING FROM INTERNAL TABLES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-from-internal-tables/m-p/2335268#M514091</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;try the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;***** Note&amp;lt;/b&amp;gt;: itab1 and itab2 are declared with header line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab1 index 1.&lt;/P&gt;&lt;P&gt;move-corresponding fields of itab1 to itab2.&lt;/P&gt;&lt;P&gt;append itab2.&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;ravish&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz dont forget to reward points if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 04:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-from-internal-tables/m-p/2335268#M514091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T04:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTING FROM INTERNAL TABLES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-from-internal-tables/m-p/2335269#M514092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say you have 2 records in tbl_tab1 and you want to put the records into another internal table say tbl_tab2.For this:&lt;/P&gt;&lt;P&gt;1. Define work areas for both the internal tables . lets say they are wa_tab1 which is of the same type as tbl_tab1 and wa_tab2 which is of the same type as tbl_tab2.&lt;/P&gt;&lt;P&gt;DATA: wa_tab1 like line of tbl_tab1,&lt;/P&gt;&lt;P&gt;           wa_tab2 like line of tbl_tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Now if you have a specific key in tbl_tab1 and you want to read a particular record with some condition then u can simply read table tbl_tab1 into the work area and then whichever fields you want to copy into wa_tab2 you can and simpyl append this to tbl_tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE tbl_tab1 into wa_tab1 with key field 1 = 'X'.&lt;/P&gt;&lt;P&gt;wa_tab2-field1 = wa_tab1-field1.&lt;/P&gt;&lt;P&gt;append wa_tab2 to tbl_tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will append a particular record to tbl_tab2.&lt;/P&gt;&lt;P&gt;X is some value for field1 which you want to read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.if you want to move both the records to tbl_tab2 then simply loop through this table.&lt;/P&gt;&lt;P&gt;loop at tbl_tab1 into wa_tab1.&lt;/P&gt;&lt;P&gt;wa_tab2-field1 = wa_tab1-field1.&lt;/P&gt;&lt;P&gt;append wa_tab2 to tbl_tab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;Both your records will get appended to tbl_tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;shivika&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Shivika Bhorchi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 04:20:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-from-internal-tables/m-p/2335269#M514092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T04:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTING FROM INTERNAL TABLES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-from-internal-tables/m-p/2335270#M514093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;since u want to get the first row...&lt;/P&gt;&lt;P&gt;use...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE i_fpla index 1.&lt;/P&gt;&lt;P&gt;or u can use...define a varible of type sy-index...&lt;/P&gt;&lt;P&gt;and increment that variable when ever u want to read a particular row...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help u out..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward points in case usefull...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 04:20:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-from-internal-tables/m-p/2335270#M514093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T04:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTING FROM INTERNAL TABLES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-from-internal-tables/m-p/2335271#M514094</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;try like this if both tables have header lines also,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u know the index of 1st record in internal table 1 then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab1 index 'no'.&lt;/P&gt;&lt;P&gt;move-coresponding itab1 to itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab1 with key field fldname = '   '.&lt;/P&gt;&lt;P&gt;move-corresponding itab1 to itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 where fld = itab1-fld.&lt;/P&gt;&lt;P&gt; move itab1 to itab2.&lt;/P&gt;&lt;P&gt; append itab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if useful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 04:56:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selecting-from-internal-tables/m-p/2335271#M514094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T04:56:33Z</dc:date>
    </item>
  </channel>
</rss>

