Difference in Query Output

Dear All,
We have two query Z and Y in production,Y Query is directly developed in the production
but Z query is transported from Qulaity.I have checked both the query and found that
structure restriction fiilter is same .But Output is different.
In some case Z query is giving more data and vice versa.
In some query some of the Hirerchy node are missing.
Please guide me.
Thanks is advance.
Regards,
Saveen Kumar

I once had a similar situation.
Turned out the technical name of hierarchy i was using in the query created in dev and moved to production was slightly different from the one i used in the query created directly in production.
I later found that version of hierarchy was not maintained in production and so my report was inconsistent between the two reports.
Check the technical names of hierarchies and other objects to make sure they are all consistent.
Good Luck.
MP.

Similar Messages

  • Difference in query output after using cursor

    can any one help out why the differences are in output, especially the bold and italic ?
    SQL> alter session set cursor_sharing='EXACT';
    Session altered.
    SQL> select '2' from dual;
    2
    SQL> select 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaa' from dual;
    'AAAAAAAAAAAAAAAAAAAAAAAAAAAA
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    SQL> alter session set cursor_sharing='SIMILAR';
    Session altered.
    SQL> select '8' from dual;
    '8'
    8
    SQL> select TRIM('8') from dual;
    TRIM('8')
    8
    SQL> select 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' from dual;
    'BBBBBBBBBBBBBBBBBBBBBBBBBBBBB
    bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
    SQL> select TRIM('bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb') from dual;
    TRIM('BBBBBBBBBBBBBBBBBBBBBBBB
    bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
    SQL> select TRIM('bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb') from dual;
    TRIM('BBBBBBBBBBBBBBBBBBBBBBBB
    bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb

    oracle support says it best:
    When cursor_sharing = exact,
    we don't convert the literal into binds and hence we know the actual size of the
    format mask. So buffer length is computed and known.
    When cursor_sharing = similar / force, the intention is to reuse the cursor for similar types of statements to avoid re-parsing. So the server converts the literal (format mask) into a bind. At this stage we don't know the actual size of the data, and set buffer length to be maximum, however this affects the display of the column header length in SQLPLUS; not the actual data .

  • Difference in the output on execution

    This is the output on debugging the program...............
    init:
    deps-jar:
    compile:
    (QueryThreadPool) query is: NLBHARCHOH1204PERSONAL
    (QueryThreadPool) query is: NLBHARCHOH1204PERSONAL
    hello00:00:00:10.242628
    done
    (QueryThreadPool) query is: NLBHARCHOH1204PERSONAL
    hello00:00:00:10.239405
    done
    (QueryThreadPool) query is: NLBHARCHOH1204PERSONAL
    hello00:00:00:10.227688
    done
    (QueryThreadPool) query is: NLBHARCHOH1204PERSONAL
    hello00:00:00:10.283888
    done
    hello00:00:00:10.291893
    done
    This is output on execution of program..
    init:
    deps-jar:
    compile:
    run:
    (QueryThreadPool) query is: NLBHARCHOH1204PERSONAL
    (QueryThreadPool) query is: NLBHARCHOH1204PERSONAL
    (QueryThreadPool) query is: NLBHARCHOH1204PERSONAL
    (QueryThreadPool) query is: NLBHARCHOH1204PERSONAL
    (QueryThreadPool) query is: NLBHARCHOH1204PERSONAL
    hello00:00:00:24.867284
    done
    hello00:00:00:25.10027
    done
    hello00:00:00:27.06291
    done
    hello00:00:00:27.207959
    done
    hello00:00:00:27.906294
    done
    why there's the difference in the output......i am not able to understand
    the output coming while debugging is correct
    I am puzzled...why this change...can any one help mee...

    Ok.
    I wrote a program which gives the execution of time of the procedure.Now my problem is when i am running the procedure in oracle the execution time taken is 10 to 11secs.
    When i run the program written in java to find the execution time of procedure I got the output as( i posted) from 24sec-28sec
    but when I debug the same program its giving an execution time 10secs to 11secs
    Why there is difference in the execution times while debugging and during execution of my program?
    To me execution time from 10-11 secs is correct because if run procedure on oracle its showing the same.

  • What is the difference between query & query view in BI 7.0 ?

    Hi Experts,
    What is the difference between query & query view in BI 7.0 ?
    Can anyone suggest me on this.
    Thanks & Regards
    Sameer Khan

    Hi Sameer,
    Pls find the below URL for Query&Query View
    http://help.sap.com/saphelp_nw04/helpdata/EN/26/6de53cce129749893b008c627ede07/content.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/36/18788b6bca5d02e10000009b38f983/content.htm
    Thanks,
    John

  • Central Management server - executed a query but how to send the query output in the form of mail?

    Hi All,
    i have used CMS in SQL 2008 R2. i have added couple of servers in its group. i have executed a query & i need to send the query output in the form of email.
    basically query is checking the rows count from couple of user tables in servers.
    issue here is how to copy the data that is used by CMS? i need to work on automate the rows count in difft user table in db servers
    could you please suggest how can i achieve this?

    Copy to what?
    SELECT COUNT(*) FROM sys.objects
    Running the above statement returns two columns (server name and count)
    All the servers SS2005  and onwards , then use
    EXEC msdb.dbo.sp_send_dbmail 
         @profile_name = 'name', 
         @recipients = '[email protected]', 
         @query = 'SELECT COUNT(*) FROM sys.objects', 
         @subject = 'Count rows'
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • ERROR displaying in the query output... urgetn

    hi experts,
    For the amount keyfigures in the query output it displaying ERROR after the amount like ex- 2000 ERROR.
    plz let me know how to rectify this..
    regards
    vadlamudi

    hi,
    i have created only two keyfigures EMP_BASIC and EMP_HRA. and in the transformations i have mapped with 0DOC_CURRCY.
    but in the report its showing ERROR only after the amount. plz tell me exactly with what field i need to map???
    regards
    vadlamudi

  • Issue In query output

    Hello Gurus,
    I am having an issue with query output.Please find below the details of it
    Unsold claims: Total---> 200
    Dispatch: Total--->118,086
    Unsold claims/dispatch--->0.001694
    This should be the output but its coming --.0033120 because itu2019s dividing with max value in dispatch which is 60,386.
    Reason: The aggregation property of Dispatch is max value. I am not supposed to do any changes in Modeling. So can we do any thing at reporting level to get the desired output?
    Desired output---->0.001694
    Output coming---->.0033120
    Please help me in getting the desired output at query level.
    Regards,

    solved with the help of nested exception aggregation

  • Change layout of Adhoc query output list for Custom infotype

    Hi All,
    The fields in the Infoset query output on a custom infotype are aligned with the fields u2018payment typeu2019 and u2018amountu2019 appearing repeatedly(in columns) as declared in the Infotype and the output will be a long horizontal list.
    Instead, the requirement is that the output list should show vertically so that If I choose u2018Payment Typeu2019 and u2018Amountu2019 as output fields, it will show a long vertical list as in the case of a standard infotype (IT0008).
    Also, this way enables user to use Payment Type as a selection criteria so as to just pulling the needed payment type. When we use IT0008 in the infoset it works fine but in custom IT it does not work.
    Any pointers/suggestions on how we can achieve this would be helpful.

    Hi yu liang,
                     You can find vendor list having Vendor No. & without showing total liability for every vendor.
    after executing the report,
    1.You need to select "change layout (ctrl+F8)",
    a small window comes, it has two part -> column content & hidden fields.
    then u select "Vendor" from hidden field & move it to column content.
    2. at column content there is a column named "Total". u need to remove check for your column name "amount".
    now select "copy" button or enter. u will find the req. report.
    u can save it also by ur name.
    hope its helpful to u.......
    plz, reward points as a way of thanks if helpful...

  • To download the query output to falt file

    Hi all,
    i have a query which i know will give more than 65k records as the output for a selection.
    i cannot run this query in excel due to its limitation.
    if i run on web i cannot download this as downloading is happening to excel file only.
    The customer ideally wants to download the query result to a text file(csv,tab-delimited etc) which inturn it will upload to MS-Access.
    How do i achieve this?
    SAP has given response use try using these options:
    1.open interfaces to receive the output of a query via the MDX language.
    2.open hub tool as it is designed for big amounts of data.(i suppose this is not possible as i want to download query output not the data target contents)
    how do i achieve my scenario with option 1?
    Are there any alternatives??
    Any useful help will be rewarded.
    Regards,
    Dhanya.

    hi vivek,
    thnks for the useful reply.
    i have some problem with my ID,hence loggin in through my coleague's ID.
    i will assign u points as i get logged in.
    I did as u said by downloading it to unconverted format.
    the file got download to a text file.where the output has
    1.header rows(10 lines almost)
    2.the values r coming in single quotes e,g:
    '144000023073      'TAAS SETTLEMENT CONV 738 '19333000   '30.09.2006          '0.000
    how can i remove all this?
    Regards,
    Dhanya
    I

  • How to get the Query output to Excel

    Hi ,
    Can you tell me how to get the Query output to excel with out using any third party tool?
    Can you tell me how to write the code in Webservice and call it..
    Please explain it Elaboartly..
    Thanks in Advance!!!
    Mini

    whats your source system?
    you can use Live office, or query as a webservice if you are getting data from universe
    if you're getting data from SAP BI query and you have a java stack on your netweaver then you can get the data directly using sap bi connector in xcelsius.
    good luck

  • Query Output to download in flat file through APD  or other means?

    Hello Experts,
    I am currently on BW3.5 system and have requirement to load query output in flat file in .csv format. I checked the option of APD but looks like we cant directly load the query output in flat file like in APD (BW  3.5 system) .
    One way i can think of it...load  the query output in transactional ODS and built an infospoke on it to write into flat file.
    Please advice if there are any better methods to store the query output in flat files.
    Thanks!

    Hi,
    Use RSCRM_BAPI.
    See
    Re: RSCRM_Bapi
    See the help on RSCRM_BAPI
    Re: Running Quaries automatically and saving them in as a Excel file in Server
    Re: Data transfer to external systems
    Re: Loading from a Custom R/3 Table
    Re: How can I schedule my Bex report to execute in background
    Re: How can I insert the RSCRM_BAPI into Process chain?
    Thanks
    Reddy

  • How to replace # or Not assigned with blank in BEx Query Output.

    Hi,
    While running the query through BEx Query desginer or Anlayser, I am getting # or Not assigned where there are no values.
    The requirement is to "Replace # or Not assigned with a blank" in the output.
    I want to know, is there any setting in BEx query desginer where we can do this. How to do this.
    Please share your inputs on this. Any inputs on this would be appreciated.
    Thanks,
    Naveen

    Check out SDN-thread: "Re: Remove 'Not assigned'" for more details
    Ideas from SDN research:
    "a solution i have used is to put each RKF column in a CKF colum then in each CKF use RKF + 0, the outcome is that your # should now be 0s, in the query properties you can set the option to display 0s as blank."
    "try to enter a text for the blank entry in the master data maintenance of the relevant objects and set the display option for the objects to 'text'."
    Threads:
    SDN: How to replace # or Not assigned with blank in BEx Query Output.
    SDN: Re: Remove 'Not assigned
    SDN: How to replace # or (Not assigned) with blank in BEx Query Output.
    SDN: Bex Analyzer : Text element system's table ?  
    SDN: change message in web application designer ["nonavailable" ->  136 of SAPLRRSV]
    SDN: Not Assigned ["Not Assigned -> 027 of SAPLRRSV]
    SDN: replacing '#'-sign for 'not assigned' in queries
    SDN: # in report when null in the cube
    SDN: How to replace '#' with blank when there is no value for a date field
    Edited by: Thomas Köpp on Sep 13, 2010 5:20 PM

  • How to store select query output in arrays.

    i created a varray type variables and now want to assign some data though select query output in pl/sql code as well as in reports 6i.

    You're in the wrong forum (this one is for issues with the SQL Developer tool). You were in the right one where you posted first, but don't reuse unrelated threads as you did.
    Regards,
    K.

  • Output mismatch between BEx query output and WebI Report output

    Hi All,
    I have a BEx query in which there are only characteristics placed in rows.
    There are combinations of the values of the characteristics giving different records in the query output.
    Date is one of the characterisctics in the query output.
    There is an output mismatch between the query output and the WebI report output in the following case:
    When there are 'Not Assigned' or '#' or blank values, there are additional entries(rows) in the WebI report, giving repeating or wrong entries in the Date field. This is incorrect data.
    Is this because of the  'Not Assigned' or '#' or blank values of the Characteristics or is there any other reason?
    How do I fix this?
    Please helo me with this.
    Thanks and Regards,
    Srilakshmi B

    Hi Rajesh,
    I need to verify the WebI report output for records with # and 'Not assigned' values for the cHracteristics in the report.
    So I cannot check the WebI report by hiding the # or Not assigned values.
    The problem is that in the Query output the records are like these shown below:
    Char1                    CHar2                          CHar3                       Date field
    A                             B                                 C                                Date1
    #(Not assgined)      #(Not assgined)      #(Not assgined)             No value
    Where as the WebI report output is as below:
    Char1                    CHar2                          CHar3                       Date field
    A                             B                                 C                                Date1
    #(Not assgined)      #(Not assgined)      #(Not assgined)            Date1
    As shown here, there are wrong/repeating entries for the Date field in the WebI report output.
    Please check this and let me know what could be the issue and how do I fix it.
    Thanks and Regards,
    Srilakshmi B

  • Query output transfer to excel file

    hi all,
    how can i query output transfer to excel file ? i am not using any tool. please suggest me. is there any method that i transfer that output to excel file?

    You can create a csv file. See dump_csv function from Tom Kyte.

Maybe you are looking for

  • CS4 and Windows VISTA

    Hi out there, had CS3 installed on Windows VISTA and experienced numerous crashes. I am editing in HD (AVCHD and HDV). Was told that Windows XP is more stable. Upgraded to CS4 and at the same time installed XP. No longer any problems. I am moving to

  • How do I delete photos from the iPod???

    I had no problem loading photos on my nano but cannot figure out how to delete them. Everytime I connect the iPod to the computer now, I get a message, "iTunes cannot copy photos to the iPod because all of the albums selected for copying no longer ex

  • Regarding Bapi data blocking

    HI friends,please help me on following issue"how to block the data of the customized bapi in R3 system." it is very urgent. point will be awarded.

  • No Import Library option in iTunes 10

    I just had iTunes throw the "locked library" error on me, and one solution I heard of was moving all db out of the iTunes folder and then re-importing 'iTunes Music Library.xml' into iTunes. According to step 7 in the knowledge base article on Apple'

  • How to see daily production qty against a Process order

    Hi Gurus, I have a requirement where user wants to see Actual daily production quantities against a Process order. The way client, I am working for, works is, They create One process order on 1st day of every month for one quantity. And then keep add