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

Abt Table Types

Former Member
0 Likes
598

Hi All ,

I am not getting that where Table Types can be used in ABAP Program,

Searched for Eg. but could'nt get it.

I want an Eg. which can clear its purpose practically.

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
538

Hi ,

One common use of table types is to define a table as an attribute in a class.

So if you want an internal table as an attribute in a class you need to first define a table type , which contains the field of the internal table and then use this table type in the attributes to define an internal table in the class.

Regards

Arun

4 REPLIES 4
Read only

Former Member
0 Likes
539

Hi ,

One common use of table types is to define a table as an attribute in a class.

So if you want an internal table as an attribute in a class you need to first define a table type , which contains the field of the internal table and then use this table type in the attributes to define an internal table in the class.

Regards

Arun

Read only

Former Member
0 Likes
538

Another use of it is to have a table defined inside a structure.

Read only

Former Member
0 Likes
538

Hi,

Lets say u created a table type in se11,

Now whole declaring in e38 just say

data : t_itab type <table_type_name>.

U need not give type standard table of OR occurs statement.

Regards,

Vaibhav B Gawali.

Read only

Former Member
0 Likes
538

As our friends have discussed about Programs, i would discuss w.r.t FM's.

Generally the Importing/Exporting Parameters will be of type Variables or structures. Using an object of table type we can represent them as a table in FM's.

Consider FM: <b>READ_PROGDIR</b>. Exporting Parameter: E_PROGDIR_TAB is of table type: PROGDIR_TAB.

But i personally feel, the best usage of table types comes in Object Oriented Programming.

Hope this helps you a bit in understanding...

Kind Regards

Eswar