SHOW DECIMAL VALUES IN QUERY
Hi,
I would like to show the decimal values of a calculated keyfigure when i execute the query.
Heres whats happening:
Base Price * Qty = XXXXX
11*2.6=28.6
bur when i execute the query it shows 29 as the answer, its rounding it off. How can i fix this?
Thanks
Use report SAP_RSADMIN_MAINTAIN and set object 'IGNORE_T006_ANDEC' to the value 'X'
Decimals will show up right away!
More details why this is happening in Note 866505
cheers,
Mantas
Edited by: Mantas Vaisvilas on Sep 2, 2008 12:24 PM
Similar Messages
-
TDS Amount on Vendor Advance Shows positive value in *QUERY* for TDS Report
Hi Everybody,
I have made a query for List of TDS Report with Vendor informations as required by my client. In which the value of TDS on Vendor Advance Payment appears as positive value instaead of negative value. Please suggest how to rectify.
Thanks,
PaulDear,
If you have cleared the advance in F-54, then this will reverse the tax amount. That could be the reason for tax amount in debit. -
Query designer execute the query some of key figure showing as * value
Hello All,
I am executing the query from Query designer, executed in web in Mozilla Firefox browser some of key figures values were showing as * value.
same query i run through RSRT its showing value for example: value is 615574389.260
if the value is more then web cannot display the result? how to correct it, Thanks!
Regards,
Ranga
Edited by: Ranga123 on Jan 30, 2012 6:09 PMHi Ranga,
Does your Key Figure also have unit? Usually we get * when records with different units are aggregated. As you cannot add 1 EURO to 1$, * is displayed.
Regards,
Nikhil -
FR 9.3.1 - Show point values doesn't work properly
Greetings,
I'm experiencing a strange trouble with the show point values function in charts like Bar, Line or Combo Chart types.
The values diplayed are rounded to the nearest value, even if the grid show decimal values.
I didn't find any solution to this, maybe anyone knows how to fix it?
Thank you very much for your support.There is a work around, note that this is not supported/approved by Oracle as it involves actually changing the report xml. So at your own risk:
# You need to export the FR reports;
# Then open in a text editor;
# Search for the current format (it should be '%,d', with the single quotes);
# Replace with the format you want, for example to get one decimal place with 000's separator '%,8.1f'
Formatting types/descriptions:
bq. %g example 1234.456 \\ %f example 1234.46 \\ %,f example 1,234.46 \\ %d example 1234 \\ %,d example 1,234 \\ %8.1f example 1234.5 \\ %08.1f example 001234.5 \\ cost=$%,.1fM example Cost=$1,234.5M
To add this for the second Y axis, you actually need to do more work:
# Within the exported .DES file, Search for <CHARTOBJECT
# Then search for OBJECT_WIDTH (There are OBJECT_WIDTH parameters for objects other than charts, which is why we start at the Chart section first.)
# 1.Add the following parameters after OBJECT_WIDTH: \\ OTHERPROPERTIES=”RightFormat=(FLOAT, '%,8.1f')” \\ *** IMPORTANT: The %,8.1f is surrounded by single quotes; -
Query on virtual cube showing incorrect values
Experts,
I have create a virtual cube on a base cube using services (info-source). both virtual as well base cube are z-development and are in BI.
Base cube has 6 records, now when I check data in virtual cube using display data it shows correct values based on routine written in virtual cube transformation.
Problem is when I created query on this virtual cube it doesnt show correct data or sometime no applicable data. After debugging I found, in end routine itself result package contains records with blank values in it on which I have written routine. But it does this only while executing query not when I display data in cube.
Regards,
AkshayHi!!!
And how do you solved it? -
Creation of a Query to show the values for the current month and the last 12 months data.
Dear All,
Good day!
I have to create a Query with the below requirement.
I have to create a Query to show the values for the current month and the last 12 months data.
Can you please guide me how to achieve this ??
thank you,
Regards,
HemaHema
explain the exact problem..? as you mentioned you want to create query to show values for current month and last 12 months.. so I think you want to show values for 12 months from current data.. you can achive this by multiple way..
you can have selection screen and field with date .. and restrict based on system current date and 12 months before or you can handle this at your target.. .. I mean there are multiple ways to restrict data by date range..
for some more hints..
http://www.forumtopics.com/busobj/viewtopic.php?t=34393&sid=7fba465d0463bf7ff5ec46c128754ed6
http://businessintelligence.ittoolbox.com/groups/technical-functional/cognos8-l/how-to-display-last-12-months-in-report-based-on-todays-date-3231850
http://scn.sap.com/thread/3217381
search on SDN you will get many other ways..
Thanks,
Bhupesh -
Static Decimal value in insert query
HI am going to insert decimal value in table but i got this error" Arithmetic overflow error converting numeric to data type numeric."
HERE val one is a decimal value how can do this?
INSERT INTO TBL(CON,VAL)
SELECT ID,'2.0' FROM TBL1Chino,
SHud eb a problem with the precision value of your column. Try increasing the same. The following example shud help:
--case 1
declare @tab table (id decimal(3,2),name varchar(100))
--precision=1 scale=2
insert @tab select 51.987 , 'jk'
select * from @tab
Msg 8115, Level 16, State 8, Line 2
Arithmetic overflow error converting numeric to data type numeric.
--case 2
declare @tab table (id decimal(4,2),name varchar(100))
--precision=2 scale=2
insert @tab select 51.987 , 'jk'
select * from @tab
Works Fine
Thanks,
Jay
<If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'> -
Problem when Entering Decimal Values at Input Ready Query
Hi Everyone,
I have created Input ready query but when I am going to enter decimal values in input cell it takes as a round of value.
Example:- If I enter 1.234 value at input cell it takes as a 1 or if I enter 1.789 value then it takes as a 2 at cell.
The technical properties of Key Figure at Info object level is,
Radio Button :- Decimal
Drop Down :- FLTP (Floating Point)
But we want to whatever value will enter at input cell, the same value will save at real time info cube level.
Requirement :- If I enter 1.234 value at input cell it needs to take as a 1.234
Please suggest your comments/views.
Thanks
Kind Regards
AnukulHi Giradkar,
Check the setting of the UOM you are using in table 'T006' there are 2 fields that indicate how to display and how to store the values with respective UOM.
Regards,
Eitan. -
Hi all,
query has to show the values of keyfigures with above 200(201,202.....) as 200.
for example
james 200
willy 180
Jhones 450
kiris 204 and so on.
the values above 200 that is 450 204 has 200 in the query output.
Thanks,
JamesHi ganesh,
Thanks for response.
but assumption is wrong.
the values below 200 also needed and the values above 200(400,204) has to show 200 in the output of the report.
format before the output of the query.
james 400
kitty 200
jhones 180
francy 204.
Now my output has to show
james 200
kitty 200
jhones 180
francy 200.
I hope you can understand better now.
Thanks,
James -
Query key figures showing incorrect values
Hi,
key figures in my query are showing incorrect values NO CALC POSSIBLE
Data in the cube is coming from different datasources and the cube is compressed.
this is how data in the cube looks like
plant Unit currency Stock Quantity Stock Value total ( *** key figure ( inflow and outflow)
P001 ST 1000 0
P001 EUR 100
Query result
plant stock(PC) Stock Quantity Stock Value total ( cumy figure ( inflow and outflow)
P001 No Cal possible 1000 100 No Cal possible
How do I resolve in query or cube level so that the NO CALC possible is not displayed.
thanksHi,
Indeed my cube is a copy of 0IC_C03.
Could you please explain more about the filtering.
I have the following key figures
0TOTALSTCK
0ISSTOTSTCK
0RECTOTSTCK
ZISSSTCK_VALUE
ZREC_VALUE
ZTOTSTKVALUE
ZTOTSTKVALUE is CKF with inflow and outflow of ZISSSTCK_VALUE
ZREC_VALUE
Whenever there is 0 it displays NO CALC possible. I would like to have it blank or 0s.
thanks -
Query is not showing the values - authentication error
Hi,
After running a query it is not showing the values and showing <b>"You do not have the authorization for the selected component."</b>
Diagnosis
You do not have the authorization for the selected component.
System response
The selected component cannot be edited.
Procedure
lease speak to the person responsible for authorization, if you require authorization for the editing of this component. The function is protected by the object "Business Explorer - components" with the following fields:
InfoCube ZPLAYOPPT
Type of a component REP
Component PLAYBOOK_OPPT_1
Activity 16
Notification Number BRAIN 800
<b>Can u pls tell me the solution.</b>Thanks and Regards,
Giri.Go to SU01, look at your authorization profile for which roles you are given. Then, go to PFCG and check out the roles and how they are defined. It is possible that you are not authorized to view application area, infocube, certain characteritics etc.
Hope this helps,
Regards,
Petter -
Decimal values not showing in PO output
In PO qty is created with decimal values ( 30.500 M)
when print the output it is coming as 31 m ( values is getting rounded off)
PO is created with ref to sales order , where as qty is EA
in SO . ( Qty EA is not affecting PO / PR)
Please advise on the PO configuration part to get the PO output with decimal values.
Thanks & regards
Rayif PO has the correct quantity with decimal places, then check the sapscript form.
Muralidhar -
Display decimal values in report
Hi all,
I have one question concerning the display of decimal values smaller than '1' in a report.
In an SQL query some calculations are done and the result is displayed in a report.
The problem is, that if the value of the result is smaller than '1' it shows for example ,8 instead of 0,8
Does anybody know how to display decimal values normally?
kind Regards and thanks!!
PatrickHi SWED!
1.) Click at the name of your report region (in application builder) to edit it
2.) Select the "report attributes" tab
3.) Click at the column you want to format
4.) Look for the "Column Formatting" region
5.) Select the proper format from the "Number / Date Format" list or enter your own format like "0.0"
I hope that will help you along.
yours sincerely
Florian W. -
Summation of rounded values in query designer
Summation of rounded values
Hello,
we would like to know if there is a function which we could insert into e fixed structure that works like the query function Summation of rounded values.
It seems like it doesn' t exist....
Davide
"Example
Summation of rounded values
The example below shows the values of a simple query where sales have been set with a scaling factor of 1,000.
Customer
Sales
EUR 1,000
Customer 1
2,246
Customer 2
2,126
Total
4,372
If you now reduce the number of decimal places, the values are rounded:
Customer
Sales
EUR 1,000
Customer 1
2,25
Customer 2
2,13
Total
4,37
You can see that the total seen locally is not the value that you would expect. This value was calculated first then displayed and then the value was rounded.
If you activate the Summation of rounded values function, the value is rounded first, then calculated, then displayed. The query then appears as follows:
Customer
Sales
EUR 1,000
Customer 1
2,25
Customer 2
2,13
Total
4,38"Hi,
If you want to sum up the value of pswdt follow the sample which i handled with select statement;
SELECT MATNR SUM( LSMNG ) SUM( WEMNG )
INTO (V_MAT, V_LSMNG, V_WEMNG)
FROM S012
WHERE MATNR = WA_MAT-MATNR
GROUP BY MATNR. -
Rounding the values in Query designer
In Query Designer, I am trying to store the rounded value of the below calculations to use in calculating a difference amount and %variance.
Currently:
Report shows actual % of 1.1 and budgeted % of 1.1, because we are rounding the actual value of 1.0798 to 1.1 and the budgeted value of 1.1326 to 1.1. The difference is calculated as budget u2013 actual or 1.1326 u2013 1.0798 = .0528 and the percent variance is 0.0528/1.1326 = 4.66%.
Requested:
The end user wants the rounded values of 1.1 used in calculating the differences and percent variance, so 1.1 u2013 1.1 = 0 difference and percent variance is 0/1.1 = 0%.
What function can I use to recall the rounded values to use in difference and percent variance calculations?
Thanks for any and all help!
Kim PlutHI Al -
Your suggestion:
If you want to round a key figure "KF" to have zero decimals:
( FRAC ( 'KF' ) < 0.5 ) * FLOOR ( 'KF' ) + ( FRAC ( 'KF') >= 0.5 ) * CEIL ('KF')
An equivalent MS Excel formula you can use to test is:
=IF(A3-TRUNC(A3)<0.5,FLOOR(A3,1),CEILING(A3,1))
If you want to round a key figure "KF" to have 2 decimals:
( FRAC ( 'KF'*100 ) < 0.5 ) * FLOOR ( 'KF' * 100 ) / 100 + ( FRAC ( 'KF'
100 ) >= 0.5 ) * CEIL ('KF' * 100) / 100
The equivalent MS Excel formula to test it is:
=IF(A5100-TRUNC(A5100)<0.5,FLOOR(A5100,1)/100,CEILING(A5100,1)/100
is exactly what I need, I am struggling to find the formula to round the key figure to 1 decimal in the query, any suggestions on how to modify the above formulas to return one decimal. I was able to successfully test in Excel but cannot get the correct formula in Query designer.
Thanks
Kim
Maybe you are looking for
-
Save for Web keyboard key stroke not worky
I'd swear I've asked or seen this discussed in these forums...but I can find no thread, even when I search for my own screen name. At any rate, I think it also happened to me back in version 6. I'm now in version 8 on a Mac. The symptoms are the same
-
How to get Ciscoworks LMS 4.0.1 serial number
How to get Ciscoworks LMS 4.0.1 serial number ? I need that to put the product under mainrtenance, and I can't manage to get it. Thanks for your help Roland
-
No memory available while committing the changes in Cisco ASA
Hi All, Recently i have come across an issue that i am unable to do "write mem" shows No memory available Error executing command [FAILED] Command output of "show flash" Cisco_ASA# sh flash --#-- --length-- -----date/time------ path 87 4181246
-
Hi, If I am given a block name, how can I get all the detail block names of this parent block ? Thanks. Ivan
-
Remove all comma's in a string
I have a company name that can contain comma's in one or more positions. I need to replace these comma's with a space. Example: Dom,s Travel and Dom,s Express Need it to read Dom s Travel and Dom s Express Thanks Paul