<?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: changing internal table in select in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-internal-table-in-select/m-p/7447152#M1552430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since release 6.10 you can use the same internal table after FOR ALL ENTRIES and INTO TABLE, your question sounds like it could be a use case for this option, please let us know the result.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Nov 2010 13:08:40 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2010-11-30T13:08:40Z</dc:date>
    <item>
      <title>changing internal table in select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-internal-table-in-select/m-p/7447148#M1552426</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;i have a internal table with 3 columns. first two columns are filled with values. i need to extract the value for 3rd column from a database table, which has key filelds same as first two colunms of the internal table. instead of getting values from the DB table into another internal table and then looping with original internal table to change the 3rd column value, is there any shortcut where i can update the 3rd column directly in the select statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 12:34:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-internal-table-in-select/m-p/7447148#M1552426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-30T12:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: changing internal table in select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-internal-table-in-select/m-p/7447149#M1552427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming that you are filling the first 2 columns from database,I am suggesting this option:While filling the first 2 columns in the internal table from database, you can use Join in the select and fetch the data for the third column also from another table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 12:39:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-internal-table-in-select/m-p/7447149#M1552427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-30T12:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: changing internal table in select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-internal-table-in-select/m-p/7447150#M1552428</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;      Since the key filelds are same as first two colunms of the internal table , you can write a select .. for all entries&lt;/P&gt;&lt;P&gt;      For this you need to just declare another internal table ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      select field1 field2 field3 into table itab2  from &amp;lt;table&amp;gt;&lt;/P&gt;&lt;P&gt;                for all entries in itab1&lt;/P&gt;&lt;P&gt;                where field1 = itab1-field1 and&lt;/P&gt;&lt;P&gt;                            field2 = itab1-field2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 12:41:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-internal-table-in-select/m-p/7447150#M1552428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-30T12:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: changing internal table in select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-internal-table-in-select/m-p/7447151#M1552429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudhakar&lt;/P&gt;&lt;P&gt;According to you, you have 3 fields out of which 2 fields are already filled with data.&lt;/P&gt;&lt;P&gt;Now you want to select data from DB directly into your 3rd field without losing data in first 2 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for that you can use appending statement while selecting value from DB into the 3rd field.&lt;/P&gt;&lt;P&gt;but for that you have to use another internal table, because your table fields are partially filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose you have WA1  for itab1 and  WA2 for itab2.&lt;/P&gt;&lt;P&gt;Itab1 has data and itab2 contains only 1 field which is the 3rd field of itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select matnr from mara into table itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab2 into wa2,&lt;/P&gt;&lt;P&gt;wa1-matnr = wa2-matnr .&lt;/P&gt;&lt;P&gt;appending itab1 from wa1.&lt;/P&gt;&lt;P&gt;clear: wa1, wa2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Lalit Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 12:50:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-internal-table-in-select/m-p/7447151#M1552429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-30T12:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: changing internal table in select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-internal-table-in-select/m-p/7447152#M1552430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since release 6.10 you can use the same internal table after FOR ALL ENTRIES and INTO TABLE, your question sounds like it could be a use case for this option, please let us know the result.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 13:08:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-internal-table-in-select/m-p/7447152#M1552430</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-11-30T13:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: changing internal table in select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-internal-table-in-select/m-p/7447153#M1552431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be join statement representing the field name using alias will do &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select mara~matnr as matnr1
           marc~matnr as matnr2
           from mara inner join marc ........
           into table it ......
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Nov 2010 15:35:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-internal-table-in-select/m-p/7447153#M1552431</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-11-30T15:35:33Z</dc:date>
    </item>
  </channel>
</rss>

