ABAP 获取Domain(域)固定值示例

2023-10-13 19:12:22 浏览数 (1)

代码:

代码语言:javascript复制
DATA: LT_DOMAIN TYPE TABLE OF DD07V,
      L_SUBRC    TYPE SY-SUBRC.

CALL FUNCTION 'DD_DOMVALUES_GET'
  EXPORTING
    DOMNAME        = 'ZAZFS'          "域名称
    TEXT           = 'X'
    LANGU          = '1'              "语言代码
    BYPASS_BUFFER  = 'X'
  IMPORTING
    RC             = L_SUBRC
  TABLES
    DD07V_TAB      = LT_DOMAIN
  EXCEPTIONS
    WRONG_TEXTFLAG = 1
    OTHERS         = 2.

CL_DEMO_OUTPUT=>DISPLAY( LT_DOMAIN ).

0 人点赞