<?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 Problem - Inserting Records into Hashed Tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-inserting-records-into-hashed-tables/m-p/4156053#M993647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Help for an ABAP Newbie...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I insert records into a hashed table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying the following, but get the error message,&lt;/P&gt;&lt;P&gt;*You cannot use explicit or implicit index operations with types "HASHED TABLE" or "ANY TABLE".  "LT_UNIQUE_NAME_KEYS" has the type "HASHED TABLE".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 TYPES: BEGIN OF idline,
    id TYPE i,
    END OF idline.

  DATA: lt_unique_name_keys TYPE HASHED TABLE OF idline WITH UNIQUE KEY id,
        ls_unique_name_key LIKE LINE OF lt_unique_name_keys.

" Create a record and attempt to insert it into the internal table.
" Why does this cause a compilation error message?
 ls_unique_name_key-id = 1.
  INSERT ls_unique_name_key INTO lt_unique_name_keys.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jul 2008 08:03:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-21T08:03:41Z</dc:date>
    <item>
      <title>Problem - Inserting Records into Hashed Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-inserting-records-into-hashed-tables/m-p/4156053#M993647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Help for an ABAP Newbie...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I insert records into a hashed table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying the following, but get the error message,&lt;/P&gt;&lt;P&gt;*You cannot use explicit or implicit index operations with types "HASHED TABLE" or "ANY TABLE".  "LT_UNIQUE_NAME_KEYS" has the type "HASHED TABLE".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 TYPES: BEGIN OF idline,
    id TYPE i,
    END OF idline.

  DATA: lt_unique_name_keys TYPE HASHED TABLE OF idline WITH UNIQUE KEY id,
        ls_unique_name_key LIKE LINE OF lt_unique_name_keys.

" Create a record and attempt to insert it into the internal table.
" Why does this cause a compilation error message?
 ls_unique_name_key-id = 1.
  INSERT ls_unique_name_key INTO lt_unique_name_keys.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 08:03:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-inserting-records-into-hashed-tables/m-p/4156053#M993647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T08:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem - Inserting Records into Hashed Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-inserting-records-into-hashed-tables/m-p/4156054#M993648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;INSERT ls_unique_name_key INTO &lt;STRONG&gt;TABLE&lt;/STRONG&gt; lt_unique_name_keys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 08:14:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-inserting-records-into-hashed-tables/m-p/4156054#M993648</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-07-21T08:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem - Inserting Records into Hashed Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-inserting-records-into-hashed-tables/m-p/4156055#M993649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Matthew!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 08:48:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-inserting-records-into-hashed-tables/m-p/4156055#M993649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T08:48:46Z</dc:date>
    </item>
  </channel>
</rss>

