2008 Dec 19 5:21 AM
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
2008 Dec 19 5:23 AM
2008 Dec 19 5:23 AM
2008 Dec 19 5:31 AM
Hi Gautham,
this table works for domains with fixed values but not for domains with value tables.
Thanks & Regards,
Saurabh
2008 Dec 19 5:39 AM
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.
2008 Dec 19 5:29 AM
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
2008 Dec 19 5:30 AM
To search for text table , include 'T ' at the last of the value table . Most of the text tables name end with 'T'
2008 Dec 19 5:38 AM
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
2008 Dec 19 5:46 AM
Hi Suhas,
I could not find the FM 'GET_DOMAIN_VALUES'. Is this the correct name?
Thanks & Regards,
Saurabh
2008 Dec 19 5:49 AM
2008 Dec 19 5:49 AM
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
2008 Dec 19 5:51 AM
>
> 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
2008 Dec 19 6:05 AM
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