data : lv_language TYPE thead-tdspras VALUE '1', lt_line TYPE TABLE OF tline, ls_line TYPE tline, lv_name TYPE thead-tdname . DATA:lv_str TYPE string . 1. 2. 3. 4. 5. 调用函数 " "获取项目备注文本 lv_name = '6000003402'. CLEAR:lt_line. CALL FUNCTION 'READ_TEXT' EXPORTING...
CONCATENATE INTAB-VBELNTEXT1 LTEXT-TDLINE INTO INTAB-VBELNTEXT1 SEPARATED BY ' ' . ENDIF. ENDLOOP. CLEAR HTEXT . CLEAR DTEXT . CLEAR LTEXT . REFRESH DTEXT . REFRESH LTEXT . *採購單内文 CONCATENATE INTAB-VBELN INTAB-POSNR INTO VBELNTEXT . CALL FUNCTION 'READ_TEXT' EXPORTING * CLI...
DATA: T_READ LIKE TABLE OF TLINE WITH HEADER LINE. SELECTION-SCREEN BEGIN OF BLOCK BLOC1 WITH FRAME TITLE TEXT-001. PARAMETERS: PVBELN LIKE VBRK-VBELN. SELECTION-SCREEN END OF BLOCK BLOC1. START-OF-SELECTION. TEXTNAME = PVBELN. *VBBK是从STXH中找到的。 PERFORM FRM_READ_TEXT USING ...
REPORT ztest_read_longtxt_mbom. DATA:git_stb TYPE STANDARD TABLE OF stpox, gwa_stb TYPE stpox. DATA:git_line TYPE STANDARD TABLE OF tline WITH HEADER LINE. SELECTION-SCREEN BEGIN OF BLOCK b_kopvor WITH FRAME TITLE text-001. PARAMETERS: p_matnr1 LIKE mast-matnr MEMORY ID mat, p_wer...
1, 简介 SAP中有很多地方用到了长文本,这些长文本保存在表STXL和STXH里面,STXH保存抬头长文本,STXL保存行项目的.需要通过函数READ_TEXT去读取长文本. 2, 查看销售订单长文本 可以在VA03中看到销售订单的抬头和行项目长文本: 抬头
Import parameter: HEADER If the system finds the text, it returns the table header in this parameter. Structure: THEAD Table parameters: LINES The table contains all text lines that belong to the text read. Structure: TLINE Exceptions:
FORM frm_get_text USING p_id type TDID p_language type SPRAS p_name TYPE tdobname p_object TYPE tdobject CHANGING p_text TYPE string. DATA: line TYPE STANDARD TABLE OF tline WITH HEADER LINE. CLEAR: line, line[], p_text. CALL FUNCTION 'READ_TEXT'...
如果我们使用SE37查看RFC_READ_TABLE的参数,我们可以看到options表参数类型为RFC_DB_OPT,只有一个字段:TEXT。NCo3.0的SetXXX()方法和GetXXX()方法一样,既可以通过索引,也可以通过字段名。所以代码也可以这样: IRfcTable options=fm.GetTable("OPTIONS");options.Append();// create a new rowoptions.CurrentRow...
matinal:关于SAP ABAP RFC_READ_TABLE函数 导入参数 QUERY_TABLE 表名称(必填) DELIMITER 分隔符,默认值空格 在返回数据的DATA表项目中,通过此参数传递的分隔符分隔字段值,传空格则不包含分隔符 NO_DATA 不传输数据,默认值为空格 如果此项不为空格,则函数不返回表数据,只返回字段信息...
read table IM_DOCUMENT-ITEM assigning field-symbol(<FS_IT>) index 1. if SY-SUBRC = 0. select single TEXT into @data(LV_BKTXT) from ACAC_OBJECTS where REF_KEY = @<FS_IT>-ACROBJ_ID. endif. when others. endcase. EX_DOCUMENT-HEADER-BKTXT = LV_BKTXT. ...