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: 

Values for a domain

0 Kudos
837

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

GauthamV
Active Contributor
0 Kudos
654

hi,

DD07T table.

11 REPLIES 11

GauthamV
Active Contributor
0 Kudos
655

hi,

DD07T table.

0 Kudos
654

Hi Gautham,

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

Thanks & Regards,

Saurabh

GauthamV
Active Contributor
0 Kudos
654

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.

Former Member
0 Kudos
654

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

Former Member
0 Kudos
654

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

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Kudos
654

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

0 Kudos
654

Hi Suhas,

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

Thanks & Regards,

Saurabh

GauthamV
Active Contributor
0 Kudos
654

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

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Kudos
654

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

matt
Active Contributor
0 Kudos
654

>

> 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

Former Member
0 Kudos
654

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