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 sapscripts

Former Member
0 Likes
2,269

I am trying to change a paragraph format such that the tabs contain positions and so the text is displayed starting at a specific position in the document. But adding the tab positions is not moving the actual text. What could I be doing wrong?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,824

Hi,

in the sapscript have you used the command ',,'? In paragraph format have you defined correctly your tab?

Regards,

Leo

I am trying to change a paragraph format such that the tabs contain positions and so the text is displayed starting at a specific position in the document. But adding the tab positions is not moving the actual text. What could I be doing wrong?

12 REPLIES 12
Read only

Former Member
0 Likes
1,825

Hi,

in the sapscript have you used the command ',,'? In paragraph format have you defined correctly your tab?

Regards,

Leo

Read only

0 Likes
1,824

yes in the sapscript I am using ,, as a way to do tab positioning

Read only

0 Likes
1,824

Hi,

can you write your code?

I have to understand better your problem.

Regards,

Leo

Read only

0 Likes
1,824

CP is the paragraph format

CP        Contact Person                  LEFT           0,10  CM    0,00  CM
15.00  CM          LEFT

This is how I am using it

CP	 	&acc-sydt&,,&acc-contact&,,&PAGE& / &sapscript-formpages(2)&

This is the window it is been used in

DATE       Date, Your contact and page    9,70 CM   2,00 CM  10,00 CM   1,00 CM

Now I would expect the contact text to start from 15.00 cm. But it does not, it starts right after the date

Read only

0 Likes
1,824

Megan

You need to write it as shown below

CP ,,&acc-sydt&,,&acc-contact&,,&PAGE& / &sapscript-formpages(2)&

You need to give the tab for the first field as well

Try checking it

Read only

0 Likes
1,824

hi,

try to reduce the tab no 15 cm. the window where you would write is large enough?

Read only

0 Likes
1,824

is it 15 cm from the start of page or from the window ?

Read only

0 Likes
1,824

the window.

Read only

0 Likes
1,824

Thanks to you all. It was a careless mistake on my part. I gave the tab much bigger than the window itself

Read only

Former Member
0 Likes
1,824

hi, Activate and check again. You need to specify the tab positions in paragraph format and use it in the spascript. Give the paragraph format and use ',, ' with text to specify the tab positions.

Read only

Former Member
0 Likes
1,824

Hi

Just check whether if u are testing in same client. Becoz sapscript is client dependent. If u are tesying in different client den u have to pull that request.

for that go to

SCC1

enter workbench request number.

check the checkbox Include request subtasks.

and click on start immediately.

hope it works.

otherwse do on some trial and error basis give more width for tabs.

also write variable like &var1(C)&

Read only

Former Member
0 Likes
1,824

Hi Megan,

Write the piece of code here where you are facing the problem.

Thanks