on 09-21-2010 2:05 PM
Hi all,
Am passing a string of 500 charactes to RKD_WORD_WRAP.
Internal tabel has only two rows as output.And not entire string is wraped in internal table.
Can anybodu please hlp to resolve why whole string is not obtained in internal table.
data: s_str(3000) .
CONCATENATE 'First you have give a repeat out put using Me9F. Go to ME9F ,Processing status 1 and selct the one with green Tick mark a'
'give a repeat out put using Me9F. Go to ME9F ,Processing status 1 and selct the one with green mark and give repeat out put. Know means to the Purchase order it is ready for a new print out.'
into s_str.
TYPES: BEGIN OF X_TEXT,
STR(132),
END OF X_TEXT.
DATA: IT_TEXT TYPE STANDARD TABLE OF X_TEXT,
WA_TEXT TYPE X_TEXT.
CALL FUNCTION 'RKD_WORD_WRAP'
EXPORTING
TEXTLINE = s_str
DELIMITER = ' '
OUTPUTLEN = 132
TABLES
OUT_LINES = IT_TEXT
EXCEPTIONS
OUTPUTLEN_TOO_LARGE = 1
OTHERS = 2
.
Edited by: Sanjay_lnt on Sep 21, 2010 3:06 PM
This happens because of the note 1307869 which has introduced the SPLIT_COMPLEX subroutine. This subroutine restrict it to 256 characters.
Note 1407684 should correct this behavior.
Regards,
Naimesh Patel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You'll notice that the input to RKD_WORD_WRAP is a type c.
Therefore, I declare
data: lv_text(65535) type c.
lv_text = the_string.
When you call the FM, supplying the delimiter (or default), the FM will return enough rows to hold the input...so if you have less than 265 characters in your string, you'll get two rows.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kindly ingnore the below line...
The string you are providing is not more than 1322 characters...
I am getting 3 rows in the output table....
VR.
Edited by: Veeranji Reddy on Sep 21, 2010 6:50 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This works fine for me in ECC 6.0 system.
What Basis release you are using.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.