Matrix Report 's Query Output is not as Toad...!!!!!!

Hello,
i have the following Query
SELECT ALL
FINANCIAL_YEAR_MONTHS.month_desc||' '|| substr( FINANCIAL_YEAR_MONTHS.month_code,4,4)  months,
PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE,
CDE_MATERIALS.MATERIAL_DESC, CDE_MATERIALS.PARENT_MATERIAL,
PLN_PLAN_DISTRIBUTION_WAY.EXPECTED_QUANTITY,
PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE,
PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE
FROM
PLN_PLAN_DISTRIBUTION_WAY,
PLN_PLAN_PRODUCTS,
CDE_MATERIALS,
FINANCIAL_YEAR_MONTHS
WHERE
(PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = PLN_PLAN_PRODUCTS.MATERIAL_CODE)
AND (    PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = CDE_MATERIALS.MATERIAL_CODE   )
AND (PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE = PLN_PLAN_PRODUCTS.GROUP_CODE)
AND ( PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE= PLN_PLAN_PRODUCTS.FIN_YEAR_CODE )
AND (  PLN_PLAN_DISTRIBUTION_WAY.MONTH_CODE = 
to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)))
AND( to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)) >= 7 )
AND (PLN_PLAN_DISTRIBUTION_WAY.DISTRIBUTION_WAY = :P_DISTRIBUTION_WAY )
AND (PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE = :P_FIN_YEAR_CODE)
UNION ALL
SELECT ALL
FINANCIAL_YEAR_MONTHS.month_desc||' '|| substr( FINANCIAL_YEAR_MONTHS.month_code,4,4)  months,
PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE,
CDE_MATERIALS.MATERIAL_DESC, CDE_MATERIALS.PARENT_MATERIAL,
PLN_PLAN_DISTRIBUTION_WAY.EXPECTED_QUANTITY,
PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE,
PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE
FROM
PLN_PLAN_DISTRIBUTION_WAY,
PLN_PLAN_PRODUCTS,
CDE_MATERIALS,
FINANCIAL_YEAR_MONTHS
WHERE
(PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = PLN_PLAN_PRODUCTS.MATERIAL_CODE)
AND (    PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = CDE_MATERIALS.MATERIAL_CODE   )
AND (PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE = PLN_PLAN_PRODUCTS.GROUP_CODE)
AND ( PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE= PLN_PLAN_PRODUCTS.FIN_YEAR_CODE )
AND (  PLN_PLAN_DISTRIBUTION_WAY.MONTH_CODE = 
to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)))
AND to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2))<= 6 
AND (PLN_PLAN_DISTRIBUTION_WAY.DISTRIBUTION_WAY = :P_DISTRIBUTION_WAY )
AND (PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE = :P_FIN_YEAR_CODE) the Report is a Matrix Report with Group Material_names as Rows and financial Months as Columns and the expected_Quantity as cells of that report matrix.
Well,the query runs just fine in Toad as
Months Material_code Material_Desc ..etc.
July 2007 1 abc
July 2007 2 def ...etc.
June 2008 1 abc ..etc.
June 2008 2 def ...etc.
But in a report the output of months are a mess not ordered as a fin_year months..
i tried to change the design of the report from Matrix group to Matrix got same result...
Any Suggestions pls.
Regards,
Abdetu..

