[Series] ABAP SAP ABAP obtain domain (domain) value method

No public: SAP Technical
Author: Matinal
 

 

The preface

We can focus on my public number, the number public in the layout better, read more comfortable.

Body part

1, can be obtained by table DD07L

2, obtained by the function

DATA:
  fs_taba TYPE dd07v.
DATA:
it_taba TYPE STANDARD TABLE OF dd07v,
it_tabb TYPE STANDARD TABLE OF dd07v.

CALL FUNCTION 'DD_DOMA_GET'
  EXPORTING
    domain_name   = 'XFELD'
    langu         = sy-langu
    withtext      = 'X'
  TABLES
    dd07v_tab_a   = it_taba
    dd07v_tab_n   = It_tabb
   EXCEPTIONS 
    illegal_value = 1 
    op_failure     = 2 
    OTHERS         = 3 .
IF side subrc <> 0 .
 MESSAGE  ID SY Msgid TYPE SY MSGTY NUMBER Side MSGNO
          WITH HIS-MSGV1 SY MSGV2 SY MSGV3 Side MSGV4.
ENDIF . 
LOOP  AT   it_taba INTO fs_taba.
  WRITE :
   / silk tabix, fs_taba-domvalue_l centered, fs_taba- ddtext centered.
ENDLOOP.

​

 

Guess you like

Origin www.cnblogs.com/SAPmatinal/p/11183852.html