Application Development 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: 

alignment issue with address

naresh_bammidi
Contributor
0 Kudos

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        : &REGUH-ZNME1&
AS   Address   : &REGUH-ZSTRA&
AS  Phno          : &REGUH-ZTELF&

but my output is like this.

Name : david.

Address : XXXXX

phno : 123456789.

what would be the problem.please help me out.

3 REPLIES 3

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

AS Name,,: &REGUH-ZNME1&

AS Address,,:: &REGUH-ZSTRA&

AS Phno,,: &REGUH-ZTELF&

Try with the above code and let me know if it worked.

naresh_bammidi
Contributor
0 Kudos

answered.