<?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: Regarding Data Reference and Field Symbol in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-reference-and-field-symbol/m-p/7306764#M1534983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot edit once somebody replied, I have done it now, please doublecheck.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Sep 2010 13:38:05 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2010-09-09T13:38:05Z</dc:date>
    <item>
      <title>Regarding Data Reference and Field Symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-reference-and-field-symbol/m-p/7306757#M1534976</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 we compare field symbol and data refernece with that of the pointer in C i conclud that :- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In C language, Say we declare a variable  "var"  type "Integer" with default value "5".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable "var" will be stored some where in the memory and say the memory address which holds this variable is "1000".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now we define a pointer "ptr" and this pointer is assigned to our variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, "&amp;amp;ptr" will be "1000" and " *ptr " will be 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets comapre the above situation in SAP ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here we declare a Field symbol "FS" and assign that to the variable "var". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my question is what "FS" holds ? I have searched this rigorously in the internet but found out many ABAP consultants have the opinion that FS holds the address of the variable i.e. 1000. But that is wrong. While debugging i found out that fs holds only 5.&lt;/P&gt;&lt;P&gt;So fs (in ABAP) is equivalent to  *ptr (in C). Please correct me if my understanding is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now lets declare a data reference "dref" and another filed symbol "fsym" and after creating the data reference we assign the same to field symbol &amp;lt;fsym&amp;gt;. Now we can do operations on this field symbol. So the difference between data refernec and field symbol is :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in case of field symbol first we will declare a variable and assign it to a field symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in case of data reference first we craete a data reference and then assign that to field symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then what is the use of data reference. The same functionality we can achive through field symbol also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Debi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Sep 2010 10:46:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-reference-and-field-symbol/m-p/7306757#M1534976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-09T10:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Data Reference and Field Symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-reference-and-field-symbol/m-p/7306758#M1534977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You know that your two previous questions have been locked. You can also assume that the third one will be detected.&lt;/P&gt;&lt;P&gt;So why are you asking again?&lt;/P&gt;&lt;P&gt;On the other hand, you are putting much effort into phrasing the question this time, so although I still not see a relevance for ABAP development in practice, I'll leave this thread open and see what happens.&lt;/P&gt;&lt;P&gt;Why do you need to know this? Is it for an exam or interview preparation?&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Sep 2010 11:30:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-reference-and-field-symbol/m-p/7306758#M1534977</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-09-09T11:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Data Reference and Field Symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-reference-and-field-symbol/m-p/7306759#M1534978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please read SAP help documentation before posting.&lt;/P&gt;&lt;P&gt;link:[http://help.sap.com/saphelp_470/helpdata/en/fc/eb3860358411d1829f0000e829fbfe/content.htm].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Sep 2010 11:33:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-reference-and-field-symbol/m-p/7306759#M1534978</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-09-09T11:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Data Reference and Field Symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-reference-and-field-symbol/m-p/7306760#M1534979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Debi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen you desperately trying to get the understanding of how &lt;EM&gt;field symbols&lt;/EM&gt; and &lt;EM&gt;data reference&lt;/EM&gt; of ABAP lies in relation to &lt;EM&gt;C&lt;/EM&gt; pointers. I decided to give you some explanation in form of comparison both. I hope you will get the idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;1) integer var = 5       "-&amp;gt; our VAR&lt;/P&gt;&lt;P&gt;&amp;gt;2) integer *ptr          "-&amp;gt; our pointer&lt;/P&gt;&lt;P&gt;&amp;gt;3) ptr = &amp;amp;var            "-&amp;gt; set the pointer to point to VAR (get the address of VAR and store it in PTR)&lt;/P&gt;&lt;P&gt;&amp;gt;4) *ptr                  "-&amp;gt; value 5&lt;/P&gt;&lt;P&gt;&amp;gt;5) ptr                   "-&amp;gt; VAR address 1000&lt;/P&gt;&lt;P&gt;&amp;gt;5) &amp;amp;ptr                  "-&amp;gt; pointer address (some other i.e 1005)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ABAP&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;1) data var type i value 5.     "-&amp;gt; our VAR&lt;/P&gt;&lt;P&gt;&amp;gt;2) data ptr type ref to i.      "-&amp;gt; our pointer&lt;/P&gt;&lt;P&gt;&amp;gt;3) get reference of var to ptr. "-&amp;gt; set the pointer to point to VAR (you can't show the address behind it)&lt;/P&gt;&lt;P&gt;&amp;gt;.4) ptr-&amp;gt;*                       "-&amp;gt; value 5 (but can't be used directly in WRITE etc, must be first dereferenced via FIELD-SYMBOL)&lt;/P&gt;&lt;P&gt;&amp;gt;    FIELD-SYBMOLS &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;gt;    ASSIGN ptr-&amp;gt;* TO &amp;lt;FS&amp;gt;. "-&amp;gt; get the value PTR-&amp;gt;* and let field-symbol to "point" to its value&lt;/P&gt;&lt;P&gt;&amp;gt;   "now &amp;lt;FS&amp;gt;                        "-&amp;gt; value 5&lt;/P&gt;&lt;P&gt;&amp;gt;5) get reference of ptr to other_ptr.  "-&amp;gt; pointer to pointer, never used in ABAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So as you can see, the &lt;EM&gt;data references&lt;/EM&gt; are something different then &lt;EM&gt;field-symbols&lt;/EM&gt; . While the former is used to &lt;STRONG&gt;point&lt;/STRONG&gt; to data, the latter is used to &lt;STRONG&gt;"point"&lt;/STRONG&gt; to value behind it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcin - please do not use code tags to format text&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Sep 9, 2010 9:08 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Sep 9, 2010 3:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Sep 2010 11:37:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-reference-and-field-symbol/m-p/7306760#M1534979</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-09-09T11:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Data Reference and Field Symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-reference-and-field-symbol/m-p/7306761#M1534980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you... You did not close this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to answer your question - No, I am preparing neither for any interview nor for any exam. I searched many-a-times in SDN as well as in google but with no success. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I belive this thread will help many ABAP consultants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Debi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Sep 2010 11:48:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-reference-and-field-symbol/m-p/7306761#M1534980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-09T11:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Data Reference and Field Symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-reference-and-field-symbol/m-p/7306762#M1534981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Marcin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You described the subject quite lucidly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In below mentioned pseudo-code, i think you mean "ptr" instead of "var". (Point No.4 in ABAP)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) var-&amp;gt;*                       "-&amp;gt; value 5 (but can't be used directly in WRITE etc, must be first dereferenced via FIELD-SYMBOL)&lt;/P&gt;&lt;P&gt;    FIELD-SYBMOLS &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;    ASSIGN var-&amp;gt;* TO &amp;lt;FS&amp;gt;. "-&amp;gt; get the value VAR-&amp;gt;* and let field-symbol to "point" to its value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Debi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Sep 2010 12:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-reference-and-field-symbol/m-p/7306762#M1534981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-09T12:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Data Reference and Field Symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-reference-and-field-symbol/m-p/7306763#M1534982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Debi, you are absolutely right. My appoligies, nice you stay alert. I am correcting it right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Strange, I can't edit my previous message. If anyone uses this as reference, please see Debi's corrections to my post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Marcin Pciak on Sep 9, 2010 2:28 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Sep 2010 12:25:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-reference-and-field-symbol/m-p/7306763#M1534982</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-09-09T12:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Data Reference and Field Symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-reference-and-field-symbol/m-p/7306764#M1534983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot edit once somebody replied, I have done it now, please doublecheck.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Sep 2010 13:38:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-reference-and-field-symbol/m-p/7306764#M1534983</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-09-09T13:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Data Reference and Field Symbol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-reference-and-field-symbol/m-p/7306765#M1534984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; You cannot edit once somebody replied, I have done it now, please doublecheck.&lt;/P&gt;&lt;P&gt;&amp;gt; Thomas&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Heh, I am here for a while now and wasn't aware of that &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; Will also keep in mind about quote tags for text. Thanks Thomas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more spot to correct, please&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) get reference of var to other_ptr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in place of VAR there should be PTR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you once again&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Sep 2010 13:46:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-reference-and-field-symbol/m-p/7306765#M1534984</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-09-09T13:46:19Z</dc:date>
    </item>
  </channel>
</rss>

