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...
ENDIF. ENDLOOP.2.STATUS_TEXT_EDIT 改函数读取的结果是将订单状态拼接到一个字符串中,而且这个字符串是在前台订单上看到的状态,比较直接,这样做的结果就可能由于状态较多导致长度过长,在某些情况下取的数据可能不准。 下面是一段代码 DATA:line TYPE bsvx-sttxt. CALL FUNCTION'STATUS_TEXT_EDIT'EXPORTING clien...
通过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...
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...
EDIT_LINES 把READ_TEXT返回的LINES中的行按照TDFORMAT=“*”重新组织 VIEW_MAINTENANCE_CALL 维护表视图 函数名 描述 DY_GET_FOCUS 获得屏幕焦点 DY_GET_SET_FIELD_VALUE 获得或者设置屏幕字段的值 函数名 描述 F4IF_INT_TABLE_VALUE_REQUEST 显示检索help ...
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 ...
TEXT_EDITOR TYPE REF TO CL_GUI_TEXTEDIT, TEXT TYPE STRING. DATA: LINE_LENGTH TYPE I VALUE 254, EDITOR_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER, TEXT_EDITOR TYPE REF TO CL_GUI_TEXTEDIT, TEXT TYPE STRING. Then call the screen (can be any number) [plain] view plaincopyprint...
This time I would like to trace the lock behavior in tcode COMMPR01. I switch to edit mode which triggers a lock request to enqueue server to lock the product and then I make changes on its description field. in the trace this enqueue request is perfectly recorded: ...
CALL FUNCTION 'TERM_CONTROL_EDIT' EXPORTING TITEL = '请输入长文本:' LANGU = SY-LANGU TABLES TEXTLINES = ZTEXTLINES EXCEPTIONS USER_CANCELLED = 1 OTHERS = 2. IF SY-SUBRC <> 0. * Implement suitable error handling here ENDIF. LOOP AT ZTEXTLINES. ...