‎2008 Jun 12 1:34 PM
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?
‎2008 Jun 12 1:40 PM
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
‎2008 Jun 12 1:37 PM
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
‎2008 Jun 12 1:38 PM
Hi,
Its because of reusability. Although quite a good question.
Thanks,
Kartavya Kaushik.
‎2008 Jun 12 1:40 PM
I wud like to ask the same question with LINETYPE.. where we have STRUCTURE concept both in ABAP program as well as DD?
‎2008 Jun 12 1:40 PM
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
‎2008 Jun 12 1:41 PM
Hi SRK,
I agree with kartavya.
It is more for reusability
we can take example of SLIS
standard type pool for ALV.
Regards,
Aniruddha
‎2008 Jun 12 1:43 PM
Apart from Reusablility, I learnt a new point from Sameer.. i will try this..