Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Formatted Output from READ_TEXT

Former Member
0 Likes
2,097

Hi All,

I am using a Text Edit (Webdynpro UI Element) to get the input. The value is the converted to GUID Text and stored in the DB.

In another screen, I want to display that value. I am using READ_TEXT FM for converting GUID to string.

The problem that I am facing is that I am getting the input as a single paragraph and not with the formatting (as paragraphs) that the user has made when giving inputs. The output is just a single para.

Is there any way to read the text with formatting?

Hi All,

I am using a Text Edit (Webdynpro UI Element) to get the input. The value is the converted to GUID Text and stored in the DB.

In another screen, I want to display that value. I am using READ_TEXT FM for converting GUID to string.

The problem that I am facing is that I am getting the input as a single paragraph and not with the formatting (as paragraphs) that the user has made when giving inputs. The output is just a single para.

Is there any way to read the text with formatting?

1 REPLY 1
Read only

Former Member
978

Hi,

Use the function module "FORMAT_TEXTLINES" to format the text retrieved using READ_TEXT

data : it_lines_sp type standard table of tline,
        call function 'FORMAT_TEXTLINES'
          exporting
            cursor_column = 0
            cursor_line   = 0
            endline       = 99999
            formatwidth   = 40
            linewidth     = 40
            startline     = 1
            language      = sy-langu
          tables
            lines         = it_lines_sp.

Regards

Vinod