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: 

Difference between Data Element and domain

Former Member
24,212

Hi,

Can anybody give me the exact information for data element and domain.

Thanks,

Sriram.

1 ACCEPTED SOLUTION

Former Member
7,323

Hi Poornima,

Domains:

Domain is the central object for describing the technical characteristics of an attribute of an business objects. It describes the value range of the field.

Data Element:

It is used to describe the semantic definition of the table fields like description the field. Data element describes how a field can be displayed to end-user.

Regs,

Venkat Ramanan

7 REPLIES 7

Former Member
7,320

Data type :

A data element is an elementary type. It describes the type attributes (data type, field length and possibly the number of decimal places) and screen information (explanatory text or field help) about unstructured data objects (table fields and structure fields or variables).

Table fields and structure fields with the same contents should refer to the same data element. This ensures that the attributes of these fields are always consistent.

A data element can be referenced in ABAP programs with TYPE. This permits you to define variables that take on the type attributes of the data element in an ABAP program.

Domain :

A domain describes the technical attributes of a field, such as the data type or the number of positions in a field. The domain defines primarily a value range describing the valid data values for the fields referring to this domain.

Different technical fields of the same type can be combined in a domain. Fields referring to the same domain are changed at the same time when a domain is changed. This ensures the consistency of these fields.

Additional info about data element

1.Data type, number of places and possibly the decimal places were entered directly. In this case the field is not filled.

2.A data element is assigned to the field. The field then gets its data type, length and possibly decimal places from this data element. The semantic attributes of the element (field help, representation of the field in input templates with keyword text, column headers for list output of the table contents and editing of the output with parameter IDs) are also copied.

Message was edited by: Venkat

Former Member
7,320

Hi Sriram

Difference:

Data element contains the business and technical information about a field. It contains Data type, length, field labels. Data element can contain a domain within it for type and length information instead of 'built-in type' and we can also associate search help with Data Element.

Domain contains only technical information about a field like type, length (and decimal places).

Regards

Ashish Jain

VijayasekarK
Active Participant
7,320

Hi ,

Domain represents technical details and data element

represents business terms.

vijay

Former Member
7,320

Hi,

Both are used to describe field properties.

Domain : Define o/p width, technical data type and value range

Data element : You can define further characteristics i.e. search help,PID.. and field lables.

In nut-shell, Domain act as parent. Data element would be child which can inherite domain properities as such, have more unique advantages.

If you need further informatin Goto->SAP help documentation.

/karthikeyan

Former Member
7,324

Hi Poornima,

Domains:

Domain is the central object for describing the technical characteristics of an attribute of an business objects. It describes the value range of the field.

Data Element:

It is used to describe the semantic definition of the table fields like description the field. Data element describes how a field can be displayed to end-user.

Regs,

Venkat Ramanan

Samar_05
Explorer
0 Kudos
515

Domain – It defines the technical attributes of a field, such as data type, length, and value range.

Data Element – It defines the semantic meaning and also includes the technical attributes of a field.