When you double click on a text line in the TextEdit control, you want it to be prefixed with a '*'. The line number of the TextEdit control that is double clicked, is retreived using method GET_SELECTION_POS. The internal text table is reloaded froim the TextEdit control with metho...
PARENT = CONTAINER WORDWRAP_MODE = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION WORDWRAP_POSITION = 256 WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE. ENDIF. CALL METHOD EDITOR->SET_TEXT_AS_R3TABLE EXPORTING TABLE = M1. ENDMODULE. " STATUS_0100 OUTPUT...
通过cl_gui_textedit类显示一个文本编辑器。 类方法:Get and Set Text GET_LINE_TEXT 获取对应行文本; GET_SELECTED_TEXT_AS_R3TABLE SET_SELECTED_TEXT_AS_R3TABLE 获取或设置Text使用Table; GET_SELECTED_TEXT_AS_STREAM SET_SELECTED_TEXT_AS_STREAM 获取或设置Text使用stream; GET_TEXT_AS_R3TABLE SET_TE...
editor1 TYPE REF TO cl_gui_textedit. DATA: ok_code LIKE sy-ucomm, save_ok LIKE sy-ucomm. 长文本的初始化: IF container1 IS INITIAL. CREATE OBJECT:container1 EXPORTING container_name = 'COMMENT1', editor1 EXPORTING parent = container1. CALL METHOD editor1->set_statusbar_mode EXPORTING...
Example 1: Creating the TextEdit control This is a simple example of how to implement a text edit control. Steps Create a report In the start of selection event add: SET SCREEN '100'. Create screen 100 Place a custom control on the screen by choosing the custom control icon which can ...
EDIT_LINES 把READ_TEXT返回的LINES中的行按照TDFORMAT=“*”重新组织 VIEW_MAINTENANCE_CALL 维护表视图 DY_GET_FOCUS 获得屏幕焦点 DY_GET_SET_FIELD_VALUE 获得或者设置屏幕字段的值 F4IF_INT_TABLE_VALUE_REQUEST 显示检索help CONVERSION_EXIT_CUNIT_OUTPUT 单位转换 ...
EDIT_LINES 把READ_TEXT返回的LINES中的行按照TDFORMAT=“*”重新组织 VIEW_MAINTENANCE_CALL 维护表视图 函数名 描述 DY_GET_FOCUS 获得屏幕焦点 DY_GET_SET_FIELD_VALUE 获得或者设置屏幕字段的值 函数名 描述 F4IF_INT_TABLE_VALUE_REQUEST 显示检索help ...
The ABAP Editor is a source-code editing tool designed to handle the specifics of ABAP coding. It is one of the main components of the ABAP Workbench. You use the ABAP Editor to write and edit ABAP programs, class methods, function modules, screen flow logic, type groups, and logical da...
Fieldcat-seltext_s/m/l=‘列名’.输出列文本( _s:短文本 _l:长文本) Fieldcat-emphasize=‘CX10’.带有颜色的高亮列(其中X=(1-7)颜色同format) Fieldcat-hotspot=‘X’.作为热点显示可触发鼠标触发事件 Fieldcat-currency=‘CURRKEY’.表TCURX中的货币名称 ...