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

Values for a domain

0 Likes
2,619

Hi All,

I already searched through the threads but did not find an answer to my problem so I am raising it here. Is there a function module or class-method using which I can find the allowed values for a domain. I only know the name of the domain and the domain can have fixed values or the values might come from a value table attached to the domain. I also require the texts for these values.

Thanks & Regards,

Saurabh

1 ACCEPTED SOLUTION
Read only

GauthamV
Active Contributor
0 Likes
2,436

hi,

DD07T table.

Hi All,

I already searched through the threads but did not find an answer to my problem so I am raising it here. Is there a function module or class-method using which I can find the allowed values for a domain. I only know the name of the domain and the domain can have fixed values or the values might come from a value table attached to the domain. I also require the texts for these values.

Thanks & Regards,

Saurabh

11 REPLIES 11
Read only

GauthamV
Active Contributor
0 Likes
2,437

hi,

DD07T table.

Read only

0 Likes
2,436

Hi Gautham,

this table works for domains with fixed values but not for domains with value tables.

Thanks & Regards,

Saurabh

Read only

GauthamV
Active Contributor
0 Likes
2,436

hi,

Then use these tables according to your requirement along with DD07T.

These also contain value table details for domain and data element.

DD01L

DD04L

DDSHENTITY.

Read only

Former Member
0 Likes
2,436

Hi

Use Fm RPY_DOMAIN_READ

it will get the details as below:

ACTIVATION_TYPE_I M

DOMA_NAME KOSTL

LANGUAGE EN

WITH_DOCU

DOCUTYPE U

Export parameters Value

DOMA_INF KOSTL ENCHAR 000010000010000000 CSKS ALPHACost center

ACTIVATION_TYPE_O A

Regards

Shiva

Read only

Former Member
0 Likes
2,436

To search for text table , include 'T ' at the last of the value table . Most of the text tables name end with 'T'

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
2,436

Hello,

From the table DD01L, you get if the Domain has a value table (field ENTITYTAB) or has fixed values (field VALEXI).

If DD01L-VALEXI = 'X' (has fixed values) you can use the FM: GET_DOMAIN_VALUES to get the values as well as the texts.

Hope this helps.

BR,

Suhas

Read only

0 Likes
2,436

Hi Suhas,

I could not find the FM 'GET_DOMAIN_VALUES'. Is this the correct name?

Thanks & Regards,

Saurabh

Read only

GauthamV
Active Contributor
0 Likes
2,436

SEARCH in Se37 with *domainvalue* you will get so many.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
2,436

Hello,

Which version of SAP you are using? I can see the FM in my system & used it in my code.

Else you can search using DOMAINVALUES* you can get many FMs )

Suhas

Read only

matt
Active Contributor
0 Likes
2,436

>

> Hi All,

>

> I already searched through the threads but did not find an answer to my problem ...

Don't forget that searching through SE37, as already mentioned, is a REALLY good way of finding function modules.

matt

Read only

Former Member
0 Likes
2,436

Hello Saurabh,

You can use the following Fumction module

RPY_DOMAIN_READ .. you will get all the values and text for the domain.

To check if the value is present in the domain you can use the following FM.

SHOW_DOMAIN_VALUES

Regards

Arindam