cancel
Showing results for 
Search instead for 
Did you mean: 

Having problems in aligning my text in Sapscript...

aris_hidalgo
Contributor
0 Kudos

Hello Experts,

I am displaying 4 items in my main window and created a paragraph format with tab

spacing. Now my problem is this, when one of the variables does not have a value, the items

on the right of it moves to the left so it misaligns. How can I do it in such a way that

even though one of the items does not have a value, it will still be in place?

Thank you guys and take care!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Are you give the fields in this manner??:

p1: &var1&,,&var2&,,&var3&,,&var4&,,&var5&,,&var6&

If you are giving in the above manner, I dont think they will misalign if there is no value also.

Regards,

Vishwa.

aris_hidalgo
Contributor
0 Kudos

Hello Experts,

I have defined my items this way:


T1    &REGUP-XBLNR&,,&REGUP-BLDAT&,,&LTYC_SGTXT&,,&REGUP-DMBTR&

And in my TABS, I have the values of 2.20 CM(Left), 2.30 CM(Left) and 14 CM(Decimal).

The 2.20 CM is for the &REGUP-BLDAT&, the 2.30 CM is for the &LTYC_SGTXT& and 14 CM for the &REGUP-DMBTR&.

Former Member
0 Kudos

Hi,

Try to change you tab settings.

Mayby you date is supposed to start at 2.2 cm and next field at 2,3 cm. Thas will give only 0,1 cm for the date to be printed on.

If the date exists all other fields will be pushed to the right. If the date is missing next fields could start in given position.

Regards

Åsa Thenstedt

Answers (3)

Answers (3)

Former Member
0 Kudos

T1 &REGUP-XBLNR&,,&REGUP-BLDAT&,,&LTYC_SGTXT&,,&REGUP-DMBTR&

And in my TABS, I have the values of 2.20 CM(Left), 2.30 CM(Left) and 14 CM(Decimal).

Here

1. 2.20 is for &REGUP-XBLNR&

i.e. &REGUP-XBLNR& occupies still 2.20CM and &REGUP-BLDAT& starts from 2.20CM

2. &REGUP-BLDAT& starts from 2.20 and extends still 2.30CM and so on...

check it out .......

Former Member
0 Kudos

Hi virylab,

if u r passing that variables from print porgram .

then check before passing to Form .

if field is initial. then pass spaces of the desired length . to it.

i thinku can do the same thing in form also..

try it .. all the best..

Thanks ,

GSANA

h_senden2
Active Contributor
0 Kudos

Use the ,, (tab) in sapscript and it should work even if one of the variables is empty.

regards,

Hans