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: 

what is the reason for existance of domain dataelement and table seperate

Former Member
0 Kudos

what is the reason for existance of domain dataelement and table seperate

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

1) according to the definition...

domain gives the techincal attributes of the data object.

( techincal attributes - data type , length , decimal places, uppercase or lowercase etc...)

data element gives the descriptional attributes of the data object.

( descriptional attributes - The business functionality of the object )

2)

One data element can have onli one domain...

One domain can be attached to no .of data elements..

The best example is..

suppose say in your Organization .. employee id's will be there..

for this suppose say u have created a domain of TYPE CHARACTER and LENGTH 5. ( the value ranges are Z0000 to Z9999 )

and u have attached this to a data element .. at this data element level u will give the business functionality of the object.. say the description is Employee ID.

and you will have Departments in your organization ..

for this suppose say u are using the same domain that u have used for User ID's... but using different series of numbers.. ( A0000 to A9999 )

now u will assign this domain to another data element .. for this data element the desctiption is Department ID.

so u have used the same domain for different data elements, which different business functionalities....

**********************************************

The main advantage of these data elements and domains is the Maintainability ( using the same multiple times )

5 REPLIES 5

Former Member
0 Kudos

hi,

1) according to the definition...

domain gives the techincal attributes of the data object.

( techincal attributes - data type , length , decimal places, uppercase or lowercase etc...)

data element gives the descriptional attributes of the data object.

( descriptional attributes - The business functionality of the object )

2)

One data element can have onli one domain...

One domain can be attached to no .of data elements..

The best example is..

suppose say in your Organization .. employee id's will be there..

for this suppose say u have created a domain of TYPE CHARACTER and LENGTH 5. ( the value ranges are Z0000 to Z9999 )

and u have attached this to a data element .. at this data element level u will give the business functionality of the object.. say the description is Employee ID.

and you will have Departments in your organization ..

for this suppose say u are using the same domain that u have used for User ID's... but using different series of numbers.. ( A0000 to A9999 )

now u will assign this domain to another data element .. for this data element the desctiption is Department ID.

so u have used the same domain for different data elements, which different business functionalities....

**********************************************

The main advantage of these data elements and domains is the Maintainability ( using the same multiple times )

Former Member
0 Kudos

Hi,

You can reuse domains in different data elements and you can reuse dataelements in Different tables.

A domain is a repositary object that describes properties of data elements, such as data type, value range, and so on. A domain can be linked with an arbitrary number of data elements.

Data element - In addition to the technical type attributes, it also describes the semantic meaning.

Regards,

Shruthi R

Former Member
0 Kudos

Hi,

Domain acts as a central object for describing the technical attributes of an object(eg: value range)

Data element describes the semantic definition, like description, how a field to be displayed and so. While creating variables in our program we can create it directly with respect to refering the data element.

We can use one dataeleemnt created in multiple tables which we are creating, that is why they seems to be seperately in existence.

The table in ABAP dictionary is just a reflection of the data stored in the underlying database used with SAP.

<b>please reward if found helpfull</b>

Regards,

Rakesh.

Former Member
0 Kudos

hi santhosh,

Domain tells u about the technical attributes of the created data object.

Data Elemnt tells u about the general description of the data object.

the reason behind the seperate existance of these is <b>REUSABILITY</b>.

domain and data element can be reused any nmber of times when u create

ZTABLES(user defined tables).so no need of creating new domain and data element whenever u create a table.just call these domains and data elements.

u can save time by reusing these.

Regards,

Prajith

0 Kudos

how do i know if a domain with such charecteristics or attribute exists if i wasnt the one who created it ........iam new sorry if questions are silly