12-21-2013 9:50 AM
Hi Gurus,
I want to split a particular string into lines. I have a string concatenate by values separated by semicoloumn.While print this string in smartform have to print into several rows. but I dont know the exctact length of the field concatenated into a string. My requirement is to split the string into lines but each line have to end with semicoloum, that is all values have to end in a particlar line should not continue on a next line.
Foe eg:
Var1 = 'abcdef'
var2 = 'qwert'
var3 = 'asdfghjkl'.
String = var1;var2;var3.
in printform have to print in a line with length 20 means
Output should be in the below format:
line1 - abcedf;qwert;
line2 - asdfghjkl.
Even there is some space in line1 to hold var3, but i want it in a next line.
Thanks in advance.
Reagrds,
Bhuvana.
12-21-2013 9:54 AM
You can use function module rkd_word_wrap function for the same pass output length as 20 and separator as ;.
Nabheet
12-21-2013 4:29 PM
Hi,
Check the below FM's with same functionality
RKD_WORD_WRAP
RSDG_WORD_WRAP
ALVDG_WORD_WRAP
@Nabheet, You are quick and I impressed