Skip to Content

alignment issue with address

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 08, 2011 at 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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 08, 2011 at 12:45 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 09, 2011 at 11:40 AM

    answered.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.