cancel
Showing results for 
Search instead for 
Did you mean: 

RKD_WORD_WRAP issue

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

naimesh_patel
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thank you everybody.

i used IQAPI_WORD_WRAP and has worked perfectly.

Answers (3)

Answers (3)

Former Member
0 Kudos

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.

Former Member
0 Kudos

I do have more than 264 chars in string.

Surprisingly,code works wel in another server.But not in my curent sandbox server.

can anybody guide me what can be reason.

Both server are 6.0.

Former Member
0 Kudos

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

Former Member
0 Kudos

Why should that be a problem.

My string is more that 132*2 and i want that string in table rows.

As of now am getting only two rows in tabels .That means onlt 132*2 characters are wrpped.What can be the reason?

Please guide.

Sandeep_Kumar
Advisor
Advisor
0 Kudos

This works fine for me in ECC 6.0 system.

What Basis release you are using.

Former Member
0 Kudos

I ma using 6.0.