Application Development 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: 

How to display long text in a paragraph format using class CL_GUI_TEXTEDIT?

Former Member
0 Kudos

I need to display a long paragraph in the text editor. I realize I have to declare a very long table line for my text table. For example, I wrote a subroutine set_paragraph_text.

FORM set_paragraph_text USING p_paragraph.

DATA: l_line(1000) TYPE c,

lt_paragraph LIKE TABLE OF l_line.

APPEND p_paragraph TO lt_paragraph.

  • Display the paragraph in the text editor.

CALL METHOD g_textedit->set_text_as_r3table

EXPORTING

table = lt_paragraph.

ENDFORM. " set_paragraph_text

This approach works well in release 6.4. Will it also work for earlier versions with more stringent char length limit? If not, can anybody suggest a better solution for the problem? The bottom line is that the paragraph needs to be displayed in its natural format, not one sentence per line. Another restriction is that the paragraph text is pre-fixed so it is hard coded into the program as a string literal.

Thanks in advance for any help.

4 REPLIES 4

former_member583013
Active Contributor
0 Kudos

Could this help you?

<a href="https://wiki.sdn.sap.com/wiki/display/profile/2007/09/18/Playing%2BWith%2BText%2BEditor">Playing with text editor</a>

Greetings,

Blag.

Message was edited by:

Alvaro Tejada Galindo

0 Kudos

Hi Alvaro,

Thanks for the quick reply, but that link seems to be not working.

Ning

0 Kudos

I copy it from my mail -:) Now, it should work -;)

Greetings,

Blag.

0 Kudos

Now the link is up. I'll take a look. Thanks.