01-13-2015 10:04 AM
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
01-13-2015 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