Skip to Content

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

String Variable Printing in SmartForm

Hi,

I need to print the values stored in a String Variable in a smartform. The length of the variable is not known until run time and gets dynamically populated in the data processing logic. But while printing it in the smartform &lv_string&, it writes only 255 characters of the string. But my requirement is to print whatever the value stored in the string. It may be even multiple lines that run into more than 2000 char long. I am using &lv_string& which is printing only 255 chars of the string variable. Not sure, how to make it printing the whole values stored in the string. Am I missing any formatting options with String variable here? I am not sure. Please suggest me a suitable solution. Appreciate your help in advance.

Thanks,

Kannan

.

Former Member
Former Member replied

Hi,

You can use the FM RKD_WORD_WRAP to convert lv_string into internal table with each row of length of 255. You can use the internal table to print the data.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question