on 2010 Feb 02 12:08 PM
Hi pros,
a simple question, but i do not find the answer fast.
I have a number and want it to be printed as a natural value ( no decimals ).
I thought i could do it like this in SAPScript: &number(I)&.
This didn't work out.
Where do i find the formatting commands for SAPScript?
Thanx in Advance
Jan
Hi, thanks 4 your incredible fast answer.
I guess i got the problem: (.0) would only work for numbers.
Maybe although containing this variable is a char...
This also seems realistic, since i can cut off the lenth (e.g. (5) will cut it to five letters)...
best regards /J
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The thing is:
it doesn't work in debug mode:
MENG_NET_SUM(.0) shows 142.881
and not in print-out:
&MSEG_NET_SUM(.0)& results in 142.881...
Why is this? MAybe a language problem?
Thx Jan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your answer!
I've been trying to use this formatting, but it doesn't round the numbers.
Does this not work in debugger? Can i only see the formatted results in the print-out?
My best wishes
Jan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
[sap library - sapscript - formatting options|http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/803411454211d189710000e8322d00/frameset.htm]
Number of Decimal Places &symbol(.N)&
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.