‎2009 Feb 26 10:06 AM
I got a requirement in a module program.this module pool is created through infotype.
i have field 'comments' this field is of length 100.
the user wants to split the comments into 4 lines in the same box.
the input for this field is coming from a input file.
so, here I need a logic for splitting the comments into 4 lines. each 25 chars.
but again here is a trick : if one line contains comment as 'there is a fox in the jungle'
here upto 'there is a fox in the jun' will be 25 characters. since this is word the whole jungle has to come
in the next line.
Can some one provide me idea/code/example?
many thanks in advance
Chitra
‎2009 Feb 26 10:13 AM
‎2009 Feb 27 5:45 AM
Can you please provide me sample code for this?
thanks in advance.
I will have 4 lines in my text box, the word wrapping has to done for all four lines.
Thanks
Chitra
‎2009 Feb 27 5:50 AM
‎2009 Feb 27 5:51 AM
hi,
Check the code..
CALL FUNCTION 'RKD_WORD_WRAP'
EXPORTING
textline = wa_t100-text
outputlen = '25'
TABLES
out_lines = itab.
‎2009 Feb 27 8:51 AM