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

Table type

Former Member
0 Likes
753

if we can create a internal table in the ABAP program then what is the need of TABLE TYPE in Data dictionary..

What exactly it is meant for?

Since, table type is like the body of an internal table then what extra purpose this TABLETYPE in DD serves?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
733

Hi srk,

Apart from the general advantages of having a declaration in the DDIC.

there is one use of table types that I can think of.

When we declare a tables parameter in a FM, an internal table with a header line gets created.

But if we happen to declare an importing / exporting parameter refering to a table type, then an internal table without header line will get created.

Regards,

Sameer

6 REPLIES 6
Read only

GauthamV
Active Contributor
0 Likes
733

hi,

internal tables r used in abap programs at the runtime so that thy will carry the data required.

but table types r defined in dd to store some data in form of variables.

table types :

Semantic domain. A data element describes the role of a (technical) domain in a certain business-oriented context for the fields on which it depends and defines how thse fields are displayed on the screen.

Examples

Different roles, that is data elements, are possible for the domain "cost center", depending on the application.

Cost center

Sending cost center

Receiving cost center

Responsible cost center

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Jun 12, 2008 2:10 PM

Read only

Former Member
0 Likes
733

Hi,

Its because of reusability. Although quite a good question.

Thanks,

Kartavya Kaushik.

Read only

Former Member
0 Likes
733

I wud like to ask the same question with LINETYPE.. where we have STRUCTURE concept both in ABAP program as well as DD?

Read only

Former Member
0 Likes
734

Hi srk,

Apart from the general advantages of having a declaration in the DDIC.

there is one use of table types that I can think of.

When we declare a tables parameter in a FM, an internal table with a header line gets created.

But if we happen to declare an importing / exporting parameter refering to a table type, then an internal table without header line will get created.

Regards,

Sameer

Read only

Former Member
0 Likes
733

Hi SRK,

I agree with kartavya.

It is more for reusability

we can take example of SLIS

standard type pool for ALV.

Regards,

Aniruddha

Read only

Former Member
0 Likes
733

Apart from Reusablility, I learnt a new point from Sameer.. i will try this..