Results in the query
Hi Experts,
I have a query which calculates the quantity for a particular date, the results are wrong in the query. i checked the data in the psa it matches with the data from the source system, the keyfigure is set to addition in update rules.can any one let me know why am i getting the wrong results.
Thank You,
Hai Shetty,
Your question is very vague. Most of the times, overwriting or addition depends on the way the system is designed and the requirement. As far as I understood. You have data in a cube or ODS and your report values donot match with the values in PSA. If thats the case, I would go step by step.
1. Select some of the records that have eronous values.
2. For the same records(based on primary keys), I would check the data in PSA and the data in ods or cube. If you have any intermediate stages, check them too. then you can findout where its going wrong.
3. If the data in one target(PSA) donot match with the immediate target(ODS or Cube), then there is certainly problem with either start routine or mapping or the addition or over writing. It depends on the system you are working on.
4. If the data in ODS or cube doesnot match with report, then you can check the query logic.
Hope this helps. Let me know if you need more information.
Thanks.
Similar Messages
-
Result of the query is not filtered as value given in Select Option variabl
Hello ,
A Select option Variable is created on Navigational Attribute( ZINV_PROG) of 0WBS_ELEMT.
The Compound Key for object ZINV_PROG(Investment program) is APPR_YEAR( Approval Year)
This ZINV_PROG object does not bear Master data.
The values in the field get populated as you load Master data of 0WBS_ELEMT.
The values for this objects is as shown below:
APPR_YEAR ZINVPROG
2005 ESCCCAPS
2007 ESCCCAPS
2008 FIRE
2006 CAPITAL
A select option variable is craeted on this Navigational attribute.
When you execute the query , On the selection screen of the query..
If you provide i/p for Investment programm field as 2007 ESCCCAPS, the data should ideally be filtered for this values only.
But the result of the query shows data for both values 2005 ESCCCAPS and as well as for 2007ESCCCAPS.
Let me know how to sort this issue.
Points will be assigned for the correct and helpfull answere.
Thanks,Thanks Srini for your prompt explanation.
My Question is if Approval year is a compounded key of ZINV_PROG object why data would not get filter out directly.
I mean on the screen for this particualr variable i take help - F4 to see values there you are able to see all the values of Investment programm along with the apprroval year.
If i select value as 2005 ESCCCAPS from the help F4 screen then ideally data should be fileterd out for this particular value. But it is not happening so.
Is that so in Query desgining that if you creating a variable on Nav Attribute, and that particular Nav attribute has a compound key then if you want to filter out the data for this Nav attribute correctly you would also require to create a variable for Compound key also.
Please let me know
Thanks -
Supress the "Overall Result" in the Query
Hi,
Is there a way of supressing the overall result in the query? I do know that i can supress results by characteristics, but I would like to supress the results on a query level.
ThanksHi Davy,
Select all the characteristics and supress the result for all of them.
Regards,
Diego -
I can see the result column but not overall result in the query
Hi all,
How to display the overall result in the query, I am able to see the result value in the query and not the overall result!!
ThanksHi Pooja,
I hope you have to check the Display property of the attribute.It should be always display.
Regards,
Vasanthan V -
Limit the result in the query's varible selection.
I have many reports involed the requirment that in the query's varible selection we only want the users could see the calmonth demanded by me such as 200903,200902,200901,200812 and 200811 before the current system date (not include the future calmonth),and after we make these confirguration it should not influent the accumulative indicators which add the values include such calmonth as 200810,200809 and 200808. Actually in these info providers and master datas they exit past and future calmonth we dont want see in the query's varible selection. For the requirement we have consulted many SAP channels but they could give us any avarable advice,how could i do?
Arun Varadarajan,
Thanks for ur reply. the a is sugguestive and operative.But for b I have my problem:
a. After I create a variable for calmonth,its named var_calmonth which is customer exit and variable is ready for input,how is the variable representing? interval,single value or multiple single value? If it is single value,u could not APPEND l_s_range TO e_t_range in customer exit.If interval or multiple single value the upper is worked but u could not get the correct input GUI.The list is my coustmor exit code for the variable which is interval or multiple single value:
WHEN 'VAR_calmonth' .
IF i_step = 1.
TYPES : BEGIN OF ls_calmonth ,
zcalmonth TYPE /bi0/oicalmonth,
END OF ls_calmonth.
DATA : lt_calmonth TYPE TABLE OF ls_calmonth.
DATA : wa_calmonth TYPE ls_calmonth .
DATA: l_calmonth(6) TYPE n.
l_calmonth = sy-datum(6).
SELECT CALMONTH FROM /BI0/SCALMONTH
INTO TABLE lt_calmonth
WHERE calmonth BETWEEN '200001' AND l_calmonth.
SORT lt_calmonth BY zcalmonth DESCENDING.
LOOP AT lt_calmonth INTO wa_calmonth .
l_s_range-low = wa_calmonth-zcalmonth.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDLOOP.
ENDIF.
b. Even if we have solved the upper problem the next is the values of the variable got through customer exit is also limited the query result.I mean it effects not only variable selection.
Any way, thanks again.
zport. -
Query result: reducing the query's line returned
I have the query output below:
SELECT null NRO_NEW, 123 NRO_OLD, 384603 OID_OLD, null OID_NEW FROM DUAL UNION ALL
SELECT null , 0143355014948714, 384611, null FROM DUAL UNION ALL
SELECT null , 0143356000159014, 385305, null FROM DUAL UNION ALL
SELECT 0143356000159014, null, null, 385305 FROM DUAL UNION ALL
SELECT 666 , null, null, 384603 FROM DUAL UNION ALL
SELECT 0143355014948714, null, null, 384611 FROM DUAL;
NRO_NEW NRO_OLD OID_OLD OID_NEW
123 384603
143355014948714 384611
143356000159014 385305
143356000159014 385305
666 384603
143355014948714 384611But I need to reach the result below( to put in the same line the NRO_NEW and NRO_OLD belong of the same OID_OLD and OID_NEW ):
NRO_NEW NRO_OLD OID_OLD OID_NEW
666 123 384603 384603
143355014948714 143355014948714 384611 384611
143356000159014 143356000159014 385305 385305Can anyone help me?
Edited by: user5914526 on Sep 15, 2011 1:30 PMmaybe this will help.
SQL> With t1 as
2 (SELECT null NRO_NEW, 123 NRO_OLD, 384603 OID_OLD, null OID_NEW FROM DUAL UNION ALL
3 SELECT null , 0143355014948714, 384611, null FROM DUAL UNION ALL
4 SELECT null , 0143356000159014, 385305, null FROM DUAL UNION ALL
5 SELECT 0143356000159014, null, null, 385305 FROM DUAL UNION ALL
6 SELECT 666 , null, null, 384603 FROM DUAL UNION ALL
7 SELECT 0143355014948714, null, null, 384611 FROM DUAL),
8 t2 as
9 (SELECT null NRO_NEW, 123 NRO_OLD, 384603 OID_OLD, null OID_NEW FROM DUAL UNION ALL
10 SELECT null , 0143355014948714, 384611, null FROM DUAL UNION ALL
11 SELECT null , 0143356000159014, 385305, null FROM DUAL UNION ALL
12 SELECT 0143356000159014, null, null, 385305 FROM DUAL UNION ALL
13 SELECT 666 , null, null, 384603 FROM DUAL UNION ALL
14 SELECT 0143355014948714, null, null, 384611 FROM DUAL)
15 select t2.nro_new,
16 t1.nro_old,
17 t1.oid_old,
18 t2.oid_new
19 from t1, t2
20 where t1.oid_old = t2.oid_new
21 order by t2.nro_new;
NRO_NEW NRO_OLD OID_OLD OID_NEW
666 123 384603 384603
143355014948714 143355014948714 384611 384611
143356000159014 143356000159014 385305 385305
SQL> -
Results in the query are not like the one in the cube
Hello there,
I have a problem. when I execute a query, and see the results, it doesn't match. The query calculates some things. I have a sort of formula, when I execute it on database level I get a other result and when I execute on query level I get other results. The problem is that the wrong results that I get, is for a couple of days. only couple of days are wrong. Where should I search because I don't know it anymore.Hi
Check the data of your cube from LISTCUBE TCode. And then apply the formula (what you have applied at the query level) on the Cube data.
And then compare the data if it is matching.
And if you find that data in Cube is wrong then you will have to hig in to its source data.
Regards
Rohini -
Ordering results from the Query
Hi All,
I have a query which selects a lot of attributes from a table. There is one field, named copyright year which stores year in numeric format. I run a query to select all attributes by specifiying author name (this is one of the attributes). I use ROWNUM < 25 ORDER BY copyright_year DESC in the query.
To my surprise, the resultset returned doesnot figures records which have copyright_year of 2007. What I see is records having copyright year of 2004 and all less than 2004! I can figure out the reason! even when I increase the rownum count to 50, I still dont see 2007 records. There are in all 74 records for teh author which is my search criteria!
Can anyone help me in figuring up the possible problem!
Thanks in advance.the reason why you get that output is that because of ROWNUM in the where clause. please pay attention to the order of validation of the SQL statement and you'll find the problem.
if you want to achieve correct output, try this...
select a.* from
(select *
from table
order by copyright_year desc) a
where a.rownum < 25 -
Dear kuljeet ..plz check the results of the query
Hi,
check with following query and post the output
COLUMN tsname FORMAT a12
COLUMN extents FORMAT 9999
COLUMN bytes FORMAT 999,999,999
COLUMN largest FORMAT 999,999,999
COLUMN Tot_Size FORMAT 9,999,999 HEADING "TOTAL(M)"
COLUMN Tot_Free FORMAT 9,999,999 HEADING "FREE (M)"
COLUMN Pct_Free FORMAT 999 HEADING "FREE %"
COLUMN Fragments FORMAT 999,999
COLUMN Large_Ext FORMAT 9,999,999 HEADING "BIG EXT(M)"
SELECT a.tablespace_name TSNAME, SUM(a.tots)/1048576 Tot_Size,
SUM(a.sumb)/1048576 Tot_Free,
SUM(a.sumb)*100/sum(a.tots) Pct_Free,
SUM(a.largest)/1048576 Large_Ext, SUM(a.chunks) Fragments
FROM (SELECt tablespace_name, 0 tots, SUM(bytes) sumb,
MAX(bytes) largest, COUNT(*) chunks
FROM dba_free_space a
GROUP BY tablespace_name
UNION
SELECT tablespace_name, SUM(bytes) tots, 0, 0, 0
FROM dba_data_files
GROUP BY tablespace_name) a
GROUP BY a.tablespace_name
i am also working on 10g AS and i notice application server generated Huge size of log files some are even in GB. so should also look on that.
Thanks
Kuljeet
Dear kuljeet I have runn the above query and got this result.
TSNAME TOTAL(M) FREE (M) FREE % BIG EXT(M) FRAGMENTS
B2B_DT 64 3 5 3 1
B2B_IDX 16 2 11 2 1
B2B_LOB 12 1 11 1 1
B2B_RT 40 2 6 2 1
DCM 242 22 9 21 2
DISCO_PTM5_C 2 1 34 1 1
ACHE
DISCO_PTM5_M 2 1 34 1 1
ETA
TSNAME TOTAL(M) FREE (M) FREE % BIG EXT(M) FRAGMENTS
DSGATEWAY_TA 6 1 8 1 1
B
IAS_META 7,268 7 0 7 2
OCATS 2 0 13 0 1
OLTS_ATTRSTO 3 1 24 1 2
RE
OLTS_BATTRST 1 1 69 1 1
ORE
TSNAME TOTAL(M) FREE (M) FREE % BIG EXT(M) FRAGMENTS
OLTS_CT_STOR 30 0 0 0 0
E
OLTS_DEFAULT 5 1 19 1 2
OLTS_SVRMGST 3 1 27 1 1
ORE
PORTAL 95 23 24 22 2
PORTAL_DOC 2 1 50 1 1
PORTAL_IDX 22 2 7 2 1
PORTAL_LOG 1 1 69 1 1
TSNAME TOTAL(M) FREE (M) FREE % BIG EXT(M) FRAGMENTS
SYSAUX 450 12 3 5 9
SYSTEM 800 11 1 10 2
UDDISYS_TS 46 27 58 26 2
UNDOTBS 4,169 0 0 0 0
USERS 1 0 31 0 1
WCRSYS_TS 242 12 5 12 2
25 rows selected.
Please guide me now..what I have to do further.
Thanks
Message was edited by:
[email protected]>>i am also working on 10g AS and i notice application server generated Huge size of log files some are even in GB. so should also look on that.
This following query gives you to the details of tablespaces.and its not concern with any log files.its only related with database level not for OS or logfiles.
for 10g AS i also notice that it generate very large size of logs files and some functionality will be disable when the size of logfile is reached to 2gb.
so first check the contents of log files and move ,purge or compress it, as you needed but first check why its generated with such large size by checking the contents of logfiles.
Kuljeet -
Showing Keyfigures error for result and overall result in the Query output
Hi All,
when executing query results show correct figures for qty & value but with ERROR instead of uom(Unit of Measurement) & currency;
Can anybody help?
Rgds,
C.V.Hi There,
Try checking that the particular UOM and currency u are reporting is loaded into BW or not.
hope it helps,
Regards,
Parth. -
Is it possible to save Result of the Query?
Hi All,
I run a simple query in Project Raptor.
And I am looking for options to save my query Results into an xls file.
Is there any options to save the output file?
Thanks
Moulythis function is bugged
Re: 919 Export->Insert nothing -
Calculate result in the query output
Hi,
Consider the case below:
Order Item SalesAgent Quantity Price
555 10 SA1 10 100
SA2 10 100
SA1 20 200
In this case the correct result is (Quantity = 30 (1020) & Price = 300 (100200))
This is as one item can have multiple Sales Agent but the price for each sales agent still reflects the total price for that item (same for quantity). So just to sum up gives the wrong result (100+100 is incorrect, total should be only 100).
If I use calculate result as last value then for the total order it takes only 100.
How can I set a result row for the above case such that it show result as 300. (Price and Quantity are KFs)
Thank you,
samHi Sam,
Could you put the copied portion using the Code button while posting, so that its easy to understand.
Regards -
How to get the results fro the Query ??
Hello Everyone,
I'm trying to this query for long time, I cant I already posted the question here twice...Hopefully this time I can explain this time....
I have these tables : COURSE_LIST, JOB_LIST, JOB2COURSES, Employee, COURSE_HISTORY, COURSE_STATUS, TEMP_COURSE_REGISTARTION...
Some Example Data :
COURSE_LIST
CourseID, Name
AB1, Some1
AB2, Some2
AB3, Some3
AB45, Some5
Job_List
JOB_ID, Name
1, Some Job
2, Some Job2
3, Some Job3
JOB2Courses
JOBID, CourseID
1, AB1
1,AB2
2,AB1
2,AB3
3, AB1
3, AB45
Employee
Employee_EMAIL, JOB_ID
dsc,1
awe,1
some,2
sunset,2
spect,3
Course_Status
Status, DESC
1, Completed
2, Approved
3, Declined
4, Register
5, Pending Approval
TEMP_COURSE_REGISTRATION
EMPLOYEE_EMAIL, Course_ID, Date, Status
This is the process, User Logs in to the system and only see courses related to their job...
Example say spect log in , the user should see as a new user
CourseID, Status
AB1,5
AB45,5
Now spect registers course AB1, the entry will be made to TEMP_COURSE_REGISTRATION
This is how table will look like
EMPLOYEE_EMAIL, Course_ID, Date, Status
spect, AB1, 20-MAY-06, 5
Now when someone approves it, the status will be 2
and the user spect logs in will see
CourseID, Status
AB1,2
AB45,5
Now the course gets completed user sees :
CourseID, Status
AB1,1
AB45,5
and entry gets deleted from TEMP_COURSE_REGISTRATION and moved to COURSE_HISTORY
By default user can only register courses related with their job, but their manager can let them take courses from other job...so when that happens the entry goes to TEMP_COURSE_REGISTARTION.....
say somebody registered SPECT for course AB2
NOw when he/she logs in should see something like this
CourseID, Status
AB1,1
AB45,5
AB2, 2
How can I accomplish this complicated query....
Harsimratselect all the columns required from the tables and finally add the condition
a.employee=user
Wat u can do is create a view like this and grant it to public -
How do you use BOBJ SDK to retrieve the results of a query in XML
I am trying to programatically get the results of a query given the query id
My old code used BusinessObjects Enterprise Web Services API to Retrieve a document's contents
DocumentInformation biDocInfo;
RetrieveData retBOData = RetrieveData.Factory.newInstance();
Action[] actions = new Action[1];
retBOData.setRetrieveView(xmlView);
biDocInfo = rEngine.getDocumentInformation(queryId, null, actions, null, retBOData);
(XMLView) biDocInfo.getView();
Is there an equivalent way to retrieve the results of the query using SAP BusinessObjects BI 3.x Developer SDK Library ?
Thanks for any informationHello.
Are you wanting to use the BusinessObjects Enterprise SDK along with the Report Engine SDK as opposed to using the Web Services SDK that you were using previously?
Also, what part of a webi document are you trying to get the XML format of?
- Whole document
- Single report within a document
- Report page of a report
- Report part within a report
- All data providers
- Single data provider
If you are trying to use Business Objects Enterprise along with the Report Engine SDK, there are numerous samples for the various parts of the webi document that I mentioned above available at the following link:
http://wiki.sdn.sap.com/wiki/display/BOBJ/JavaReportEngineSDKSamples
I hope that this information helps.
Regards.
- Robert -
Getting descrepency in the result row of the Query
Hi All,
I am executing a query which is having 4 Keyfigures and 2 formulas.
I am getting wrong result in the query for formulas.
Below is the query structure
f1 f2 f2%f1 f3 f4 f4%f3
date
1
2
792 408 51.78 9647 8403 88.57
All the keyfigures - result is set as total
Formula - result -nothing is defined(under calculation tab)
The result I am expecting for column 3 is 408/792 = 51.51
The result I am expecting for column 6 is 8403/9647=87.10
To get the expecte result what changes i need to do to the formula.
Thanks
JagadeeshHi Anand,
Thanks for your reply.
If i change it to summation, it will give me sum in the result row.
I am not looking for summation, i want percentage for (overall result F2/overall result F1).
Thanks
Jagadeesh
Maybe you are looking for
-
Can I edit FCE projects when the files are on a External HD?
Hello, I've recently reinstalled Snow Leopard. Since I have a clean start, I'm thinking about new ways to manage my video files for FCE editing. Video projects take up most of the space on my HD, so I'd like to keep them on an external drive this tim
-
Sync of user data with Active Directory
I would like to connect the Active Directory with our SAP 4.6C system. Goal is to synchronize the user data (address, company, department,...) of AD with SAP user data, so we would only have to maintain this kind of data in the AD. Can anyone give me
-
Two files have just appeared as empty. They have the right name and are associated with the right app, but their size is zero KB. Is there any way to recover them?
-
Microsoft VPN behind BM 3.8 SP4
Hello, We have a big problem in our network. We need a VPN tunnel to a organisation which demands Microsoft VNP. Before we ran VPN at Bordermanager, this worked fine. Now we installed VPN directly at the involved Win2K server and created a filter exe
-
Hi, I am in the process of transitioning some web applications (java, oracle) from another company. Theses applications currently fun on iPlanet 4.0. I am not able obtain a license key for iPlanet 4.0 so cannot install it on my server. Does anyone kn