Datawarehouse query detail report result doesn't match summary report.

Hello,
In our DW, we run a detail report query ( like below No. 1) , while in the summary report, in which the query is partially based on aggregated table T_AGG_UNC_GROSS (like below No.2), the query result doesn' match the query result of the details report. (supposed to match exactly)
To pick out the problem why summary report (like below NO.3) doesn't match details report. I put two filters in the details query with the filter is "year 2007", filter location is "California")
I can get 295 selected.
while I put above two filters in summary report, get no row selected.
I suspect aggregation table has some problem (wrong aggregated).
Is there any method I can pick out the problem behind?
thanks a lot in advance.
--1.detail report
select D1.c14 as c1,
D1.c13 as c2,
D1.c12 as c3,
D1.c11 as c4,
D1.c10 as c5,
D1.c15 as c6,
D1.c9 as c7,
D1.c8 as c8,
D1.c7 as c9,
D1.c6 as c10,
D1.c5 as c11,
D1.c16 as c12,
D1.c17 as c13,
D1.c18 as c14,
D1.c19 as c15,
D1.c4 as c16,
D1.c3 as c17,
D1.c20 as c18,
D1.c2 as c19,
D1.c21 as c20,
D1.c22 as c21,
D1.c1 as c22
from
(select /*+ full(T278878) full(T144662) full(T144546) full(T144557) full(T144665) full(T155155) */ sum(T144442.FINAL_BILL_AMOUNT) as c1,
sum(T144400.WRITE_OFF_AMOUNT) as c2,
case when T144416.FMCI_IND = 'Y' then 'Yes-fMCI' else 'No-fMCI' end as c3,
T144442.IS_FIOS_FLAG as c4,
T314105.DATE_DESC as c5,
T144442.CYCLES_DELINQUENT as c6,
T144590.DATE_DESC as c7,
T144564.DATE_DESC as c8,
T144557.LOB_CODE as c9,
case when T144442.IS_NEVER_PAY_FLAG = 1 then 'Yes-NP' else 'No-NP' end as c10,
T144416.CLASS_OF_SERVICE as c11,
T144416.ACCOUNT_NAME as c12,
T144416.BTN as c13,
T144416.ACCOUNT_NUMBER as c14,
T144634.ACCOUNT_STATUS as c15,
T144687.CSG_ID as c16,
T441666.DISCONNECT_REASON_DESC as c17,
T144612.LOB_CODE as c18,
T144612.STATE_CODE as c19,
T144640.DATE_DESC as c20,
T144586.PRIMARY_CIC_CATEGORY as c21,
T144586.SECONDARY_CIC_DESC as c22
from
V_D_STATE T144612 /* V_D_STATE_UNCGRO */ ,
D_DISCONNECT_REASON T441666 /* D_DISCONNECT_REASON_UNCG */ ,
D_CUSTOMER_SERVICES_GROUP T144687 /* D_CUSTOMER_SERVICES_GROUP_UNCGRO */ ,
V_D_ACCOUNT_STATUS_FINAL T144634 /* V_D_ACCOUNT_STATUS_UNCGRO */ ,
D_DATE T144640 /* D_DATE_UNCGRO */ ,
V_D_CARRIER_CODES T144586 /* V_D_CARRIER_CODES_UNCGRO */ ,
F_UNCOLLECTIBLES T144400 /* F_UNCOLLECTIBLES_UNCGRO */ ,
D_ACCOUNT T144416 /* D_ACCOUNT_UNCGRO */ ,
D_ACCOUNT_DETAIL T144442 /* D_ACCOUNT_DETAIL_UNCGRO */ ,
D_LINE_OF_BUSINESS T144557 /* D_LINE_OF_BUSINESS_UNCGRO */ ,
D_DATE T144564 /* D_DATE_UNCGRO_CONNECT */ ,
D_DATE T144590 /* D_DATE_UNCGRO_FINAL */ ,
D_DATE T314105 /* D_DATE_UNCGRO_DISCONNECT */
where ( T144400.ORGANIZATION_ID = T144612.ORGANIZATION_ID and T144416.ACCOUNT_STATUS_ID = T144634.ACCOUNT_STATUS_ID and T144400.WRITE_OFF_DATE = T144640.DATE_ID and T144400.CIC_CODE_ID = T144586.CIC_CODE_ID and T144416.CUSTOMER_SERVICE_GROUP = T144687.CSG_CD and T144400.ACCOUNT_ID = T144442.ACCOUNT_ID and T144400.ACCOUNT_ID = T144416.ACCOUNT_ID and T144400.DISCONNECT_DATE = T314105.DATE_ID and T144400.WRITEOFF_REFERRAL_IND = 'WRO' and T144416.DISCONNECT_REASON = T441666.DISCONNECT_REASON and T144612.U_STATE_DESC = 'California - BUSINESS' and T144640.YEAR_DESC = 'Year 2007' and T441666.DISCONNECT_REASON_DESC <> 'G' and T144416.FINAL_BILL_DATE = T144590.DATE_ID and T144416.CONNECTION_DATE = T144564.DATE_ID and T144416.LOB_ID = T144557.LOB_ID and T441666.DISCONNECT_REASON_DESC <> 'H' )
group by T144416.ACCOUNT_NAME, T144416.ACCOUNT_NUMBER, T144416.BTN, T144416.CLASS_OF_SERVICE, T144442.IS_FIOS_FLAG, T144442.CYCLES_DELINQUENT, T144557.LOB_CODE, T144564.DATE_DESC, T144586.PRIMARY_CIC_CATEGORY, T144586.SECONDARY_CIC_DESC, T144590.DATE_DESC, T144612.LOB_CODE, T144612.STATE_CODE, T144634.ACCOUNT_STATUS, T144640.DATE_DESC, T144687.CSG_ID, T314105.DATE_DESC, T441666.DISCONNECT_REASON_DESC, case when T144416.FMCI_IND = 'Y' then 'Yes-fMCI' else 'No-fMCI' end , case when T144442.IS_NEVER_PAY_FLAG = 1 then 'Yes-NP' else 'No-NP' end
) D1;
295 rows selected.
--2. aggregation table T_AGG_UNC_GROSS
create table T_AGG_UNC_GROSS parallel nologging as
SELECT a.account_id,a.ORGANIZATION_ID,a.UNC_LOB_ID,
MAX (a.WRITEOFF_REFERRAL_IND) AS WRITEOFF_REFERRAL_IND,
MAX (a.WRITE_OFF_DATE) AS WRITE_OFF_DATE,
COUNT (1) AS NO_OF_UNC,
MAX(a.DISCONNECT_DATE) as DISCONNECT_DATE,
sum(a.WRITE_OFF_AMOUNT) as WRITE_OFF_AMOUNT
FROM f_uncollectibles a
GROUP BY a.account_id,a.ORGANIZATION_ID,a.UNC_LOB_ID;
---3. sumarry resport (query)
select SUBSTR (f.WRITE_OFF_DATE, 5, 2)
|| '/'
|| SUBSTR (f.WRITE_OFF_DATE, 7, 2)
|| '/'
|| SUBSTR (f.WRITE_OFF_DATE, 0, 4)
writeoff_date,
'ALL CIC',
o.U_STATE_DESC,
s.U_ACCOUNT_STATUS,
rl.RISK_LEVEL,
d.Amount_Range_ID || ' - WR',
f.WRITEOFF_REFERRAL_IND,
fi.fios_flag_desc,
DR.DISCONNECT_REASON || '-' || DR.DISCONNECT_REASON_DESC,
b.BEHAVIOR_SCORE || ' - B',
cs.csg_cd || ' - CG',
CASE WHEN d.IS_NEVER_PAY_FLAG = 1 THEN 'Yes-NP' ELSE 'No-NP' END
AS Neverpay_Ind,
CASE WHEN u.FMCI_IND = 'Y' THEN 'Yes-fMCI' ELSE 'No-fMCI' END
AS FMCI_IND,
lob.DESCRIPTION,
COUNT (f.Account_id) No_of_Accounts,
SUM (d.NO_DENIAL_NOTICES) NO_DENIAL_NOTICES,
SUM (d.CYCLES_DELINQUENT) CYCLES_DELINQUENT,
sum(f.WRITE_OFF_AMOUNT) WRITE_OFF_AMOUNT ,
sum(d.FINAL_BILL_AMOUNT) FINAL_BILL_AMOUNT
FROM t_agg_unc_gross f,
d_account u,
d_account_detail d,
D_DISCONNECT_REASON DR,
d_writeoff_amount_range a,
v_d_account_status_final s,
D_BEHAVIOR_RANGE b,
v_d_state o,
d_Fios_Indicator fi,
d_risk_level rl,
d_customer_services_group cs,
D_UNCOLLECTIBELS_LOB lob,
D_DATE
WHERE f.account_id = u.account_id
AND u.account_id = d.account_id
AND d.Amount_Range_ID = a.wo_range_id
AND d.IS_FIOS_FLAG = fi.FIOS_FLAG
AND u.Account_Status_ID = S.ACCOUNT_STATUS_ID
AND u.RISK_LEVEL_ID = rl.risk_level_id
AND o.organization_id = f.organization_id
AND dr.DISCONNECT_REASON = u.DISCONNECT_REASON
AND d.BEHAVIOR_SCORE12 = b.BEHAVIOR_SCORE
AND u.CUSTOMER_SERVICE_GROUP = cs.csg_cd
AND Dr.disconnect_reason NOT IN ('H', 'G')
AND lob.LOB_UNC_ID =f.UNC_LOB_ID
AND o.U_STATE_DESC = 'California - BUSINESS'
AND D_DATE.YEAR_DESC = 'Year 2007'
and  u.FINAL_BILL_DATE = D_DATE.DATE_ID
--and u.CONNECTION_DATE = D_DATE.DATE_ID
GROUP BY SUBSTR (f.WRITE_OFF_DATE, 5, 2)
|| '/'
|| SUBSTR (f.WRITE_OFF_DATE, 7, 2)
|| '/'
|| SUBSTR (f.WRITE_OFF_DATE, 0, 4),
'ALL CIC',
o.U_STATE_DESC,
s.U_ACCOUNT_STATUS,
rl.RISK_LEVEL,
d.Amount_Range_ID || ' - WR',
f.WRITEOFF_REFERRAL_IND,
fi.fios_flag_desc,
DR.DISCONNECT_REASON || '-' || DR.DISCONNECT_REASON_DESC,
b.BEHAVIOR_SCORE || ' - B',
cs.csg_cd || ' - CG',
lob.DESCRIPTION,
CASE WHEN d.IS_NEVER_PAY_FLAG = 1 THEN 'Yes-NP' ELSE 'No-NP' END,
CASE WHEN u.FMCI_IND = 'Y' THEN 'Yes-fMCI' ELSE 'No-fMCI' END;
no row selected.
Edited by: ROY123 on Jul 23, 2010 12:17 PM

