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: 
Read only

What are difference between domain and data element?

Former Member
0 Kudos
2,590

Hi,

Difference between domain and data element? What are aggregate object?

Regards,

Kishore

1 ACCEPTED SOLUTION
Read only

Former Member
0 Kudos
919

Hi,

Domain - Specifies the technical attributes of a data element - its data type, length,

possible values, and appearance on the screen. Each data element has an underlying

domain. A single domain can be the basis for several data elements. Domains are objects

in the ABAP Dictionary.

Data Element - Describes the business function of a table field. Its technical attributes are

based on a domain, and its business function is described by its field labels and

documentation.

Aggregate Object – Views, Match Code and Lock objects are called aggregate objects

because they are formed from several related table.

Best Regards,

Bansidhar

6 REPLIES 6
Read only

Former Member
0 Kudos
919

Hi,

Domain provides technical attributes for field like data type, length, and possible value range.

Data element provides business context. i.e., it provides field labels for the field in the backend,

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.

Regards,

Priyanka.

Read only

Former Member
0 Kudos
919

Hey Kishore,

Please Try to search in Forums before you post a question..

No duplicates please..

regards,

nazeer

Read only

Former Member
0 Kudos
919

Domain gives the Technical Attributes like Data type and the Size

Ex: (Char 20)

Data Element gives Semantic attributes like Field Description or Field Label in the Front End.

LFA1-LIFNR

A: Data element

ABAP/4 Development Workbench (BC-DWB)

A data element describes the contents of a field. For example, a data element contains the F1 help texts and the key

word texts (field texts) for displaying the field on the screen.

Several table fields with identical contents can refer to the same data element.

Several fields with the same technical attributes can refer to the same domain. In this case, each of these fields has the technical attributes specified in this domain.

I hope it helps.

Best Regards,

Vibha

<b>*Please mark all the helpful answers</b>

Read only

former_member784222
Active Participant
0 Kudos
919

Hi,

Domain stores the common characteristic of a collection of fields.

For eg. Address. All the address for customer, company, vendor... all have the same defined length, same list of possible values.

Data element is particular to given module.

For eg, DataElement custaddress may be derived from domain address,

DataElement vendaddress may be derived from domain address.

All have the same length, but the description given for the data element is different.

Further more search help can be attached to data element for module specific values.

Check tables and domain values are attached to domain level characteristic.

eg Approval status (A-approved, R-rejected, C-cancelled).

Thanks and regards,

S. Chandra Mouli.

Read only

Former Member
0 Kudos
920

Hi,

Domain - Specifies the technical attributes of a data element - its data type, length,

possible values, and appearance on the screen. Each data element has an underlying

domain. A single domain can be the basis for several data elements. Domains are objects

in the ABAP Dictionary.

Data Element - Describes the business function of a table field. Its technical attributes are

based on a domain, and its business function is described by its field labels and

documentation.

Aggregate Object – Views, Match Code and Lock objects are called aggregate objects

because they are formed from several related table.

Best Regards,

Bansidhar

Read only

Former Member
0 Kudos
919

hi,

when u try to cretae a user define tables then u come accross data element n domain.

data element contains domain.

dat element gifve sthe description abt the field n domain gives the technical characteristics abt a field ..it tell us if it is an integer or character etc....