Skip to Content
avatar image
-2
Former Member

Does table typein ABAP has some database attached to it?

I read somewhere in the web that "a table type has some database attached to it, whereas the structure is only a definition with NO DATABASE attached to it." Is that true?

Please share your views.

Thanks & Regards

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Aug 05, 2017 at 09:24 AM

    It's well known that taking a sentence out of its context may completely change its meaning. So please give the link where you found the context. Please also explain what you know, what you think, why does it disturb you?

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 06, 2017 at 10:20 AM

    No, it is not true. See the following documentation to get a clear concept regarding the meaning of the terms table type, structure and database table (short table) in the ABAP Dictionary.

    https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abenddic_classical_objects.htm

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 16, 2017 at 12:54 PM

    Hello,

    It may be a confusion with statement TABLES.

    In "classic" programs, using "TABLES TableName." is the same as "DATA tableName type table of tableName with header-line."

    But in NODES context (still a lot used in HR/HCM with PNP and PNP_CE) it's still mandatory to use TABLES as it create an interface between selection-screens, dynpros and, virtually, database. It's hard to explain it because ABAP evolved a lot since and this feature is still used (because we have no choice) without knowing exactly how it works.

    That's how "table type attached to database" can be understood by non english native speaker like me.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 16, 2017 at 12:21 PM

    What is a structure type? In ABAP programs, you define it as:

    TYPES:
      BEGIN OF structure,
        col1 TYPE i,
        col2 TYPE i,
      END OF structure.
    

    What is a table type? In ABAP programs, you define it as:

    TYPES itab TYPE TABLE OF structure.

    In the ABAP Dictionary the meaning of structured type (aka structure) and table type are exactly the same. The difference to programs is that dictionary types are visible in all programs. That has nothing, absolutely nothing to do with database tables.

    Add comment
    10|10000 characters needed characters exceeded