Skip to Content
0
Former Member
Jan 19, 2006 at 12:16 PM

EHS00_WORDWRAP02

95 Views

Hi,

I am using this FM to split the material text in my program. If I give length as 40, it gives an internal table as output, with the text split into lines that have length as 40. However, if there is a word at the end of length 40, it also splits that word.

For ex. - text = 'Example text'. and length = 9.

then output table has 2 lines - 'Example t' & 'ext'.

The requirement is, it should not split this word at the end even if it falls in the specified length value. The output should have been - 'Example' and 'Text'.

Is there any other FM that I can use, which can handle this? Or is there any alternative way of handling this?

Thanks and Regards,

Shivali