Skip to Content
avatar image
Former Member

Word wrapping issue in SAP Scripts

We r printing a text in 2 lines. This text comes in a single field.

We are printing the first 20 characters in one line and the next 20 characters in the other line. Now problem is if a word is from 18th character to 23rd character it will split it and display it in the next line.

We don't want it to happen that way. We want a complete word to come in a single line. In smartforms the text element automatically takes care of the wrapping. In scripts also do we have anything like this so that complex coding logic can be eliminated. Or any suitable FM where we can break the Sentence into 2 or 3 lines so that we can print it in a decent manner?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 22, 2007 at 06:51 AM

    It depends upon what is your window size and how your are populating the values.

    Add comment
    10|10000 characters needed characters exceeded