<?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 field symbols : syntax error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbols-syntax-error/m-p/1023396#M81761</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TYPES: BEGIN OF NAME,&lt;/P&gt;&lt;P&gt;         FIRSTNAME(10),&lt;/P&gt;&lt;P&gt;         LASTNAME(10),&lt;/P&gt;&lt;P&gt;       END OF NAME.&lt;/P&gt;&lt;P&gt;data :  person1 type standard table of name with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;person1-firstname = 'Shiv'.&lt;/P&gt;&lt;P&gt;person1-lastname = 'Kasthala'.&lt;/P&gt;&lt;P&gt;append person1.&lt;/P&gt;&lt;P&gt;clear person1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;fs&amp;gt; TYPE table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign person1 to &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sample code gives me a syntax error that person1 and &amp;lt;fs&amp;gt; are in-compatible. Can anybody please suggest me the reason why? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, can some body guide me to some documentation where I can use dynamic programming in daily ABAP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Nov 2005 01:09:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-22T01:09:55Z</dc:date>
    <item>
      <title>field symbols : syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbols-syntax-error/m-p/1023396#M81761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TYPES: BEGIN OF NAME,&lt;/P&gt;&lt;P&gt;         FIRSTNAME(10),&lt;/P&gt;&lt;P&gt;         LASTNAME(10),&lt;/P&gt;&lt;P&gt;       END OF NAME.&lt;/P&gt;&lt;P&gt;data :  person1 type standard table of name with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;person1-firstname = 'Shiv'.&lt;/P&gt;&lt;P&gt;person1-lastname = 'Kasthala'.&lt;/P&gt;&lt;P&gt;append person1.&lt;/P&gt;&lt;P&gt;clear person1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;fs&amp;gt; TYPE table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign person1 to &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sample code gives me a syntax error that person1 and &amp;lt;fs&amp;gt; are in-compatible. Can anybody please suggest me the reason why? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, can some body guide me to some documentation where I can use dynamic programming in daily ABAP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2005 01:09:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbols-syntax-error/m-p/1023396#M81761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-22T01:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: field symbols : syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbols-syntax-error/m-p/1023397#M81762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: BEGIN OF person1 occurs 0,&lt;/P&gt;&lt;P&gt;FIRSTNAME(10),&lt;/P&gt;&lt;P&gt;LASTNAME(10),&lt;/P&gt;&lt;P&gt;END OF person1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;person1-firstname = 'Shiv'.&lt;/P&gt;&lt;P&gt;person1-lastname = 'Kasthala'.&lt;/P&gt;&lt;P&gt;append person1.&lt;/P&gt;&lt;P&gt;clear person1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;fs&amp;gt; TYPE any table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign person1[] to &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your code person1 is assigned to field symbol which has only work area not entire table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2005 01:26:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbols-syntax-error/m-p/1023397#M81762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-22T01:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: field symbols : syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbols-syntax-error/m-p/1023398#M81763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, no need to do any change, only replace one line as following:&lt;/P&gt;&lt;P&gt;replace &lt;/P&gt;&lt;P&gt;ASSIGN PERSON1 TO &amp;lt;FS&amp;gt;.&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;ASSIGN person1[] to &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the compile failure due to person1 has header line.&lt;/P&gt;&lt;P&gt;&amp;lt;FS&amp;gt; is table type.&lt;/P&gt;&lt;P&gt;So  compiler treat 'assign person1 to &amp;lt;fs&amp;gt;.' as header line assigned to a table type field symbol.&lt;/P&gt;&lt;P&gt;So it failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2005 01:31:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbols-syntax-error/m-p/1023398#M81763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-22T01:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: field symbols : syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbols-syntax-error/m-p/1023399#M81764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;person1 is of type standard table,&lt;/P&gt;&lt;P&gt;define &lt;/P&gt;&lt;P&gt;field-symbol &amp;lt;fs&amp;gt; type standard table of name.&lt;/P&gt;&lt;P&gt;try this, may be this will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;manohar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2005 05:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbols-syntax-error/m-p/1023399#M81764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-22T05:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: field symbols : syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbols-syntax-error/m-p/1023400#M81765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. So, now how can I get the contents of a field symbol on the screen if the field symbol is of type "standard table".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2005 22:21:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbols-syntax-error/m-p/1023400#M81765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-22T22:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: field symbols : syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbols-syntax-error/m-p/1023401#M81766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see below code, its the same code but I have added one more workarea called person and I assigned from field symbol and printed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: BEGIN OF person1 occurs 0,&lt;/P&gt;&lt;P&gt;FIRSTNAME(10),&lt;/P&gt;&lt;P&gt;LASTNAME(10),&lt;/P&gt;&lt;P&gt;END OF person1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: BEGIN OF person,&lt;/P&gt;&lt;P&gt;FIRSTNAME(10),&lt;/P&gt;&lt;P&gt;LASTNAME(10),&lt;/P&gt;&lt;P&gt;END OF person.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;person1-firstname = 'Shiv'.&lt;/P&gt;&lt;P&gt;person1-lastname = 'Kasthala'.&lt;/P&gt;&lt;P&gt;append person1.&lt;/P&gt;&lt;P&gt;clear person1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;fs&amp;gt; TYPE any table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign person1[] to &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at &amp;lt;fs&amp;gt; into person.&lt;/P&gt;&lt;P&gt;  write : / person-firstname, person-lastname.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2005 22:46:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbols-syntax-error/m-p/1023401#M81766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-22T22:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: field symbols : syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbols-syntax-error/m-p/1023402#M81767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Satyanarayana, I have awardded you points for that. Just one more thing: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Can you tell me how &amp;amp; where can i use field symbols in daily ABAP programming. As such I m not able to find any use to it.&lt;/P&gt;&lt;P&gt;Example: Can it be used to display the internal table contents of any internal table declared in a program irrespective of its structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2005 22:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbols-syntax-error/m-p/1023402#M81767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-22T22:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: field symbols : syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbols-syntax-error/m-p/1023403#M81768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,  there are a couple uses for field symbols.  One that comes to mind, is when working with dynamic internal tables and structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out this weblog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2005 23:05:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbols-syntax-error/m-p/1023403#M81768</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-22T23:05:02Z</dc:date>
    </item>
  </channel>
</rss>

