cancel
Showing results for 
Search instead for 
Did you mean: 

alignment issue

Former Member
0 Kudos

Hi gurus

I am working with script.i want to display MATERIAL MATERIAL-DESCRIPTION QTY ,in table format

,but if the description is too high the QTY is going to right,

I want to give a fixed size for description,if it is long means it has to come in next line not in same line.

Is there any way to give fixed size,I am using the following code.plz give a solution

<CC>&RESBD-MATNR&,,&MSFCV-MAKTX&,,,,&RESBD-BDMNG(C)&

thanks

vivek

Accepted Solutions (0)

Answers (2)

Answers (2)

TMNielsen
Contributor
0 Kudos

Hi vivek

When going from SAPscript to Smartforms, one of the main benefits is that this problem is solved. =0)

The solution Athony is providing is maybe the best one for SAPSCRIPT, but be aware:

"WOW WORLD OF WARCRAFT" take more space than

"I eat a nice ice cream" - - - - - - - although both text have 21 characters.

Best regards

Thomas Madsen Nielsen

antony_paul2
Active Participant
0 Kudos

Hi Vivek

For Every item find the length of the description and if it exceeds some lenght break it into 2 variables say var1 & var2 using

FM RKD_WORD_WRAP and print the second variable var2 if its is not initial.

Regrads,

Antony