<?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 Problem with Internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table/m-p/5970847#M1339237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ALl,&lt;/P&gt;&lt;P&gt;               I have a class in which the incoming paramter is  type table. In this clas I need to copy this itab to another itab1 which is of some structure type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt; data :itab type table,&lt;/P&gt;&lt;P&gt;        itab1 type table of zstructure,&lt;/P&gt;&lt;P&gt;        wa1 type zstructure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the following things&lt;/P&gt;&lt;P&gt;1. itab1 = itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. loop at itab into wa1.&lt;/P&gt;&lt;P&gt;append wa1 to itab1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. move itab to itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All three give dump.(2 internal tables are not mutually convertible and compatible).&lt;/P&gt;&lt;P&gt;At runtime I can see that itab has the same structure like itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide.&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;Ruby.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Aug 2009 11:55:25 GMT</pubDate>
    <dc:creator>former_member202474</dc:creator>
    <dc:date>2009-08-19T11:55:25Z</dc:date>
    <item>
      <title>Problem with Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table/m-p/5970847#M1339237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ALl,&lt;/P&gt;&lt;P&gt;               I have a class in which the incoming paramter is  type table. In this clas I need to copy this itab to another itab1 which is of some structure type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt; data :itab type table,&lt;/P&gt;&lt;P&gt;        itab1 type table of zstructure,&lt;/P&gt;&lt;P&gt;        wa1 type zstructure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the following things&lt;/P&gt;&lt;P&gt;1. itab1 = itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. loop at itab into wa1.&lt;/P&gt;&lt;P&gt;append wa1 to itab1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. move itab to itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All three give dump.(2 internal tables are not mutually convertible and compatible).&lt;/P&gt;&lt;P&gt;At runtime I can see that itab has the same structure like itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide.&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;Ruby.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 11:55:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table/m-p/5970847#M1339237</guid>
      <dc:creator>former_member202474</dc:creator>
      <dc:date>2009-08-19T11:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table/m-p/5970848#M1339238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Do as follows:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: y_obj_data type ref to data.
          field-symbols: &amp;lt;Y_F_LINE&amp;gt; type any.

         CREATE DATA y_obj_data LIKE LINE OF itab. 
          ASSIGN y_obj_data-&amp;gt;* TO  &amp;lt;y_f_line&amp;gt;.
          if  &amp;lt;y_f_line&amp;gt; is assigned.
           loop at itab into  &amp;lt;y_f_line&amp;gt;.
          move-corresponding  &amp;lt;y_f_line&amp;gt; to wa1.
          append wa1 to itab1.
          endloop.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 12:11:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table/m-p/5970848#M1339238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T12:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table/m-p/5970849#M1339239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this way if both internal tables are same strcture...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. itab1[] = itab[]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 12:54:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-internal-table/m-p/5970849#M1339239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T12:54:22Z</dc:date>
    </item>
  </channel>
</rss>

