on 01-11-2007 10:09 AM
Hi Everyone,
i have finished a script, where in the final output i am getting decimals, its a quantity field vbrp-fkimg, how do i avoid it....and where do i do it....
thanks in advance,
capc
Hi,
<b>&symbol(.N)&</b>- Display upto <b>N decimal places</b>
Just specify 0 for not to display any decimals
<b>&VBRP-FKIMG(.0)&</b>
Check this link to get format options in scripts
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/sapscript&;
Thanks,
Vinay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
If you want always to print the number without decimals:
&VBRP-FKIMG&(.0)
If you need to print the number in according the measure unit, try to use a char variable:
- In program
WRITE: VBRP-FKIMG UNIT VBRP-MEINS TO FKIMG.
- In sapscript
&FKIMG&
Max
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.