Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Sapscript Alignment issue

Former Member
0 Likes
1,028

Hi experts,

I'm facing problem in sapscript for the issue of alignment.

I've remove all the space, and yet the result coming out is having big space in between and cause the last few words to go next line.

This is my code.

/ <B8>Defect Location </>,,,,<B8> Defect Class </>

/ <K8>&WQMFE-OTGRP& &WQMFE-OTEIL& &WQMFE-TXTCDGROT(68)&</>

and it cause this layout

Defect Location ,,,,Defect Classs

ZQDEFWEI 0100 INSPECTION ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,ZAAPPER D030 Hole Dimension Out

of Spect

Hole Dimension Out of Spect

This is continuous word, but the "of Spect" is going to next line.

Note:

I didn't put any tab / space ,, in the data retrieve (table and field) there

&WQMFE-OTGRP& &WQMFE-OTEIL& &WQMFE-TXTCDGROT(68)& no tab / space

but it output

ZQDEFWEI 0100 INSPECTION ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,ZAAPPER D030 Hole Dimension Out

of Spect

there's long space/tab in between, and cause the word goes to next line

I've check the page width , there's are wide enough for the whole continous word.

Any ideas / suggestion to solve it?

Please advise, Thank you.

1 ACCEPTED SOLUTION
Read only

former_member784222
Active Participant
0 Likes
828

Hi,

In the paragraph format K8, declare tabs appropriately and try.

regards,

Mouli.

6 REPLIES 6
Read only

former_member784222
Active Participant
0 Likes
829

Hi,

In the paragraph format K8, declare tabs appropriately and try.

regards,

Mouli.

Read only

0 Likes
828

Hi Mouli,

I've tried that, it will goes to next lines as well.

Any other suggestion for this issue?

Thank you

Read only

0 Likes
828

Hi MIlka,

Could you debug and find which value is printing in which variable ..

Since ,,,,, which is being printed seems to be some garbage value since you have not given any tabs..

Kindly check and let me know..

Thanx,

Navin..

Read only

0 Likes
828

Hi Navin,

I've tried to go in sapscript debugger, and the table-field is output the results i want.

Still not get any way to remove the spacing in between to make correct alignment.

Please advise.

Thank you.

Read only

0 Likes
828

try something like this

&WQMFE-OTGRP(10)& &WQMFE-OTEIL(10)& &WQMFE-TXTCDGROT(10)&

specify the lenght for all...May be the field u are facing the probs will have more length by default..

Read only

0 Likes
828

Hi Keshu Thekkillam,

Thank you so much ~~!

Your suggested solution did solve the alignment issue , thank you!

I'll rewards marks for you ~ thanks a lots .