Skip to Content
avatar image
Former Member

Tab positions in sapscript

Hello All,

I have a requirement in sapscript for which I want to use tab positions but I need a bit of help on how to use it. The requirement is as below:

Invoice No. INV01, INV02, INV03, INV04, … (up to right side)

                    INV10, INV11, INV13, INV14, … (up to right side)

so the invoice number 10 should appear just below invoice number 1. For this I want to use tab to align the invoice numbers.

These invoice numbers are coming from loop in the driver program. In the script, it's done like below:

/:   IF &V_FLAG1& EQ '1'.

/   <S>TAX INVOICE NO.: &V_INVNO&

/:   ELSE.

=   ,&V_INVNO&

/:   ENDIF.

Please advice me where to put the paragraph format with the specified tab position. Also, suggest what should be the tab positions i.e. the places.

Thanks in advance.

Regards,

Debapriya

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Dec 26, 2014 at 10:36 AM

    Hi Debapriya,

    In paragraph format you can mention tab in SAP scripts.

    Select Paragraph then select tab option in right bottom.

    give position for space movement required like   5   CH   LEFT

    In code add ,,&invoice&

    then invoice no will be printed after mentioned characters.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Please find below screenshot an example how to do it

      In code in script if you add

      H4 ,,&invoice&


      H4 -- Paragraph format

      ,,    -- Tabs

      Here tab position i gave 5 so when you give ,, in front of invoice it will take 5 blank spaces and start printing invoice from 6th position.

      script.PNG (7.5 kB)