cancel
Showing results for 
Search instead for 
Did you mean: 

How to print text in a new line in a text view.

Former Member
0 Kudos

Hi,

I have a situation where I need to print two lines inside a text view.

for eg: Bye Bye < user name>

Have a nice day!!

I am assigning this to the context by conactenating Bye Bye < user name> Have a nice day!!.

But the text view prints it a same line.

How can I print Have a nice day!!. in the second line.

Any suggestions and ideas are welcome and appreciated.

Thanks and regards.

Accepted Solutions (1)

Accepted Solutions (1)

former_member199125
Active Contributor
0 Kudos

data str type string.

concatenate 'Bye Bye < user name> ' 'Have a nice day!!' into str separated by cl_abap_char_utilities=>newline.

now bind this STR to your textview attribute.

Regards

Srinvias

Former Member
0 Kudos

Hi Sansrinivas.

Thanks a lot.

Former Member
0 Kudos

On table, each record is separated by newline and each field is separated by tab

How to print this.

Regards,

sgboy17

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

This link will help you to do all the functions in text view using HTML.

[html in text view|http://help.sap.com/saphelp_erp2005/helpdata/en/08/5696420cc2c56ae10000000a155106/content.htm]

Karthik.R

Former Member
0 Kudos

Hi,

Use the html tag <br> to achieve this.

E.g.


Bye Bye <br> Have a nice day.

Regards

Fareez

Edited by: Fareez Ahamed on Mar 5, 2012 9:16 AM