on 01-24-2010 9:23 AM
Hi,
In SAPscript you can use an output length specification to define how many bytes of the value should be printed. Syntax:
&symbol(length)&
Example:
<symbol> has the value 123456789:
&symbol(3)& -> 123
&symbol(7)& -> 1234567
You can also combine an output length specification with an offset specification. Example:
&symbol+4(3)& -> 567
Problem is that all the output lengths above are static, i.e., the lenghts have been defined in advance.
In my case I need to first print an underline, and then on the next line I print some text with a variable output length. However, the output length of both the lines should be equal. How can I achieve this? This should be easy, shouldn't it? I have been trying to solve this a long time, without any success. I have also googled a lot, but havent' been able to find any solution yet.
Is it possible to define the output length dynamically, e.g., define another variable, and assign some value in it, and then just print the value with that output length value?
Thanks in advance for your help.
Regards,
Jarmo Tuominen
I dont think u can define lenght dynamicaly, but what u can do is use a do loop on the dynamic variable and print variable i.e ur underline in the loop, printing on dash at a time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.