Skip to Content
avatar image
Former Member

RKD_WORD_WRAP issue

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Best Answer
    Sep 21, 2010 at 03:02 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

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 21, 2010 at 01:14 PM

    This works fine for me in ECC 6.0 system.

    What Basis release you are using.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 21, 2010 at 01:16 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • avatar image
    Former Member
    Sep 21, 2010 at 01:28 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.