2009 Apr 02 8:22 AM
Hi experts,
Is there any FM avaliable to read values from value range of a domain.
I need to fetch short descriptions for corresponding fixed values in value range.
Please help.
Thanks in advance,
Neelima
Hi experts,
Is there any FM avaliable to read values from value range of a domain.
I need to fetch short descriptions for corresponding fixed values in value range.
Please help.
Thanks in advance,
Neelima
2009 Apr 02 8:25 AM
One solution is...
You can declare one variable fo that domain type.. for this if you get F4 search help... you will get the values..into some internal table and from there u can proceed with your coding..
Hope this helps..
2009 Apr 02 8:27 AM
you can use this Function Module GET_DOMAIN_VALUES.
Regards,
Joan
2009 Apr 02 8:28 AM
Table : DD07T
Check these fm.
SHOW_DOMAIN_VALUES
DD_DOMVALUE_TEXT_GET
2009 Apr 02 12:46 PM
Hi,
Is there any FM avaliable to read values from value range of a domain?
Yes. Of course, you can try using the following.
Let me assume that there is a domain called ZGENDER and it has the following fixed values:
Value Description
M Male
F Female
U Unknown.
Then do the following code:
DATA: l_t_gender TYPE TABLE OF dd07v.
To get the possible list of Genders
CALL FUNCTION 'GET_DOMAIN_VALUES'
EXPORTING
domname = 'ZGENDER'
TABLES
values_tab = l_t_gender
EXCEPTIONS
no_values_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
I need to fetch short descriptions for corresponding fixed values in value range.
Yes. After calling the function module, l_t_gender-ddtext will have the short descriptions.
Please revert back for any clarifications.
Best Regards,
Suresh
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |