11-08-2011 12:40 PM
Dear Expets,
i am working on scripts .i should display vendor address with lables.
eg:
Name : david.
Address : XXXXX
phno : 123456789.
for that i am writing following code.but in out put ,i am missing alignment .following is my code for that.
AS Name : ®UH-ZNME1&
AS Address : ®UH-ZSTRA&
AS Phno : ®UH-ZTELF&
but my output is like this.
Name : david.
Address : XXXXX
phno : 123456789.
what would be the problem.please help me out.
11-08-2011 12:43 PM
you're probably using a proportional font and taking an entirely wrong approach to output in SAPScript. Define specific paragraph formats, set your font AND set tabs in the correct position. It's impossible to get spacing/alignment correct using counted spaces.... use tabs always to left, right and decimal align SAPScript output.
Then you can do output like
ZA Name:,,&NAME&
ZA Account:,,&account_no&
etc....and your output will be perfectly aligned.
11-08-2011 12:45 PM
Hi,
AS Name,,: ®UH-ZNME1&
AS Address,,:: ®UH-ZSTRA&
AS Phno,,: ®UH-ZTELF&
Try with the above code and let me know if it worked.
11-09-2011 11:40 AM