Formatting decimal places in the X Axis
I’m having trouble limiting the number of decimal places in my X Axis on a 2 Axis plot.
I am running a script file (SUD) that sets all the other parameters in the Plot. The “Report “ file is called up and then the script controls the functions.
This is only a small section of the code. I haven’t found a command to set the Decimal place in the “help” page.
ie: Call GraphObjOpen("2DAxis1_XAxis1")
D2AxisXFormat = " "
D2AxisXAng = 0
D2AxisXRelPos = "bottom"
D2AxisXFont = ""
D2AxisXSize = 2
D2AxisXColor = "blue"
D2AxisXColorRGB = 50266112
D2AxisXAutoColor = 0
D2AxisXBold = 0
D2AxisXItal = 0
D2AxisXUndl = 0
D2AxisXStrOut = 0
D2AxisXFrame = 0
Call GraphObjClose("2DAxis1_XAxis1")
And:
When I open the “Curve and Axis Definition” window of the graph on the report page ,and set the “Format:” function to display “d.dd” It seems the script is overwriting the format that I set.
This is what I have now and would like to display only 2 decimal places in the X Axis. Can you help?
Thanks!
SJD
Solved!
Go to Solution.
Attachments:
X-Axis Decimal places.jpg 17 KB
Thanks Brad for you quick response.
It kind of worked... I think I might have something else going on. Not sure what though.
With the changes made in the script you suggested, the X-Axis has changed to two digits but now it displays " 1.dd "
Any thoughts where else I might have gone wrong?
Thanks again
SJD
Attachments:
2013-03-13_151027.JPG 12 KB
Similar Messages
-
How to change the decimal places in the value axis of a chart in WAD?
Hello,
The key figure in my chart has 2 decimal places and I want the value axis to show the same. How to do that?
Thanks in advance, NathalieHi,
change the Format property of the ValueAxis-Line to 0.00
Then the axis displays its values including two digits after the decimal.
Regards, Kai -
Decimal places on the result row is incorrect
Dear Expert,
I met a problem that decimal places on the result row is incorrect.Anyone can help me?
On key figure balance,we do the currencies translation,also we set the key figure should have two decimal places.
We set a fomular to calculate the total result of Account A,B,C.
(Total result = account Aaccount Baccount C).
If we manually sum up the balance of account A,B,C displayed on analyzer,which are rounded to 2 decimal places,the result should be 601.25(100.61200.38300.26),but the actual total result executed by query is 601.24.
In fact we need the result 601.25 instead of 201.24.
I take the example as following:
Account Balance
Account A 100.61
Account B 200.38
Account C 300.26
Total result 601.24
Thank you in advance.
Best Regards,
Maggie
Edited by: Maggie Ma on Sep 25, 2008 9:17 AMyour "problem" is, that BEx is not totalling the "displayed" values but the real values
try a summation on the following in Excel:
100,605
200,375
300,26
then format the cells to show 2 decimal places only
do you see the result changing? -
Formatting decimal places in scatter charts???
I set up rather simple X-Y chart with numbers that have about 5 significant decimal places. All 5 numbers show up in the X chart axis labels. I can't find any way to tell Numbers to use only two decimal places in the chart labels. Does anyone know how to do this? I tried changed the displayed decimal places in the original cells but it doens't effect the charts.
TIAThanks Brad for you quick response.
It kind of worked... I think I might have something else going on. Not sure what though.
With the changes made in the script you suggested, the X-Axis has changed to two digits but now it displays " 1.dd "
Any thoughts where else I might have gone wrong?
Thanks again
SJD
Attachments:
2013-03-13_151027.JPG 12 KB -
Increase decimal places in the PO quantity and Price
Hi All,
Can the decimal places in the PO( ME21N) creation be increased more than 3 decimal places in quantity and price?
I did changes in UOM's in CUNI, I increased the decimal places upto 14 but still it does not take more than three i-e., 0.001 maximum.
Is there any other way to handle this?
Request inputs on this.
Note 569326 - ME9F: Customized decimal places are not taken into account........ found this OSS but this correction instruction is not for our pack level ECC 6.0
Best regards,
Sridharhi
In case if you are already working in production remember that decimal places should not change. It will affect all previous data.
For your problem best solution is make order unit as 1000. So that your problem will solve
e.g. instead of 2.009 inr for 1 Unit use 2009 inr for 1000 unit. -
Amount has moved one decimal place in the report
Hi,
I am looking in to a report at present, Transaction amount has moved one decimal place, while the local amount stays the same. Any one could tell me the possible reason for this?
Thanks in advance
RNHi,
Check this link,
http://sap.ittoolbox.com/groups/technical-functional/sap-bw/key-figure-in-cube-is-multiplied-by-100-when-displayed-in-bex-report-743076
same issue find in this.
Hope it will help you.
Thanks,
Hema -
How to add 2 decimal places if the number is whole number(Integer)
Hi Gurus- I had a requirement to add the zeros for two decimal places even the number is an whole number.
Example: I had a column which i gave the datatype as Number(8,2) .While Inserting from the flat file to the custom table column,i am rounding it to 2 decimal places.But if its the whole number i want that also to be rounded to 2 decimal places.
1) 3456.89675 It's getting inserted as 3456.89
2) 123 It's getting inserted as 123 (Instead i want this to be inserted as 123.00)
3) 123.50000 It's getting inserted as 123.5 (Instead i want this to be inserted as 123.50)
Can you please let me know how can i achieve it to insert any number(decimal or whole number) from the flat file as 2 decimal places in the custom table column.
Thanks in advance.Please do not post duplicates -- To update the date for the first of the month
-
B1 Query returning truncated decimal places when the CASE statement is used
Hi All,
Perhaps this is a friday thing.
In B1 the price setting is for 5 decimal places. I have a query the run a business process looking at the data in the Special Prices Tables. When I run the Query in SQL, the output show the correct number of decimal places. However, when the Query is then saved and run in B1, the output is truncated to 2 decimal places. Any ideas as to how I can prevent this for happening?
T0: Points to teh OSPP Table
T1: Points to the OSP1 Table
The portion of the query causing the issue is as follows:
case
when (T1.price is not null) then
T1.price
else
T0.price
endHi Earl
Seems you are right, I have tested with a few different formats and each time get a 2 decimal result. In SQL help I found the following which may explain why:
Result Types
Returns the highest precedence type from the set of types in result_expressions and the optional else_result_expression. For more information, see Data Type Precedence (Transact-SQL).
Even tried it in SQL with a stored procedure storing to a temp table and it shows the full decimals, but executing the SP in SAP Business One results in 2 decimals again.
This is indeed a strange occurrence and I a not sure how you are going to solve it! You can use NVARCHAR for example except that it right aligns the values returned, but at least it doesn't drop the decimals.
Kind regards
Peter Juby -
What's the preferred way to format a number (which will converted to a string for display) to 2 decimal places?
var someValue = 1234.567;
var a = "{%10.2f someValue}"; -
Printing to two decimal places on the screen
Hi everyone...
I am using mysql as my DB...my field is declared there as decimal(8,2) means to 2 decimal place..when i am getting the result i also need to print to 2 decimal place...
so when i do(rs.getDouble("Price")) it is not printing as two decimal place...how do i get it to print to 2 decimal place...
Thanx a lottttttjavax.text.DecimalFormat dfrm t=new java.text.DecimalFormat("#0.00");
//or another format see API doc for DecimalFOrmat
String result = dfrm.format(rs.getDouble("Price")); -
Can not change the number of decimal places in the normalization of result
dear all
i want to see the proportion of some data, for example, the income of May is 300, and the total income is 1000, i need to display it like 33.33% . so i set the
Calculate single values as normalization of result, and then it display 33.333%, i like to display only two number of decimal places, so i set the number of decimal places as 0.00, but i doesn't work, it still display three decimal numbers.
maybe you say i can use the percentage function like %CT %GT %RT, but i need to allow external access to my query, so the i can not use those functions.
can somebody helps me ? your advice is appreciated.hi,thanks for your advice, but that doesn't suit for my problem.
before i set the normalization of result, i can change the decimal values. After that i cann't.
In your thread, someone proposes use the T-code OY04. but this wouldn't help. As i change to other key figure, such as user quantity, when i set normalization of result, it still display 3 decimal values.
i think the point maybe lie in the normalization of result. please advise... thanks... -
Decimal places in the BCC field
Hello,
I created a field in the xml to save a field of type double, but only allows up to three decimal places.
<property name="freight" data-type="double" column-name="freight" display-name-resource="freight" category-resource="categoryBasics" >
<attribute name="propertySortPriority" value="50" />
</property>
with sql for the column freight
freight
number(28, 20)
NULL
I noticed that this also occurs in other fields in BCC,
Is it possible to increase the number of decimal places for a property?
thanks.Hi,
I created the view mapping as your orientations and looked like this
<add-item item-descriptor="itemMapping" id="AmImTest">
<set-property name="itemName"><![CDATA[test]]></set-property>
<set-property name="description"><![CDATA[AssetManager Test itemMapping]]></set-property>
<set-property name="mode"><![CDATA[AmMmDef]]></set-property>
<set-property name="viewMappings"><![CDATA[ivM1]]></set-property>
<set-property name="formHandler"><![CDATA[AmFhDef]]></set-property>
<set-property name="itemPath"><![CDATA[/atg/multisite/SiteRepository]]></set-property>
<set-property name="name"><![CDATA[AssetManager]]></set-property>
</add-item>
<add-item item-descriptor="itemViewMapping" id="ivM1">
<set-property name="propertyMappings"><![CDATA[propertyViewMapping=pvM1]]></set-property>
<set-property name="attributeValues"><![CDATA[includedProperties=av1]]></set-property>
<set-property name="displayName"><![[scopus.geralProperties]]></set-property>
<set-property name="name"><![CDATA[ item View Mappi]]></set-property>
</add-item>
<add-item item-descriptor="attributeValue" id="av1">
<set-property name="value"><![CDATA[id,name,description,freight]]></set-property>
</add-item>
<add-item item-descriptor="propertyViewMapping" id="pvM1">
<set-property name="propertyView"><![CDATA[pv1]]></set-property>
</add-item>
<add-item item-descriptor="propertyView" id="pv1">
<set-property name="description"><![CDATA[BIZUI Basic editor for double properties with more than 3 decimal characters.]]></set-property>
<set-property name="attributes"><![CDATA[inputFieldMaxlength=pvAtrDef1]]></set-property>
<set-property name="mode"><![CDATA[aMgrMmView]]></set-property>
<set-property name="isComponentPropertyView"><![CDATA[false]]></set-property>
<set-property name="isReadOnly"><![CDATA[false]]></set-property>
<set-property name="type"><![CDATA[double]]></set-property>
<set-property name="name"><![CDATA[SCO BIZUI with more than 3 decimal characters.]]></set-property>
</add-item>
Did I missed something? -
Yielding the desired number of decimal places using the AVG function in t-sql
Hello again. Confused retired hobby coder having trouble setting up a scalar-valued function to return the desired number of decimal places from a AVG query.
Whenever I run the following script I get the number of decimals I desire:
Using the above I created a scalar-valued function as follows:
Running this function as: SELECT [dbo].[TestHCIPartial] (1,3) my return is -7.
Can you help me with the function causing it to yield the answer to 6 decimal places?
Thanks and regards, Minuend.You've not specified precision and scale in UDF return type. So you're leaving it to server to interpret it based on default settings
If you want exactly up to four decimal places tweak udf as below
ALTER FUNCTION..
RETURNS decimal(20,4)
AS
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Changing the Decimal places in the currency
Hi all
we are using the currecy SAR. Decimal places was set to 4, now that they want to revert back to 2 decimal places. i understand that by doing so they would be inconsistencies in the data allready recorded. how to avoid that?
is there any programmes / reports that would fix such inconsistencies?
any OSS notes?
thanks and regards
gkkHI,
You should NOT change the decimal places in a productive system.
If you would do, the correction of the posted documents afterwards would be a remote consulting issue. Which you have to pay for SAP.
You see, all posting you have done until now, would get displayed in a wrong way, and the new posting wouldn't compare to the others.
Please check the note 137626 describes this.
If you really need to change the decimals, you should create a new currency type, for example your current is SAR, and now you should create a SA2. Then you should enter new rations and exchange rates for it, and work with the new one.
Also if you want to set the decimals to two digits from four, youshould not enter an entry in the OY04(TCURX).
In this table you can only enter a value, that discriminate from 2 decimals. If there is no entry in the table, it means the currency has two decimals.
Please assign points if it useful.
Regards
Ravinagh Boni -
i have some fields of datatype curr and domain wertv6/wertv7...which has 2 decimal places..
but in my screen i'm getting 5 decimal places for all those fields....how is this happening?hi Anil,
go to se84
expand abap dictionary
go to data element
and write domain name = wertv6,data type = curr,decimal = 2
you will find lots of data element.
hope it solves your problem
thanks
Sachin
Maybe you are looking for
-
Purchase Price Variance Report
I am trying to write a query to understand whether we have a purchase price variation from the latest invoice to the second latest invoice. I am having a problem gaining the information for the second purchase invoice as SAP Query generator seems to
-
HP LaserJet M5035 MFP - Domain authentication - Mac OS 10.6.3
Hi, I am using HP LaserJet M5035 MFP and there were many discussions about this. However, I am facing a new problem that I am using a domain authentication. So the smb syntax: smb://username:password@workgroup/server/sharename does not work with me.
-
Mainstage 2 - Mackie Control Faders Not Working
Is there any way to use a Mackie Control to control Mainstage? The knobs and buttons seem to work, but MS doesn't see the faders at all. Is it a message that can be transformed with midi pipe? I would love to use the MC as a live mixer! Midi Monitor
-
Very strange virus like problems.
I have a brand new iMac and a G4 Powerbook both running 10.5.1. Earlier today my Powerbook wouldnt boot up, all i got was the grey screen. I could do nothing to get it boot past that point. I tried resetting PRAM, Repairing Disk to no avail then trie
-
TS1424 how do i talk to a human about over charging my acct!!!
How do i talk to a human about over charging my acct!!!!