<?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: primary key in internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-in-internal-table/m-p/2381977#M528796</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANXX  FOR UR REPLY...WHEN WE WILL BE USING HASHED TABLES...IS THERE ANY PARTICULAR REASON FOR IT??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jun 2007 06:41:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-18T06:41:30Z</dc:date>
    <item>
      <title>primary key in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-in-internal-table/m-p/2381972#M528791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;              psl tell me how to assign a primary key to an intarenal table field while using hashed table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;mani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 04:51:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-in-internal-table/m-p/2381972#M528791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T04:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: primary key in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-in-internal-table/m-p/2381973#M528792</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;Check this code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

TYPES: BEGIN OF TYPE_MATERIAL,
                MATNR TYPE MATNR,
                WERKS TYPE WERKS_D,
                MENGE TYPE EKPO-MENGE,
             END OF TYPE_MATERIAL.


* Internal table with MATNR as the key..
DATA: T_HASHED TYPE HASHED TABLE OF TYPE_MATERIAL
                            WITH UNIQUE KEY MATNR.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 04:54:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-in-internal-table/m-p/2381973#M528792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T04:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: primary key in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-in-internal-table/m-p/2381974#M528793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manikandan, &lt;/P&gt;&lt;P&gt;These many options are available.&lt;/P&gt;&lt;P&gt;For Primary key or without it.&lt;/P&gt;&lt;P&gt;TYPES &amp;lt;Internal Table Name&amp;gt;  TYPE (Hashed/Sorted) OF [REF TO] type&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;[UNIQUE | NON-UNIQUE] { {KEY comp1 comp2 ...} &lt;/P&gt;&lt;P&gt;                          | {DEFAULT KEY} }&amp;lt;/b&amp;gt; INITIAL SIZE n&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 04:58:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-in-internal-table/m-p/2381974#M528793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T04:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: primary key in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-in-internal-table/m-p/2381975#M528794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi narendran thanxxxx  for ur reply...i am gettting error when appending data into this itab.how to append data here ...i have used occurs 0 and header line in that itab .is there anything abt it ....why u have not used that...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 05:47:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-in-internal-table/m-p/2381975#M528794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T05:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: primary key in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-in-internal-table/m-p/2381976#M528795</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;you have to use INSERT INTO TABLE..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

TYPES: BEGIN OF TYPE_MATERIAL,
                MATNR TYPE MATNR,
                WERKS TYPE WERKS_D,
                MENGE TYPE EKPO-MENGE,
             END OF TYPE_MATERIAL.
 
 
* Internal table with MATNR as the key..
DATA: T_HASHED TYPE HASHED TABLE OF TYPE_MATERIAL
                            WITH UNIQUE KEY MATNR.

* Work area
DATA: WA TYPE TYPE_MATERIAL.

WA-MATNR = 'TEST'.
WA-WERKS = 'TEST'.

* Insert the values..
INSERT WA INTO TABLE T_HASHED.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 05:53:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-in-internal-table/m-p/2381976#M528795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T05:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: primary key in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-in-internal-table/m-p/2381977#M528796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANXX  FOR UR REPLY...WHEN WE WILL BE USING HASHED TABLES...IS THERE ANY PARTICULAR REASON FOR IT??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 06:41:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-in-internal-table/m-p/2381977#M528796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T06:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: primary key in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-in-internal-table/m-p/2381978#M528797</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;hashed tables are used if you want to use UNIQUE keys as your search field, unlike in SORTED and STANDARD table where we use indexes. Access time using the key is constant, regardless of the number of table entries. so HASHED tables are best in storing records especially large ones.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 06:49:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-key-in-internal-table/m-p/2381978#M528797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T06:49:46Z</dc:date>
    </item>
  </channel>
</rss>

