CALL METHOD editor1->get_text_as_stream IMPORTING text = it_line. *--长文本保存 header-tdobject = 'Z_TEST01'."object header-tdname = '001'. header-tdid = 'LTXT'. header-tdspras = sy-langu. CALL FUNCTION 'CONVERT_
wrong_access_to_archive = 7 OTHERS = 8.IF sy-subrc = 0.CALL FUNCTION 'CONVERT_ITF_TO_STREAM_TEXT'EXPORTING LANGUAGE = SY-LANGU LF = ' 'IMPORTING STREAM_LINES = TABLES itf_text = line1 text_stream = line2 .READ TABLE line2 INDEX 1.txt2 = line2-value...
*Read_text读取长⽂本中<(>&<)>符号转换成正确的'&'符号 CALL FUNCTION'CONVERT_ITF_TO_STREAM_TEXT'EXPORTING language = sy-langu TABLES itf_text = it_tem_table text_stream = it_texttable.IF sy-subrc = 0AND it_texttable[] IS NOT INITIAL.READ TABLE it_texttable INTO hk_text INDEX...
it_tem_table-tdline = flines-tdline.APPENDit_tem_table.ENDLOOP.*Read_text读取长文本中<(>&<)>符号转换成正确的'&'符号CALLFUNCTION'CONVERT_ITF_TO_STREAM_TEXT'EXPORTINGlanguage= sy-languTABLESitf_text=it_tem_table text_stream=it_texttable.IFsy-subrc =0ANDit_texttable[]ISNOTINITIAL.READTABLEi...
1、CONVERT_ITF_TO_STREAM_TEXT测试 2、程序代码 gv_name = lwa_ALV-vbeln.PERFORM frm_read_text ...
CONVERT_STREAM_TO_ITF_TEXT'92EXPORTING93language = sy-langu94TABLES95text_stream =lt_lines96itf_text =lt_textlines.9798CLEAR: l_string .99LOOPATlt_textlinesINTOls_textlines.100CONCATENATEl_string ls_textlinesINTOl_string .101ENDLOOP.102103IFl_stringISNOTINITIAL.104pc_text =l_string.105...
text = it_line. *--长文本保存 header-tdobject = 'Z_TEST01'."object header-tdname = '001'. header-tdid = 'LTXT'. header-tdspras = sy-langu. CALL FUNCTION 'CONVERT_STREAM_TO_ITF_TEXT' EXPORTING language = sy-langu TABLES