<?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: FOR loop With Same Field-Symbol For Different Structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-loop-with-same-field-symbol-for-different-structure/m-p/12470449#M2000915</link>
    <description>&lt;P&gt;Normal syntax for this uses Work Areas not field symbols&lt;/P&gt;</description>
    <pubDate>Mon, 02 Aug 2021 12:03:32 GMT</pubDate>
    <dc:creator>former_member598787</dc:creator>
    <dc:date>2021-08-02T12:03:32Z</dc:date>
    <item>
      <title>FOR loop With Same Field-Symbol For Different Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-loop-with-same-field-symbol-for-different-structure/m-p/12470448#M2000914</link>
      <description>&lt;P&gt;I always wonder is there any solution for this. &lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;DATA(lt_table1) = VALUE tt_table1( FOR &amp;lt;fs_struct&amp;gt; IN lt_table WHERE( field1 EQ 'TEST' ) ( CORRESPONDING #( &amp;lt;fs_struct&amp;gt; ) )  ).

DATA(lt_table2) = VALUE tt_table2( FOR &amp;lt;fs_struct&amp;gt; IN lt_final WHERE( field1 EQ 'TEST1' ) ( CORRESPONDING #( &amp;lt;fs_struct&amp;gt; ) )  ).&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Here, we will be getting an error stating &amp;lt;FS_STRUCT&amp;gt; used in the 2nd expression is not compatible since LT_FINAL is of a different structure compared to Lt_table. &lt;/P&gt;
  &lt;P&gt;Is there any way to unassign &amp;lt;FS_STRUCT&amp;gt; after the 1st statement? So that, it can be used in the next forthcoming FOR statements for different tables.&lt;/P&gt;
  &lt;P&gt;The normal UNASSIGN statement can't be used to unassign &amp;lt;fs_struct&amp;gt; since it won't have scope outside the FOR loop. &lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 11:48:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-loop-with-same-field-symbol-for-different-structure/m-p/12470448#M2000914</guid>
      <dc:creator>hatrigt</dc:creator>
      <dc:date>2021-08-02T11:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: FOR loop With Same Field-Symbol For Different Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-loop-with-same-field-symbol-for-different-structure/m-p/12470449#M2000915</link>
      <description>&lt;P&gt;Normal syntax for this uses Work Areas not field symbols&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 12:03:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-loop-with-same-field-symbol-for-different-structure/m-p/12470449#M2000915</guid>
      <dc:creator>former_member598787</dc:creator>
      <dc:date>2021-08-02T12:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: FOR loop With Same Field-Symbol For Different Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/for-loop-with-same-field-symbol-for-different-structure/m-p/12470450#M2000916</link>
      <description>&lt;P&gt;FYI this question was asked &lt;A href="https://stackoverflow.com/questions/68618709/incompatible-type-of-field-symbol-in-for-loop"&gt;in Stack Overflow&lt;/A&gt; and answered there in details.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 14:18:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/for-loop-with-same-field-symbol-for-different-structure/m-p/12470450#M2000916</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-08-02T14:18:09Z</dc:date>
    </item>
  </channel>
</rss>

