This website is not affiliated with, sponsored by, or approved by SAP AG.

Function Module to Format Text

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Function Module to Format Text

Postby Baz » Tue Jun 17, 2014 4:44 am

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?
Baz

AsPiRiNg tUlY iDiOt Image

http://www.catb.org/~esr/faqs/smart-questions.html

Image

check out my Podcasts http://dj-baz.podomatic.com
Baz
 
Posts: 4736
Joined: Fri Nov 08, 2002 5:54 am
Location: He's out there! somewhere!!!!

Re: Function Module to Format Text

Postby Gothmog » Tue Jun 17, 2014 5:00 am

I think the easiest is to split the text by CR before wrapping the text lines.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1943
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: Function Module to Format Text

Postby Baz » Tue Jun 17, 2014 5:04 am

Thanks Gothmog.

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

AsPiRiNg tUlY iDiOt Image

http://www.catb.org/~esr/faqs/smart-questions.html

Image

check out my Podcasts http://dj-baz.podomatic.com
Baz
 
Posts: 4736
Joined: Fri Nov 08, 2002 5:54 am
Location: He's out there! somewhere!!!!


Return to ABAP

Who is online

Users browsing this forum: No registered users and 9 guests





This website is not affiliated with, sponsored by, or approved by SAP AG.