Remove decimal places
I am using Report Builder 9i. I have an horizontal bar with the values being displayed next to the bars.
The first value is 1.000, second value 58.00, third value is 533.0. How can I change the format so no decimal places are displayed.
Thanks
Brendon
But it is not working dear..... Check ma XML code
See this coding I have to remoce the decimals from this...how can i do that...plz help me....
<rw:graph id="CT_1" src="G_COMP_CODE" groups="DEPTCODE" dataValues="Department">
<!--
<?xml version="1.0" ?>
<Graph version="2.5.0.5" depthAngle="0" pieDepth="0" pieTilt="0">
<DataviewFootnote foreground="#0" background="#ffffff"/>
<DataviewSubtitle foreground="#0" background="#ffffff"/>
<DataviewTitle foreground="#0" background="#ffffff"/>
<MarkerText visible="true"/>
<O1Axis lineWidth="1"/>
<O1MajorTick visible="false" lineWidth="1"/>
<O1Title textRotation="TR_HORIZ_ROTATE_90"/>
<PieFrame fillTransparent="false"/>
<SeriesItems>
<Series id="0" color="#99ccff"/>
</SeriesItems>
<X1Axis lineWidth="1"/>
<Y1Axis lineWidth="1" axisMinAutoScaled="false" axisMinValue="0.0" axisMaxAutoScaled="false" axisMaxValue="400.0" majorTickStepAutomatic="false" majorTickStep="50.0"/>
<Y1MajorTick visible="false" lineWidth="1"/>
<Y1Title visible="true"/>
<Y2Axis lineWidth="1"/>
<Y2MajorTick visible="false" lineWidth="1"/>
</Graph>
-->
</rw:graph>
-----
Similar Messages
-
To remove decimal places and round
hi all ,
select (sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) <> upper('Top')) then
(((((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)*94)/2000) )
when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
( ((nvl(H.CLASS_V_CEMENT,0)*94)/2000) )
when F.ITEM_UOM = 'Pound' then
CEIL( ROUND((((((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100)))/2000
end)*(j.opn_value/2)) SUM_MAT_ACT_TON ,--------transport
sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) <> upper('Top')) then
((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)
when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
nvl(H.CLASS_V_CEMENT,0)
when F.ITEM_UOM = 'Pound' then
ROUND(((ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100 )/P.ATTRIBUTE5)
end) SUM_sload , ----sload
sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) <> upper('Top')) then
((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)
-- when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
-- nvl(H.CLASS_V_CEMENT,0)
when F.ITEM_UOM = 'Pound' and F.BLEND <> 'PH'then
ROUND(((ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100 )/P.ATTRIBUTE5)
end) BLENDING
,e.opn_job_desc
FROM xxnp_opn_joblog_001 E,
XXNP_OPN_JOBLOG_EST_002 F,
XXNP_OPN_JOBLOG_STAGE_002 G,
XXNP_OPN_JOBLOG_SLURRY_003 H,
XXNP_OPN_JOBLOG_RES_005 J,
MTL_SYSTEM_ITEMS_B P
WHERE E.OPN_JOB_DESC = 'K/D/SP158/SA399/1338/D/0510/1' AND
E.MANUAL='N'
and J.opn_resource_desc='4X4 PICK-UP OR LIGHT VEHICLES'
AND E.OPN_JOBLOG_001_ID = J.OPN_JOBLOG_001_ID
and F.INVENTORY_ITEM_ID=P.INVENTORY_ITEM_ID
AND p.ORGANIZATION_ID='103'
AND E.OPN_JOBLOG_001_ID = G.OPN_JOBLOG_001_ID
AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID
AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID
GROUP BY E.OPN_JOB_DESC,j.opn_value
o/p i am getting
SUM_MAT_ACT_TON SUM_SLOAD BLENDING OPN_JOB_DESC
11587.7954154787 1957.62401925833 1454.62401925833 K/D/SP158/SA399/1338/D/0510/1
well can anyone guide me on obtaining the following output (to remove decimal places and round )
SUM_MAT_ACT_TON SUM_SLOAD BLENDING OPN_JOB_DESC
11588 1958 1455 K/D/SP158/SA399/1338/D/0510/1thanking in advance
Edited by: makdutakdu on May 25, 2010 12:48 PMselect round( (sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) upper('Top')) then
(((((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)*94)/2000) )
when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
( ((nvl(H.CLASS_V_CEMENT,0)*94)/2000) )
when F.ITEM_UOM = 'Pound' then
CEIL( ROUND((((((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100)))/2000
end)*(j.opn_value/2))) SUM_MAT_ACT_TON ,--------transport
round(sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) upper('Top')) then
((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)
when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
nvl(H.CLASS_V_CEMENT,0)
when F.ITEM_UOM = 'Pound' then
ROUND(((ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100 )/P.ATTRIBUTE5)
end)) SUM_sload , ----sload
round(sum(case when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) upper('Top')) then
((H.SLURRY_VOL_ACTUAL * 5.6146)/H.SLURRY_YIELD)
-- when (F.ITEM_UOM = 'Cubic Feet' and upper(substr(H.SLURRY_TYPE,1,3)) = upper('Top')) then
-- nvl(H.CLASS_V_CEMENT,0)
when F.ITEM_UOM = 'Pound' and F.BLEND 'PH'then
ROUND(((ROUND(((H.SLURRY_VOL_ACTUAL * 5.6146)/DECODE(H.SLURRY_YIELD,0,NULL,H.SLURRY_YIELD)))*94)*F.ITEM_PERCENT/100 )/P.ATTRIBUTE5)
end)) BLENDING,
e.opn_job_desc
FROM xxnp_opn_joblog_001 E,
XXNP_OPN_JOBLOG_EST_002 F,
XXNP_OPN_JOBLOG_STAGE_002 G,
XXNP_OPN_JOBLOG_SLURRY_003 H,
XXNP_OPN_JOBLOG_RES_005 J,
MTL_SYSTEM_ITEMS_B P
WHERE E.OPN_JOB_DESC = E.OPN_JOB_DESC AND
E.MANUAL='N'
and J.opn_resource_desc='4X4 PICK-UP OR LIGHT VEHICLES'
AND E.OPN_JOBLOG_001_ID = J.OPN_JOBLOG_001_ID
and F.INVENTORY_ITEM_ID=P.INVENTORY_ITEM_ID
AND p.ORGANIZATION_ID='103'
AND E.OPN_JOBLOG_001_ID = G.OPN_JOBLOG_001_ID
AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID
AND G.OPN_JOBLOG_006_ID = H.OPN_JOBLOG_006_ID
AND H.OPN_JOBLOG_007_ID = F.OPN_JOBLOG_007_ID
GROUP BY E.OPN_JOB_DESC,j.opn_value -
Removing Decimal Places from Graph labels
One axis on my graph is showing decimal places despiting formatting the report field to show 0 places - the graph is reading decimal places directly from the database underneath the report . Other than editing each axis label manual (or editing the original database field) does anyone know of another way I can elimate the decimal places from the graph?
That solution only works for the x-axis but not the y-axis (or the other way round, depending on whether the chart is horizontal or vertical).
The values of the y-Axis are formatted according to the default Number Formatting. If you can afford this, change the default number formatting to 0 decimal places.
Another workaround would be to create a formula. Let's say amount was your database field. Then the formula would be
ToText({AMOUNT},0)
Put that in your chart instead of the original database field.
Cheers,
Florian -
Formula Variable decimal Places
Dear All,
Is there any way i can remove decimal places from Formula Variable / Type Number / Ready for Input ?
Plz help ASAP.
Regards,
SSIs that you don't want the user to enter any decimal values for this variable???
Then best way is to create a Formula Key Figure of type Customer Exit. then you can writ the code in I_STEP =3 whoich will do the validation and throw an error message in case of deciaml values. -
Removing the decimal places of currency field
Hi Gurus,
I have a currency type field ( to be more specific a field like BSEG-WRBTR) .
How do i eliminate the decimal places for this field.
ie if the value is 345678.91, i need to make it 345678.
Is there a standard keyword or something for this?
Points will be given to all the helpful answers.
Thanks,
Nobin.You can use the FLOOR function to get the largest integer value without decimal.
Like:
DATA: W_RESULT TYPE I.
W_RESULT = FLOOR( P_AMT ).
Regards,
Naimesh Patel -
Increase decimal Places in SAP B1
Dear Experts,
(Using SAP B1 PL 49)
I am trying to change the Decimal places in the General Settings->Display (Decimal Places), from 2 to 6 to in all the fields.
When i try to update it gives me the following error:-
"Cannot update while another user is connected to the company"
Any help will be appreciated.
Regards,
FerozDear Asif,
Thank you for the information.
I logged all the users out from the SAP server and i stopped the SQL services and then re-started the SQL services again.
I logged into SAP b1, but was getting the same error message.
I removed the network cable of the server and I restarted the SAP server and then logged into SAP and tried to change the decimal places, but was still getting the same error message.
I'm all out of ideas, this has never happened before to me.
regards,
Feroz. -
Hi
In MD04 , we are getting decimals for the quantity. Is there any settings or config change involved to remove display of
decimals.
Regards
ManiDear,
If the database contains an amount with decimal places for an MRP element, the system also displays this value this way in MD04, because this is the value relevant for MRP purposes.This does not depend on the settings for the unit of measure in transaction CUNI (table T006).In case of values without decimal places, the system displays the value according to the setting in the unit of measure (T006-DECAN).Therefore, the decimal places of the MRP elements can vary. Check CUNI setting for rounding the values.
Regards,
R.Brahmankar -
Hi All,
In smartforms, to control the number of decimal points in a field we can use the formatting option
&symbol(.N)&
for e.g.
The EKPO-MENGE field contains the value 1234.56. The Dictionary definition specifies 3 decimal places and an output length of 17.
&EKPO-MENGE(.1) -> 1,234.6
&EKPO-MENGE&(.4) -> 1,234.5600
&EKPO-MENGE&(.0) -> 1,235
Can we use a variable instead to giving the number directly ?
like
data length type i .
length = '1'.
&EKPO-MENGE(.length) -> 1,234.6
Will this approach work.
Thanks,
MandeepHi,
remove quotes.
length = 1.
try it now. -
To Remove decimal digit in number field
Hi experts
any one can tell me the function in Crystal Report for removing decimal digits in a number type field. like field value is 34.00 should be 34.
Regards
GorgeHi,
use "round(value,dec places)" formula that is there in functions in crystal report.
Rgds,
Premraj -
Hello Experts,
I am unsing SRM 4.0 SP13 & standalone scenario.
At present RON currency set with "No Deciamal Places" in Currency setting. Now user wants to put 2 decimals with this currency.
In SPRO -> SAP Web Application Server -> General Settings -> Currencies -> Set Decimal Places for Currencies,
If i remove the RON currency,:
1. The system will allow 2 decimal palces.
2. Is there any impact on existing documents ( i have one docuemnt in PRD system with RON currency). If yes, how we can resolve.
FYI: The present Decimal format is 1.234.567,89.
Thanks in avance for your valuble inputs.
Regards,
Suneel Kumar.Hi
RON which country boss. help others to do help very fast? romania and russia i could see.. -
Decimal Places of Key Figure not displaying Correctly
Hi BW Gurus,
I have a key Fig ZLENGTH of type Quantity. I am calculating length in Kilo Meters with this.When I am trying to load the data in my cube with flat file say if value for length is 8.123 Km it is showing in Cube 8.000 . As cklient requirement is for three decimal places I want to show exact value i.e. 8.123KM
Pls. help. Matter Urgent
Regards,
MANDARHi,
in CUNI select LENGTH in front of Units of Measurement, click the button and then double click the KM row to open its properties.
Deciaml rounding should be empty there; if this is the case you'll have to simulate your update in order to see where the system is removing the decimals.
Check that the original record in the PSA has decimals.
Check that the communication structure record has decimals.
Finally the data target record.
It must happen somewhere in the dataflow.
hope this helps...
Olivier.
Message was edited by:
Olivier Cora -
Higher decimal places in SD pricing
Hi All.
I would like the system to accept up to 3 decimal places when creating quotation, sales order and invoice in SD. I created a new currency under t-code OY03 and customized it under t-code OY04. It works fine for newly entered values. The problem is that for values which already existed in the system i am getting rounding-off errors. All the figures in the old invoices and accounting reports have been changed e.g. $13.20 becomes $1.320 across the the whole system.
How do create an alternative formula and assign it to my pricing condition type ZR00 in the pricing procedure so as to remove the rounding-off error?
Regards,
JosephHi Joseph,
This is not good practice to change the decimals places for the currency to which documents are already posted. you also would have got warning message when you changed the decimal places.. It would affect all the posted documents in the system.. It would be a hectic job to bring back to normal.
I had similar experience but in my case, there was NO Payment taken place.So, deleted all the MIRO and reversed MIGO and manually changed the PO value and posted it with correct value.
you had better to create new currency with required decimal places ( for eg: USD - 2 decimals and make USDN - 3 decimals as such) and use it whenever required.
With Regards
S.Siva -
Purchase Order three decimal places
Dear Experts
I want to change purchase order decimal places to three. Standard sap setting allow two decimal places.
My client want to create some raw material purchase orders in three decimal places. Also vendor bill is received in three decimals. But Purchase order doesn't allow three decimals, and if the same purchase order is created with two decimal places it causes huge amount difference. By this reason many purchase orders are pending. In transaction Code OY04 we can change the decimal places for currency directly. If there is any other setting to allow three decimals for mm transactions only. We have one month real time data on our production system, is it correct to change the decimal places at this stage.OY04 it is a oneway decision, extending yes, but removing not anymore possible then. Search OSS for more infos.
If you allow more decimals, then this has not only effect on purchase orders, it will certainly effect your FI books as well.
SAP predefines the currencies in its natural design.
If a currency like dollars has smaller units like cent, then the SAP currency will show that. eg. for USD 2 decimals.
If you need more detailed prices with more than 2 decimals, then you should use the price unit which is usually next to the price fields.
instead of 1,0025 dollar you just enter 100,25 dollar per 100, this has the same effect. and this is available in material master and any condition, hence in PO and SA. -
Need to display without decimal places
hi
i database two fields are defined as fltp10) and fltp16 i need to display them as num (10) and num (12) and without decimal places
please suggest i will definately rewards points to helpfull answers
regards
aroraHi Arora
Do you mean, you need to display ignoring the decimal value???
If so you can declare a variable of same lenght of type N and move the value, that will do the task.
By default when we move numerical values it brings leading ZEROES.
If the requirement is to remove the leading zeroes move to a integer type variable.
Kind Regards
Eswar -
using Oracle 9i
I need to remove the decimal from a given number
123.45 should show as 12345 i tried this
create table tmpTBL
as
select 25.750 amt from dual
union all
select 12 from dual;
select replace(amt,'.',null) from tmpTBL
this works fine, but what if the col has amouts without decimals
123 should show as 12300
if decimal is there then remove it
else pad the number with '00'
how do i achieve this?
ThanksWhy not simply multiply by 100 ?Perhaps because that assumes no more than 2 decimal places?
SQL> ed
Wrote file afiedt.buf
1 with t as (select 25.750 as num from dual union all
2 select 12 from dual union all
3 select 123 from dual union all
4 select 123.4 from dual union all
5 select 123.45 from dual union all
6 select 123.456 from dual)
7 -- end of test data
8 select num*100 as num_x_100
9 ,replace(to_char(num, '999999.99'),'.') as num_stripped
10* from t
SQL> /
NUM_X_100 NUM_STRIPP
2575 2575
1200 1200
12300 12300
12340 12340
12345 12345
12345.6 12346
6 rows selected.
SQL>
Maybe you are looking for
-
I Have three app updates on my iPhone 5c, and the App Store is asking me for my credit card information when it is on file and then it gets declined. What is the purpose of needing my CC info for free updates?? Do NOT make me drop my apple products a
-
Launching a Preview Session Outside the ATG Business Control Center
I have setup a remote preview server on ATG 10.1.1. Everything works great when viewing it inside the BCC however I’m wondering how to access the preview server outside the BCC. According to the ATG documentation, it sounds like that’s possible. The
-
Hi, I'm new to videocams and related software, so please be patient with me! I have just bought a sony HDR-HC3 videocam and decided to use FCE HD 3.5. When I capture the video and using the easy setup 1080i50 which the videocam supports, I notice tha
-
I have deleted my original music player, how do i get i back on my iphone4
HOw dó i get my original musik player back ón my iphone4??
-
Why do I still get Field Point 33153 Error
I have revised the code to insure that I am writing what should be a valid value to my FieldPoint analog output channels. One channel writes successfully while the other two return a 33153 error. Why do I get an error on those two channels? Attachmen