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

smartform- text alignment

Former Member
0 Likes
4,825

Can anybody please help?

I have a global data in smartform say “revenue” which is of data type “CURR”, length 28 and decimal place 2.

To display the content of “revenue” I have a text element . Although I have set the Paragraph formats in the text element to be “Helve 10 (left)”, the content of “revenue” always displayed very closed to the right hand side in the cell,seeminly the content is right aligned.

Can anyone please help me with it?

Thanks

Heather

1 ACCEPTED SOLUTION
Read only

alex_m
Active Contributor
0 Likes
2,335

Check the left margin for the paragraph type in SMARTSTYLES.

In text element go to the text editor check thare is any space you r gave in left.

If not get back me with detail steps of your creation.

Alex

10 REPLIES 10
Read only

alex_m
Active Contributor
0 Likes
2,336

Check the left margin for the paragraph type in SMARTSTYLES.

In text element go to the text editor check thare is any space you r gave in left.

If not get back me with detail steps of your creation.

Alex

Read only

Former Member
0 Likes
2,335

Hi Alex,

I have checked Text Editor,there is no space left.

The following values are set in Text:

The text type: Text Element

Start Time: New Paragraph

Paragrap Formats: Helve 10 (left)

Variabl "revenue" is created in Global Definition.

Thank you for your help!

Heather

Read only

alex_m
Active Contributor
0 Likes
2,335

Enter a transaction code SMARTSTYLES and create a paragraph P1 and assign the propeties

Alignment, font name, font size

In a smartform for the text element select the output option, here u assign the smartstyles name.

In Text editor u have P1 and assign that, it will work it out i think.

Alex

Read only

alex_m
Active Contributor
0 Likes
2,335

you can also check, whats the window size for the text element.

revert me still u have issues.

Alex

Read only

0 Likes
2,335

Hi,

Check the alignment of previous text element before the revenue text element.

Sometimes if it is left alignment,even the left alignment of revenue seems to come as right aligned.But actually it is left aligned.

Check that and kindly reward points by clicking the star on the left of reply,if it helps.

Read only

Former Member
0 Likes
2,335

Hi Jayanthi,

thank you for ur reply, I have already checked that.

Hi Alex,

I think the problem is with the data type which I used CRMT_ACT_CURRENCY to define "revenue",when I change the data type from CRMT_ACT_CURRENCY to Text 10, the problem solved.However, as "revenue" contains the total revenue, I don't think it's a good idea to change the data type. You have any idea on it?

Also,thank you for your solution, I will try that, but I need to ask my mentor if I can create something in the package.

Thanks Heather

Read only

alex_m
Active Contributor
0 Likes
2,335

Dont change the type of variable,

You can condense the variable before showing into the text element.

You have to take care of your window size also.

Alex

Read only

Former Member
0 Likes
2,335

Hi Alex,

Thank you for your help!

The window size is fine as I put the revenue in a template, I think I will condense the variable length.

Thanks

Heather

Read only

alex_m
Active Contributor
0 Likes
2,335

I think your issue solved, please close the thread and assign the points.

Alex

Read only

Former Member
0 Likes
2,335

Hi Heather,

Simple way is to have a character field of sufficient length(28) (As char field is left justified, revenue value will be left aligned)....

Regards,

Raj