cancel
Showing results for 
Search instead for 
Did you mean: 

embedding new line character into a floating field

Former Member
0 Kudos

Hey, i am trying to build a very dynamic print form. I would love to be able to embed New line characters and rich formatting into floating fields, but cant seem to figure out how do it it.. Thoughts?

incoming string = ' Hey, /n This is on a new line'.

Show on the form:

Hey

This is on a new line

Tried several types of tags, XML, HTML, etc.

-Jason

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Jason,

First of all, the '/n' should be unequivocal in the string.

You do not have to use XML, HTML etc, just plain text, like this:

Constants: lc_text(20)  TYPE c value 'Hey, /n This ison a new line'.

REPLACE ALL OCCURRENCES OF '/n' IN lc_text WITH cl_abap_char_utilities=>cr_lf IN CHARACTER MODE.

Best regards,

Tao

Answers (0)