Start of Content Area

Function documentationGET_TEXT_AS_R3TABLE  Locate the document in its SAP Library structure

Use

This method allows you to save the entire text from the editor as an internal table (without information about line feeds). This depends on the behavior of the line breaks that you have defined in the CONSTRUCTOR, especially for soft carriage returns.

Windows

HTML

Java

ü

!

ü

Features

call method textedit->get_text_as_r3table

  exporting
    only_when_modified = only_when_modified

  importing
    table = table
    is_modified = is_modified

  exceptions
    error_db = 1
    error_cntl_call_method = 2
    error_db_create =3
    potential_data_loss = 4.

Parameter

Description

Possible Values

table

Internal table

 

only_when_modified

Attribute when you get text

true
The text is only written to the internal table if the changed status IS:MODIFIED = TRUE. Otherwise, an empty table is passed.

false
The text is retrieved regardless of whether it has been changed (default value)

is_modified

Changed status of the text

true
Text changed

false
Text not changed

Caution

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.

Note

Setting the parameter ONLY_WHEN_MODIFIED to TRUE can improve performance, since it minimizes the data exchange between the frontend and backend (and the database).

 

End of Content Area