<?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: Field symbol problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-problem/m-p/6416646#M1408617</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PLS FIND DETAILS AS BELOW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:    gfd_char(21)  TYPE c.            &lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;gfs_f1&amp;gt; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Nov 2009 12:24:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-27T12:24:29Z</dc:date>
    <item>
      <title>Field symbol problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-problem/m-p/6416641#M1408612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am getting this short dump error .please advise what i need to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;    A new value is to be assigned to the field "&amp;lt;GFS_F1&amp;gt;", although this field is&lt;/P&gt;&lt;P&gt;    entirely or partly protected against changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    The following are protected against changes:&lt;/P&gt;&lt;P&gt;    - Character literals or numeric literals&lt;/P&gt;&lt;P&gt;    - Constants (CONSTANTS)&lt;/P&gt;&lt;P&gt;    - Parameters of the category IMPORTING REFERENCE for functions and&lt;/P&gt;&lt;P&gt;    methods&lt;/P&gt;&lt;P&gt;    - Untyped field symbols not yet assigned a field using ASSIGN&lt;/P&gt;&lt;P&gt;    - TABLES parameters if the actual parameter is protected against changes&lt;/P&gt;&lt;P&gt;    - USING reference parameters and CHANGING parameters for FORMs, if the&lt;/P&gt;&lt;P&gt;    actual parameter is protected against changes and&lt;/P&gt;&lt;P&gt;    - Accesses using field symbols if the field assigned using ASSIGN is&lt;/P&gt;&lt;P&gt;    protected (or partially protected, e.g. key components of an internal&lt;/P&gt;&lt;P&gt;    table with the type SORTED or HASHED TABLE) against changes&lt;/P&gt;&lt;P&gt;    - Accesses using references, if the field bound to the reference is&lt;/P&gt;&lt;P&gt;    protected (or partially protected) against changes&lt;/P&gt;&lt;P&gt;    - External write accesses to READ-ONLY attributes,&lt;/P&gt;&lt;P&gt;    - Content of a shared object area instance accessed using a shared lock&lt;/P&gt;&lt;P&gt;    (ATTACH_FOR_READ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is with this line   &amp;lt;gfs_f1&amp;gt; = i_nodata. of below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM init_structures USING tabname tab i_nodata.
  REFRESH git_nametab.
  CALL FUNCTION 'NAMETAB_GET'
    EXPORTING
      langu          = sy-langu
      tabname        = tabname
    TABLES
      nametab        = git_nametab
    EXCEPTIONS
      no_texts_found = 1.
  LOOP AT git_nametab INTO gwa_nametab.
    CLEAR gfd_char.
    gfd_char(2)    = 'I_'.
    gfd_char+2(5)  = gwa_nametab-tabname.
    gfd_char+7(1)  = '-'.
    gfd_char+8(10) = gwa_nametab-fieldname.
    ASSIGN (gfd_char) TO &amp;lt;gfs_f1&amp;gt;.
    &amp;lt;gfs_f1&amp;gt; = i_nodata.
  ENDLOOP.
ENDFORM.                    "init_structures&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 10:50:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-problem/m-p/6416641#M1408612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-27T10:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Field symbol problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-problem/m-p/6416642#M1408613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_nodata is in USING parameters of your form. If you want to change you have to declare i_nodata as CHANGING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Frisoni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 10:57:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-problem/m-p/6416642#M1408613</guid>
      <dc:creator>guilherme_frisoni</dc:creator>
      <dc:date>2009-11-27T10:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Field symbol problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-problem/m-p/6416643#M1408614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Replace using by changing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 11:02:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-problem/m-p/6416643#M1408614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-27T11:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Field symbol problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-problem/m-p/6416644#M1408615</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;I have done as advised by you but i am still getting the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" A new value is to be assigned to the field "&amp;lt;GFS_F1&amp;gt;", although this field is&lt;/P&gt;&lt;P&gt; entirely or partly protected against changes."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the data key word to declare "&amp;lt;GFS_F1&amp;gt;",  and not constant then why it is giving this message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 11:49:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-problem/m-p/6416644#M1408615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-27T11:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Field symbol problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-problem/m-p/6416645#M1408616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
ASSIGN (gfd_char) TO &amp;lt;gfs_f1&amp;gt;.
    &amp;lt;gfs_f1&amp;gt; = i_nodata.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this field &amp;lt;gfs_f1&amp;gt; is pointing to an internal table, correct? Is there a key field involved or sorted table? Give some more details on to what this fields symbol is pointing to (I_tabname-fieldname).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 12:12:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-problem/m-p/6416645#M1408616</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-11-27T12:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Field symbol problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-problem/m-p/6416646#M1408617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PLS FIND DETAILS AS BELOW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:    gfd_char(21)  TYPE c.            &lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;gfs_f1&amp;gt; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 12:24:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-problem/m-p/6416646#M1408617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-27T12:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Field symbol problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-problem/m-p/6416647#M1408618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, but what I meant was this: What is the content of the field symbol the moment the dump occurs. You are dynamically setting the value of this field symbol at runtime based on GIT_TABNAME.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 12:35:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-problem/m-p/6416647#M1408618</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-11-27T12:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Field symbol problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-problem/m-p/6416648#M1408619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sanjay,&lt;/P&gt;&lt;P&gt;The possible reason for the error can be bcoz of the two two reasons.&lt;/P&gt;&lt;P&gt;Make shure you declare&lt;/P&gt;&lt;P&gt;field-symbols &amp;lt;gfs_f1&amp;gt; type DNTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Map the data of the form parameter i_nodata to a another variable of type DNTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Murthy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 12:50:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-problem/m-p/6416648#M1408619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-27T12:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Field symbol problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-problem/m-p/6416649#M1408620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;EM&gt;&amp;lt;gfs_f1&amp;gt; = i_nodata.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here  &amp;lt;gfs_f1&amp;gt; is assigned to have structure same  as  gfd_char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i_nodata , I assume , is an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You cannot assign internal table data to a workarea.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what you can do:&lt;/P&gt;&lt;P&gt;Go in debugging mode.&lt;/P&gt;&lt;P&gt;Check what is the structure of both variables.&lt;/P&gt;&lt;P&gt;Only if both are similar , it can be copied.&lt;/P&gt;&lt;P&gt;&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;Nisha Vengal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 19:39:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-symbol-problem/m-p/6416649#M1408620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-27T19:39:58Z</dc:date>
    </item>
  </channel>
</rss>

