<?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 key in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/key/m-p/2537720#M576279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is meant by the key of an internal table,and what are called internal data types&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 Jul 2007 13:22:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-15T13:22:10Z</dc:date>
    <item>
      <title>key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/key/m-p/2537720#M576279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is meant by the key of an internal table,and what are called internal data types&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jul 2007 13:22:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/key/m-p/2537720#M576279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-15T13:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: key</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/key/m-p/2537721#M576280</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;Below will give you a good idea about the key of an internal table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key identifies table rows. There are two kinds of key for internal tables - the standard key and a user-defined key. You can specify whether the key should be UNIQUE or NON-UNIQUE. Internal tables with a unique key cannot contain duplicate entries. The uniqueness depends on the table access method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At tables with structured row type, the standard key is formed from all character-type columns of the internal table. If a table has an elementary line type, the default key is the entire line. The default key of an internal table whose line type is an internal table, the default key is empty. At tables with non-structured row type, the standard key consists of the entire row. If the row type is also a table, an empty key is defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user-defined key can contain any columns of the internal table that are no internal table themselves, and do not contain internal tables. References are allowed as table keys. Internal tables with a user-defined key are called key tables. When you define the key, the sequence of the key fields is significant. You should remember this, for example, if you intend to sort the table according to the key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA TYPES:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two types of Data types.&lt;/P&gt;&lt;P&gt;1.Predefined&lt;/P&gt;&lt;P&gt;2.Custom Defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Predefined data types was already defined in SAP itself. &lt;/P&gt;&lt;P&gt;Custom Defined data types can be defined in program and also DDIC.&lt;/P&gt;&lt;P&gt;We can use predefined type if the Data type matches otherwise we go for custom defined type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to this for more details:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2fd9358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2fd9358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name of Dictionary type&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  User-defined types in the ABAP Dictionary&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    You can define any user-defined types in the ABAP Dictionary. These can&lt;/P&gt;&lt;P&gt;    be used in the ABAP program to define data objects and types analogously&lt;/P&gt;&lt;P&gt;    to types that are predefined in the ABAP program (such as C or I) or&lt;/P&gt;&lt;P&gt;    types that are defined locally in ABAP programs.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    The following type categories can be defined in the ABAP Dictionary:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    o   Data elements (elementary types)&lt;/P&gt;&lt;P&gt;        Elementary types have no structure. They describe the data type&lt;/P&gt;&lt;P&gt;        attributes (such as given Dictionary data type, number of places)&lt;/P&gt;&lt;P&gt;        and information that is relevant for the screen (such as title) of&lt;/P&gt;&lt;P&gt;        unstructured data objects (variables/fields).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    o   Structures (structured types)&lt;/P&gt;&lt;P&gt;       Structured types describe the structure and functions of any&lt;/P&gt;&lt;P&gt;       structured data objects, that is of data structures with components&lt;/P&gt;&lt;P&gt;       of any type.&lt;/P&gt;&lt;P&gt;       A component can be a field with an elementary type or can itself be&lt;/P&gt;&lt;P&gt;       a structure. A table can also be used as a component in a structure.&lt;/P&gt;&lt;P&gt;       A database table always has a structure and is therefore implicitly&lt;/P&gt;&lt;P&gt;       a structured type. However, the fields of a database table can only&lt;/P&gt;&lt;P&gt;       have an elementary type.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   o   Table types&lt;/P&gt;&lt;P&gt;       Table types describe the structure and functions of internal tables&lt;/P&gt;&lt;P&gt;       in the ABAP program. Their rows can have any row type. Table types&lt;/P&gt;&lt;P&gt;       with elementary row type therefore can be defined just the same as&lt;/P&gt;&lt;P&gt;       multi-dimensional table types (table types with a table type as row&lt;/P&gt;&lt;P&gt;       type) or table types using structures with table-like components.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   The options for creating types with structured types and table types can&lt;/P&gt;&lt;P&gt;   be combined as required. In this way you can define any complex types&lt;/P&gt;&lt;P&gt;   globally in the ABAP Dictionary and use them in ABAP programs. The&lt;/P&gt;&lt;P&gt;   runtime object of the Dictionary type (nametab) is the interface for&lt;/P&gt;&lt;P&gt;   their use in ABAP programs. The runtime object permits very efficient&lt;/P&gt;&lt;P&gt;   access to the relevant information for the type in compressed form.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   The central definition of types that are used more than once in the ABAP&lt;/P&gt;&lt;P&gt;   Dictionary allows them to be changed centrally. These changes are made&lt;/P&gt;&lt;P&gt;   at all the relevant locations by the active ABAP Dictionary. For&lt;/P&gt;&lt;P&gt;   example, ABAP programs adjust to the changed type definitions when they&lt;/P&gt;&lt;P&gt;   are recreated. When a type is changed, all the objects (e.g. types or&lt;/P&gt;&lt;P&gt;   tables) that use this type are automatically adjusted to the change at&lt;/P&gt;&lt;P&gt;   activation.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   All Dictionary types lie in a common namespace. A data element, for&lt;/P&gt;&lt;P&gt;   example, therefore may not have the same name as a structure. However, a&lt;/P&gt;&lt;P&gt;   type defined in an ABAP program and a Dictionary type may have the same&lt;/P&gt;&lt;P&gt;   name.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   The following shadowing rule is valid when using types in ABAP programs:&lt;/P&gt;&lt;P&gt;   If the names are identical, the local types shadow the types of the type&lt;/P&gt;&lt;P&gt;   groups and the types defined globally in the Dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Samantak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards points for useful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 04:41:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/key/m-p/2537721#M576280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T04:41:34Z</dc:date>
    </item>
  </channel>
</rss>

