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

about data element :

Former Member
0 Likes
1,866

why data element concept used in abap??we can define the characteristics of fields directly. why we need to create data element first to create domain?what is it's advantage?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,663

Hi

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.

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.

if you declare the fileds directly with out declaring data element and DOMAIN but the problem is if you want to upgrade the vertion then at that time built in type data types won't transport to new vertion where as data element and domain can transport very easily

8 REPLIES 8
Read only

Former Member
0 Likes
1,663

hi,

Data element is mainly used to declare the field lable and to create documentation for a particular field....bcoz for a particular field the label and documentation may vary but v can use the domine in general thats y we r creating it seperatly.

Thanks.

Arunprasad.P

Reward if useful.

Read only

Former Member
0 Likes
1,663

Hi,

  • data elements are used to create relation between tables.

  • data elements are used to transfer the data from one R/3 to another R/3.

  • to create search helps

with regards,

sowjanyagosala.

Read only

Former Member
0 Likes
1,663

Hi Ankita,

The main adv. of data element is reusability. If a data element is created once, it can be reused across many declarations in various objects.

And if u want to change the data element definition in all the objects where it is used, For ex, change the username from 10 to 20 characters, u just have to change the defination in se11. It will be updated in all the objects where it is being used.

If you have used a different data element for all the 'username' fields, you manually have to go to each object and change the definition.

Hope u got it.

Thanks,

Srinivas Kamireddy.

Read only

Former Member
0 Likes
1,663

Hi Ankita

See the uses of DATA ELEMENT

we can have fieldlabels, documentation, parameterIDs and in addition, it holds Check Table for a field at dataelement level.

Checktable in the sense it relates two tables with foreignkey relationship, whereas valuetable is given at domain level.

And through dataelement, we can have type-groups with tabletypes and linetypes declared........

If you feel this helps you, do reward

Thanks

Suren

Read only

Former Member
0 Likes
1,663

Hi Ankita,

We can create domain without creating data element.

The main reason is reusability. We can use The same domain for different data element.

Regards

Sandipan

Read only

Former Member
0 Likes
1,663

Hi,

Data Element is mainly used for giving short description for the field

-->the main concept behind this is reusability.

i.e., for any no. of fields omly one dta element is used.

regards,

vineela.

Read only

Former Member
0 Likes
1,664

Hi

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.

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.

if you declare the fileds directly with out declaring data element and DOMAIN but the problem is if you want to upgrade the vertion then at that time built in type data types won't transport to new vertion where as data element and domain can transport very easily

Read only

Former Member
0 Likes
1,663

Hi,

The major advantages are:

Data element: Search Help with required parameter ID, Defalut component name and

Change document(This has major role in case want to keep track of changes done to the required field)

Domain: Output characteristics. i.e. Output length and Conversion routine i.e. you can append leading zeros or remove zeros from the number automatically.

Sign and Lower case are also imprtant parameters.

Please reward if useful.

Regards,

Ramesh