Skip to Content
author's profile photo Former Member
Former Member

Information about Table Type

Hi Guys,

What does Table Type mean?

What are uses of Table Type?



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Nov 30, 2007 at 06:05 AM




    A table type is the data type of an internal table. It defines row type, table category, and table key of an internal table. The table can be generic regarding the key. A table type can be defined wit TYPES in an ABAP Program or in the ABAP Dictionary. In ABAP Dictionary, a table type must not be mixed up with database tables. The data type behind a database table is not a table type but a flat structure.

    You can define a table type in your program something like this:

    types: begin of tt_tab,



    end of tt_tab,

    ttt_tab type tt_tab occurs 0.

    data: lt_tab type ttt_tab.

    FOR USING IT IN SMARTFORM U HAVE TO DECLARE IT IN DATABASE(IE,CREATE IN se11) .unless u create it u cannot include in the interfac e definition of smartform.

    And also check the below link for more information:

    Please reward points if helpful.

    Thank you.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 06:07 AM

    DATA: it1_mara type standard table of mara.

    with header line and occurs 0 are forbidden on OO ABAP...Internal tables shouldn't have header lines...

    When Initial it's because there's no record inside the table...Also, it have been created but nothing attached to it -:)

    Add a comment
    10|10000 characters needed characters exceeded

    • In the data dictionary, you have data elements and structures, which you can use as types in your ABAP program. If you want a table of particular structures or data element, you can also define this in the data dictionary as a table type, and you can define your variable in ABAP as one of these types.

      The table types defined in the data dictionary have exactly the same attributes as table types defined in ABAP. They can be STANDARD, HASHED, SORTED, and you can define that they have unique or non-unique keys, including TABLE_LINE keys.

      STRING_TABLE is one standard SAP table type. If you define

      DATA: lt_str TYPE string_table.

      Then lt_str will be a STANDARD table of type STRING, with non-unique standard key.

      The advantage of table types is that you can use them as parameters of Forms, methods, function modules etc. all defined in the data dictionary.


  • Posted on Nov 30, 2007 at 09:23 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 09:27 AM


    Analogous to the predefined ABAP types such as C or I , one may define user-defined types in the dictionary.

    The following user-defined types are allowed

    Data elements: Describe an elementary type by defining the data type, length and possibly decimal places.

    Structures: Consist of components that can have any type.

    Table types: Describe the structure of an internal table.

    Elaboration on the type categories.

    There are three different type categories in the ABAP Dictionary:

    Data elements (elementary types) Elementary types have no structure. They describe the data type attributes (such as given Dictionary data type, number of places) and information that is relevant for the screen (such as title) of unstructured data objects (variables/fields).

    Structures (structured types) Structured types describe the structure and functions of any structured data objects, that is of data structures with components of any type. A component can be a field with an elementary type or can itself be a structure. A table can also be used as a component in a structure. A database table always has a structure and is therefore implicitly a structured type. However, the fields of a database table can only have an elementary type.

    Table types Table types describe the structure and functions of internal tables in the ABAP program. Their rows can have any row type. Table types with elementary row type therefore can be defined just the same as multi-dimensional table types (table types with a table type as row type) or table types using structures with table-like components.

    Any complex user-defined type may be built using the

    previously mentioned basic types.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.