Page 1 of 1

Function Module to Format Text

PostPosted: Tue Jun 17, 2014 4:44 am
by Baz
Hi

i have been using the function module RKD_WORD_WRAP to format some text, however the text also is now receiving some special characters which we should use for formatting.

the text is a string of 800+ characters for us to add to a notification text, however there are some carriage returns in the text and we need to use these in the formatting.

it splits the data fine by length, however if we are CR as delimiter, it does not split the text using it.

is there a different function module, or should i split the text by CR before wrapping the text lines that are over 132 characters?

what would be the best way to do this?

Re: Function Module to Format Text

PostPosted: Tue Jun 17, 2014 5:00 am
by Gothmog
I think the easiest is to split the text by CR before wrapping the text lines.

Re: Function Module to Format Text

PostPosted: Tue Jun 17, 2014 5:04 am
by Baz
Thanks Gothmog.

I was thinking that maybe the case. but was holding out for a FM that did both! :)