<?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: field symbol to internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555977#M1936948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To be clear. In ABAP, from 7.4 onwards, MOVE-CORRESPONDING works with internal tables. This is very simple - even if you are a newbie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are before 7.4, you must loop. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Mar 2016 06:40:29 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2016-03-30T06:40:29Z</dc:date>
    <item>
      <title>field symbol to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555972#M1936943</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;&lt;/P&gt;&lt;P&gt;i have one field symbol and one internal table.&lt;/P&gt;&lt;P&gt;Filed symbol is pointing to the other table which is active table of DSO. Now i want to pass whole data of table via field symbol to the mentain intrenal table withhout loop statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can it possible.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to replace below loop code and pass whole filed symbol data to internal table&lt;/P&gt;&lt;P&gt; DATA:&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;lfs_one&amp;gt; TYPE ANY TABLE,&amp;lt;lfs_view&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CONCATENATE 'GT_' iv_view INTO lv_txt.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ASSIGN (lv_txt) TO &amp;lt;lfs_one&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CONCATENATE 'GS_' iv_view INTO lv_txt.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ASSIGN (lv_txt) TO &amp;lt;lfs_view&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT &amp;lt;lfs_one&amp;gt; INTO &amp;lt;lfs_view&amp;gt;.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING &amp;lt;lfs_view&amp;gt; to gs_one-d1.&lt;/P&gt;&lt;P&gt;APPEND gs_one to gty_one.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request you to please help me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;disha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 03:17:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555972#M1936943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-30T03:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: field symbol to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555973#M1936944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 04:13:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555973#M1936944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-30T04:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: field symbol to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555974#M1936945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use MOVE-CORRESPONDING for internal tables if you are on or above 7.4 SP05.&lt;/P&gt;&lt;P&gt;Have a look at&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/community/abap/blog/2014/02/06/abap-news-for-release-740-sp05"&gt;http://scn.sap.com/community/abap/blog/2014/02/06/abap-news-for-release-740-sp05&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 04:22:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555974#M1936945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-30T04:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: field symbol to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555975#M1936946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Thanks for your reply. but this is too complex and i am beginner in ABAP&lt;SPAN class="apple-converted-space"&gt; &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/98/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="apple-converted-space"&gt; &lt;/SPAN&gt;so,i dont know all this is required or not as i am alredy using move corresponding in my program, but move corresponding required loop as it will read row by row from the table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;I want some idea on how to append whole table x, which is pointing or holded by filed symbole &amp;lt;lfs_one&amp;gt; to gty_one. I dont want loop statement but want to append whole data in one single shot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;just required some clear idea wheather it is possible or not.&lt;SPAN class="apple-converted-space"&gt; &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/98/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;SPAN class="apple-converted-space"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;SPAN class="apple-converted-space"&gt;Thanks and Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;&lt;SPAN class="apple-converted-space"&gt;Disha&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 06:19:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555975#M1936946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-30T06:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: field symbol to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555976#M1936947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it is possible and Former Member already give you the hint therefore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 06:31:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555976#M1936947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-30T06:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: field symbol to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555977#M1936948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To be clear. In ABAP, from 7.4 onwards, MOVE-CORRESPONDING works with internal tables. This is very simple - even if you are a newbie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are before 7.4, you must loop. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 06:40:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555977#M1936948</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-03-30T06:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: field symbol to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555978#M1936949</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;If structures of both table are not same use as follow:&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING &amp;lt;fs_one&amp;gt; TO gty_one KEEPING TARGET LINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if structure is same for both table you can try as follow:&lt;/P&gt;&lt;P&gt;APPEND LINES OF &amp;lt;fs_one&amp;gt; TO gty_one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hardik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 09:04:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555978#M1936949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-30T09:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: field symbol to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555979#M1936950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;INSERT LINES OF &amp;lt;fs_one&amp;gt; INTO TABLE gty_one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is safer than APPEND. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 11:52:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555979#M1936950</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-03-30T11:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: field symbol to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555980#M1936951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code suggests that the assigned table should completely end up in field d1 (which has a table type) of a new line for gty_one.&lt;/P&gt;&lt;P&gt;Maybe you can add the types of your variables (gty_one, gs_one) to the question, to make this clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hardik is right in distinguishing the two cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the types are not the same, you have to use what you currently have. You can only improve this if you are on 7.4 SP 05 as stated above, it would look like this instead of your loop:&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING &amp;lt;lfs_one&amp;gt; to gs_one-d1.&lt;/P&gt;&lt;P&gt;APPEND gs_one to gty_one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or in my favorite syntax for this case:&lt;/P&gt;&lt;P&gt;APPEND VALUE #( d1 = CORRESPONDING #( &amp;lt;lfs_one&amp;gt;&amp;nbsp; ) ) TO gty_one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the types ARE the same, you can simply use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gs_one-d1 = &amp;lt;lfs_one&amp;gt;.&lt;/P&gt;&lt;P&gt;APPEND gs_one TO gty_one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other ways to write this in new syntax:&lt;/P&gt;&lt;P&gt;APPEND VALUE #( d1 = &amp;lt;lfs_one&amp;gt;&amp;nbsp; ) TO gty_one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;gty_one = VALUE #( BASE gty_one ( d1 = &amp;lt;lfs_one&amp;gt; ) ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 12:04:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555980#M1936951</guid>
      <dc:creator>ThomasKruegl</dc:creator>
      <dc:date>2016-03-30T12:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: field symbol to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555981#M1936952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hardik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the structure of internal table and field symbol is different. so have to use below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;MOVE-CORRESPONDING &amp;lt;fs_one&amp;gt; TO gty_one KEEPING TARGET LINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;But here problem is that its not assigning any value to the structure of gty_one-d1 . i want to assign the value to the d1 field of the gty_one internal table.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;so here, i want to use:&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;MOVE-CORRESPONDING &amp;lt;fs_one&amp;gt; TO gty_one-d1 KEEPING TARGET LINES.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;where gty_one is a internal table without headder.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Disha&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 15:11:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555981#M1936952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-30T15:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: field symbol to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555982#M1936953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stick with a loop. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 15:22:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555982#M1936953</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-03-30T15:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: field symbol to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555983#M1936954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i did as you suggested in my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;MOVE-CORRESPONDING &amp;lt;lfs_one&amp;gt; to gs_one-d1.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;APPEND gs_one to gty_one.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;But throwing an error both: must be the structure or both should be the internal table.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Any solution for such an issue?&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Thanks and regards,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Disha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 06:59:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555983#M1936954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-31T06:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: field symbol to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555984#M1936955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;moreover, i have &lt;SPAN style="color: #333333; font-size: 12px;"&gt; 7.4 SP 11 version. &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/98/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; still not working as you suggested. But i checked few sample code for without loop in system and they ran also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 07:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555984#M1936955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-31T07:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: field symbol to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555985#M1936956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Disha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you are moving to table, you might get error stating that component "d1" does not exist. In such case, better you loop on table append data to target table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hardik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 07:11:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555985#M1936956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-31T07:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: field symbol to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555986#M1936957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Disha Patel wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;But throwing an error both: must be the structure or both should be the internal table.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;...&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Yes, ensure both are structures or both are internal tables. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 09:51:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555986#M1936957</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-03-31T09:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: field symbol to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555987#M1936958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have been quite vague on your data structures and what you are trying to achieve. If you had been more clear, you probably would have had a resolution by now. As an IT worker you should be used to being specific and exact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please confirm the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You have an internal table of unknown structure &lt;STRONG&gt;&amp;lt;fs_one&amp;gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;2. You have an internal table &lt;STRONG&gt;gs_one&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;3. &lt;STRONG&gt;gs_one&lt;/STRONG&gt; has a field &lt;STRONG&gt;d1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;4. You wish to put every record in &lt;STRONG&gt;&amp;lt;fs_one&amp;gt;&lt;/STRONG&gt; into each d1 field of table &lt;STRONG&gt;gs_one&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possibly you need something like&lt;STRONG&gt; gs_one = corresponding #( &amp;lt;fs_one&amp;gt; mapping d1 = table_line )&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 10:03:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555987#M1936958</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-03-31T10:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: field symbol to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555988#M1936959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, my bad, i got that wrong with the d1 field. It seems to be structured, and your goal is to have a new line in gty_one FOR EACH line of &amp;lt;lfs_one&amp;gt;, with the content of the line of &amp;lt;lfs_one&amp;gt; ending up in the fields of d1?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That would be (if the type of d1 and the line type of &amp;lt;lfs_one&amp;gt; are the same):&lt;/P&gt;&lt;P&gt;gty_one = VALUE #( FOR &amp;lt;wa&amp;gt; in &amp;lt;lfs_one&amp;gt; ( d1 = &amp;lt;wa&amp;gt; ) ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not:&lt;/P&gt;&lt;P&gt;gty_one = VALUE #( FOR &amp;lt;wa&amp;gt; IN &amp;lt;lfs_one&amp;gt; ( d1 = CORRESPONDING #( &amp;lt;wa&amp;gt; ) ) ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(This overwrites any content previously in gty_one, if you need to keep entries, use BASE addition).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, do you have any specific reason to avoid the loop? Internally, this statement is resolved into some sort of loop too, you won't gain performance here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: Matthews approach also seems promising, if the d1 = table_line works for you.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;STRONG&gt;gs_one = corresponding #( &amp;lt;fs_one&amp;gt; mapping d1 = table_line )&lt;/STRONG&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 10:16:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555988#M1936959</guid>
      <dc:creator>ThomasKruegl</dc:creator>
      <dc:date>2016-03-31T10:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: field symbol to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555989#M1936960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Hello Matthew,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Please find the details as per below:&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;1. You have an internal table of unknown structure &amp;lt;fs_one&amp;gt;. : &lt;STRONG style="text-decoration: underline;"&gt;Assigning this field pointer to DSO's active table.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;2. You have an internal table gt_one : &lt;STRONG style="text-decoration: underline;"&gt; internal table is gt_one and as i am unable to remove the loop in my shared code, so i used gs_one as a work area.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;3. gs_one has a field d1 : &lt;STRONG style="text-decoration: underline;"&gt;gt_one having d1 field. More over this d1 having same structure as the &amp;lt;fs_one&amp;gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;4. You wish to put every record in &amp;lt;fs_one&amp;gt; into each d1 field of table gs_one.:&lt;STRONG style="text-decoration: underline;"&gt;i want to push all the records of &amp;lt;fs_one&amp;gt; to gt_one-d1 field.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Hope you can share some solution &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/98/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Disha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 10:36:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555989#M1936960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-31T10:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: field symbol to internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555990#M1936961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If gt_one already contains data (which seems likely), then you must loop, I think. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT &amp;lt;fs_one&amp;gt; ASSIGNING FIELD-SYMBOL( &amp;lt;record&amp;gt; ).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; READ TABLE gt_one ASSIGNING FIELD-SYMBOL( &amp;lt;gs_one&amp;gt; ) INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;gs_one&amp;gt;-d1 = &amp;lt;record&amp;gt;.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will be quite efficient. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 12:11:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-to-internal-table/m-p/11555990#M1936961</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-03-31T12:11:02Z</dc:date>
    </item>
  </channel>
</rss>

