- 用类的方法读取长文本
DATA lv_name TYPE tdobname.
lv_name = vbeln . "这里输入交货单号
" 读取交货单销售备注长文本
CALL METHOD cl_eso_extraction_tools=>extract_long_text_by_id
EXPORTING
iv_langu = sy-langu " 语言
iv_text_id = '0001' " 文本标识
iv_name = lv_name
iv_object = 'VBBK' " 文本对象
IMPORTING
ev_search_terms = DATA(lv_text_xs).
WRITE lv_text_xs.