1、通过视图DD07V,
例子:取SD 凭证类别的DOMAIN(VBTYP)
DATA: LT_DD07V TYPE TABLE OF DD07V.
SELECT * INTO T_DD07V FROM DD07V WHERE DOMNAME = ‘VBTYP‘ AND DDLANGUAGE = ‘1‘.
2、通过函数(function)。
DD_DOMVALUES_GET
例子:取SD凭证类别的DOMAIN(VBTYP)
DATA: T_DDO7V TYPE TABLE OF DD07V,
L_SUBRC TYPE SY-SUBRC.
CALL FUNCTION ‘DD_DOMVALUES_GET‘
EXPORTING
DOMNAME = ‘VBTYP‘
TEXT = ‘X‘
LANGU = ‘1‘
BYPASS_BUFFER = ‘X‘
IMPORTING
RC = L_SUBRC
TABLES
DD07V_TAB = T_DDO7V
EXCEPTIONS
WRONG_TEXTFLAG = 1
OTHERS = 2
时间: 2024-10-11 21:19:20