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 number formatting

karthick1608
Participant
0 Likes
3,250

Hi,

In the smart form output,

previously the value maintained was 5348.16.

it should be converted to -5348.16 instead of -534.816.

-534.816 is due to the logic maintained in smart form was 'fieldname(<C.0)'.

Why it is printed as such? what is the logic of above formatting ?

How can I overcome this ?

Thanks

Karthick

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
2,565

(First read Rules of Engagement and remove the 'as soon as possible'.)

Then search/read online help or forum, e.g. Output Options for Field Contents (so you will understand that So '<' is sign left, 'C' is condense and '.0' is no decimal) and then consider reading Fields that Refer to Currencies or Quantities too.

Hi,

In the smart form output,

previously the value maintained was 5348.16.

it should be converted to -5348.16 instead of -534.816.

-534.816 is due to the logic maintained in smart form was 'fieldname(<C.0)'.

Why it is printed as such? what is the logic of above formatting ?

How can I overcome this ?

Thanks

Karthick

6 REPLIES 6
Read only

RaymondGiuseppi
Active Contributor
2,566

(First read Rules of Engagement and remove the 'as soon as possible'.)

Then search/read online help or forum, e.g. Output Options for Field Contents (so you will understand that So '<' is sign left, 'C' is condense and '.0' is no decimal) and then consider reading Fields that Refer to Currencies or Quantities too.

Read only

0 Likes
2,565

but in my variable it is displaying with 2 decimal point.

Like 5.612.312

it must be like 5,612,312.00

how can i modify the change?

Read only

0 Likes
2,565

@Karthick R : Raymond told you that .0 means no decimal. If you search a little bit, you can imagine that .2 means 2 decimals... Examples here: https://help.sap.com/saphelp_nw70/helpdata/en/d1/803479454211d189710000e8322d00/content.htm

Read only

Former Member
0 Likes
2,565

Is this a currency value ? Have you maintained the currency format in the form ?

Read only

Florian
SAP Champion
SAP Champion
2,565
but in my variable it is displaying with 2 decimal point.
Like 5.612.312 
it must be like 5,612,312.00
how can i modify the change?

This comes from the country-specific settings. HAve a look in table T005 and also at

SU3 / SU01 & Global Settings OY01

The samrtforms gives you this result because of a setting here.

Read only

karthick1608
Participant
0 Likes
2,565

Yes, it is a currency value. It is maintained correctly.