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: 

Why we can't refer domain as data object

Former Member
0 Kudos

Hi

we can refer dataelement as data object i mean to say

data kunnr1 type char10.

But why we can't refer domain like that means

data kun1 type text16.

here text16 is the domain and char10 is the dataelement.

please give some exact answer to this.

regards

venkat

8 REPLIES 8

matt
Active Contributor
0 Kudos

The absolute, precise and exact answer is:

Because SAP designed it like that.

hth

matt

Former Member
0 Kudos

Hi

mathew

Thankyou for your answer.I have satisfied with your answer.

But can we know why it has designed like that.

thanks and regards

venkat

matt
Active Contributor
0 Kudos

>

> Hi

> mathew

> Thankyou for your answer.I have satisfied with your answer.

> But can we know why it has designed like that.

> thanks and regards

> venkat

Probably, like many things in SAP, because it seemed like a good idea at the time!

Domain in other contexts relates to values. You can have many data elements on one domain. As a result, in conceptual terms, a domain is more general than a data element. There are type checks at data element level - like with Function Modules parameters - that the types are correct. If they're of different domains, they're not the same type. Hence it wouldn't make sense to be able to define a data object with reference to a domain.

maybe

Former Member
0 Kudos

H Venkatesh,

Note that dataelement is for the description of the field and domain is for just defining the technical attributes of the fields.

Hope you got the answer.

Cheers!!

Former Member
0 Kudos

Hi,

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.

It defines technical attribute of a field like value/base table , data type , length, value range.It can be reused.

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. It defines semantic attributes of a field like description text (label) , domain , F1 Documentation.

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.

data element is described by domain. and we can use the domain in many dataelements.

regards

Thirumaran k

shadow
Participant
0 Kudos

Hi,

*Data Element: *it describe how a field can be display to end user.

Domains: using domain screen sap system maintain datatype and length of the field.

Regards

shaik.

Former Member
0 Kudos

Hi Venkat,

U know we can deifne domain also. It will give F4 functionality

on selection screen.

And domain hold the memory why should we load our program by using this? If we use data element it will hold memory only at run time so it will avoid load . That's whay we are using domain diretly in our program for performance issues.

Hope u got it.

Regards,

Pravin

Former Member
0 Kudos

Hi Venkat,

U know we can deifne domain also. It will give F4 functionality

on selection screen.

And domain hold the memory why should we load our program by using this? If we use data element it will hold memory only at run time so it will avoid load . That's whay we are using domain diretly in our program for performance issues.

Hope u got it.

Regards,

Pravin