This the Query with order by which doesn't return the required order..
SELECT ALL
FINANCIAL_YEAR_MONTHS.month_desc||' '|| substr( FINANCIAL_YEAR_MONTHS.month_code,4,4)  months,
PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE,
CDE_MATERIALS.MATERIAL_DESC, CDE_MATERIALS.PARENT_MATERIAL,
PLN_PLAN_DISTRIBUTION_WAY.EXPECTED_QUANTITY,
PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE,
PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE
FROM
PLN_PLAN_DISTRIBUTION_WAY,
PLN_PLAN_PRODUCTS,
CDE_MATERIALS,
FINANCIAL_YEAR_MONTHS
WHERE
(PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = PLN_PLAN_PRODUCTS.MATERIAL_CODE)
AND (    PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = CDE_MATERIALS.MATERIAL_CODE   )
AND (PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE = PLN_PLAN_PRODUCTS.GROUP_CODE)
AND ( PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE= PLN_PLAN_PRODUCTS.FIN_YEAR_CODE )
AND (  PLN_PLAN_DISTRIBUTION_WAY.MONTH_CODE = 
to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)))
AND( to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)) >= 7 )
AND (PLN_PLAN_DISTRIBUTION_WAY.DISTRIBUTION_WAY = :P_DISTRIBUTION_WAY )
AND (PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE = :P_FIN_YEAR_CODE)
UNION ALL
SELECT ALL
FINANCIAL_YEAR_MONTHS.month_desc||' '|| substr( FINANCIAL_YEAR_MONTHS.month_code,4,4)  months,
PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE,
CDE_MATERIALS.MATERIAL_DESC, CDE_MATERIALS.PARENT_MATERIAL,
PLN_PLAN_DISTRIBUTION_WAY.EXPECTED_QUANTITY,
PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE,
PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE
FROM
PLN_PLAN_DISTRIBUTION_WAY,
PLN_PLAN_PRODUCTS,
CDE_MATERIALS,
FINANCIAL_YEAR_MONTHS
WHERE
(PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = PLN_PLAN_PRODUCTS.MATERIAL_CODE)
AND (    PLN_PLAN_DISTRIBUTION_WAY.MATERIAL_CODE = CDE_MATERIALS.MATERIAL_CODE   )
AND (PLN_PLAN_DISTRIBUTION_WAY.GROUP_CODE = PLN_PLAN_PRODUCTS.GROUP_CODE)
AND ( PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE= PLN_PLAN_PRODUCTS.FIN_YEAR_CODE )
AND (  PLN_PLAN_DISTRIBUTION_WAY.MONTH_CODE = 
to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2)))
AND to_number(substr( FINANCIAL_YEAR_MONTHS.month_code,1,2))<= 6 
AND (PLN_PLAN_DISTRIBUTION_WAY.DISTRIBUTION_WAY = :P_DISTRIBUTION_WAY )
AND (PLN_PLAN_DISTRIBUTION_WAY.FIN_YEAR_CODE = :P_FIN_YEAR_CODE)
ORDER BY months

