2010 Jul 19 8:28 AM
Hi,
I am adding long texts to few documents using function modules. The function module structure field takes 32 char. when I am tried to update the long texts, it breaks in the middle of a word.For example:
suppose my text is "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx. They have commit to use Calibre but they hesitate to introduce ccccccccccccccccccccccccccccc"
it updates as:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx. They have commit to use Calibre but they hesitate to i
ntroduce ccccccccccccccccccccccccccccc
Because the 132 character finishes at "i" and hence the word introduce breaks in middle.
Is there any way to concatenate the word so that the word will be complete and will break from the next.
Thanks.
2010 Jul 19 9:10 AM
Check this code snippet:
DATA: v_char(400) TYPE c.
v_char =
`xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
& `xxxxxx. They have commit to use Calibre but they hesitate to `
& ` introduce ccccccccccccccccccccccccccccc`.
WRITE: v_char.
DATA: it_132 TYPE STANDARD TABLE OF tdline,
v_132 TYPE tdline.
CALL FUNCTION 'RKD_WORD_WRAP'
EXPORTING
textline = v_char
outputlen = 132
TABLES
out_lines = it_132
EXCEPTIONS
outputlen_too_large = 1
OTHERS = 2.
IF sy-subrc = 0.
LOOP AT it_132 INTO v_132.
WRITE : / v_132.
ENDLOOP.
ENDIF.Hope this helps.
BR,
Suhas
Hi,
I am adding long texts to few documents using function modules. The function module structure field takes 32 char. when I am tried to update the long texts, it breaks in the middle of a word.For example:
suppose my text is "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx. They have commit to use Calibre but they hesitate to introduce ccccccccccccccccccccccccccccc"
it updates as:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx. They have commit to use Calibre but they hesitate to i
ntroduce ccccccccccccccccccccccccccccc
Because the 132 character finishes at "i" and hence the word introduce breaks in middle.
Is there any way to concatenate the word so that the word will be complete and will break from the next.
Thanks.
2010 Jul 19 9:10 AM
Check this code snippet:
DATA: v_char(400) TYPE c.
v_char =
`xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx`
& `xxxxxx. They have commit to use Calibre but they hesitate to `
& ` introduce ccccccccccccccccccccccccccccc`.
WRITE: v_char.
DATA: it_132 TYPE STANDARD TABLE OF tdline,
v_132 TYPE tdline.
CALL FUNCTION 'RKD_WORD_WRAP'
EXPORTING
textline = v_char
outputlen = 132
TABLES
out_lines = it_132
EXCEPTIONS
outputlen_too_large = 1
OTHERS = 2.
IF sy-subrc = 0.
LOOP AT it_132 INTO v_132.
WRITE : / v_132.
ENDLOOP.
ENDIF.Hope this helps.
BR,
Suhas
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |