Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Reg : Table Type

Former Member
0 Likes
1,437

Hi All,

can anyone tell me

What does table type mean?

Why table type is used?

What are the advantages of using Table Type?

Regards,

Chandra Prakash

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,034

Table types are construction blueprints for internal tables that are stored in the ABAP Dictionary. When you create a table type in the ABAP Dictionary, you specify the line type, access type, and key. The line type can be any data type from the ABAP Dictionary, that is, a data element, a structure, a table type, or the type of a database table. You can also enter a predefined Dictionary type directly as the line type, in the same way that you can with a domain.

In an ABAP program, you can use the TYPE addition to refer directly to a table type.

For example,

See table type LB_T_BIL_HD_ADR in SE11 used in structure LBBIL_INVOICE.

Line type is LBBIL_HD_ADR.

Access type is Sorted table

Key category is Non-unique with key components BIL_NUMBER, PARTN_ROLE & PARTN_NUMB

5 REPLIES 5
Read only

Former Member
0 Likes
1,034

Hi,

Table Types

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 <inttab> TYPE TTYP. An internal table <inttab> is created in the program with the attributes defined for TTYP in the ABAP Dictionary.

A table type is defined by:

its line type, that defines the structure and data type attributes of a line of the internal table

the options for managing and accessing the data ( access mode) in the internal table

the key ( key definition and key category) of the internal table

The row type is defined by directly entering the data type, length and number of decimal places or by referencing a data element, structured type ( structure, table or view) or other table type. Or the row type can be a reference type.

Table type TABTYPE shown in the graphic can be used with the statement DATA <name> TYPE TABTYPE in ABAP programs to define an internal table <name>.

A local type <name> that takes on the attributes of type TABTYPE can be defined in the program with TYPES <name> TYPE TABTYPE.

Reward if Helpful

Read only

Former Member
0 Likes
1,035

Table types are construction blueprints for internal tables that are stored in the ABAP Dictionary. When you create a table type in the ABAP Dictionary, you specify the line type, access type, and key. The line type can be any data type from the ABAP Dictionary, that is, a data element, a structure, a table type, or the type of a database table. You can also enter a predefined Dictionary type directly as the line type, in the same way that you can with a domain.

In an ABAP program, you can use the TYPE addition to refer directly to a table type.

For example,

See table type LB_T_BIL_HD_ADR in SE11 used in structure LBBIL_INVOICE.

Line type is LBBIL_HD_ADR.

Access type is Sorted table

Key category is Non-unique with key components BIL_NUMBER, PARTN_ROLE & PARTN_NUMB

Read only

Former Member
0 Likes
1,034

Hi,

Table types are similer to internal tables, which can be created in data dictionary so that it can be used by many programs.

These are specially helpful while using unicode enabled SAP systems.

To create table types, go to SE11 and select Data Type.

First you need to create a line type/structure and then you can refer it while creating a table type.

hope this will help you.

regards,

Sreenivasa Reddy Vallem

Read only

prasanth_kasturi
Active Contributor
0 Likes
1,034

Hi,

Table Types

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 <inttab> TYPE TTYP. An internal table <inttab> is created in the program with the attributes defined for TTYP in the ABAP Dictionary.

A table type is defined by:

its line type, that defines the structure and data type attributes of a line of the internal table

the options for managing and accessing the data ( access mode) in the internal table

the key ( key definition and key category) of the internal table

The row type is defined by directly entering the data type, length and number of decimal places or by referencing a data element, structured type ( structure, table or view) or other table type. Or the row type can be a reference type.

Table type TABTYPE shown in the graphic can be used with the statement DATA <name> TYPE TABTYPE in ABAP programs to define an internal table <name>.

A local type <name> that takes on the attributes of type TABTYPE can be defined in the program with TYPES <name> TYPE TABTYPE.

Reward if Helpful

prasanth

Read only

Former Member
0 Likes
1,034

Hi Chandra,

I have seen your reply for sending a mail as an attachment posted on mar 2nd.

I am having one query on this.

The program which are created' using below function modules. RSPO_OPEN_SPOOLREQUEST'

This program is working fine.I am receiving mail with an attachement. While opening that attachemnt I am getting an erroe that This file does't contain any pages.

I s this program working fine.

Sorry for sending message through this thread. Because I con't send in another way.

Thanks and Regards,

vinod