Application Development 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 value from domain

Former Member
0 Kudos

I have created a value range in a domain. I need to read the all the value ranges for the field using the domain in my report.

Is there any FM that can help or any other way.

Shall appreciate your input by Reward points

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi

good

pls check this code

data: idd07v type table of dd07v with header line.

call function 'DD_DOMVALUES_GET'

exporting

domname = 'RFBSK' "<-- Your Domain Here

text = 'X'

langu = sy-langu

tables

dd07v_tab = idd07v

exceptions

wrong_textflag = 1

others = 2.

loop at idd07v.

write:/ idd07v-domvalue_l, idd07v-ddtext.

endloop.

reward point if helpful.

thanks

mrutyun^

3 REPLIES 3

former_member624107
Contributor
0 Kudos

Hi u can use this FM

GET_DOMAIN_VALUES

pls reward if useful..

Former Member
0 Kudos

hi

good

pls check this code

data: idd07v type table of dd07v with header line.

call function 'DD_DOMVALUES_GET'

exporting

domname = 'RFBSK' "<-- Your Domain Here

text = 'X'

langu = sy-langu

tables

dd07v_tab = idd07v

exceptions

wrong_textflag = 1

others = 2.

loop at idd07v.

write:/ idd07v-domvalue_l, idd07v-ddtext.

endloop.

reward point if helpful.

thanks

mrutyun^

Former Member
0 Kudos

Thank you all for helping me out ...Thanks a lot