on 04-19-2012 6:50 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.