cancel
Showing results for 
Search instead for 
Did you mean: 

script tab info req??

Former Member
0 Kudos

hi

i had an req like to display in format the quantity with there values below them:

quan1 quan2 quant3 quan4 quan5

value: 10 11 12 13 14

my above line is displaying like this,but below line is coming:

value: 10 11 12 13

14

i want to take this in same line,below there respective quantity lables.pleae tell how to do?

also when i make a para p7,the TAB option in that shows only 3 tabs,tell what to do,if fileds in a line are 5,6,than how to give tab spacing b/z them.

my code:

P8 INVOICE VALUE:

= &DTL2-MENGE&,,&DTL2-RATE&,,&DTL2-RATE1&,,&DTL2-RATE2&,,&DTL2-VALUE&

tabs in P8

1. 2cm

2. 3cm

3. 4cm.i am not very much clr with this tab funda,plz explain me.

regds

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

SAP Scripts tabs reference is taken from left side of the window but not left side of the page. In tabs we have three alignments

1. left.

2. Right.

3. Center.

For example if we used 10 CM left then it start writing from 10 CM onwards in the forward direction.

If we used 10 CM right, then it start writing from 10 CM in backward direction such that writing of data will end at 10 Cm.

If we used 10 CM center as reference, then it take 10 CM as reference and writes such that center of the word should maintained at 10 CM.

Now try to put tabs according to your requirement.

Hope this will give you some idea.

Regards,

Aswini.

Former Member
0 Kudos

This is how tab concept work in SAPscript or in Smartform.

Go to your paragraph format and click on tabs.

Now define all your tab scpaces here.. Since you have 5 variable your can define either 5 or 4 tab spaces, for your undertanding I will define 5 tab spaces, let us assume our paragraph format is AS

Tabspaces: for paragraph AS

Tab Position Alignment

0.2 CM LEFT

1.2 CM LEFT

3.7 CM LEFT

5.5 CM LEFT

6.5 CM LEFT

Now inside your window call you paragraph format with tab spaces with all your variables as shown below

AS ,, &variable1& ,, &variable2& ,, &variable3& ,, &variable4&,, variable 5&

In above ,, --> represents tab spaces

since, before variable 1 we have given a tab space as shown above it will print at 0.2 CM position from window start and second variable will print from 1.2 cm from start of window and 3rd variable will print at 3,7 CM from start of window and so on...

Close the thread once your question is answered.

Regards,

SR

bpawanchand
Active Contributor
0 Kudos

HI

instead of CM use Ch (characters) characters are nothing but your normal characters then you will solve this issuse

Regards

Pavan

Former Member
0 Kudos

no its not working.

pleasee tell me,if thre are 4 fileds to be displayed,easch with tabs,than suppose in my P! there are tabs for 1cm,3cm,5cm,than in window:p1:,,filed1,,filed2,,filed3?filed4

if tab in need to be placed how many ,, to be placed?

bpawanchand
Active Contributor
0 Kudos

Hi

In the text editor you have to write in this way for example

P4 : S.No.,,Carrier ID,,Connection ID,,City from,,City to

suppose in P4 I have defined in this way

1. 8 CH LEFT ( Starting from SNO it will consider 8 Char's and after char's it will write Carrier ID

2.26 CH LEFT (Starting from SNO it will consider and write Connection ID.

3. 43 CH LEFT

4. 59 CH LEFT

,, this represents TAb between two fields

Regards

Pavan.

former_member585060
Active Contributor
0 Kudos

To get output in same line use '=' in Command line where we give Paragraph format.

If u have 4 fields and the Paragraph format has 3 tabs defined.

Fields

F1, F2, F3, F4

Tabs in P1

1) 10 CH

2) 20 CH

3) 30 CH

in SAPScript text editor

P1 &F1&,,&F2&,,&F3&,,,,&F4&

so fields F1, F2 and F3 have a 10 CH with each other and F4 will be at

20 CH from F3.

just look at any standard script, even though they print more than 5 fields only 3 - 4 tabs are defined. and same is used for 6 field.

Edited by: Bala Krishna on Aug 9, 2008 2:21 PM