2008 Apr 16 8:45 AM
how to work with the function module rkd_word_wrap
2008 Apr 16 8:48 AM
2008 Apr 16 8:49 AM
There is a text for a order that was written in the change editor of IW33 .i have display that in a report .I displayed the text but vat happend is it is taking 56 charaters and the remaining text in cutting off.they dont want increase the list size .
For Eg:The material is for this particu
order
lar is missing :
if i am increasing it to some 60 characters the text is overlapping into the other column of the list and they dont want to increase the list size
vat i shoul do is to wrap the missing lines to the second lin ateast how to do that
the material is for this particu
lar order
You can use FM RKD_WORD_WRAP on 46...and RSDG_WORD_WRAP in NetWeaver....
Reward points if it is useful..
2008 Apr 16 8:52 AM
Hi,
Refer this thread :
May be this coulld help.
[https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/displaying%2ba%2bparticular%2bcolumns%2bin%2bmultiple%2bline%2bin%2balv%2blist]
Best regards
Sourabh
2008 Apr 16 8:53 AM
Hi,
Please refer the code below:
*&--------------------------------------------------------------------*
*& Form GET_ITEM-103
*&--------------------------------------------------------------------*
* text
*---------------------------------------------------------------------*
* -->INTAB text
* -->OUTTAB text
*---------------------------------------------------------------------*
FORM get_item-103 TABLES intab STRUCTURE itcsy
outtab STRUCTURE itcsy.
DATA:l_string(512) TYPE c.
DATA: l_index LIKE sy-index.
READ TABLE intab INDEX 1.
IF sy-subrc = 0.
v_matnr = intab-value.
ENDIF.
SELECT SINGLE * FROM makt
WHERE matnr = v_matnr.
IF sy-subrc = 0.
v_maktx = makt-maktx.
SELECT SINGLE * FROM mara
WHERE matnr = v_matnr.
IF sy-subrc = 0.
v_zeinr = mara-zeinr.
**-----------format the string
CONCATENATE v_matnr v_maktx v_zeinr INTO l_string SEPARATED BY ' / '.
CALL FUNCTION 'EHS00_WORDWRAP02'
EXPORTING
im_string = l_string
im_len = 31
TABLES
ex_ftext = l_ex_ftext.
l_index = 0.
LOOP AT l_ex_ftext.
l_index = l_index + 1.
READ TABLE outtab INDEX l_index.
MOVE l_ex_ftext-text TO outtab-value.
MODIFY outtab INDEX l_index.
ENDLOOP.
ENDIF.
ENDIF.
ENDFORM. "get_item-103
Thanks,
Sriram Ponna.
2008 Apr 16 8:57 AM
Hi,
form text_wrap using i_text type rkean_reporttext
es_text1 type rkean_s_code
es_text2 type rkean_s_code
es_text3 type rkean_s_code.
data: l_text1(72) type c,
l_text2(72) type c,
l_text3(72) type c.
clear: es_text1, es_text2, es_text3.
call function 'RKD_WORD_WRAP'
exporting
textline = i_text
DELIMITER = ' '
outputlen = 72
importing
out_line1 = l_text1
out_line2 = l_text2
out_line3 = l_text3
TABLES
OUT_LINES =
exceptions
outputlen_too_large = 1
others = 2.
es_text1-line = l_text1.
es_text2-line = l_text2.
es_text3-line = l_text3.
endform. "text_wrap
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |