<?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: Problem using HASH TABLES in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-hash-tables/m-p/6747152#M1459491</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;Use this code now it will not go dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA gt_kna1 TYPE HASHED TABLE OF kna1 WITH UNIQUE KEY kunnr.
SELECT kunnr INTO corresponding fields of TABLE gt_kna1
FROM kna1.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards and Best wishes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Apr 2010 09:00:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-14T09:00:10Z</dc:date>
    <item>
      <title>Problem using HASH TABLES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-hash-tables/m-p/6747151#M1459490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im trying to use hash table in a program but Im gettin an error I cant understand...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA gt_kna1 TYPE HASHED TABLE OF kna1 WITH UNIQUE KEY kunnr.&lt;/P&gt;&lt;P&gt;SELECT kunnr INTO TABLE gt_kna1&lt;/P&gt;&lt;P&gt;FROM kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im gettin this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An entry was to be entered into the table "\PROGRAM=ZTABLA_HASH\DATA=GT_KNA1" (which should havehad a unique table key (UNIQUE KEY)).&lt;/P&gt;&lt;P&gt;However, there already existed a line with an identical key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is impossible, the field kunnr is key in table kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does Anybody know why Im gettin this dump?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 08:51:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-hash-tables/m-p/6747151#M1459490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-14T08:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using HASH TABLES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-hash-tables/m-p/6747152#M1459491</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;Use this code now it will not go dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA gt_kna1 TYPE HASHED TABLE OF kna1 WITH UNIQUE KEY kunnr.
SELECT kunnr INTO corresponding fields of TABLE gt_kna1
FROM kna1.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards and Best wishes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 09:00:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-hash-tables/m-p/6747152#M1459491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-14T09:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using HASH TABLES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-hash-tables/m-p/6747153#M1459492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF TY_KUNNR,
         KUNNR  LIKE KNA1-KUNNR.
TYPES: END   OF TY_KUNNR.
DATA:  IT_KUNNR  TYPE  HASHED TABLE OF TY_KUNNR  WITH UNIQUE KEY KUNNR.
SELECT KUNNR INTO TABLE IT_KUNNR
FROM KNA1
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 09:09:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-hash-tables/m-p/6747153#M1459492</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2010-04-14T09:09:39Z</dc:date>
    </item>
  </channel>
</rss>