Similar Messages

  • APEX BIP report query output format - not able to set with a variable

    I have a Named Columns (RTF) report that is working great, but I can't control the output format with a variable. I can set the "Output Format" in the Report Query Attributes, but it doesn't work when I set the report output format to "Derive from item". No matter what the item contains, I always get PDF output. I can see the variable in my session, but it doesn't control the output format. I have tried using the values "xml", "XML", "rtf", and "RTF".
    Any help would be appreciated...

    My guess is that an exception is being thrown for some rows. Since you've stubbed out your catch phrase to do nothing you're not going to have any visibility into what exception was thrown. You need to put some kind of logging in the catch phrase to see
    what is happening.

  • Unable to report adhoc query output on HRP tables

    Hi All,
    I am using adhoc query to report the data from HRP table (customised) but the data is not being picked even though the table has the records. The fields from the field group and the infotype fields are properly mapped but the output is blank.
    Any pointers/suggestions on how we can achieve this would be helpful.

    @ semvladigo : Thanks for the reply. Could you please let me know further info on the standard functionality.
    @ Albert : Thanks for the input. I am in PA and using PNPCE but it is not working with this LDB. 
                      When I query (in PCH) I am not getting results when I select 'ALL' in the reporting period.
                      It worked fine when infoset built in PCH LDB with reporting period other than 'ALL' (like Today, Keydate).
                      Please advise.

  • Inconsistencies between DEV and QAS query output

    Hi all -
    I am currently using a BI query in my VC model that I send the output to a table in VC, note that I am showing only a few fields from the output.  This works for some tables in my model that use another query.
    The problem is that when I change the alias (using the Alias Manager tool) from BI DEV to QAS, then deploy, the number of columns is changing in my table and seems to give me all of the potential query output and not only the fields I have selected in my model.
    To make a test, I have tried to hide the output fields in the BI query itself, and this seems to have a direct effect on the shown columns in VC but creates some other unwanted problem.  In fact, it works for the other query...
    Anyone had the same problem?  could that be a refreshing problem?
    Thank you,
    Claude.

    Hi
    It could be a refresh problem. Try to change the RFC from the query definition & refrech the 'Data service'. Then test the output of the query from 'Test Query' then save & deploy. Also in Columns try with the charachters where type is 'Text'.
    Regards
    Sandeep

  • Matrix Report Query Problem

    Dear members
    I am using reports 6 and oracle 9i. I am trying to create a matrix report in which i want to show products as rows and dates as columns. Dates should be fixed 7 days any from to dates given by user. I have used two tables prd_plan_m and product_code. I want to show plan_no and plan_qty based on product_code and date. I want to show all the products as rows whether it has plan or not and 7 days columns shows as heading weather in this there is any plan or not.
    For this reason i have made this query.
    SELECT ALL p.code,pkg_prod.get_prod_name(p.code)prod_name,pkg_prod.get_prod_qty(p.code)prod_qty,P.PLAN_ID, P.PLAN_DESC, a.dates,
    P.PLAN_QTY, P.UNIT_ID, P.REMARKS
    FROM PRD_PLAN_M P ,(select rownum - 1 + to_date('20-jul-08', 'dd-mon-rrrr') dates
    from all_objects
    where rownum < to_date('26-jul-08', 'dd-mon-rrrr') -
    to_date('20-jul-08', 'dd-mon-rrrr') + 2)a
    where P.PLAN_DATE(+) = A.DATES
    UNION
    SELECT E.P_CODE,E.PROD_NAME,E.PROD_QTY,null,null,null,null,null,null FROM PROD_CODE E
    But this query shows duplicates rows. suppose one product_code in prd_plan_m has plan_qty shows one row and the row from product_code table also show the same row which have no plan qty.
    Help me in this regard.
    I will be very thankful to you .
    thanks and regards

    Thanks for reply. But this query is also produce the same results see bellow output.
    CODE     PROD_NAME     PROD_QTY     PLAN_ID     PLAN_DESC     DATES     PLAN_QTY UNIT_ID     REMARKS
    0101     MOUNTAIN DEW     225 ML NR               
    0201     PEPSI MAX     240 ML          
    0301     PEPSI          250 ML          P0001L01 TEST PLANE-01     7/21/2008 20000 1          test
    0301     PEPSI          250 ML
    0302     MOUNTAIN DEW     250 ML          P0005L02 NEW ENTRY     7/26/2008 20000          TEST
    0302     MOUNTAIN DEW     250 ML
    Code 0301 and 0302 are repeated. But they should be shown only once. Please help me to resolve this problem.
    thanks & regards

  • Oracle Matrix Report output to XML Publisher

    We have an Oracle matrix report (rdf) registered in our applications and we are trying to format the report output using XML publisher.
    I have taken XML output of the report by changing the Report output to XML in concurrent program definition. Using this XML output we have started designing the RTF template using Template Builder for Word 5.6.2.
    I am not able to get the MAtrix output in XML publisher. I am not sure how to design a Matrix Report using Template builder for word. I am not sure whether the XML output of Original Report has Tags mentioning Matrix report attributes or Not.
    Can anyone help me by explaining how to design a Matrix Report template using XML report output. Appreicate your help.

    I have posted a Blog on our blog site about how to create a matrix report in XML-Publisher
    http://technology.amis.nl/blog/?p=1558
    Perhaps this helps.
    Marcos

  • Convert the matrix report output to excel sheet

    Hi,
    I am using reports 6i and database Oracle Database 10g Enterprise Edition Release 10.2.0.1.0.
    I have to convert the output of matrix report into Excel sheet.
    Is it possible.
    Is there any other way to populate the matrix data to the excel sheet.
    Thanks and regards,
    Ansaf.

    You can generate excel file by setting SYSTEM PARAMETER values as below
    DESFORMAT - DELIMITED
    DESTYPE -FILE
    DESNAME -File Name.XLS
    Although this is not a pure Excel file (Its only a tab delimited file) but you can open this with MSExcel or Open office Calc.
    Regards
    Ahamed Rafeeque Cherkala.

  • 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

  • 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

  • Weird SSRS Format Date Output in Matrix report Header

    For one of my Matrix reports, the column headers are Dates which I am trying to format in the form of 'Mon 07' i.e. short date name followed by date value.
    For this I am using the expression - =Format(CDate(Fields!WorkedOnDate.Value),"ddd") I then wanted to trim the right 3 letters.
    I am getting weird output. Here is what I am getting for one week- Tue, We2, T12u,ri,SaA,Sun,7on
    Any idea what is going wrong? This was asked in this link but that answer didn't help - The
    date formats do not seem to work in SSRS
    Regards,
    Karthik
    Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread.

    Hey Visakh, I realize my mistake now. I was adding the expression as part of Number-> Format property of text box instead of directly on the text box property. Thank you.
    Regards,
    Karthik
    Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread.

  • Xml matrix report not expending horizontally

    hi guys m trying to develop xml matrix report but m totally stuck.value are not expanding vertically.
    RTF tags are here.Plz tell me how can i attach rtf and xml file with this post so you people can help me in better way.
    plz help me its very urgent
    <?for-each:G_1?>
    <?ITEM_CATEGORY?>
    Organization : <?horizontal-break-table:1?>
    <?for-each-group@cell: G_ITEM_CATEGORY; ORGANIZATION_CODE?>
    <? ORGANIZATION_CODE?>
    <?end for-each-group?>
    <?for-each-group: G_ITEM_CATEGORY;ITEM_CODE?> <?ITEM_CODE?>
    <?for-each-group@cell:current-group();ORGANIZATION_CODE ?>
    <?current-group()// AMOUNT?>
    <?end for-each-group?>
    <?end for-each-group?>
    <?end for-each-group?>

    When you say "the values are not expanding vertically" do you mean that on the printed report it is not returning all the values for a given field, i.e. the field is too small to display the entire value.... OR the repeating frame for the group is not expanding enough to display all the fields???

  • Matrix Report with variable@incontext not working

    I had built a matrix report, using variable@incontext. I'm having a problem with my cell data. It seems that it is always using the value from the first record in the column instead of the actual value.
    ie in the example below, the data should make it come out like:
    Staff____01____02____03______
    Bob_____Bob_________Bob
    John____John__John___John
    Joe_____Joe___Joe____Joe
    but it's coming out like this (the data for John is wrong in column1 and 3 and the data for Joe is wrong in all columns) :
    Staff____01____02____03______
    Bob_____Bob_________Bob
    John____Bob___John___Bob
    Joe_____Bob___John___Bob
    Staff Column(Down):
    <?for-each-group:ROWSET2_ROW;./STAFF_NAME?><?variable@incontext:STAFF;STAFF_NAME?>
    <?STAFF_NAME?>
    Number Column (Across)
    <?for-each-group@cell://ROWSET2_ROW;PERIOD?>
    <?sort:current-group()/PERIOD;'ascending';data-type='text'?>
    <?if:count(current-group()[STAFF_NAME=$STAFF])?><?STAFF_NAME?><?end if?>
    <?end for-each-group?>
    <?end for-each-group?>
    It looks like the value for '$STAFF' and ?STAFF_NAME are not right when there was data in a previous column.
    Can anybody Help me?

    Hi,
    Can you please help me to solve the problem.
    Thanks in Advance
    Adina.

  • Sub query filter may not reference current Report

    Hi,
    I've 2 reports, i'm calling one from the another report by navigate methode(Column Propertives--> Value-->Navigate). 2nd report is having narrative veiw in title of the report .
    Getting Error:
    Sub query filter may not reference current Report

    hi,
    have u seen this ?
    http://siebel.ittoolbox.com/groups/technical-functional/siebel-analytics-l/issue-with-drill-down-1710714
    thanks,
    Saichand.v

  • Output does not match data sheet as only 1 report was available for selecti

    Output does not match data sheet as only 1 report was available for selection in hyperion planning.Can anyone help me in resolving this issues.Its very urgent.

    You will need to provide much more detailed information before anybody can help.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Not getting Report Model Query Designer in SSRS

    I am working on SQL Server reporting Service(SSRS) with Report Builder 3. I successfully connected Data Source with Oracle Server. When I working in Report Builder I did not find Report Model Query Designer. How can I find this?
    How can it possible to merge dataset with datasource(database entity) in SSRS?
    Please help me.

    Hi Jewel,
    To enable Report Model Query Designer in Report Builder, we need use Report Model as the datasource. Report models can be used as data sources for reports created in Report Designer and Report Builder 3.0.
    So in your scenario, you need to create a Report Model project in SQL Server Business Intelligence Development Studio (BIDS), and then deploy this report model to report server. Then in Report Builder, you can use this report model as datasource and open
    Report Model Query Designer window.
    Reference.
    Report Models (Report Builder 3.0 and SSRS)
    Tutorial: Creating a Report Model
    If I have anything misunderstood, please point it out.
    Regards,
    Charlie Liao
    TechNet Community Support

Maybe you are looking for