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

Any FM avaliable for reading domain value range

Former Member
0 Likes
4,686

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

4 REPLIES 4
Read only

Former Member
0 Likes
1,401

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..

Read only

Former Member
0 Likes
1,401

you can use this Function Module GET_DOMAIN_VALUES.

Regards,

Joan

Read only

GauthamV
Active Contributor
0 Likes
1,401

Table : DD07T

Check these fm.

SHOW_DOMAIN_VALUES

DD_DOMVALUE_TEXT_GET

Read only

Former Member
0 Likes
1,401

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