<?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 Same reference for 2 field symbols in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/same-reference-for-2-field-symbols/m-p/12534392#M2005650</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;How can I assign table record into 2 different field symbols in a loop?&lt;/P&gt;
  &lt;P&gt;I am planning to loop over table and keep reference to the 1st record of the group, so at the end of group I can change the 1st record. Something like:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;LOOP AT itab ASSIGNING &amp;lt;fs&amp;gt;.&lt;BR /&gt;  AT NEW plant.&lt;BR /&gt;    "store reference of &amp;lt;fs&amp;gt; to &amp;lt;fs_ref&amp;gt;.&lt;BR /&gt;  ENDAT.&lt;BR /&gt;  ADD 1 TO lv_counter.&lt;BR /&gt;  AT LAST.&lt;BR /&gt;    &amp;lt;fs_ref&amp;gt;-counter = lv_counter.&lt;BR /&gt;  ENDAT.&lt;BR /&gt;ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 17 Feb 2022 16:35:45 GMT</pubDate>
    <dc:creator>tglowka</dc:creator>
    <dc:date>2022-02-17T16:35:45Z</dc:date>
    <item>
      <title>Same reference for 2 field symbols</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/same-reference-for-2-field-symbols/m-p/12534392#M2005650</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;How can I assign table record into 2 different field symbols in a loop?&lt;/P&gt;
  &lt;P&gt;I am planning to loop over table and keep reference to the 1st record of the group, so at the end of group I can change the 1st record. Something like:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;LOOP AT itab ASSIGNING &amp;lt;fs&amp;gt;.&lt;BR /&gt;  AT NEW plant.&lt;BR /&gt;    "store reference of &amp;lt;fs&amp;gt; to &amp;lt;fs_ref&amp;gt;.&lt;BR /&gt;  ENDAT.&lt;BR /&gt;  ADD 1 TO lv_counter.&lt;BR /&gt;  AT LAST.&lt;BR /&gt;    &amp;lt;fs_ref&amp;gt;-counter = lv_counter.&lt;BR /&gt;  ENDAT.&lt;BR /&gt;ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Feb 2022 16:35:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/same-reference-for-2-field-symbols/m-p/12534392#M2005650</guid>
      <dc:creator>tglowka</dc:creator>
      <dc:date>2022-02-17T16:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Same reference for 2 field symbols</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/same-reference-for-2-field-symbols/m-p/12534393#M2005651</link>
      <description>&lt;P&gt;using ABAP ASSIGN statement, you can assign one field symbol to “point” to the same data another field symbol is “pointing to”&lt;BR /&gt;&lt;A href="https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abapassign.htm"&gt;https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abapassign.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 17:32:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/same-reference-for-2-field-symbols/m-p/12534393#M2005651</guid>
      <dc:creator>sergei-u-niq</dc:creator>
      <dc:date>2022-02-17T17:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Same reference for 2 field symbols</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/same-reference-for-2-field-symbols/m-p/12534394#M2005652</link>
      <description>&lt;SPAN class="mention-scrubbed"&gt;tglowka&lt;/SPAN&gt;&lt;P&gt;so, something like this (to do only for the 1st record of the group):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ASSIGN &amp;lt;fs&amp;gt; TO &amp;lt;fs_ref&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Feb 2022 19:06:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/same-reference-for-2-field-symbols/m-p/12534394#M2005652</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-02-17T19:06:57Z</dc:date>
    </item>
  </channel>
</rss>

