cancel
Showing results for 
Search instead for 
Did you mean: 

Left aligned the currency fields in SF

Former Member
0 Kudos

HI

How to align the Currency fields like amounts and qty fields in left justified. Pls let me know.

Thanks

Anitha

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

For left side moving you must declare the corresponding fields as CHAR type or N Type.

then Move Currency values into that fields using Program lines node.

In that program lines node write like :

WRITE in_val TO in_val LEFT-JUSTIFIED.

Display In_val in required position using Text node.

Former Member
0 Kudos

create a paragraph format as left aligned in smart style and assign this to your value

Former Member
0 Kudos

Hi Anvi,

First check the style name you are using in your form.

Go to T/Code smartstyles

there put z* f4 and find that style name or else you create one.

If style name is present then choose that and click on Paragraph formats

and click on each listed type such as A1, A2 etc......

While clicking it you can see the Preview of letters fonts and size ..

in that choose any type whilch is left aligned and also see the font size and style

For ex you have choosen style zsd_inv and paragraph style as A1.

then go to forms and assign that style in the output tab

and choose General attributes and then click the text where you have assigned the itab of curreny field

Go to editor --> change editor then in Tag coloumn Give that choosen paragraph Type

Save and Activate

Then at output you can see the required field left aligned

Regards,

Vinu.R

Former Member
0 Kudos

Hi,

Define variables for currency and amount.

data: v_currenvy TYPE string,

v_amount TYPE string.

Now, pass the value of currency and amount fields to respective variables and use shift statement as

SHIFT v_currency LEFT DELETING LEADING SPACES.

SHIFT v_amount LEFT DELETING LEADING SPACES.

0 Kudos

Hi ,

Have tried creating a paragraph format with left aligned in smartstyles used by the smartform?? If yes and if it does not work,then you can create a variable and pass the value to this variable.make this variable as type Character with the paragraph format left aligned.Hope it solves you problem.

Thanks,

Ahsan