cancel
Showing results for 
Search instead for 
Did you mean: 

Component for Multiple Lines?

Former Member
0 Kudos

Hi guys,

I'm working with a situation where I need to respect the format that RFC READ_TEXT returns me. I mean, I call the RFC and the column TDLINE has multiples lines with formatting. I put this content (CONCATENATE) within a attribute and showing that on the view. That doesnt't show with formatting. By the way, the transaction SO10 offers a possibility to create a content and after that to use READ_TEXT for reading.

Any idea for a component with multiple lines and respecting espace, new line, so on?

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Alexander,

You can display muliple lines by using Text view or Formated Text view ui element.

similarly use FM "READ_TEXT" and convert the returned data into string using FM CONVERT_TABLE_TO_STRING.

Bind the returned table to an attribute of your context. The data will be displayed in the same format in which you entered it.

http://forums.sdn.sap.com/click.jspa?searchID=72034468&messageID=9998465

Cheers,

Kris.

Answers (1)

Answers (1)

vaibhav_tiwari
Contributor
0 Kudos

Hi Alexander,

Use class "CL_ABAP_CHAR_UTILITIES" to format your text.

In this class go to attributes tab and use the attributes for special characters like 'new line', tab, backspace etc.

Insert specific characters in between the lines to format the text.

Regards,

Vaibhav