Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Read value from domain

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

Tags:
Former Member
Former Member replied

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^

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question