<?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: error at assignment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-assignment/m-p/8177181#M1623870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A field symbol contains no value in the way you're thinking!  It is merely a reference &lt;STRONG&gt;pointer&lt;/STRONG&gt; to where the data resides.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in other words, if I loop at table assigning &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt; &amp;lt;fs&amp;gt;-field =  some_value.  &lt;STRONG&gt;points&lt;/STRONG&gt; to the row and field that actually contains the data value and updates the row and field with some_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look again at code supplied that is working...I believe you have a coding error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Aug 2011 16:39:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-18T16:39:06Z</dc:date>
    <item>
      <title>error at assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-assignment/m-p/8177175#M1623864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI All ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while executing below program for field-symbol  it gives dump i.e. ERROR AT ASSIGNMENT : OVERWRITTEN PROTECTED FIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS P_FIELD(10) DEFAULT  'ABCD'.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;F1&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN: (P_FIELD) TO &amp;lt;F1&amp;gt;.&lt;/P&gt;&lt;P&gt;WRITE:/ 'P_FIELD', P_FIELD,&lt;/P&gt;&lt;P&gt;      / 'F1' , &amp;lt;F1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT, working fine when DEFAULT value is assign 'SY-DATUM' IN PARAMETER as below program-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS P_FIELD(10) DEFAULT  'SY-DATUM'.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;F1&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN: (P_FIELD) TO &amp;lt;F1&amp;gt;.&lt;/P&gt;&lt;P&gt;WRITE:/ 'P_FIELD', P_FIELD,&lt;/P&gt;&lt;P&gt;      / 'F1' , &amp;lt;F1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLEASE HELP ME REGARDING THIS..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS ,&lt;/P&gt;&lt;P&gt;SNEHA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 11:50:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-assignment/m-p/8177175#M1623864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T11:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: error at assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-assignment/m-p/8177176#M1623865</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;not sure what you are trying to do here, but when you assign like this:&lt;/P&gt;&lt;P&gt;ASSIGN (p_field) TO &amp;lt;field-symbol&amp;gt;.&lt;/P&gt;&lt;P&gt; p_field should contain an actual field declared in your programme. As sy-datum is always declared that will work, but 'ABCD' is not a field in your programme, just a string, so that will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Roy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 12:27:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-assignment/m-p/8177176#M1623865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T12:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: error at assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-assignment/m-p/8177177#M1623866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually i'm trying to check how value in P_field is changing dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i also check this by declaring the field as char but than no value for field-symbol is coming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;sneha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 12:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-assignment/m-p/8177177#M1623866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T12:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: error at assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-assignment/m-p/8177178#M1623867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This code definitely gives me the output, not sure how it is different for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS p_field(10) DEFAULT 'ABCD'.

DATA: abcd(4) VALUE '1234'.
FIELD-SYMBOLS: &amp;lt;f1&amp;gt;.
ASSIGN: (p_field) TO &amp;lt;f1&amp;gt;.
WRITE:/ 'P_FIELD', p_field,
/ 'F1' , &amp;lt;f1&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 13:12:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-assignment/m-p/8177178#M1623867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T13:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: error at assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-assignment/m-p/8177179#M1623868</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;thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i already try this but its not working as we want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; while changing value of P_field the value of filed-symbol value is not showing its value is showing blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;sneha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 13:26:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-assignment/m-p/8177179#M1623868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T13:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: error at assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-assignment/m-p/8177180#M1623869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What exactly is the value that you are looking for?? is it ABCD or is it like ABCD is the field and you want to see the value in that field??? &lt;/P&gt;&lt;P&gt;if you want to see ABCD as the output, then code will be :&lt;/P&gt;&lt;P&gt;PARAMETERS P_FIELD(10) DEFAULT 'ABCD'.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;F1&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN: P_FIELD TO &amp;lt;F1&amp;gt;.              --- &amp;gt; check the p_field .. there is no bracket for this field.&lt;/P&gt;&lt;P&gt;WRITE:/ 'P_FIELD', P_FIELD,&lt;/P&gt;&lt;P&gt;/ 'F1' , &amp;lt;F1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to see the value in ABCD, then ABCD should be a field which is declared and it has some value in it. code is as follows:&lt;/P&gt;&lt;P&gt;data : abcd type vbeln.&lt;/P&gt;&lt;P&gt;PARAMETERS P_FIELD(10) DEFAULT 'ABCD'.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;F1&amp;gt;.&lt;/P&gt;&lt;P&gt;ASSIGN: (P_FIELD) TO &amp;lt;F1&amp;gt;.           ---&amp;gt; check the p_field .. its in brackets and it assignes the value of ABCD(ie 3020) to &amp;lt;F1&amp;gt;&lt;/P&gt;&lt;P&gt;abcd = '03020'.&lt;/P&gt;&lt;P&gt;WRITE:/ 'P_FIELD', P_FIELD,&lt;/P&gt;&lt;P&gt;/ 'F1' , &amp;lt;F1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sam_sap1212 on Aug 18, 2011 11:18 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 16:18:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-assignment/m-p/8177180#M1623869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T16:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: error at assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-assignment/m-p/8177181#M1623870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A field symbol contains no value in the way you're thinking!  It is merely a reference &lt;STRONG&gt;pointer&lt;/STRONG&gt; to where the data resides.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in other words, if I loop at table assigning &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt; &amp;lt;fs&amp;gt;-field =  some_value.  &lt;STRONG&gt;points&lt;/STRONG&gt; to the row and field that actually contains the data value and updates the row and field with some_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look again at code supplied that is working...I believe you have a coding error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 16:39:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-assignment/m-p/8177181#M1623870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-18T16:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: error at assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-assignment/m-p/8177182#M1623871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply , its works exactly as we want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;sneha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 06:08:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-assignment/m-p/8177182#M1623871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-19T06:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: error at assignment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-assignment/m-p/8177183#M1623872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RESOLVED&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2011 06:39:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-assignment/m-p/8177183#M1623872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-19T06:39:30Z</dc:date>
    </item>
  </channel>
</rss>

