SET_SELECTED_TEXT_AS_R3TABLE
This method allows you to insert text from an internal table as a stream. The text is inserted at the cursor position. Any selected text is overwritten. The text is passed without information about line breaks.
Windows |
HTML |
Java |
ü |
ü |
ü |
call method textedit->set_selected_text_as_r3table
exporting
table = table
enable_editing_protected_text =
enable_editing_protected_text
exceptions
error_dp = 1
error_db_create = 2.
Parameter |
Description |
Possible Values |
table |
Internal table with text |
|
enable_editing_protected_text |
Editing for protected sections of text |
false true |

If you use a table with shorter lines than those in the SAP Textedit, the text from the control is only passed up to the length of the table line. The remaining text is lost.
If the lines of the table are longer than the lines of the control, the table lines are filled with trailing spaces.
