<?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: Difference between Fieldsymbols and Structures in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-fieldsymbols-and-structures/m-p/12768484#M2022889</link>
    <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;michel1209&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Yes field-symbols points the data at run-time only and work area holds the data&lt;/P&gt;&lt;P&gt;Check&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/questions/4444137/use-of-field-symbols--work-area.html" target="test_blank"&gt;https://answers.sap.com/questions/4444137/use-of-field-symbols--work-area.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2023 08:37:46 GMT</pubDate>
    <dc:creator>TarunTakshak6</dc:creator>
    <dc:date>2023-07-28T08:37:46Z</dc:date>
    <item>
      <title>Difference between Fieldsymbols and Structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-fieldsymbols-and-structures/m-p/12768482#M2022887</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;
  &lt;P&gt;As i understand it Fieldsymbols are just pointing on columns or rows from Tables, but dont copy or save them.&lt;/P&gt;
  &lt;P&gt; Strucutes on the other hand are making copy of the Data and holding them, so they dont change the table directly like a field symbol. &lt;/P&gt;
  &lt;P&gt;Is this correct ?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 08:28:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-fieldsymbols-and-structures/m-p/12768482#M2022887</guid>
      <dc:creator>former_member868274</dc:creator>
      <dc:date>2023-07-28T08:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Fieldsymbols and Structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-fieldsymbols-and-structures/m-p/12768483#M2022888</link>
      <description>&lt;P&gt;yes you are right.&lt;/P&gt;&lt;P&gt;In a nutshell field symbols are like a reference, so when you make a change there it directly changes the data in table. And structure is like a copy, so if you change there, if just changes data locally in that structure not in the table.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 08:35:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-fieldsymbols-and-structures/m-p/12768483#M2022888</guid>
      <dc:creator>Abhishek_10</dc:creator>
      <dc:date>2023-07-28T08:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Fieldsymbols and Structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-fieldsymbols-and-structures/m-p/12768484#M2022889</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;michel1209&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Yes field-symbols points the data at run-time only and work area holds the data&lt;/P&gt;&lt;P&gt;Check&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/questions/4444137/use-of-field-symbols--work-area.html" target="test_blank"&gt;https://answers.sap.com/questions/4444137/use-of-field-symbols--work-area.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 08:37:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-fieldsymbols-and-structures/m-p/12768484#M2022889</guid>
      <dc:creator>TarunTakshak6</dc:creator>
      <dc:date>2023-07-28T08:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Fieldsymbols and Structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-fieldsymbols-and-structures/m-p/12768485#M2022890</link>
      <description>&lt;P&gt;No, it's not correct.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Fieldsymbols are just pointing on columns or rows from Tables&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Wrong: Field symbols are references (like pointers) to any kind of data - the row of a table, an entire table, a structure, a field in a structure, at single field, an RTTS dynamically constructed data type...&lt;/P&gt;&lt;P&gt;&lt;EM&gt;but dont copy or save them&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Neither wrong nor right. Copy or saving is irrelevant. If you change a field-symbol that's changing the data itrefers to.&lt;BR /&gt;&lt;EM&gt;Strucutes on the other hand are making copy of the Data and holding them, so they dont change the table directly like a field symbol.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Wrong. Structures are just structured data types. They contain fields and may be even internal tables. &lt;/P&gt;&lt;P&gt;From context I'm guessing you're talking about the difference between:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT itab ASSIGNING FIELD-SYMBOL(&amp;lt;wa&amp;gt;).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT itab INTO DATA(wa).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The former puts a reference of the current line of the internal table into the field symbol &lt;STRONG&gt;&amp;lt;wa&amp;gt;&lt;/STRONG&gt;. Change &lt;STRONG&gt;&amp;lt;wa&amp;gt;&lt;/STRONG&gt; and you are changing the record in &lt;STRONG&gt;itab&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The latter copys the data in the current line of the internal table into the structure (or possibly just a field) &lt;STRONG&gt;wa&lt;/STRONG&gt;. If you change &lt;STRONG&gt;wa&lt;/STRONG&gt; nothing happens to &lt;STRONG&gt;itab&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 08:38:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-fieldsymbols-and-structures/m-p/12768485#M2022890</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2023-07-28T08:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Fieldsymbols and Structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-fieldsymbols-and-structures/m-p/12768486#M2022891</link>
      <description>&lt;P&gt;Yes exactly, i was talking about the lower example, thanks for your answer!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 08:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-fieldsymbols-and-structures/m-p/12768486#M2022891</guid>
      <dc:creator>former_member868274</dc:creator>
      <dc:date>2023-07-28T08:46:59Z</dc:date>
    </item>
  </channel>
</rss>

