<?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: What is HASH Table? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-hash-table/m-p/2492898#M562713</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for ur help....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But can you tell me when to use this HASH Table?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance...........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2007 13:07:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-18T13:07:19Z</dc:date>
    <item>
      <title>What is HASH Table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-hash-table/m-p/2492893#M562708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone explain me what is HASH table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 13:01:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-hash-table/m-p/2492893#M562708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T13:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: What is HASH Table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-hash-table/m-p/2492894#M562709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A hased table is the kind of an internal table which is closest to a database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fundamental difference is that the entries in a hashed table cannot be accessed through an index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the following statement is not applicable to a hashed table - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE ITAB INDEX &amp;lt;n&amp;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;If you notice, even in case of a database table, let us say, SPFLI, we cannot say, "get me the 10th record of the table SPFLI". The entries can only be retrieved by specifying a "key". So you would have something like - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE ITAB WITH KEY....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is similar to a SELECT statement that we use for a database table. We specify the key fields in the WHERE condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously, a hashed table has to have a KEY, and cannot have duplicate entries for the key fields. Which is again just like in case of a database table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And finally, even though it is only used rarely, in some cases using a hashed table can improve the performance significantly - the reason being that the time required to fetch any record from a hashed internal table is constant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 13:03:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-hash-table/m-p/2492894#M562709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T13:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: What is HASH Table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-hash-table/m-p/2492895#M562710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Hashed tables - This is the most appropriate type for any table where the main operation is key access. You cannot access a hashed table using its index. The response time for key access remains constant, regardless of the number of table entries. Like database tables, hashed tables always have a unique key. Hashed tables are useful if you want to construct and use an internal table, which resembles a database table or for processing large amounts of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is useful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 13:04:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-hash-table/m-p/2492895#M562710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T13:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: What is HASH Table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-hash-table/m-p/2492896#M562711</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;A href="http://sapmaterial.com/internaltable_types.html" target="test_blank"&gt;http://sapmaterial.com/internaltable_types.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srikanta Gope&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 13:04:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-hash-table/m-p/2492896#M562711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T13:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: What is HASH Table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-hash-table/m-p/2492897#M562712</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;Just go thro' this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Types of internal tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.1 STANDARD table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Key access to a standard table uses a linear search. This means that the time required for a search is in linear relation to the number of table entries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should use index operations to access standard tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.2 SORTED table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Defines the table as one that is always saved correctly sorted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Key access to a sorted table uses a binary key. If the key is not unique, the system takes the entry with the lowest index. The runtime required for key access is logarithmically related to the number of table entries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.3 HASHED table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Defines the table as one that is managed with an internal hash procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can only access a hashed table using the generic key operations or other generic operations ( SORT, LOOP, and so on). Explicit or implicit index operations (such as LOOP ... FROM oe INSERT itab within a LOOP) are not allowed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.4 INDEX table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A table that can be accessed using an index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Index table is only used to specify the type of generic parameters in a FORM or FUNCTION. That means that you can't create a table of type INDEX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Standard tables and sorted tables are index tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.5 ANY table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any table is only used to specify the type of generic parameters in a FORM or FUNCTION. That means that you can't create a table of type ANY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Standard, sorted and hashed tables belongs to ANY tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward points&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 13:05:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-hash-table/m-p/2492897#M562712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T13:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: What is HASH Table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-hash-table/m-p/2492898#M562713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for ur help....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But can you tell me when to use this HASH Table?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance...........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 13:07:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-hash-table/m-p/2492898#M562713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T13:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: What is HASH Table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-hash-table/m-p/2492899#M562714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hashed table is useful when your have to work with very big internal table and to read it with &lt;/P&gt;&lt;P&gt;"READ TABLE WITH KEY ..." &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The time access is constant ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definition of a Hashed Table: &lt;/P&gt;&lt;P&gt;"Defines the table as one that is managed with an internal hash procedure. You can imagine a hashed table as a set, whose elements you can address using their unique key. Unlike standard and sorted tables, you cannot access hash tables using an index. All entries in the table must have a unique key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Access time using the key is constant, regardless of the number of table entries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can only access a hashed table using the generic key operations or other generic operations (SORT, LOOP, and so on). Explicit or implicit index operations (such as LOOP ... FROM to INSERT itab within a LOOP) are not allowed." &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As long as your records has unique key(s), using hash table will give you a huge performance gain when dealing with large dataset. assuming in your case, 10000 record , and if the key is unique, use hash table.  The main use of hash tables is for looking up fixed information from a key. So if you have a report that has personnel number and you want to display their name, you could use a hash table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus: &lt;/P&gt;&lt;P&gt;Code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of typ_pernr, &lt;/P&gt;&lt;P&gt;         pernr  like pa0001-pernr, &lt;/P&gt;&lt;P&gt;         ename  like pa0001-ename, &lt;/P&gt;&lt;P&gt;       end   of typ_pernr. &lt;/P&gt;&lt;P&gt;data: ls_pernr  type typ_pernr, &lt;/P&gt;&lt;P&gt;      lt_pernr  type  hashed table of typ_pernr  with unique key pernr. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;  select pernr ename into table lt_pernr  from pa0001. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;  loop at itab. &lt;/P&gt;&lt;P&gt;    read table lt_pernr  with table key pernr  =  itab-pernr &lt;/P&gt;&lt;P&gt;         into ls_pernr. &lt;/P&gt;&lt;P&gt;    write: ls_pernr-ename, itab-data. &lt;/P&gt;&lt;P&gt;  endloop.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also refer &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;srinivas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*&lt;STRONG&gt;reward for useful answers&lt;/STRONG&gt;*&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 13:09:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-hash-table/m-p/2492899#M562714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T13:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: What is HASH Table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-hash-table/m-p/2492900#M562715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     Hashed tables are better as comapred to other 2 type of tables . they basically work on the principal of Hash Key . &lt;/P&gt;&lt;P&gt;The prerequsit for an hashed table is that we need to specify the Key for that table , which is unique for each record in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now based on this key the system based on a hashing algorithm automatically generates a hask key which is used to access the records in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be helpful , but as i said about the prerequsit , go for it if in your internal table there are fields which can ast as key , so as to uniquely identify each record.&lt;/P&gt;&lt;P&gt;Regard&lt;/P&gt;&lt;P&gt;&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, 18 Jul 2007 13:09:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-hash-table/m-p/2492900#M562715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T13:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: What is HASH Table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-hash-table/m-p/2492901#M562716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a thumb rule , you have to use it if the data is Very huge.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 13:11:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-hash-table/m-p/2492901#M562716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T13:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: What is HASH Table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-hash-table/m-p/2492902#M562717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An internal table of type HASHED can be used to improve performance. Hashed tables have no linear index. You can only access hashed tables by specifying&lt;/P&gt;&lt;P&gt;the key. The system has its own hash algorithm for managing the table.The response time for key access remains constant, regardless of the number of table entries. Like database tables, hashed tables always have a unique key. Hashed tables are useful if you want to construct and use an internal table&lt;/P&gt;&lt;P&gt;which resembles a database table or for processing large amounts of data.A restriction for hashed tables is that they may not contain more than 2 million entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also chk the links&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2fcc358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2fcc358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/90/8d7328b1af11d194f600a0c929b3c3/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/90/8d7328b1af11d194f600a0c929b3c3/frameset.htm&lt;/A&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;If you have an internal table in your program which is used solely for lookup, it is good programming practice to use a hash table. The example below shows this, in combination with a method for buffering SELECT SINGLE results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  select_dispo&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Get MRP controller and in-house production time from material &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      and plant&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt; MATNR  Material&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt; RESWK  Plant&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     &amp;lt;-- DISPO  MRP controller&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     &amp;lt;-- DZEIT  In-house production time&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form select_from_marc using matnr werks dispo dzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  types: begin of mrp_lookup_type,&lt;/P&gt;&lt;P&gt;           matnr like marc-matnr,&lt;/P&gt;&lt;P&gt;           werks like marc-werks,&lt;/P&gt;&lt;P&gt;           dispo like marc-dispo,&lt;/P&gt;&lt;P&gt;           dzeit like marc-dzeit,&lt;/P&gt;&lt;P&gt;         end of mrp_lookup_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Define static hashed table to hold results&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  statics: st_mrp type hashed table of mrp_lookup_type&lt;/P&gt;&lt;P&gt;                  with unique key matnr werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: l_wa_mrp type mrp_lookup_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear dzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;See if data is in the table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  read table st_mrp into l_wa_mrp with table key matnr = matnr&lt;/P&gt;&lt;P&gt;                                                 werks = werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If not in table, get it from the database&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if not sy-subrc is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select single dispo dzeit from marc&lt;/P&gt;&lt;P&gt;        into corresponding fields of l_wa_mrp-dispo&lt;/P&gt;&lt;P&gt;        where matnr eq matnr&lt;/P&gt;&lt;P&gt;          and werks eq werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Insert into table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    l_wa_mrp-matnr = matnr.&lt;/P&gt;&lt;P&gt;    l_wa_mrp-werks = werks.&lt;/P&gt;&lt;P&gt;    insert l_wa_mrp into table st_mrp.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  dispo = l_wa_mrp-dispo.                      " MRP Controller&lt;/P&gt;&lt;P&gt;  dzeit = l_wa_mrp-dzeit.                      " Inhouse production time&lt;/P&gt;&lt;P&gt;endform.                    " select_from_marc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 13:16:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-hash-table/m-p/2492902#M562717</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T13:16:29Z</dc:date>
    </item>
  </channel>
</rss>

