Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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?

Former Member
Not what you were looking for? View more on this topic or Ask a question