<?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 ASSIGN statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement/m-p/2594685#M594224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt; Can anybody help me to find the reason if below statement return 1 as SY-SUBRC value?   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ASSIGN TABLE FIELD v_pcode TO &amp;lt;fs_pcode&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jul 2007 22:56:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-27T22:56:27Z</dc:date>
    <item>
      <title>ASSIGN statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement/m-p/2594685#M594224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt; Can anybody help me to find the reason if below statement return 1 as SY-SUBRC value?   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ASSIGN TABLE FIELD v_pcode TO &amp;lt;fs_pcode&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 22:56:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement/m-p/2594685#M594224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T22:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: ASSIGN statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement/m-p/2594686#M594225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the example program and do compare with your program :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT CHAP2402.&lt;/P&gt;&lt;P&gt;DATA: EXTERNAL_RECORD(4000),&lt;/P&gt;&lt;P&gt;      POSITION TYPE I,&lt;/P&gt;&lt;P&gt;      LENGTH TYPE N.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;ENTRY&amp;gt;.&lt;/P&gt;&lt;P&gt;EXTERNAL_RECORD = '0005Smith0007Edwards0005Young'.&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;  LENGTH = EXTERNAL_RECORD+POSITION(4).&lt;/P&gt;&lt;P&gt;  IF LENGTH = 0.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  ADD 4 TO POSITION.&lt;/P&gt;&lt;P&gt;  ASSIGN EXTERNAL_RECORD+POSITION(LENGTH) TO &amp;lt;ENTRY&amp;gt;.&lt;/P&gt;&lt;P&gt;  WRITE &amp;lt;ENTRY&amp;gt;.&lt;/P&gt;&lt;P&gt;  ADD LENGTH TO POSITION.&lt;/P&gt;&lt;P&gt;  IF POSITION &amp;gt;= 4000.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below links :&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb387a358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb387a358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3923358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3923358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure why you are getting sy-subrc = 1,issue would be at table field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jul 2007 00:32:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement/m-p/2594686#M594225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-28T00:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: ASSIGN statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement/m-p/2594687#M594226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ASSIGN TABLE FIELD (v_pcode) TO &amp;lt;fs_pcode&amp;gt;.&lt;/CODE&gt;&lt;/PRE&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>Sat, 28 Jul 2007 00:38:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement/m-p/2594687#M594226</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-07-28T00:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: ASSIGN statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement/m-p/2594688#M594227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement working well in Development server, but in production it's returning SY-SUBRC value as 1. It's causing the issue. But in development server it's working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give me some hint, so that I can start from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;vidya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jul 2007 00:50:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement/m-p/2594688#M594227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-28T00:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: ASSIGN statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement/m-p/2594689#M594228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the field exist in production server?  Actually I'm not familar with this exact statement, does it point a dictioary field to the field symbol?  If so, then make sure that the dictionary field exists in produciton.&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>Sat, 28 Jul 2007 00:53:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/assign-statement/m-p/2594689#M594228</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-07-28T00:53:30Z</dc:date>
    </item>
  </channel>
</rss>

