RRI assgnment details fro query

Hellow BW Gurus.
I'm expierencing the following problem :
In my bex query I have 8 fromulas:
val1 | val1% |val2 | val2% |val3 | val3% | everage grade| number of candidates.
the KF from Infocube is grade value(there is also characteristic  char_val, with val1 ,val2, andval3 values in the infocube with the same value as gradeKF). val1, va2, val3 are KF formulas defined as exceptional aggregations on number of  candidates that got val1 , val2 and val3 grades appropriatly.  val x = num of candidates(grx- restricted by char_val= valx)
val1val2val3 = 100%=>number of candidates of all candidates , and val_x% =val_x/number of candidates.
in the RRI defu=ined in standart way via RSBBS with general assignment details noflter for valx charcteristic is passed  , when executing RRI from valX% . What I need is :jumpng  from valx% the flter for val_char should be passed to target report with value valx,  but that cant be executed because the formula uses several KFs and fails determining filter value for char_val. I also cannot push cahr_val in collomns or lines because of requirments fro the reports(there are formulas which are not related to char_val - everage grade , number of candidates)
I was thinking about defining RRI with BADI and determine the filter values programmaticly. The problem is: Idon't know how  to determine from which fromula the RRI was made... If I could know from which Formula column was the jump made I could enter switch on formula name and determine filter value via commnad programmaticly.
Any ideas how can I know the source formula of RRI jump???
thanks in advance, Vladimir

BADI should work in combination with RSBBS mapping. We have done the same RRI jumps using these. You can get the filter values in the BADI.
The implementation should be done in methods below:
EXIT_SAPLRSBBS_001 - RRI Field Mapping
here i_s_rkb1d-compid you will get the query tech name.
Sankar Kumar