fixed.

Similar Messages

  • Apex report result doesn't agree with the result of sql developer

    Hello guys,
    at the moment I try to create a standard report which takes his content from several spreadsheets. Because of some problems with the searchbar I'm not able to use an interactive report. The sql query contains a function, which sets some space characters into the content of a column. But there is a big problem. When I call my sql query in apex from the spreadsheets the result doesn't agree with the result which affords the sql developer.
    I know that the sql developer affords the right result.
    best regards
    wderr
    Edited by: user9072567 on 07.02.2010 12:57

    thats the query:
    select "TWORKITEM"."WORKITEMKEY",
    "TWORKITEM"."PROJCATKEY",
    "TPROJECT"."LABEL",
    "TWORKITEM"."PACKAGESYNOPSYS",
    replace(replace("TWORKITEM"."PACKAGEDESCRIPTION", chr(10), '<br>'),'<td></td>','&lt;td&gt;&lt;/td&gt;') packagedesc,
    suche_ohne_ti_be("TWORKITEM"."WORKITEMKEY") "CHANGEDESCRIPTION"
    from "TWORKITEM" "TWORKITEM", "TPROJECT" "TPROJECT", "TPROJCAT" "TPROJCAT"
    where "TWORKITEM"."PROJCATKEY" = "TPROJCAT"."PKEY"
    and "TPROJCAT"."PROJKEY" = "TPROJECT"."PKEY"
    and (instr(upper("TWORKITEM"."WORKITEMKEY"), upper(nvl(:P10_SEARCHTEXT, "TWORKITEM"."WORKITEMKEY"))) > 0
    or instr(upper("TPROJECT"."LABEL"), upper(nvl(:P10_SEARCHTEXT, "TPROJECT"."LABEL"))) > 0
    or instr(upper("TWORKITEM"."PACKAGESYNOPSYS"), upper(nvl(:P10_SEARCHTEXT, "TWORKITEM"."PACKAGESYNOPSYS"))) > 0
    or instr(upper("TWORKITEM"."PACKAGEDESCRIPTION"), upper(nvl(:P10_SEARCHTEXT, "TWORKITEM"."PACKAGEDESCRIPTION"))) > 0
    or instr(upper(suche_ohne_ti_be("TWORKITEM"."WORKITEMKEY")), upper(nvl(:P10_SEARCHTEXT, "TWORKITEM"."WORKITEMKEY")))>0
    I mean with spreadsheets some tables/charts. And I take those informations from 3 of them.
    regards
    wderr

  • Grand total values are not matching with Detail report

    Report has grand totals and when I drill to the detail report, grand total values are NOT matching with parent report totals, I did some analysis but I'm clueless on this issue.
    Please provide your thoughts and insight on this issue..
    Thanks

    is your summary and detail reports hitting different facts, like summary hitting aggregate and detail report hitting it's corresponding detail level fact..?
    if then,
    From Front-end:
    Fix the filter values in detail report that are passing from master report then try delete each columns then check the grand total. If you found your values is matching by deleting particular column then you need to investigate what is the issue around with that dimension table..
    From Database side:
    1. check first aggregate table has proper aggregate data of it's detail..
    2. Take the detail report obiee generated query and try to comment each dimension table and it's corresponding joins to the facts, (before, this delete all the dimensional columns and other measures from select statement and put only that measure where you are getting wrong value, so that you need not to comment all the select and group by columns which saves your time.. ). Need to check by commenting each dimensional wid and it's table from clause, if you found that values is matching then there is some problem with wid columns data population in your ETL.
    Is that BI-Apps project?
    btw, whtz ur name?

  • Is it possible to submit a list item and at same time query/search the results if parameters are matched.

    Hello,
    Is it possible to submit a list item and at same time query/search the results if parameters are matched.
    Example - user logon to site enter search parameters and hit submit button. Once done parameters gets saved in list and shows search results on page. I have been asked to do this with
    SP designer and InfoPath doesn’t work due items limits.
    Please suggest.
    Thanks,
    Manish
    Manish

    Hi Manish,
    may i ask if you need,
    when user account click the login button, it will be authenticate the user and then it will show search result page?
    may i know how the keyword of words to be put? is it together with the user account box, password and keyword?
    or it will be like, after user authenticate, it will redirect to search page, so that user may use the search page to input the keyword?
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Master Detail Report using Report Query

    I am using APEX Report Query component to try and create a mater/detail report with BI plug-in. The Report Queries doesn't give you mush flexibility as each query is independent of the other. I'm trying to see if I need to create 2 queries or 1 AND what option would let me create a master detail report like so in BI Desktop:
    Employee: Bob ID:100 Dept: HR
    Jobs
    Job 1
    Job 2
    Job 3
    Employee: Tom ID:200 Dept: ACCt
    Jobs
    Job 1
    Job 2
    Job 3
    Option1.
    I could combine the Employee Job info with the Employee info, but that would report the Employee info for every Employee Job. I didn't think that was good.
    <Rowset1_Row>
    <EMPID>
    <NAME>
    <DEPT>
    <JOB>
    </Rowset1_Row>
    Option 2.
    I could create 2 queries. The 1st getting all of the Empoyee info. The 2nd getting all of the Employee jobs.
    <Rowset1_Row>
    <EMPID>
    <NAME>
    <DEPT>
    <JOB>
    </Rowset1_Row>
    <Rowset2_Row>
    <EMPID>
    <JOB>
    </Rowset2_Row>
    <Rowset2_Row>
    <EMPID>
    <JOB>
    </Rowset2_Row>
    Any advice?
    Edited by: bobmagan on Jun 1, 2009 5:29 AM

    Can you check for the settings please.
    Thanks and Regards
    Riyas

  • Link to detail Report doesn't work.

    Hi, we are using Webi for On Demand reports (against Salesforce universe) and the hyperlinks to details reports are not working.
    my URL in master report looks like this:
    ="<a href=https://na.crystalreports.com/opendoc/openDocument.do?iDocID=48877773&sType=wid&sWindow=New&lsMFocusBook="[Focus Book]"&lsMSegment="[Segment]"&lsMAccount="[Account Name]">"[Segment]"</a>"
    and UR in detail report appears as:
    https://na.crystalreports.com/opendoc/documentXML.jsp?cmdP1=untitled488777731wid*&token=&cmd=askPromptView&cmdBlock=all&cmdP2=lsMSegment%3D%255BSegment%255D%26sWindow%3DNew%26useCustomPrompts%3DY
    Some how details report doesn't recognise the propmpt values and always asks to fill prompts.
    can some one advise?
    Thanks

    Hello,
    The openDocument.do url was really only designed for use with Crystal Reports documents.
    It is not officially supported for webi documents, or any of the other document types.
    That being said, it sounds like opening webi docs with openDocument.do does work, it is just the parameter passing that is problematic.
    Cheers
    Steve

  • Trial Balance - Encumbrance & Encumbrance Details Report not matching

    Hi,
    Our client has recently raised one issue saying Trial Balance - Encumbrance with 'Obligation' parameter and Encumbrance Details Report (both reports period name and Enc Date to choosen as FEB-12 and 29-Feb-2012).
    The final totals related to both reports does not match and why could be such difference occuring between the two reports. As both reports logically dealing with Enumbrance one at PO level and another one at GL level. And po transactions have been transferred to GL.
    Please explaing how to search those records which are showing these differences in main report.
    Appreciate in advance for your reply.
    Regards,
    Prasad

    Hi,
    This seems to be due to the rounding issue in the database.
    Can you check and confirm whether any time during the business process, in the system the decimal settings were increased or decreased ? If yes, then it can be due to the calculation (rounding)
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Error Opening Reports (Cannot find Dimension Scenario, Error executing query: the member null doesn't exist in this application)

    Hello,
    two of our users get the following error message, when opening two specific reports:
    First Report: Cannot find Dimension Scenario.
    Second Report: Error executing query: the member null doesn't exist in this application.
    Other users can access these reports, and the same users where the problem occurs can access other reports in the same folder.
    I set the same rights for me, but i can access the reports without problems.
    Somebody encountered the same problem before?

    Hi there,
    I had the same issue a few weeks ago... not sure how it happened but it was related only with my username.
    In order to fix it:
    1. I created a report which does not require to select the scenario in advance. Try to use the default data-grid that you get when you first create a report for example.
    2. When the user runs the report, try to see if he can see the dimension. Do not use the missing dimension on rows or columns. If he can see the dimension, ask him to select one scenario. This will solve the issue.
    3. If he cannot see the dimension, try to change the layout of the report.
    Regards,
    Thanos

  • Query in Reporting?In result no., of entries should be displayed?

    hello all
    Need a result like no., of entries in a report?
    Like I have a report in that Quantity and Customer number  is my Infobjects
    if for c001 customer if i have 5 entries(5 quantites) like(10,20,30,40,50) in result it should display as "5" not the total "150"?
    how to do this
    regards
    balji

    Hi,
    right click on Key figure (in BEx query designer)--> calacule result as --> counting all values.
    hope it helps
    regards
    VC

  • Promote results with exact match to the query text

    Hi,
    i want to promote to top results where there is exact match to the query text (not results that were found thanks to "Enable stemming" and morphology). Any ideas? maybe a query rule?
    keren tsur

    Check if below can help
    http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2010/05/13/wildcard-search-web-part-for-sharepoint-2010.aspx

  • Hoe top create summary and detail report using ABAP QUERY

    Hi ,
    Can any one suggest me how to create summary and detailed report using ABAP Quey.
    Regards,
    Raghu.

    Hi,
    Table Declaration
    tables:mara,mast.
    *Declaring the internal table
    data: begin of itab_new occurs 0,
          matnr like mara-matnr,     "Material No
          ernam like mara-ernam,     "Material Created by
          mtart like mara-mtart,     "Material Type
          matkl like mara-matkl,     "Material Desc
          werks like mast-werks,     "Plant
          aenam like mast-aenam,     "BOM created
          stlal like mast-stlal,     "Alternative BOM
          end of itab_new.
    select-options: p_matnr for mara-matnr.
    CODE A : Retrieving the data from the database
         select  f~matnr f~ernam f~mtart f~matkl m~werks m~aenam m~stlal
         into table itab_new
         from mara as f inner join mast as m
         on f~matnr = m~matnr
         where f~matnr in p_matnr.
    CODE B : Retrieving the data from the database.
        SELECT FMATNR FERNAM FMTART FMATKL MWERKS MAENAM M~STLAL
        INTO TABLE ITAB_NEW
        FROM MARA AS F INNER JOIN MAST AS M
        ON FMATNR = MMATNR
        WHERE F~MATNR = P_MATNR.
        SORT ITAB_NEW BY ERNAM.
    loop at itab_new.
    write:/5  itab_new-matnr,itab_new-ernam,itab_new-mtart,itab_new-matkl,itab_new-werks,itab_new-aenam,itab_new-stlal.
    endloop.
    *TABLES: MARA , MAST.
    *DATA:BEGIN OF ITAB_NEW OCCURS 0,
                 MATNR LIKE MARA-MATNR,
                 ERNAM LIKE MARA-ERNAM,
                 MTART LIKE MARA-MTART,
                 MATKL LIKE MARA-MATKL,
                 END OF ITAB_NEW.
       SELECT MATNR ERNAM MTART MATKL
       INTO TABLE ITAB_NEW
       FROM MARA
       WHERE MTART = 'T'
       ORDER BY MATNR ERNAM MTART MATKL.
    *DATA: BEGIN OF ITAB OCCURS 0,
         MATNR LIKE MARA-MATNR,
         END OF ITAB.
    Thank U,
    Jay....

  • Traffic in SXMS_XI_AUDIT_DISPLAY doesn't match traffic in RWB Perf Mon

    I have got a traffic log in RWB:
    Time Interval: last month
    Agregation Interval: one month
    Other options initial.
    So the traffic is Size*Number. But that value doesn't match  result of SXMS_XI_AUDIT_DISPLAY  report in XI ABAP...
    What the cause of this problem? maybe I must patch some components?

    I found the couse of unmatch - perfomance monitoring log stores only for two weeks, so "month agregation" realy shows only a half of month traffic.
    So there's a question: is it possible to change logging period?

  • Master Detail Report for PDF Printing

    Dear All,
           While trying to create a master detail report using Oracle APEX 4.2 and BI Publisher. I tried creating report queries and report layout following the below mentioned steps.
    CREATE TYPE emp_row AS OBJECT (
      EMPNO NUMBER(4),
      ENAME VARCHAR2(10),
      JOB VARCHAR2(9),
      MGR NUMBER(4),
      HIREDATE DATE,
      SAL NUMBER(7,2),
      COMM NUMBER(7,2)
    CREATE TYPE emp_tab AS TABLE OF emp_row;
    CREATE TYPE dept_row AS OBJECT (
      DEPTNO NUMBER(2),
      DNAME VARCHAR2(14),
      LOC VARCHAR2(13),
      EMP_LIST emp_tab
    SELECT SYS_XMLAGG (
      SYS_XMLGEN(
      dept_row(
      d.deptno, d.dname, d.loc,
      CAST(MULTISET(SELECT e.empno, e.ename, e.job, e.mgr, e.hiredate, e.sal, e.comm
      FROM emp e
      WHERE e.deptno = d.deptno) AS emp_tab)
      SYS.XMLGENFORMATtYPE.createFormat('DEPT')
      ) AS "XML_QUERY"
    FROM dept d
    WHERE d.deptno = 10;
    Though the above steps generates xml output while trying to generate in APEX it says unsupported datatype. Tried using DBMS_LOB as well no luck. Any inputs will be quite helpful. Should there be any other way to incorporate master detail report printing in APEX kindly advise.
    Thanks
    Ahmed

    Hi Ahmed_Jed,
    Ahmed_Jed wrote:
    Thanks Kiran for your prompt response. I tried following the steps already using this link (How To Create a Master-Detail PDF Report) somehow the detail record was not getting processed perhaps was trying to generate xml data using the above query. Any other reference will be highly appreciated.
    Regards
    Ahmed
        Well the problem lies here:
    SELECT SYS_XMLAGG (
      SYS_XMLGEN(
      dept_row(
      d.deptno, d.dname, d.loc,
      CAST(MULTISET(SELECT e.empno, e.ename, e.job, e.mgr, e.hiredate, e.sal, e.comm
      FROM emp e
      WHERE e.deptno = d.deptno) AS emp_tab)
      SYS.XMLGENFORMATtYPE.createFormat('DEPT')
      ) AS "XML_QUERY"
    FROM dept d
    WHERE d.deptno = 10;
        The Report Query itself generates XML data (in the required BI Publisher format). So, no need to generate it like this.
        As you are using table functions your query should be of the type:
    SELECT EMPNO
                , ENAME
                , JOB
                , MGR
                , HIREDATE
                , SAL
                , COMM
        FROM TABLE ( EMP_PKG.GET_EMPLOYEES ( :PXX_DEPTNO ))
        where EMP_PKG.GET_EMPLOYEES is packaged table function which returns the Object Table of type EMP_TAB mentioned above.
        When you test the above Report Query with sample DEPTNO, it will generate the sample XML, which you can use to generate Report Layout in RTF format using BI Publisher Desktop.
        Hope this helps!
    Regards,
    Kiran

  • Dynamically creating a master-detail report

    Hi,
    I have a situation where users enter an order number and then get a list of shipments. They then want to click on one of the shipments and get a report. I tried doing this with parameters, but users forget to hit [Enter] after the Order parameter - so the shipment paramter gets left blank and the report produces an error.
    Is there a way in a RTF template so that the user could click on a shipment and that would display all the rows for that shipment? I can get all the data in one go, thats not an issue.
    Ideally I want something like
    Order No [67453278]
    Shipments
    543
    657
    786
    The user can then click on a shipment and sees the rows for that shipment.
    Any thoughts?
    Thanks
    Phil

    Thanks, I have tried this but it doesn't solve the problem.
    I had tried this approach before I logged this request, and it has the following issues when used. The report is called from a portal page:
    1. The user gets a "flash" when the detail report is called.
    2. There is no easy way to get back to the "master" report, showing the shipments. Pressing the [back] button doesn't work. The user doesn't know they are in BIP at this point - I use the hyperlink which doesn't show headers.
    What is required is to see the detail report on the same page underneath the list f shipments.

  • Change Maintenance Work Order Detail Report in Print WO page

    Hello,
    I would like to ask you for your help. We would like to have different report in Print WO function than Maintenance Work Order Detail Report. I mean SSM responsibility > Search for WOs > click Print WO icon. We applied patch #9871500 (I found it there: Templates associated to datadefinitions other than 'EAMWRREP' are not shown in the Work Order Detail report in EAM [ID 1209703.1]). I did personalizations steps - I defined new data definition (for example TEST) and report with data definition TEST is shown in the option on Print WO page now... But how should I it define to have correct result? What should be defined in Executable, Concurrent Program, Data Definition and Data Template? I have RDF and RTF files for this report. We are using different SQL than it is used in the original report. How could be used our SQL defined in RDF?
    Thanks, Regards,
    Jitka

    Hi,
      1) You can choose to select and Print shop paper when you need.No enhancement is required.
    2) There is not an option in standard to say Print/Not print Long text . You will have to replace the standard form with a custom form and build the logic to print /Not Print long text based on your rules.
    Regards
    Narasimhan

Maybe you are looking for