Skip to Content
author's profile photo Former Member
Former Member

How to align sap script..?

Hi experts...

While iam trying to modify VF03(Invoice)sap script iam getting problem.If i open one billing document it is showing corrently...if i open another, the alignment is getting distrubed, because of some discriptions are having more length.Where to fix this problem?

I have adjusted in the main windiow but no use.Do i need to change in Internal table(if any)?

Kaki

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2005 at 05:01 PM

    hi,

    if u r having a problem in printing a currency field or quantity field, try using Condense option for

    eg: &v_netpr(C)&.

    Vamshi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 20, 2005 at 01:44 PM

    You will need to change the tab setting of the paragraph format. Move the tab to the right of the description a little further right.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 20, 2005 at 01:46 PM

    Hi,

    You can use the tab which can be defined in the paragraph. For example 10CH, 15CH, 22CH etc

    Or check what can be the maximum available length for that field to display in the SAPScript and then use the offset option get rid of mis allignment.

    E.g. &MAKT-MAKTX+0(20)&

    Cheers

    Vinod

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2005 at 10:35 PM

    Kaki,

    Rich is right. You need to define your Paragraph Formats properly. From SE71, go to the Paragraph Formats. There should be a button toward the bottom right of the screen called "Tabs". Here is where you define your tab settings (ie your 'columns').

    Within your SAPscript editor use your Paragraph Format, and to use a 'tab', you need to enter ',,'.

    eg:

    Paragraph Format is Z1 with tabs at 10CH, 20CH and 30CH

    Z1 &MARA-MATNR&,,&MARA-MTART&,,&MARA-BISMT&,,&MARA-MAKTX&

    this is the same as saying:

    WRITE:/ MARA-MATNR.
    WRITE:  AT 10 MARA-MTART,
            AT 20 MARA-BISMT,
            AT 30 MARA-MAKTX.
    

    Hope this helps.

    Cheers,

    Pat.

    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.