Similar Messages

  • Transporting RRI Assignment Details

    Hi ,
    the following is the method i use to transport RRIs
    a) Rsbbs
    b) Select Sender query ,press enter
    c) Select reansport manually from the environment tab
    4) Change package and attach it to a request
    In the destination system i'm able to find the jump but the assignment details for this is not transported. All are reset to "generically"
    Help would be appreciated.
    Thanks and regards.

    I found the solution.
    Note 1042673 - Error: Assignment details in the report-report interface

  • Details in query

    Hi ,  I have to document the query . with entire technical specifications
    1. Key Figure used in Restriction
    2.Char used in Restriction
    3.Variable used in Restriction
    4.char values
    5. Default Value of Variable
    6. definition of ckf
    7. list of formulas
    8. filters
    9 free characteristics
    do i have any program to get all these in one shot or pls do suggest me any tables for the query so that i get the relevant details.
    Regards,
    Novino

    check these tables.
    RSZELTDIR - Directory of the reporting component elements
    RSZELTTXT  Texts of reporting component elements 
    RSZELTXREF  Directory of query element references 
    RSRREPDIR - Directory of all reports (Query GENUNIID) 
    RSZCOMPDIR  Directory of reporting components 
    RSZRANGE  Selection specification for an element 
    RSZSELECT - Selection properties of an element
    RSZELTDIR - Directory of the reporting component elements 
    RSZCOMPIC - Assignment reuseable component <-> InfoCube
    RSZELTPRIO  Priorities with element collisions
    RSZELTPROP  Element properties (settings)
    RSZELTATTR- Attribute selection per dimension element 
    RSZCALC  Definition of a formula element 
    RSZCEL - Query Designer: Directory of Cells
    RSZGLOBV - Global Variables in Reporting
    RSZCHANGES  Change history of reporting components

  • RRI problem in the query

    I am facing problem using RRI feature.
    In my first Query I have Two customer Exit variables to fetch values of 2 dates and i am showing records for dates in between them. The query is working very fine.
    Now jumping from this query to another Query which will display all data where a date(different info object than query 1) lies between two dates of previous query(which are customer exit variable).
    I can filter data in my second query by applying range of values to both the customer exit variables of query 1.Please help.
    Now I just want to know how to pass the values of the customer exit variables form query 1 to query 2.
    Message was edited by: Sachin

    Hi,
    You're trying to use Table Alias(T0), i'm guessing its not allowed. Try also to remove dbo, try @EMPA or just EMPA.
    HTH
    Manuel

  • HOW TO FIND PAY DETAILS USING QUERY

    Hi to Everyone,
    i have to write a query to find the basic, da, perpay paid to an employee for a month(ex:may)
    for this query which tables i have to link and use.
    PLEASE REPLY IMMEDIATELY URGENT

    Balances are not stored in a database table(except for the latest month, which are stored in Pay_latest_balances)
    The best way is to use the package function PAY_BALANCE_PKG.GET_VALUE(...)
    This is an overloaded function. You can use the one which accepts the assignment_action_id and the balance_dimension_id.
    --> assignment_action_id , would give you the assignment and the payroll period details
    --> balance_dimension_id , would give you the balance and the dimension.. like BASIC_SALARY_ASG_PTD
    You can use Pl/sql and spool the data or use the above function directly from Sql.
    Cheers,
    VB

  • Master-detail automatic query

    How to query the detail block in a
    master-detail form when I change
    any master key field?
    null

    This is not implemented, after you update a record you must click on "Save" button and query again.

  • Sales Opportunity Stage Tab - Want last updated row details in query

    Dear Experts,
    I have a query as under :
    SELECT T1.Name, T1.OpprId, T1.OpenDate, T0.Step_Id, T0.Line, T0.OpprId, T0.U_status, T2.Name FROM OPR1 T0  INNER JOIN OOPR T1 ON T0.OpprId = T1.OpprId INNER JOIN [dbo].[@STAGE]  T2 ON T0.U_status = T2.Code WHERE T1.Name = 'ORDER'
    Now I want that this query should give me the last row detail in the Stage TAb of Sales opportunity. Now this query is giving me every row stage details which are put in the Stage Tab. For example in the Stage Tab of Sales Opportunity there are 4 rows of Stages, its giving me all the 4 row stages in the query. I want that only the last stage should be displayed in the query may be it's on 2 second stage or 3 rd ot 4 th. I want only last stage to be shown.
    Please advise what I need to do for the above query.
    Regards,
    Kamlesh

    Hi All,
    I have been working in a query to generate the last stage details in the query but still not able to resolve it.
    SELECT T0.Status,T0.OpprId, max(T1.Line) 'Stage',T0.OpenDate, T0.CardCode, T0.CardName, T0.Territory, T0.CloPrcnt,T1.OpprId, T1.Line, T1.OpenDate, max(T1.OpenDate) 'Open Date',T1.CloseDate, T1.Step_Id,T2.descript, T3.Name, T0.MaxSumLoc, T4.U_swl, T0.MaxSumSys, T0.U_eqno, T0.MaxSumLoc, T4.U_partno, T4.U_desc, T4.U_unit, T4.U_amt, T4.U_qty, T4.U_amt, T4.U_span FROM OOPR T0  INNER JOIN OPR1 T1 ON T0.OpprId = T1.OpprId INNER JOIN OTER T2 ON T0.Territory = T2.territryID INNER JOIN [dbo].[@STAGE]  T3 ON T1.U_status = T3.Code, [dbo].[@SALES_ENQ_ITEM]  T4 WHERE T0.OpprId = T4.U_opprNo AND T0.Status = 'O' group by T0.Status,T0.OpprId, T0.OpenDate, T0.CardCode, T0.CardName, T0.Territory, T0.CloPrcnt,T1.OpprId, T1.Line, T1.OpenDate, T1.CloseDate, T1.Step_Id,T2.descript, T3.Name, T0.MaxSumLoc, T4.U_swl, T0.MaxSumSys, T0.U_eqno, T0.MaxSumLoc, T4.U_partno, T4.U_desc, T4.U_unit, T4.U_amt, T4.U_qty, T4.U_amt, T4.U_span
    The above query is generating and giving me the Last Stage through max(T1.Line) 'Stage' field. But I want to have if any opportunity Number has 1,2,3 Stage then only Max should should which is 3 but in this query all 3 are showing.
    As per Noratam ''There are other options by checking max of the start-date and stage-key fields of the sage table''.
    I can use the Start Date which seems to be max(T1.OpenDate) 'Open Date' but how to give a formula or write a query by which only Max Date is selected as per the stage in the query.
    I think I am not able to use the Max funtion properly. Please help what is wrong with it.
    Can you please help in this regard.
    Regards,
    kamlesh
    Edited by: Kamlesh Gupta on Mar 22, 2009 11:33 PM

  • Customer details SQL Query

    Hi All,
    I need an sql query which shows customer details as follows: Customer party id, customer name, customer account id, customer account number, party site number, address1, address2, city, country, customer contact phone number. I developed the below query but it shows lot of repeated records with incorrect party site number.
    Please assist.
    SELECT hp.party_id,hp.party_name customer_name,hcp.phone_number,cust.account_number, hps.party_site_number, hl.ADDRESS1, hl.address2, hl.address3, hl.city,hl.country--, hp.person_first_name first_name, hp.person_last_name last_name
    FROM
    hz_parties hp,
    hz_relationships hr,
    hz_parties h_contact ,
    hz_contact_points hcp,
    hz_cust_accounts cust,
    hz_party_sites hps,
    hz_locations hl
    where hr.subject_id = h_contact.PARTY_ID
    and hr.object_id = hp.party_id
    AND hcp.owner_table_id(+) = hr.party_id
    AND cust.party_id = hp.party_id
    AND hcp.owner_table_id = hps.party_id(+)
    AND hps.location_id = hl.location_id
    AND hcp.CONTACT_POINT_TYPE ='PHONE'
    AND hcp.STATUS = 'A';

    Hi,
    Looks like some of your joins are incorrect. Try the below query :
    SELECT hp.party_id, hp.party_name customer_name, cust.account_number,
           hps.party_site_number, hl.address1, hl.address2, hl.address3, hl.city,
           hl.country, hcp.phone_number
      FROM hz_parties hp,
           hz_cust_accounts cust,
           hz_party_sites hps,
           hz_locations hl,
           hz_contact_points hcp
    WHERE cust.party_id = hp.party_id
       AND hp.status = 'A'
       AND cust.status = 'A'
       AND hps.party_id = hp.party_id
       AND hps.status = 'A'
       AND hl.location_id = hps.location_id
       AND hcp.owner_table_name = 'HZ_PARTIES'
       AND hcp.owner_table_id = hp.party_id(+)
    Regards,
    Manjusha.

  • Oracle Forms : Master Detail : Cannot query detail block

    MY requirement is: when user enters records in master block, the corresponding records should be displayed in the detail block. (Detail block is just for viewing).
    Master block is a database block based on a custom table. All fields are enetereble in this block.
    Detail block is a a database block based on view which is built joining the custom table(on which master block is built) & a standard table. None of the fields in detail block are editable. they are just display only. For detail block, set the Key Mode=Non-Updatable, Enabled a field as Primary Key.
    I have created a relation between the 2 blocks. (Deferred=No, AutoQuery=No, Delete Record Behaviour=Isolated.). There is a join between master table & this view.
    But when I enter record in master block & save. the detail block records are not displayed. (Message : No Navigable Items in Detail Block).
    Yes, there are no navigable items in detail block, because its just for viewing purpose. How can this be achieved.
    Thanks,
    Naveen

    Thanks for your inputs. I got the solution for this. Earlier all items in the block were DISPLAY_ONLY. Now, I have selected them as TEXT_ITEMS (even though they are not updatable). It is working fine now. Thanks.

  • Clarification req. about the receiver query output in RRI

    Hi,
    I need some insight on the output that i see in the receiver output in RRI.
    For e.g, In the sender query, I see a list of Cost Elements. Now, I see one of the Cost Element ( select any one context cell) and the perform the RRI Jump.
    Now , can you please let me know if in the receiver Query, do I see output only for that particular Cost Element OR all the cost Elements ( irrespective of wht cell on go on the sender query and perform the Jump )..
    FYI, currently, when I do the jump, I see all the cost elements even though I select one cost element..Is it the way RRI works ?? OR am I missing out on something..
    Please let me know...
    Thanks..
    Punkuj..

    Report - > Costs and Allocations : Costcenters -> Source Query/Infocube/Summary Level
    CostCenter|CostElement|Fiscal Period|Actual Amount
    C001.........|CE123.........|2007007.......|120$
    Report- > Costcenter Line Item Details - > Target Query/DSO/Detailed Level
    CostCenter|CostElement|DocNum|DocumDate|Fiscal Period|Actual Amount
    C001.........|CE123.........|10023.....|2007/09/12|2007007.......|50$
    C001.........|CE123.........|10024.....|2007/09/16|2007007.......|50$
    C001.........|CE123.........|10025.....|2007/09/19|2007007.......|20$
    Overall Result...................................................................120$
    Requirement for jump - > For Document Details like Document Number, Document Date......
    Procedure : Rclick on 120$ - GO TO - Costcenter Line Item Details
    For e.g, In the sender query, I see a list of Cost Elements. Now, I see one of the Cost Element ( select any one context cell) and the perform the RRI Jump.
    You should only see one Costelement from where the jump was made , assuming you have same set of variables in both source and target queries and additional details in the target query if any.
    Dollar Amounts may not match as time period values are not passed on to the target query.
    Now , can you please let me know if in the receiver Query, do I see output only for that particular Cost Element OR all the cost Elements ( irrespective of wht cell on go on the sender query and perform the Jump )..
    Appropriate jump would be from the Dollar Amount Cell  ( like 120$ in the above example ) and it depends on the variables you passon etc....primarly the requirement.
    Jump may not work from the Overall Result Rows, Node Level Dollar Amounts.....
    FYI, currently, when I do the jump, I see all the cost elements even though I select one cost element..Is it the way RRI works ?? OR am I missing out on something..
    What are your variables in the source and target query ?
    What is the requirement anywas?

  • Can an element of a query structure be used for RRI sender

    Hi,
    I know how to use RRI with a regular query.  However, in this case, I have a query with a row structure of restricted key figures and formulas .  Can I use the information in the structure to jump to a more detailed target?
    Thanks
    Suzanne

    While you can't define a jump target based on a specific structure element, all restrictions from where you trigger the jump are considered. Note 1053310 contains detailed explanation about the rules on passing filters and restrcitions from source to target.

  • Master/Detail query problem

    I have two VO, masterVo and detailVo, which assoicated with a VL.
    I create a page to query the masterVo and show the result master data and related detail data.
    Can I add a query criteria to filter the detailVo?
    Now I can only set where clauses in masterVo, is it possible to set where clauses both in masterVo and detailVo?

    I don't use query region for my master/detail data query, because the query result is in hgrid region on the other page.
    So I use controller to send the query criteria into AM for query. In masterVoImpl.java, I combine query
    criteria to Where clauses to initiate query. I have one query criteria belong to detailVo attr, How can I put the detailVo criteria
    and masterVo query criteria at one query?
    Thanks a lot.
    Louis

  • RRI Jump Query opens the receiver query in standard Template??

    Hi,
    Few questions from me (Note I have searched the forum database for answers but didnt get a convincing answer)
    1) How can I use 1 web custom built template for 2 different queries?
    2) I have created the sender receiver setting for the Jump queries. The problem that I am facing is that the sender query uses the custom built web template but when I use GOTO the receiver query instead of using the custome template it executes in standard webtemplate. Kindly suggest how can I open the receiver query in the custom built web template after GOTO function.
    Thanks for all your help in advance..
    - Amit

    Hi SS,
    I agree to the statement that RRI uses link to Query but if we setup the custom web template for that jump query in WAD....it will never open in that template via RRI ???
    That very disappointing discovery for me !!!
    Any other possiblity to make this work????
    What if I have the sender and receiver query web template(custom) same???.is it possbile to use the same template for these two template even after jump ???
    Regards

  • BI Statistics - query level of detail

    Hi,
    Is it possible for us to specify the level of detail for the queries we create? If its possible please tell me how to do it?
    Regards,
    Suraj

    Hi Suraj,
       Yes its possible to specify the level of details for query objects. Here is some info...
    <b>Statistics Detail Level for the Query Object Type</b>
    For queries, you also have the option of selecting a detail level for the statistics data. You can choose from the following:
    &#9679;      0 – Aggregated Data: The system writes only one OLAP event (event 99999) for the query. This contains the cumulative times within the OLAP processing of the query. The system does not record data from the aggregation layer of the analytic engine or aggregation information.
    &#9679;      1 – Only Front End/Calculation Layer Data: The system records all OLAP events, but not separate data from the aggregation layer of the analytic engine.  The system writes only the general data manager event 9000 in the OLAP context as well as the aggregation information.
    &#9679;      2 – All: The system records all data from the area for the front end and calculation layer as well as data from the area for the aggregation layer and aggregation information.
    &#9679;      9 – No Data: The system does not record any data from the front end and calculation layer or from the aggregated event 99999. However, it does record data for the BEx Web templates and workbooks, depending on the setting.
    When you select the detail level, keep in mind that a very large amount of data is recorded when the system records data manager times.
    Hope this helps...
    Regards,
    Habeeb

  • 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.

Maybe you are looking for