<?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: Selection into table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825103#M660990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT landx into TABLE i_mytable     "&amp;lt;--  ADD the word TABLE here
         FROM t005t
                for ALL ENTRIES IN i_kna1
                WHERE land1 = i_kna1-land1 AND
                             spras = 'EN'.

* REMOVE the  "ENDSELECT"
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm assuming that LANDX is the only field in I_MYTABLE, otherwise you may want to use INTO CORRESPONDING FIELDS OF TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2007 13:25:24 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2007-09-26T13:25:24Z</dc:date>
    <item>
      <title>Selection into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825102#M660989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following selection below. It doesn't append the landx to i_mytable. If I use append i_mytable it appends to a new line not to i_mytable-landx. How can I solve the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT landx&lt;/P&gt;&lt;P&gt;    into i_mytable-landx&lt;/P&gt;&lt;P&gt;    FROM t005t&lt;/P&gt;&lt;P&gt;    for ALL ENTRIES IN i_kna1&lt;/P&gt;&lt;P&gt;    WHERE land1 = i_kna1-land1 AND&lt;/P&gt;&lt;P&gt;          spras = 'EN'.&lt;/P&gt;&lt;P&gt; ENDSELECT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 13:21:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825102#M660989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T13:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Selection into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825103#M660990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT landx into TABLE i_mytable     "&amp;lt;--  ADD the word TABLE here
         FROM t005t
                for ALL ENTRIES IN i_kna1
                WHERE land1 = i_kna1-land1 AND
                             spras = 'EN'.

* REMOVE the  "ENDSELECT"
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm assuming that LANDX is the only field in I_MYTABLE, otherwise you may want to use INTO CORRESPONDING FIELDS OF TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 13:25:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825103#M660990</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-09-26T13:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Selection into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825104#M660991</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;Adding some more points .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if not i_kna1 is initial.
SELECT landx
into table i_mytable-landx
FROM t005t
for ALL ENTRIES IN i_kna1
WHERE land1 = i_kna1-land1 AND
spras = 'EN'.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manjunath MS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 13:30:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825104#M660991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T13:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Selection into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825105#M660992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in i_mytable there are several fields, I want to add landx to i_mytable-landx.&lt;/P&gt;&lt;P&gt;So in your version it inserts to the first column which is not good for me.&lt;/P&gt;&lt;P&gt;Have any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 13:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825105#M660992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T13:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Selection into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825106#M660993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Manjunat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it gives me an error that i_mytable is not an internal table. I've already tried this version:&lt;/P&gt;&lt;P&gt;SELECT landx&lt;/P&gt;&lt;P&gt;    into i_mytable-landx&lt;/P&gt;&lt;P&gt;    FROM t005t&lt;/P&gt;&lt;P&gt;    for ALL ENTRIES IN i_kna1&lt;/P&gt;&lt;P&gt;    WHERE land1 = i_kna1-land1 AND&lt;/P&gt;&lt;P&gt;          spras = 'EN'.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when I'm trying to append to i_mytable it inserts landx to a wrong position into a new line of the table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 13:35:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825106#M660993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T13:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Selection into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825107#M660994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want to modify an existing line of the internal table, and only the LANDX field?&lt;/P&gt;&lt;P&gt;If so, you can't do it like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 13:38:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825107#M660994</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-09-26T13:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Selection into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825108#M660995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still a little confused how I_KNA1 is relevant in all this, but you must do something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

Loop at i_mytable.

SELECT landx into i_mytable-landx    
         FROM t005t
                WHERE land1 =i_mytable-land1 AND
                             spras = 'EN'.
modify i_mytable.
endloop.




&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 13:41:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825108#M660995</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-09-26T13:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Selection into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825109#M660996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that is the case. So is it not possible to modify the line? Should I use instead of it an embedded selection and then when all the data is selected insert to the internal table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 13:44:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825109#M660996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T13:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Selection into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825110#M660997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Previously I selected the LAND1 from kna1 into i_kna1 (it's my internal table) it stores the country key (LAND1). Then I'm trying to retrieve the text to the country key LAND1, and I want to put the text LANDX into an another internal table called i_mytable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 13:48:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825110#M660997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T13:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Selection into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825111#M660998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are records getting into i_mytable?  Are they coming from I_KNA1 at some point in time?  IF so, i would suggest getting this text then.  Please post the full code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 13:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825111#M660998</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-09-26T13:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Selection into table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825112#M660999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I have realized what's the solution. I have to move to all the data into the header of my internal table i_mytable and then i have to append to it.&lt;/P&gt;&lt;P&gt;Thanks for posting some help for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 13:59:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-into-table/m-p/2825112#M660999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-26T13:59:36Z</dc:date>
    </item>
  </channel>
</rss>

