【IT168 技术文章】
访问Domain的Value Range有两种方法:
1、直接访问表
dd07l和dd07T
select * from dd07l
where domname = 'domname' and
as4local = active.
select * from dd07l
where domname = 'domname' and
as4local = active.
2、使用SAP的标准函数
call function 'DD_DOMVALUES_GET'
exporting
domname = p_domname
importing
rc = l_subrc
tables
dd07v_tab = l_dd07v
exceptions
wrong_textflag = 1
others = 2.
exporting
domname = p_domname
importing
rc = l_subrc
tables
dd07v_tab = l_dd07v
exceptions
wrong_textflag = 1
others = 2.