cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding left justified and right justified in sap script

Former Member
0 Kudos

Hi Experts,

I create sap script. in sap script i have 2 field in one row 1) amt discription and other is amount... amt discri is a left side and amount is a rigth side like:

amt discript amt

blablabla 100

now what i want amt disc should be left side and and amt should be right side...

so how can i do this?? if that 2 field is different row so i have no problem but this field in one row.. so how can i make paragraph element or give tab in one row...

Give me suggetion.

Vishal

Accepted Solutions (1)

Accepted Solutions (1)

naimesh_patel
Active Contributor
0 Kudos

For this you need to create TABS in Paragarph formats.

Like:

1     2 CM LEFT        " << This is for description...
2     15 CM RIGHT    "<< This is for the Amount

So, for any amount and quantity field you have to make tabs like this.

Regards,

Naimesh Patel

Former Member
0 Kudos

Hi Naimesh,

Thanks for reply... how r u???

so how can i define in sap script like

amtdiscrip,,amt

give me suggetion

Vishal

naimesh_patel
Active Contributor
0 Kudos

I am fine...Thanks.. How are you?

You can go to SE71...

Go to Paragarph ...select your paragraph say <b>P1</b>.. go to Tabs..

Now define as I have suggested...

If you want to use only one for the Amount that define like:

1 15 CM RIGHT..

In the text element write like this:


P1      Amt Desc,, AMT

RIGHT tab means, the value related to that field should end before the specified limit. Like in this case it should end at 15 CM.

Regards,

Naimesh Patel

Former Member
0 Kudos

Hi Naimesh,

i am also fine.

I Want to display both Amt disc and amount

2 cm left

15 cm right

and in text element how can i declare???????

i just right i don`t know perfectly

P1 ,, Amt disc,,Amt

Give me suggetion

Vishal

naimesh_patel
Active Contributor
0 Kudos

<b>P1 ,, Amt disc,,Amt</b> is 100% right...

This should be your tab settings in the P1 paragraph...

Tab   Distance   Alignment
1      2 cm         left
2     15 cm         right

Regards,

Naimesh Patel

Former Member
0 Kudos

convert that amount into character variable and then use the Left or Right justified whichever you want.

Thanks,

Srinivas

Former Member
0 Kudos

Hi all

Thanks

Vishal

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Vishal,

do like this

&amtdec(L)&

&amount(R)&

Reward points if it helps,

Satish

Former Member
0 Kudos

Hi Satish,

i gone through ur way... &amtdec(L)& its perfect working but &amount(R)& not going on right side.its besides with "amt disc"

give me suggetion

Vishal