Start of Content Area

Function documentationGET_TEXT_AS_STREAM  Locate the document in its SAP Library structure

Use

This method allows you to place the entire text from the editor in an internal table as a stream (with information about line breaks).

Windows

HTML

Java

ü

ü

ü

Features

call method textedit->get_text_as_r3table

  exporting
    only_when_modified = only_when_modified

  importing
    text = text
    is_modified = is_modified

  exceptions
    error_db = 1
    error_cntl_call_method = 2.

Parameter

Description

Possible Values

text

Internal table with text

 

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

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).

Example

For an example of how to work with line break information, refer to the demonstration program SAPTEXTEDIT_TEST_1, include SAPTEXTEDIT_TEST_1F01, subroutine FIND_CR, which replaces the carriage return line feeds.

 

 

End of Content Area