<?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: Table type in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/2056112#M424494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table Types &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A table type describes the structure and functional attributes of an internal table in ABAP. In ABAP programs you can reference a table type TTYP defined in the ABAP Dictionary with the command DATA  TYPE TABTYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A special case of table types are the ranges table types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating Table Types &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the initial screen of the ABAP Dictionary, enter the table type name in field Data type and choose Create. &lt;/P&gt;&lt;P&gt;A dialog box appears in which you must define the type category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Table type and choose Choose. &lt;/P&gt;&lt;P&gt;The maintenance screen for table types appears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter an explanatory short text in the field Short text. &lt;/P&gt;&lt;P&gt;You can for example find the table type at a later time using this short text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now define the structure of a row of the table type (row type), the options for accessing data in the defined internal table (access mode) and the key of the table type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter the row type of the table type on the Row type tab page. You can refer to an existing type (data element, structure, table, view, table type) or directly enter the row type. &lt;/P&gt;&lt;P&gt;If you want to refer to an existing type, you must mark the Row type radio button and enter the name of the type in the field below it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to enter the data type, field length and possibly the number of decimal places directly, you must mark the Built-in type radio button. Entries are now possible in the fields Data type, Number of places and Decimal places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use a reference type as row type, mark the radio button Reference type and then Referenced type. Enter the name of the referenced type. This can be the name of a class or an interface, a generic reference to ANY, OBJECT, or DATA or a reference to a type defined in the Dictionary. If you want the reference type to be a predefined Dictionary type, choose Reference to predefined type. Select the type, the number of places and possibly the number of decimal places. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the Access tab page define the access mode of the table type. &lt;/P&gt;&lt;P&gt;This defines how to access the data in an internal table defined by the table type in ABAP programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define the key of the table type on the Key tab page. &lt;/P&gt;&lt;P&gt;The key of a table type is defined by the key definition and the key category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you select Key components, you can define the key of the table type directly in the input area with the same name. This option is only possible if the row type of the table type is a structure, table or view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can display all the components of the row type with Select components. Select the components you want to copy to the key and choose .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save the table type. &lt;/P&gt;&lt;P&gt;You are asked to assign the table type a development class. You can change this development class later with Goto ® Object directory entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose .&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table type is now activated. The runtime object of the type is created. At activation, a log is written; it can be displayed with Utilities ® Activation log. If errors occurred during activation, the activation log is automatically displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other Options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can enter an explanatory text for the table type with Goto ® Documentation. This is purely technical documentation that is not displayed in the online help system. &lt;/P&gt;&lt;P&gt;You can display the runtime object of the table type with Utilities ® Runtime object ® Display. With Utilities ® Runtime object ® Check you can check if the runtime object of the table type is consistent with its definition in the maintenance screen of the ABAP Dictionary.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Key Definition of a Table Type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a table type is defined, the key to be used for the table type must be specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have the following options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Standard key: The structure of the key depends on the row type category. In a structured row type, the standard key consists of all the character-like components of the table row. In an elementary row type or reference type as row type, the standard key consists of the entire table row. If the row type is a table type, the standard key is empty. Note that an empty key is only allowed for access mode Standard table. &lt;/P&gt;&lt;P&gt;Row type: The key consists of all the fields of the row type. &lt;/P&gt;&lt;P&gt;Key components: The key is explicitly defined by selecting components (fields) of the row type. This is only possible if a structure, table or view was selected as row type. &lt;/P&gt;&lt;P&gt;Key not specified: The key is not specified. This defines a generic table type.&lt;/P&gt;&lt;P&gt;Access Mode &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The access mode defines how to access the data in the internal table defined by the table type when performing key operations (READ TABLE, INSERT TABLE, MODIFY TABLE, COLLECT). In particular, it defines whether key accesses (see Keys of Table Types) to the internal table are allowed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible access modes are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Standard table:&lt;/P&gt;&lt;P&gt;The key access to a standard table uses a sequential search. The time required for an access is linearly dependent on the number of entries in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should usually access a standard table with index operations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorted table:&lt;/P&gt;&lt;P&gt;The table is always stored internally sorted by its key. Key access to a sorted table can therefore use a binary search. If the key is not unique, the entry with the lowest index is accessed. The time required for an access is logarithmically dependent on the number of entries in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Index accesses to sorted tables are also allowed. You should usually access a sorted table using its key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hash table:&lt;/P&gt;&lt;P&gt;The table is internally managed with a hash procedure. All the entries must have a unique key. The time required for a key access is constant, that is it does not depend on the number of entries in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot access a hash table with an index. Accesses must use generic key operations (SORT, LOOP, etc.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Index table:&lt;/P&gt;&lt;P&gt;The table can be a standard table or a sorted table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Index access is allowed to such an index table. Index tables can be used to define the type of generic parameters of a FORM (subroutine) or a function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not specified:&lt;/P&gt;&lt;P&gt;The table can be a standard table, a sorted table or a hash table. The set of valid operations on such a table is the intersection of the valid operations for these three access modes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot access tables of this type with index operations.&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 Index table or Not specified is selected for the access mode, a generic table type that cannot be used to define data objects or types in programs is created&lt;/P&gt;&lt;P&gt;Generic Table Types &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A generic table type does not define all the attributes of an internal table in the ABAP Dictionary; it leaves some of these attributes undefined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A table type is generic in the following cases:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Index table or not specified is selected for the access type, &lt;/P&gt;&lt;P&gt;Not specified is selected for the key definition, &lt;/P&gt;&lt;P&gt;Not specified is selected for the key category.&lt;/P&gt;&lt;P&gt;Generic table types are used to define the types of generic table parameters in function modules and forms.&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 a generic table type with the index table access type is used as the parameter of a function module, you can pass either a sorted table or a standard table in the call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generic table types offer a degree of freedom in the arguments passed in the corresponding calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since generic table types do not define all the necessary attributes of an internal table, they cannot be used to define data objects (with DATA) or types (with TYPE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranges Table Types &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A ranges table type is a special case of a table type. A ranges table type describes the structure of an internal table for administering complex areas, i.e. the type of an internal ranges table in the ABAP program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranges tables can be used for example in logical conditions (IN operators) in the SELECT, IF, WHILE and CHECK statements or to pass data to selection tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The row type of a ranges table type has a fixed structure. The row type consists of the 4 components SIGN (sign), OPTION (comparison operator), LOW (lower limit) and HIGH (upper limit) in this order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The type of components LOW and HIGH is defined by an elementary associated type. It can be defined by specifying a data element or by directly defining the data type, number of places and if necessary the number of decimal places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A ranges table type always has Standard table access mode and a standard key that is non-unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating Ranges Table Types&lt;/P&gt;&lt;P&gt;Creating a Ranges Table Type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the initial screen of the ABAP Dictionary, enter the name of the ranges table type in field Data type and choose Create. &lt;/P&gt;&lt;P&gt;A dialog box appears in which you must select the type category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Table type and choose . &lt;/P&gt;&lt;P&gt;The maintenance screen for table types appears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter an explanatory short text in the field Short text. &lt;/P&gt;&lt;P&gt;You can for example find the ranges table type at a later time using this short text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose Edit ® Define as ranges table type. &lt;/P&gt;&lt;P&gt;You go to the maintenance screen for ranges table types. The access mode, key definition and key category are defined in advance for a ranges table type, so you do not need to define them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To define the ranges table type, you only have to specify an elementary type for the types of the LOW and HIGH components of the corresponding row type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to define the types of the LOW and HIGH components using an existing data element, you must select Data element and enter the name of the data element in the subsequent field. You can also enter the name of a data element that does not yet exist and go directly to the data element maintenance screen by double-clicking to create it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also define the elementary type of the LOW and HIGH components directly. Select Built-in type. You can now enter values for fields Data type, Number of places and Decimal places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now enter a name for the row type of the ranges table type in field Structured row type. &lt;/P&gt;&lt;P&gt;A ranges table type must have a row type, just like any other table type. This row type always has a fixed structure for the special case of ranges table types. You can therefore generate the row type from the maintenance screen of the ranges table type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save your entries. &lt;/P&gt;&lt;P&gt;You are asked to assign the ranges table type a development class. If needed, you can change this development class later with Goto ® Object directory entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose Create. You can generate the row type of the ranges table type with this function. &lt;/P&gt;&lt;P&gt;The maintenance screen for structures is displayed. The components of the row type are already assigned based on your definition of the associated type for the LOW and HIGH components. You only have to enter a short text for the row type and Activate it. Then choose Back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose .&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ranges table type is now activated. The runtime object of the type is created. At activation, a log is written; it can be displayed with Utilities ® Activation log. If errors occurred during activation, the activation log is displayed immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward all helpfull answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        sunil kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Mar 2007 12:05:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-28T12:05:05Z</dc:date>
    <item>
      <title>Table type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/2056109#M424491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;     Can any one tell what is the main use of table type in data dictionary (which comes under data element) and how to create table type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Nanjund sharma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 07:50:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/2056109#M424491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T07:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Table type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/2056110#M424492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Table type&lt;/P&gt;&lt;P&gt;A table type is a type that describes the structure and functions of an internal table in the ABAP program. It can be used in the ABAP program analogously to types that are predefined in the ABAP program or defined directly in the ABAP program to define data objects and types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table types can be used in the ABAP Dictionary to define structures (structured types) and other table types:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A component of a structure can have a table type as type. This defines a structured type with a component that is a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A table type can be used as the row type of another table type. This defines a table of tables.&lt;/P&gt;&lt;P&gt;A table type describes the following attributes of an internal table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The structure and data type attributes of the table row are defined by the row type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key definition describes the structure of the table key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key category defines whether the key is unique, that is if all the records of the table have different key values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The access mode defines how the table is accessed and how its records are managed internally.&lt;/P&gt;&lt;P&gt;A special form of these general table types are the ranges table types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;ANJI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 07:53:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/2056110#M424492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T07:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Table type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/2056111#M424493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nanduja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table type describes the structure and functional attributes of an internal table in ABAP. In ABAP programs you can reference a table type YTEST defined in the ABAP Dictionary with the command DATA YTEST1 TYPE YTEST. An internal table YTEST1 is created in the program with the attributes defined for YTEST in the ABAP Dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A table type is defined by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its line type, that defines the structure and data type attributes of a line of the internal table &lt;/P&gt;&lt;P&gt;the options for managing and accessing the data ( access mode) in the internal table &lt;/P&gt;&lt;P&gt;the key ( key definition and key category) of the internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can see the following link.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/90/8d7304b1af11d194f600a0c929b3c3/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005vp/helpdata/en/90/8d7304b1af11d194f600a0c929b3c3/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&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, 28 Mar 2007 12:02:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/2056111#M424493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T12:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Table type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/2056112#M424494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table Types &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A table type describes the structure and functional attributes of an internal table in ABAP. In ABAP programs you can reference a table type TTYP defined in the ABAP Dictionary with the command DATA  TYPE TABTYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A special case of table types are the ranges table types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating Table Types &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the initial screen of the ABAP Dictionary, enter the table type name in field Data type and choose Create. &lt;/P&gt;&lt;P&gt;A dialog box appears in which you must define the type category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Table type and choose Choose. &lt;/P&gt;&lt;P&gt;The maintenance screen for table types appears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter an explanatory short text in the field Short text. &lt;/P&gt;&lt;P&gt;You can for example find the table type at a later time using this short text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now define the structure of a row of the table type (row type), the options for accessing data in the defined internal table (access mode) and the key of the table type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter the row type of the table type on the Row type tab page. You can refer to an existing type (data element, structure, table, view, table type) or directly enter the row type. &lt;/P&gt;&lt;P&gt;If you want to refer to an existing type, you must mark the Row type radio button and enter the name of the type in the field below it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to enter the data type, field length and possibly the number of decimal places directly, you must mark the Built-in type radio button. Entries are now possible in the fields Data type, Number of places and Decimal places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use a reference type as row type, mark the radio button Reference type and then Referenced type. Enter the name of the referenced type. This can be the name of a class or an interface, a generic reference to ANY, OBJECT, or DATA or a reference to a type defined in the Dictionary. If you want the reference type to be a predefined Dictionary type, choose Reference to predefined type. Select the type, the number of places and possibly the number of decimal places. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the Access tab page define the access mode of the table type. &lt;/P&gt;&lt;P&gt;This defines how to access the data in an internal table defined by the table type in ABAP programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define the key of the table type on the Key tab page. &lt;/P&gt;&lt;P&gt;The key of a table type is defined by the key definition and the key category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you select Key components, you can define the key of the table type directly in the input area with the same name. This option is only possible if the row type of the table type is a structure, table or view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can display all the components of the row type with Select components. Select the components you want to copy to the key and choose .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save the table type. &lt;/P&gt;&lt;P&gt;You are asked to assign the table type a development class. You can change this development class later with Goto ® Object directory entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose .&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table type is now activated. The runtime object of the type is created. At activation, a log is written; it can be displayed with Utilities ® Activation log. If errors occurred during activation, the activation log is automatically displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other Options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can enter an explanatory text for the table type with Goto ® Documentation. This is purely technical documentation that is not displayed in the online help system. &lt;/P&gt;&lt;P&gt;You can display the runtime object of the table type with Utilities ® Runtime object ® Display. With Utilities ® Runtime object ® Check you can check if the runtime object of the table type is consistent with its definition in the maintenance screen of the ABAP Dictionary.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Key Definition of a Table Type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a table type is defined, the key to be used for the table type must be specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have the following options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Standard key: The structure of the key depends on the row type category. In a structured row type, the standard key consists of all the character-like components of the table row. In an elementary row type or reference type as row type, the standard key consists of the entire table row. If the row type is a table type, the standard key is empty. Note that an empty key is only allowed for access mode Standard table. &lt;/P&gt;&lt;P&gt;Row type: The key consists of all the fields of the row type. &lt;/P&gt;&lt;P&gt;Key components: The key is explicitly defined by selecting components (fields) of the row type. This is only possible if a structure, table or view was selected as row type. &lt;/P&gt;&lt;P&gt;Key not specified: The key is not specified. This defines a generic table type.&lt;/P&gt;&lt;P&gt;Access Mode &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The access mode defines how to access the data in the internal table defined by the table type when performing key operations (READ TABLE, INSERT TABLE, MODIFY TABLE, COLLECT). In particular, it defines whether key accesses (see Keys of Table Types) to the internal table are allowed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible access modes are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Standard table:&lt;/P&gt;&lt;P&gt;The key access to a standard table uses a sequential search. The time required for an access is linearly dependent on the number of entries in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should usually access a standard table with index operations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorted table:&lt;/P&gt;&lt;P&gt;The table is always stored internally sorted by its key. Key access to a sorted table can therefore use a binary search. If the key is not unique, the entry with the lowest index is accessed. The time required for an access is logarithmically dependent on the number of entries in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Index accesses to sorted tables are also allowed. You should usually access a sorted table using its key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hash table:&lt;/P&gt;&lt;P&gt;The table is internally managed with a hash procedure. All the entries must have a unique key. The time required for a key access is constant, that is it does not depend on the number of entries in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot access a hash table with an index. Accesses must use generic key operations (SORT, LOOP, etc.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Index table:&lt;/P&gt;&lt;P&gt;The table can be a standard table or a sorted table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Index access is allowed to such an index table. Index tables can be used to define the type of generic parameters of a FORM (subroutine) or a function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not specified:&lt;/P&gt;&lt;P&gt;The table can be a standard table, a sorted table or a hash table. The set of valid operations on such a table is the intersection of the valid operations for these three access modes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot access tables of this type with index operations.&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 Index table or Not specified is selected for the access mode, a generic table type that cannot be used to define data objects or types in programs is created&lt;/P&gt;&lt;P&gt;Generic Table Types &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A generic table type does not define all the attributes of an internal table in the ABAP Dictionary; it leaves some of these attributes undefined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A table type is generic in the following cases:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Index table or not specified is selected for the access type, &lt;/P&gt;&lt;P&gt;Not specified is selected for the key definition, &lt;/P&gt;&lt;P&gt;Not specified is selected for the key category.&lt;/P&gt;&lt;P&gt;Generic table types are used to define the types of generic table parameters in function modules and forms.&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 a generic table type with the index table access type is used as the parameter of a function module, you can pass either a sorted table or a standard table in the call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generic table types offer a degree of freedom in the arguments passed in the corresponding calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since generic table types do not define all the necessary attributes of an internal table, they cannot be used to define data objects (with DATA) or types (with TYPE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranges Table Types &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A ranges table type is a special case of a table type. A ranges table type describes the structure of an internal table for administering complex areas, i.e. the type of an internal ranges table in the ABAP program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ranges tables can be used for example in logical conditions (IN operators) in the SELECT, IF, WHILE and CHECK statements or to pass data to selection tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The row type of a ranges table type has a fixed structure. The row type consists of the 4 components SIGN (sign), OPTION (comparison operator), LOW (lower limit) and HIGH (upper limit) in this order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The type of components LOW and HIGH is defined by an elementary associated type. It can be defined by specifying a data element or by directly defining the data type, number of places and if necessary the number of decimal places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A ranges table type always has Standard table access mode and a standard key that is non-unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating Ranges Table Types&lt;/P&gt;&lt;P&gt;Creating a Ranges Table Type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the initial screen of the ABAP Dictionary, enter the name of the ranges table type in field Data type and choose Create. &lt;/P&gt;&lt;P&gt;A dialog box appears in which you must select the type category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Table type and choose . &lt;/P&gt;&lt;P&gt;The maintenance screen for table types appears.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter an explanatory short text in the field Short text. &lt;/P&gt;&lt;P&gt;You can for example find the ranges table type at a later time using this short text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose Edit ® Define as ranges table type. &lt;/P&gt;&lt;P&gt;You go to the maintenance screen for ranges table types. The access mode, key definition and key category are defined in advance for a ranges table type, so you do not need to define them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To define the ranges table type, you only have to specify an elementary type for the types of the LOW and HIGH components of the corresponding row type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to define the types of the LOW and HIGH components using an existing data element, you must select Data element and enter the name of the data element in the subsequent field. You can also enter the name of a data element that does not yet exist and go directly to the data element maintenance screen by double-clicking to create it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also define the elementary type of the LOW and HIGH components directly. Select Built-in type. You can now enter values for fields Data type, Number of places and Decimal places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now enter a name for the row type of the ranges table type in field Structured row type. &lt;/P&gt;&lt;P&gt;A ranges table type must have a row type, just like any other table type. This row type always has a fixed structure for the special case of ranges table types. You can therefore generate the row type from the maintenance screen of the ranges table type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save your entries. &lt;/P&gt;&lt;P&gt;You are asked to assign the ranges table type a development class. If needed, you can change this development class later with Goto ® Object directory entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose Create. You can generate the row type of the ranges table type with this function. &lt;/P&gt;&lt;P&gt;The maintenance screen for structures is displayed. The components of the row type are already assigned based on your definition of the associated type for the LOW and HIGH components. You only have to enter a short text for the row type and Activate it. Then choose Back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose .&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ranges table type is now activated. The runtime object of the type is created. At activation, a log is written; it can be displayed with Utilities ® Activation log. If errors occurred during activation, the activation log is displayed immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward all helpfull answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        sunil kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 12:05:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/2056112#M424494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-28T12:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Table type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/2056113#M424495</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;already explained:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the table type defines an internal table, not just a structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use table types for typing IMPORT, EXPORT and CHANGING parameters of function modules (and FORMs and METHODs) if you want to pass an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With OO, parameter kind TABLE is obsolete, so we need it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2007 12:08:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-type/m-p/2056113#M424495</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-03-28T12:08:50Z</dc:date>
    </item>
  </channel>
</rss>

