Application Development and Automation 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: 
Read only

Tab positions in sapscript

Former Member
0 Likes
2,368

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

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

5 REPLIES 5
Read only

Former Member
0 Likes
1,455

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.

Read only

0 Likes
1,455

Hi Krishna,

Can you please be a bit more elaborate??

Regards,

Debapriya

Read only

0 Likes
1,455

Hi Debapriya,

,, -----> Consider the tab position value(5).

Hope it helpful.

Regards,

Venkat.

Read only

0 Likes
1,455

Hi Debpriya,

,, means one tab

You can use it in your script as shown below:

,, &field1&  - means field1 would be displayed in 2nd tab position.

Read only

0 Likes
1,455

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.