Skip to Content
avatar image
Former Member

Sapscript word wrapping

Hi Gurus

I am having a challenge on wrapping my text using a sap script.On my research i found out that i can use function module rkd_word_wrap.I am failing to apply the concept. Please see image below on the material description column.The text is quite long so its pushing other elements thus distorting the alignment.

Regards

Rejoice

qout.png (129.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 13, 2015 at 11:15 AM

    Hi Rejoice,

    I'm assuming from your question you've discounted the option of truncating the text to fit the space available and want to display all of the text split over multiple lines.

    Function module rkd_word_wrap is certainly your friend here.  Let's assume you have 30 characters available on the form to display the text, pass the material description to rkd_word_wrap and an Output length value of 30.  Based on that fill 3 (assuming you think the full material text can be accommodated in 3 * 30 char lines) variables and output them on the form across 3 lines.

    Regards,

    Nick

    Add comment
    10|10000 characters needed characters exceeded