01-04-2006 9:06 AM
Hi,
How to make wordwrap in ITAB.Iam displaying values like this.
MCTXT(itab field)
-
AAAAAAAAAAAAAABBBBBBBBBBCCCCCCCCCCCC
After reaching length 12, i want to make break and i want to display in second line like
AAAAAAAABBBB
BBBBBBCCCCCC
CCCCCC
Can any one tell me how to do.
Points guraranteed
cheers
kaki
01-04-2006 9:10 AM
01-04-2006 9:12 AM
01-04-2006 9:29 AM
Hi Kaki,
Like Vijay mentioned use the fm for this.
See the below sample code for refrerence.
data : mctext(65).
DATA: BEGIN OF i_outlines OCCURS 0,
txt(12),
END OF i_outlines.
mctext = 'AAAAAAAAAAAAAABBBBBBBBBBCCCCCCCCCCCC'.
CALL FUNCTION 'RKD_WORD_WRAP'
EXPORTING
textline = mctext
* DELIMITER = ' '
outputlen = 12
TABLES
out_lines = i_outlines
EXCEPTIONS
outputlen_too_large = 1
OTHERS = 2.
if sy-subrc = 0.
endif.
Hope this will help you.
Thanks&Regards,
Siri.