cancel
Showing results for 
Search instead for 
Did you mean: 

SAPscript - Fixed position for vline

Former Member
0 Kudos

Greetings.

Hi i'm facing this problem in fixing the position for my vline ( to draw vertical line). The reason i need this solution is because currently i'm using variable that have flexible length.

The vline will be push to the left and right depend on the outcome value.

&sum1-zsumin&,,&sum1-zsum1&<vl>&Vline&</>

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try This way:

&sum1-zsumin&,,&sum1-zsum1&,,' | '

This will help.

Regards,

Prashant

Former Member
0 Kudos

Prashant,

I tried your code but the result is the character ' ' and vline appear together. If possible can you explain bit more.

Thank yo.

Former Member
0 Kudos

Hi,

Put it this way,

&sum1-zsumin&,,&sum1-zsum1&,, |

Check it.

Regards,

Prashant

Former Member
0 Kudos

Prashant,

namastee

I try your suggestion but the vline is changing based on the output data.

p/s i hope if any one can share links/book to master SapScript.

Thanks again

Former Member
0 Kudos

Hi,

you can fix the output size of your variables

eg. Do not use &mseg-bkml&

but &mseg-bkml(11)& on this way the output length is always11 char.

Besides that you can it is better to use an non-proprotional font like courier.

If you pick a size of each variable that fitts in the tabs your vline will be correct.

Success.

Gr.,Frank

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi.

Please try.

Paragraph formats -> Tabs -> Tab position

The position of vline is declared.

&sum1-zsumin&,,&sum1-zsum1&,,| <--- vline

Former Member
0 Kudos

Tayori Higurashi-san

I'm using different paragraph format for this line(W6) and for the vline I'm using character formats.

W6 ,,&sum1-zdpnokl&,,&sum1-zdpstok&,,&sum1-zdpamkl& <vl>&Vline&</>

W6 - is my pragraph format.

Could you help to explain more. I'm newbie to this SapScript

arigato

Edited by: badz lee on Jun 12, 2009 11:46 AM