<?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: move stat problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-stat-problem/m-p/1495343#M230028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of f_string,&lt;/P&gt;&lt;P&gt;f1 like kna1-kunnr,&lt;/P&gt;&lt;P&gt;f2 like kna1-name1,&lt;/P&gt;&lt;P&gt;f3 like kna1-ort01,&lt;/P&gt;&lt;P&gt;end of f_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ls_string type f_string,&lt;/P&gt;&lt;P&gt;lt_string type table of f_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select f1 f2 f3 from kna1 into table lt_string where f1 = kna1-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this statment you get the data into the table lt_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, need of the other logic....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Aug 2006 08:19:59 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2006-08-23T08:19:59Z</dc:date>
    <item>
      <title>move stat problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-stat-problem/m-p/1495342#M230027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one problem in move statement. sample coding is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of f_string,&lt;/P&gt;&lt;P&gt;      f1 like kna1-kunnr,&lt;/P&gt;&lt;P&gt;      f2 like kna1-name1,&lt;/P&gt;&lt;P&gt;      f3 like kna1-ort01,&lt;/P&gt;&lt;P&gt;      end of f_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ls_string type f_string,&lt;/P&gt;&lt;P&gt;      lt_string type table of f_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select f1 f2 f3 from kna1 into table lt_string where f1 = kna1-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at lt_string to ls_string.&lt;/P&gt;&lt;P&gt;move ls_string-f1 to lt_string-f1.&lt;/P&gt;&lt;P&gt;move ls_string-f2 to lt_string-f2.&lt;/P&gt;&lt;P&gt;append ls_string to lt_string.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code I m getting error that lt_string is a table without a header line &amp;amp; therefore has no component called f1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My object is to fetch the data.  &amp;amp; move the data fetched to the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will u tell me how to solve this error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 08:17:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-stat-problem/m-p/1495342#M230027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T08:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: move stat problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-stat-problem/m-p/1495343#M230028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of f_string,&lt;/P&gt;&lt;P&gt;f1 like kna1-kunnr,&lt;/P&gt;&lt;P&gt;f2 like kna1-name1,&lt;/P&gt;&lt;P&gt;f3 like kna1-ort01,&lt;/P&gt;&lt;P&gt;end of f_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ls_string type f_string,&lt;/P&gt;&lt;P&gt;lt_string type table of f_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select f1 f2 f3 from kna1 into table lt_string where f1 = kna1-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this statment you get the data into the table lt_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, need of the other logic....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 08:19:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-stat-problem/m-p/1495343#M230028</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2006-08-23T08:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: move stat problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-stat-problem/m-p/1495344#M230029</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 lt_string to ls_string.&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;move ls_string-f1 to lt_string-f1.&lt;/P&gt;&lt;P&gt;move ls_string-f2 to lt_string-f2.&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;append ls_string to lt_string.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ulined code is useless&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Andreas Mann&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 08:37:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-stat-problem/m-p/1495344#M230029</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2006-08-23T08:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: move stat problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-stat-problem/m-p/1495345#M230030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;lt_string type table of f_string.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;this creates an Internal table without HEADER LINE. you have to use EXPLICIT work area to manipulate the data of this internal table.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;lt_string type table of f_string WITH HEADER LINE.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;This will creates an internal table WITH HEADER LINE,so you can use LT_STRING as a workarea to hold a single record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i believe you got the point.&lt;/P&gt;&lt;P&gt;coming to your code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;b&amp;gt;loop at lt_string to ls_string.
move ls_string-f1 to lt_string-f1.
move ls_string-f2 to lt_string-f2.
append ls_string to lt_string.
endloop.&amp;lt;/b&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is your intenstion here ? because you got data from KNA1 table to LT_STRING. again you are LOOPING the same LT_STRING again adding the SAME record to that table. this becomes an infinite loop,as you keep on adding the records.&lt;/P&gt;&lt;P&gt;the code between LOOP and ENDLOOP is meaningless. &lt;/P&gt;&lt;P&gt;so think again what you need and then code it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Kidambi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 08:46:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-stat-problem/m-p/1495345#M230030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T08:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: move stat problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-stat-problem/m-p/1495346#M230031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;couple of points ---&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First as even others have pointed out that you dont need the loop part as you already have the particular data in lt_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, you can define your internal table with header line...in that case you would not see the below error.&lt;/P&gt;&lt;P&gt;Please check the available variations for DATA statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 08:48:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-stat-problem/m-p/1495346#M230031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T08:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: move stat problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-stat-problem/m-p/1495347#M230032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create internal table with header line. Change data decleration for lt_string as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ls_string type f_string,&lt;/P&gt;&lt;P&gt;lt_string type table of f_string with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*This will resolve ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vishal&lt;/P&gt;&lt;P&gt;Reward if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 08:49:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-stat-problem/m-p/1495347#M230032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T08:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: move stat problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-stat-problem/m-p/1495348#M230033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types: begin of f_string,&lt;/P&gt;&lt;P&gt;f1 like kna1-kunnr,&lt;/P&gt;&lt;P&gt;f2 like kna1-name1,&lt;/P&gt;&lt;P&gt;f3 like kna1-ort01,&lt;/P&gt;&lt;P&gt;end of f_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ls_string type f_string,&lt;/P&gt;&lt;P&gt;lt_string type table of f_st with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select kunnr name1 ort01 from kna1 into table lt_string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 09:16:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-stat-problem/m-p/1495348#M230033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T09:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: move stat problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-stat-problem/m-p/1495349#M230034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more thing you should write as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab &amp;lt;b&amp;gt;into&amp;lt;/b&amp;gt; wa. "it should be into and not to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at lt_string into ls_string.&lt;/P&gt;&lt;P&gt;move ls_string-f1 to ls_string2-f1. "this should be another structure&lt;/P&gt;&lt;P&gt;move ls_string-f2 to ls_string2-f2.&lt;/P&gt;&lt;P&gt;append ls_string2 to lt_string2. "this table is another one with same structure as ls_string2&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2006 09:20:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-stat-problem/m-p/1495349#M230034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-23T09:20:23Z</dc:date>
    </item>
  </channel>
</rss>

