CONSTRUCTOR
The constructor creates, initializes, and positions the control.

The constructor method is called automatically when you instantiate the class (create object statement). You generally pass the parameters of the method in the create object statement.
Windows |
HTML |
Java |
ü |
! |
ü |
HTML GUI: The parameters filedrop_mode, wordwrap_mode, wordwrap_position und wordwrap_to_linebreak_mode are not supported.
create object textedit
exporting
parent = parent
lifetime = lifetime
max_number_chars = max_number_chars
style = style
filedrop_mode = filedrop_mode
wordwrap_mode = wordwrap_mode
wordwrap_position = wordwrap_position
wordwrap_to_linebreak_mode =
wordwrap_to_linebreak_mode
exceptions
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
gui_type_not_supported = 5.
Parameter |
Description |
Possible values |
parent |
Parent of the instance, that is, the container in which the control is to be displayed |
|
lifetime |
Lifetime management parameter specifying the lifetime of the control |
cntl_lifetime_imode: cntl_lifetime_dynpro: The control remains alive for the lifetime of the screen (that is, while it remains in the screen stack). It is not destroyed, for example, by a call screen or call transaction statement. |
max_number_chars |
Sets the maximum number of characters that can be entered in the control |
|
style |
Controls the appearance and behavior of the control
|
Constants from the class CL_GUI_CONTROL that begin with WS_* You can combine styles by adding the constants together. The default value sets a suitable combination of style constants internally. |
filedrop_mode |
Parameter controlling drag and drop behavior |
dropfile_event_off dropfile_event_single dropfile_event_multiple |
wordwrap_mode |
Line break behavior |
wordwrap_off wordwrap_at_windowborder wordwrap_at_fixed_position |
wordwrap_position |
If wordwrap_mode = textedit->wordwrap_at_fixed_position: Position for the automatic line break in a line |
Default value: -1 |
wordwrap_to_linebreak_mode |
Converts soft line breaks to hard ones when you save in the SAP System |
false true |

The advantage of using containers is that you can set certain essential display attributes (position on the screen, behavior when the window is resized, and so on) when you create them. If you do not use a container, you must set all of the attributes by hand, using the method SET_WINDOW_PROPERTY.
