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

Data Element Data Type and Length

Former Member
0 Likes
3,162

Hi,

If 2 data elements have the same domain (for eg BNAME), does that mean that the data elements have the same data type and length?

Thanks in advance.

Peter

10 REPLIES 10
Read only

Former Member
0 Likes
1,937

Yes, that will have the same data type and length

Read only

Former Member
0 Likes
1,937
Fields--->DATA ELEMENTS--->Domain

This is the Architecture of Fields

So domains Beings at Lowest Level can be used by many Data Elements .

SO THEY HAVE SAME DATA TYPE AND LENGTH

Regards,

Gurpreet

Read only

former_member156446
Active Contributor
0 Likes
1,937

Hi

Yes, if you want to validate the data.. look for number of characters it can accommodate etc.... any of the data elements can be used. I value table and the value ranges are attached at the domain level.

Read only

MarcinPciak
Active Contributor
0 Likes
1,937

Hi Peter,

Domain describes technical attributes (type, length, possible value range) of data element which uses it. Conversely data element describes semantic attributes of the table field which uses it (these are label, input help used via search help).

In DDIC, if certain table uses data element, it inherits technical attributes from its domain and semantic ones from data element.

In program, on the other hand, when you declare field of data elemnt type, it inherits only its techical attributes (domain attributes). It is because in program no semantic exists.

Regards

Marcin

Read only

Former Member
0 Likes
1,937

Hi,

One Domain can be linked with multiple number of Data Elements, in the same way one Data elements can be linked with multiple fields.

Regards

Read only

0 Likes
1,937

Thanks for all your replies.

Is it a good practise to have multple Z data elements on the same domain? Why cant we reuse the same Z data elements?

Regards,

Peter

Read only

0 Likes
1,937

Hi,

It depends on the scenarios,

DATA ELEMENT gives you the business meaning of the field you use in the table, hence it would not make any sense to use the data element of URL field in SCARR to another URL field in links for some other table.

At the data element level we actually give the meaning of what exactly the field is all about.

if more than one field has the same business meaning then you should use the one you have already created....

Regards,

Siddarth

Read only

0 Likes
1,937

Hi Peter,

Simply beacuse couple fields may require different semantics for same data type and lenght. I.e. two fields City to and City from would require different lables (as their names) but same data type and length. Moreover the user could pick same cities for both, but they would state for something different. Here value table in domain level (used for foreign key) would descirbe which cities are allowed, but data element would state for their labels.

So the answer is YES. This is common practices and good one.

Regards

Marcin

Read only

0 Likes
1,937

the lesser the Zdevelopment... more easy at the time of upgradation... if its mandatory to create go ahead... else you can use the old one...

Read only

Former Member
0 Likes
1,937

Closing this questions as there are no further answers