‎2006 Dec 13 5:58 AM
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
‎2006 Dec 13 6:15 AM
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
‎2006 Dec 13 6:15 AM
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
‎2006 Dec 13 6:18 AM
Another use of it is to have a table defined inside a structure.
‎2006 Dec 13 6:18 AM
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.
‎2006 Dec 13 6:27 AM
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