Here is the simple coding for knowing the domain values for a particular domain.
This can be done by the function module GET_DOMAIN_VALUES .
REPORT zdaomain.
DATA: int_values_table TYPE dd07v OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'GET_DOMAIN_VALUES'
EXPORTING
domname = 'ACTIO' " Pass the domain name here
text = 'X'
TABLES
values_tab = int_values_table
EXCEPTIONS
no_values_found = 1
OTHERS = 2.
Loop at int_values_table .
write:/ int_values_table-DOMVALUE_L ,
int_values_table-ddtext.
endloop .
No comments:
Post a Comment