12-26-2014 10:16 AM
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
12-26-2014 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.
12-29-2014 4:30 AM
Hi Krishna,
Can you please be a bit more elaborate??
Regards,
Debapriya
12-29-2014 5:20 AM
Hi Debapriya,
,, -----> Consider the tab position value(5).
Hope it helpful.
Regards,
Venkat.
12-29-2014 5:28 AM
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.
12-29-2014 5:37 AM
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.