Application Development 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: 

Why we create data element in table creation?

Why we create data element in table creation,

if we can create data element by using predefined tab in table creation.

So why it is necessary to create data element while table creation?

1 ACCEPTED SOLUTION

maheshpalavalli
Active Contributor
0 Kudos

Pre defined tab provides very basic function for a column in a table. Uses of data element:

1. It provides different texts -> small, medium, Large => automatically picked in SAP ALV based on column size. This also provides translations for different languages.

2. It provides conversion exit which is again liked to domain.

3. You can define a search help.

4. Most importantly it provides re usability where all above will be reused in different table which is very important and a crucial part in any project.

I know there are much more to discuss, but I will leave those up to you to explore as you can find much more documentation in ABAP help which you should read.

Best Regards,
Mahesh

3 REPLIES 3

maheshpalavalli
Active Contributor
0 Kudos

Pre defined tab provides very basic function for a column in a table. Uses of data element:

1. It provides different texts -> small, medium, Large => automatically picked in SAP ALV based on column size. This also provides translations for different languages.

2. It provides conversion exit which is again liked to domain.

3. You can define a search help.

4. Most importantly it provides re usability where all above will be reused in different table which is very important and a crucial part in any project.

I know there are much more to discuss, but I will leave those up to you to explore as you can find much more documentation in ABAP help which you should read.

Best Regards,
Mahesh

0 Kudos

Sir I told them interview that

Data element describe the business logic and sementric attribute of table field that way it is used.

Is it wrong?

0 Kudos

It will not describe the business logic, but only provides the attributes to a table field.