<?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 Syntax error in Update Routine in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-update-routine/m-p/6829675#M1471331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While trying to update infoobject /BIC/ZGROSSPRI in an ODS in BI through an update routine, a syntax error is thrown when I am defining a variable of type  &lt;U&gt;ty&lt;/U&gt;s_TG_1-/BIC/ZGROSSPRI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: VALUE TYPE &lt;U&gt;ty&lt;/U&gt;s_TG_1-/BIC/ZGROSSPRI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;E:Field "_ty_s_TG_1-/BIC/ZGROSSPRI" is unknown. It is neither in one of the&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;specified tables nor defined by a "DATA" statement. "DATA" statement.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below given is the code which I am using for the same. Kindly advise how to correct this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suneeth Sebastian on Apr 7, 2010 4:11 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Apr 7, 2010 1:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Apr 2010 13:05:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-07T13:05:59Z</dc:date>
    <item>
      <title>Syntax error in Update Routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-update-routine/m-p/6829675#M1471331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While trying to update infoobject /BIC/ZGROSSPRI in an ODS in BI through an update routine, a syntax error is thrown when I am defining a variable of type  &lt;U&gt;ty&lt;/U&gt;s_TG_1-/BIC/ZGROSSPRI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: VALUE TYPE &lt;U&gt;ty&lt;/U&gt;s_TG_1-/BIC/ZGROSSPRI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;E:Field "_ty_s_TG_1-/BIC/ZGROSSPRI" is unknown. It is neither in one of the&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;specified tables nor defined by a "DATA" statement. "DATA" statement.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below given is the code which I am using for the same. Kindly advise how to correct this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suneeth Sebastian on Apr 7, 2010 4:11 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Apr 7, 2010 1:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 13:05:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-update-routine/m-p/6829675#M1471331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-07T13:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error in Update Routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-update-routine/m-p/6829676#M1471332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use code tags  &amp;lt; &amp;gt; from your toolbar to format the code into something readable and you'll probably get more responses.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Apr 2010 17:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-update-routine/m-p/6829676#M1471332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-07T17:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error in Update Routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-update-routine/m-p/6829677#M1471333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While trying to update infoobject /BIC/ZGROSSPRI in an ODS in BI through an update routine, a syntax error is thrown when I am trying to define a variable of type &lt;U&gt;ty&lt;/U&gt;s_TG_1-/BIC/ZGROSSPRI. How is it possible to define a variable of type target field(Infoobject) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: VALUE TYPE &lt;U&gt;ty&lt;/U&gt;s_TG_1-/BIC/ZGROSSPRI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;E:Field "_ty_s_TG_1-/BIC/ZGROSSPRI" is unknown. It is neither in one of the&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;specified tables nor defined by a "DATA" statement. "DATA" statement.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;U&gt;ty&lt;/U&gt;s_TG_1-/BIC/ZGROSSPRI is already defined in the Class section as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      BEGIN OF &lt;U&gt;ty&lt;/U&gt;s_TG_1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     InfoObject: ZGROSSPRI Gross Price in Statistical Currency.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        /BIC/ZGROSSPRI           TYPE /BIC/OIZGROSSPRI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      END   OF &lt;U&gt;ty&lt;/U&gt;s_TG_1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Apr 2010 08:28:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-update-routine/m-p/6829677#M1471333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-10T08:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error in Update Routine</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-update-routine/m-p/6829678#M1471334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you've put your declaration in &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*$*$ begin of 2nd part global - insert your code only below this line  *

*$*$ end of 2nd part global - insert your code only before this line   *&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, that the type is in the PRIVATE section of the class definition, and the above points can only reference publicly defined types, as it is outside the class. Instead, define the variable in &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*$*$ begin of global - insert your declaration only below this line  *-*

*$*$ end of global - insert your declaration only before this line   *-*&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; or in the METHOD compute_ block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 08:27:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-update-routine/m-p/6829678#M1471334</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-04-12T08:27:25Z</dc:date>
    </item>
  </channel>
</rss>

