|
ABAP:取字段域中的文本信息;
type-pools:bkkdc .
data:ck_type TYPE STANDARD TABLE OF BKKDC_S_DOMAIN_TEXT WITH HEADER LINE.
clear ck_type[].
CALL FUNCTION 'BKK_DOMAIN_TEXTS_READ'
EXPORTING
I_LANGU = '1' "(语言)
I_DOMNAME = 'ZPTST' "(为字段所对应的域的名称)
IMPORTING
ET_DOMAIN_TEXT = ck_type[].
loop itab.
if itab-ZPTST is not initial .
read table ck_type with key key = itab-zptst .
if sy-subrc = 0 .
itab-ztext = ck_type-text .
endif .
endif .
endloop.
|
|