<?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: Syntax error in declaration in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-declaration/m-p/3113238#M739169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, I used the F1 help, but nothing tells on this.&lt;/P&gt;&lt;P&gt;I want to know from experts whether this is possible/available in 3.1I or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivasa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Dec 2007 20:02:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-05T20:02:45Z</dc:date>
    <item>
      <title>Syntax error in declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-declaration/m-p/3113235#M739166</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 am working on 3.1I version of SAP and using the following code in my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of t_ar_doc,                               &lt;/P&gt;&lt;P&gt;          bukrs   like bkpf-bukrs,                        &lt;/P&gt;&lt;P&gt;          belnr    like bkpf-belnr,                        &lt;/P&gt;&lt;P&gt;          gjahr    like bkpf-gjahr,                        &lt;/P&gt;&lt;P&gt;          monat  like bkpf-monat,                        &lt;/P&gt;&lt;P&gt;          waers   like bkpf-waers,                        &lt;/P&gt;&lt;P&gt;          end of t_ar_doc.      &lt;/P&gt;&lt;P&gt;                                &lt;/P&gt;&lt;P&gt;data: ar_tab type hashed table of t_ar_doc       &lt;/P&gt;&lt;P&gt;                   with unique key bukrs belnr.                                 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But getting a syntax error saying 'The type "HASHED" is unknown'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivasa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 19:43:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-declaration/m-p/3113235#M739166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T19:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error in declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-declaration/m-p/3113236#M739167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think hashed tables were introduced later (4.0?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 19:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-declaration/m-p/3113236#M739167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T19:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error in declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-declaration/m-p/3113237#M739168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if Hashed tables were introduced in 3.1I.  I just checked F1 help in our system which is 4.7 and there is no mention of which versions .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest putting your cursor on the "type" word in your data statement and pressing F1.  If the F1 help does not mention them, they might not be available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris H.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 19:53:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-declaration/m-p/3113237#M739168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T19:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error in declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-declaration/m-p/3113238#M739169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, I used the F1 help, but nothing tells on this.&lt;/P&gt;&lt;P&gt;I want to know from experts whether this is possible/available in 3.1I or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivasa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 20:02:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-declaration/m-p/3113238#M739169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T20:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error in declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-declaration/m-p/3113239#M739170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, if you get a syntax error, it's probably not there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 20:12:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-declaration/m-p/3113239#M739170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T20:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error in declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-declaration/m-p/3113240#M739171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have access to any documention for a 3.1 system, but there is documentation on hashed tables (such as this page: &lt;A href="http://help.sap.com/saphelp_40b/helpdata/en/fc/eb3639358411d1829f0000e829fbfe/frameset.htm)" target="test_blank"&gt;http://help.sap.com/saphelp_40b/helpdata/en/fc/eb3639358411d1829f0000e829fbfe/frameset.htm)&lt;/A&gt; for a 4.0b system.  I tried the code that you have written, and it works in my ERP 2004s system.  I noticed that some of the older documentation has the original table, such as your t_ar_doc, defined in a DATA statement rather than a TYPE statement.  The hashed table is then defined as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ar_tab LIKE HASHED TABLE OF t_ar_doc&lt;/P&gt;&lt;P&gt;WITH UNIQUE KEY bukrs belnr.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try this older style of definition and see if it works.&lt;/P&gt;&lt;P&gt; - April King&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 20:15:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-declaration/m-p/3113240#M739171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T20:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error in declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-declaration/m-p/3113241#M739172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried, but it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivasa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2007 21:20:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-in-declaration/m-p/3113241#M739172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-05T21:20:55Z</dc:date>
    </item>
  </channel>
</rss>

