cancel
Showing results for 
Search instead for 
Did you mean: 

problem of shifting of the data when the length of related variable varies.

Former Member
0 Kudos

Dear All

I want to print following matter in Smartform

'Cash Discount @' followed by the variable defined as charcter with length 6 related to percentage i.e 2 % and then followed by the Amount .

'Turn Over Disc. @ followed by the variable defined as charcter with length 6 related to percentage i.e 2 % and then followed

by the amount.

I have taken utmost care in the size of the variable by defining the text elements as

let say cash % = zcash and turn over disc = zturn

The following is defined in the smartforms

'Cash discount @' &zcash(6R)& &zcash_amt(13.2R)

Turn Over Disc. @' &z_turn(6R)& &zturn_amt(13.2R)

Still the output is

'Cash discount @' 1 % 176.01

Turn Over Disc. @' 3 % 56.91

Can any body guide to get exact alignment for the amount.

Regards

AVS

Accepted Solutions (1)

Accepted Solutions (1)

satyajit_mohapatra
Active Contributor
0 Kudos

You can use tabs for it. Otherwise, the second value will shift as per the length of the first value.

Answers (6)

Answers (6)

Former Member
0 Kudos

thanks every body

The matter was solved with using Tab in paragraph format.

Regards

Anjali

Former Member
0 Kudos

Can any one help me in smart styles.

I would like to set the tab setting in the paragraph formats.

my query is

1. The first tab position is caluculated from the left window .

2. How about the second tab , is it inclusive of first tab ??

f any body can guide .?

AVS

Former Member
0 Kudos

Hi..

Yes you are right..it is the absolute distance from the left side of the window. Second Tab also includes the first tab, the first variable and the reserved space between the first var. and second var.

Eg.VAR1 ,, VAR2 ,,,,VAR3,,,,,,VAR4.....

tab1 - 1cm

tab2- 4cm

tab3- 9cm

Regards,

Karthik

Former Member
0 Kudos

Hi..

I would suggest you to use template with two columns, without boundary shading.

Let the texts be left aligned in first column and the amount field be compressed, right aligned using right aligned paragraph format in the column next to it.

Karthik

Former Member
0 Kudos

Can I have Tab Setting done , similar to one which is done in SE71 (form painter) . In se71 .

Regards

AVS

Former Member
0 Kudos

Dear Selva K

Sorry, its not working with tab also.

Result is same.

Regards

AVS

Former Member
0 Kudos

thanks Kartik ,

I had used the Right alignment font for amount variable also, but result turned out to be same.

Any other clue??

Regards

Anjali

Former Member
0 Kudos

Hi Anjali,

Did you try with the tab option?


For instance:
 'Cash discount @'  	&zcash(6R)&	 &zcash_amt(13.2R)
 u2018Turn Over Disc. @' 	&z_turn(6R)&	 &zturn_amt(13.2R)

It should work. Please try.

Regards,

Selva K

Edited by: Selvakumar Krishnan on Jul 6, 2010 9:40 AM

Edited by: Selvakumar Krishnan on Jul 6, 2010 9:40 AM

Former Member
0 Kudos

Hi..

Try using a template for fixing the position of the texts and a right aligned font for the amount variable.

This may work properly.

Regards,

Karthik