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: 

what is the main use of domain other than providing technical attributes

Former Member
0 Kudos

frends let me know what is the main use of domain other than providing technical attributes

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi RajaReddy,

Domains are used to

<b><u>1. specify fixed value ranges.</u></b>

For eg: <b>status type Char 1</b>, can have fixed values stored in the domain level

as '1' - Active '2' - retired '3' - terminated '4'- temporary..etc

<u><b>

2. Conversion routines are attached at domain level</b></u>

<u>

Conversion routine <b>MATN1</b> (connected function modules are CONVERSION_EXIT_MATN1_INPUT

CONVERSION_EXIT_MATN1_OUTPUT), is attached for domain MATNR

<b>3. Value table are atttached at domain level (if fixed value ranges are not mentioned)</b></u>

for eg: value table mara is attached for Domain MATNR.

<u><b>

4. And most importantly, domains can be re-used for multiple data elements, in the same table.</b></u>

Hope this helps,

Sajan Joseph.

8 REPLIES 8

Former Member
0 Kudos

hi RajaReddy,

Domains are used to

<b><u>1. specify fixed value ranges.</u></b>

For eg: <b>status type Char 1</b>, can have fixed values stored in the domain level

as '1' - Active '2' - retired '3' - terminated '4'- temporary..etc

<u><b>

2. Conversion routines are attached at domain level</b></u>

<u>

Conversion routine <b>MATN1</b> (connected function modules are CONVERSION_EXIT_MATN1_INPUT

CONVERSION_EXIT_MATN1_OUTPUT), is attached for domain MATNR

<b>3. Value table are atttached at domain level (if fixed value ranges are not mentioned)</b></u>

for eg: value table mara is attached for Domain MATNR.

<u><b>

4. And most importantly, domains can be re-used for multiple data elements, in the same table.</b></u>

Hope this helps,

Sajan Joseph.

former_member188829
Active Contributor
0 Kudos

Domain is used to provide Technical properties of the field like LENGTH,TYPE and DECIMALS.

Former Member
0 Kudos

Apart from Joseph's points, Domains are very vital in "Maintainability" of the table structures.

We donot have a concept in other systems wherein we can just adjust database tables without removing the foreign key relationship. But in SAP, we can do it. Just imagine a Foreign key relationship web without domains! Just test it out yourself....

Hope I am clear.

Reward points if I am of any help to you.

regards

Former Member
0 Kudos

hi,

Domains are standalone Repository objects in the ABAP Dictionary. They can specify the technical attributes of a data element. One domain can be used by any number of data elements. When you create a domain, you must specify a Dictionary data type (see above table) and the number of characters.

regards,

keethi

Former Member
0 Kudos

the domain not only specifies the technical attributes of the data type size, but it provides the provision of central maintanance,reusibility.......etc

Former Member
0 Kudos

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.

Besides all these domain is also helpful 2 acheive reusability i.e., the same domain can be used for any other dataelemnt . same domain can be attached 2 a data element defined in another table .

regards,

kiran kumar k

Former Member
0 Kudos

Hi Kudala,

Another use, REUSEABLITY....... and MAINTANABLITY

Click on link, you can see a diagram which makes you to understand better.

i.e., you can any number of data elements for a single.

http://www.esnips.com/doc/2c5c7018-1932-4ac4-affa-808ec5f6000e/Domain_de

Hope, the above desc. and diagram makes you crystal clear.

Regards,

V.Raghavender.

Former Member
0 Kudos

Hi,

Just have a look at this link

Regards,

Gunasree.