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

Similar Messages

  • 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

  • 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

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

  • 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

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

  • Crystal Report Many to One Query Config error when using DataSet.ReadXML me

    When I build a dataset with this method numerous relations are automatically created. I then map these fields onto crystal reports with ADO.net data connection. However when I run the report the following error occurs:
    CrystalDecisions.CrystalReports.Engine.InternalException: Cannot determine the queries necessary to get data for this report.Details:
    This query cannot be performed. The link order requires many to one query configuration, which is not supported. Please rearrange the links.
    If I remove the links (relations) i get duplicate data on the report. Is there any way to resolve this or a patch for the error?

    Hello, Mervin;
    Since you are using ADO.NET dataset, is it possible to get all of the fields you need in one SQL Query outside of Crystal Reports?
    If that is possible, you can use that dataset to create an XML or XSD file to use as the structure for your report.
    VB
    'Using the full path to the .xml file, include the schema
    dataSet.WriteXml("C:\temp\test.xml", XmlWriteMode.WriteSchema)
    or
    dataSet.WriteXmlSchema("c:\temp\testXML.xsd")
    Now create a new report with the ADO.NET(XML) connection and point to either the XML or XSD you created. XML is useful because you can view data in the report designer for final formatting of the report.
    Now there is only one datasource and no linking is required in Crystal Reports. That should resolve the one to many issue.
    Another useful tool is to group on the many and place all the fields normally in the detail section into that group header. Suppress the Detail and Group footer sections. The Group Header will now look like a Detail section and each distinct value will only appear once. You can group on one field or a combination (using a formula field) to get the results you need. Test this to be sure you do not miss anything you want to see.
    Elaine

  • Vendor Email ID - SAP query

    Hi,
       I need to get the vendor email address along with other vendor details using query. I tried using LFA1 and ADR6 with link conditions on ADRNR. This gives me the email address but if there is no value for email address then the corresponding record is not shown. I can give it using the additional field feature but I am not allowed to maintain ABAP code in a query. Is there any other way to go about this?
    Thanks
    Aparna

    Hi,
    The table ADR6 only gets updated if you have maintained email id in the vendor master.If no email id has been maintained the table contains no entry for such Vendor masters. I dont think this can be done through ABAP program as well.

  • Populating variable from another query..

    Hi,
    I have a requirement whereby I have a variable (for eg. on the Accounting Document Number) in query Q2.The values of this variable have to be derived by executing another query eg. - Q1
    So I defined a variable on the infoobject, defined it as based on Q1 and am using that in Q2.
    However the issue is I don't want to restrict query Q2 with that variable.. but just want to read the values and then be able to further processing on that variable. However hard as I try it seems that I can only use that variable as Filter in Q2. Any other options I can use.
    I tried to use that variable in a structure but it system does not accept it.
    Any ideas would be appreciated.
    thx

    Hi ATW,
    Looks to me, this is a RRI (Report-To-Report Interface) requirement.
    Try following options ->
    1.  RRI
    Consider - Q1 is a 'Sender Query' - This will a 'summary level' query and Q2 would be 'Receiving Query' - This will be 'Detailed level' query.
    Do Sedning / Receiving  setting in the Tcode RSBBS
    Execute Q1 -> Right click on any row -> GOTO -> Q2, it will execute second query with the details on for the row you have selected.
    2.  Pre-Query & Main Query
    Here Q1 will be your 'pre-query' which will run for a given date range.  (or any other selection criteria), and it will have 'Accounting Document Number' in the 'ROWS'. The output of Q1 will work as a filter to Q2 (the output of the query Q1 will NOT be visible.)
    This output then will work as a filter for the second query Q2.
    Let me know if this helps.
    Regards,
    Rashmi

  • Master Detail Forms with 2 composite primary keys - Is there a workaround?

    Hello All,
    I have been searching for a workaround to the maximum 2 part primary key restriction on the multi-row updates, and master-detail forms, and am hoping that someone can help me. I am using HTMLDB v2.0.0.00.49 with IE 6 against a 9.2 DB.
    I successfully implemented the workaround of Fred Stoopendaal's (see Updata PK on HTML DB ) and it works fine for single page multi-record updateable forms, but alas I haven't been able to extend it to master detail forms (I think it is something to do with Oracle not allowing the "returning" clause on views).
    Here is what I tried:
    two tables, one with a 2 part composite primary key, which is the master table, and a detail table with 3 part composite primary key -
    --------- BEGIN SQL ---------
    create table master_table
    ( master_col1 number
    , master_col2 number
    , master_col3 varchar2(30)
    , constraint master_pk primary key (master_col1,master_col2));
    create table detail_table
    (detail_col1 number
    ,detail_col2 number
    ,detail_col3 number
    ,detail_col4 varchar2(30)
    , constraint detail_pk primary key(detail_col1,detail_col2,detail_col3)
    , constraint master_detail_fk foreign key (detail_col1,detail_col2) references master_table(master_col1,master_col2));
    create or replace view v_master_table as
    select rowid mata_rowid,mata.*
    from master_table mata;
    create or replace view v_detail_table as
    select rowid deta_rowid,
    (select rowid from master_table mata where mata.master_col1 = deta.detail_col1 and mata.master_col2 = deta.detail_col2) deta_mata_rowid
    , deta.*
    from detail_table deta;
    create or replace trigger mata_ins_upd_trg
    instead of insert or update on v_master_table
    referencing new as new old as old
    for each row
    begin
    if inserting then
    insert into master_table (master_col1, master_col2, master_col3)
    values (:new.master_col1, :new.master_col2, :new.master_col3);
    end if;
    if updating then
    update master_table
    set master_col1 = :new.master_col1,
    master_col2 = :new.master_col2,
    master_col3 = :new.master_col3
    where rowid = :old.mata_rowid;
    end if;
    end;
    create or replace trigger deta_ins_upd_trg
    instead of insert or update on v_detail_table
    referencing new as new old as old
    for each row
    begin
    if inserting then
    insert into detail_table ( detail_col1, detail_col2, detail_col3, detail_col4)
    values (:new.detail_col1, :new.detail_col2, :new.detail_col3, :new.detail_col4);
    end if;
    if updating then
    update detail_table
    set detail_col1 = :new.detail_col1,
    detail_col2 = :new.detail_col2,
    detail_col3 = :new.detail_col3,
    detail_col4 = :new.detail_col4
    where rowid = :old.deta_rowid;
    end if;
    end;
    --------- END SQL ---------
    Then I created a master-detail form in Apex on the two views, using the mata_rowid and deta_rowid as primary keys, and mata_rowid=deta_mata_rowid as the link. I realise that using a function to fetch the master rowid within the detail view query is costly, but it was my intention to modify the record fetch queries to use the real FK columns once things were up and running.
    It seems to generate the pages ok, and I can insert/update master table records, but as soon as I modify records in the detail table things go a bit haywire. I can't find any documentation on how the inbuilt MRU/MRD logic works, so can't figure out the issue.
    Can anyone out there tell me what the problem is with the logic above, or if they have come up with a neat solution to this annoying limitation. I know that many will say that I should modify the data model to use surrogate primary keys, but many of the uses for HTMLDB are new interfaces for old schemas, so a workaround that doesn't involve wholesale data model changes would be preferable.
    Thanks in advance,
    Mike Cretan

    Hi, this is likely not the most elegant way...but perhaps the simplest -- and I didn't have much time to play.
    I used Wizard to create two separate Master Detail forms, each with a separate detail table. Thus I ended up with four pages:
    Page "A" - "Selector" page for Master (Report), with Edit link driving to Detail-1
    Page "B" - Editable Master/Detail-1 page (HTML / Report)
    Page "C" - "Selector" page for Master (Report), with Edit link driving to Detail-2
    Page "D" - Editable Master/Detail-2 page (HTML / Report)
    Then I selected the primary key column TWICE on the Report on Page A. Modified the second instance of this column to navigate to Page D (passing primary key) exactly the way the original instance of this column navigates to Page B. Then I deleted Page C.
    Since you can have only one Tabular Entry form per page, this seemed the best way to drive two separate detail tables from a common interface.

  • Need help in tax query!

    Hi All,
    Greetings!!
    we have a discoverer query which calculates the withholding tax details.
    the query used to run fine in 11i before.
    Now client in on R12.
    Query has input parameter as TAX_CODE_ID....
    But now as the architechtural change... TAX_CODE_ID is coming as NULL when we enter invoices in front end.
    We want to change the query such that the same details as that of 11i should come in R12 as well.
    Can you plese suggest the ways to achieve this.
    PFB the 11i query for your reference.
    SELECT
         ail.invoice_num,
         ail.description,
         ail.invoice_date,
         aps.due_date payment_due_date,
         ack.check_date payment_date,
         pov.segment1 supplier_num,
         pov.vendor_name supplier_name,
         pos.vendor_site_code supplier_site_name,
         adl.description inv_line_desc,
         adl.attribute6 statutory_memo,
         ail.attribute5 batch,
         adl.period_name,
         adl.awt_group_id,
         adl.tax_code_id,
         adl.invoice_distribution_id,
         ail.invoice_id
    FROM apps.ap_invoices_all ail,
    apps.ap_invoice_distributions_all adl,
    apps.ap_awt_groups awt,
    apps.ap_lookup_codes alc,
    apps.ap_payment_schedules_all aps,
    apps.hr_organization_units hou,
    apps.gl_sets_of_books gsob,
    apps.gl_code_combinations gcc,
    apps.po_vendors pov,
    apps.ap_invoice_payments_all aip,
    apps.ap_checks_all ack,
    apps.po_vendor_sites_all pos
    WHERE ail.invoice_id=adl.invoice_id
    AND adl.line_type_lookup_code in ('ITEM','AWT','ERV','IPV')
    AND alc.lookup_type(+) = 'NLS TRANSLATION'
    AND alc.lookup_code = DECODE (adl.match_status_flag,'A', 'APPROVED' )
    AND ail.org_id = hou.organization_id(+)
    AND hou.name = 'JP OU'
    AND adl.awt_group_id = awt.GROUP_ID(+)
    AND adl.set_of_books_id = gsob.set_of_books_id
    AND ail.invoice_id = aps.invoice_id
    AND adl.dist_code_combination_id=gcc.code_combination_id
    AND ail.vendor_id=pov.vendor_id
    AND ail.invoice_id=aip.invoice_id(+)
    AND aip.check_id=ack.check_id(+)
    AND ail.vendor_site_id=pos.vendor_site_id
    AND adl.tax_code_id = :P_TAX_CODE_ID;
    Thanks,
    Sachin

    SELECT invoice_id,
    invoice_line_number,
    substr(distribution_line_number,1,8) distribution_line_number,
    substr(line_type_lookup_code,1,9) line_type_lookup_code,
    accounting_date,
    period_name,
    amount,
    base_amount,
    posted_flag,
    substr(dist_code_combination_id,1,15) dist_code_combination_id,
    substr(accounting_event_id,1,15) accounting_event_id,
    substr(invoice_distribution_id,1,15) invoice_distribution_id,
    substr(parent_reversal_id,1,15) parent_reversal_id,
    substr(po_distribution_id,1,15) po_distribution_id,
    org_id
    FROM AP_INVOICE_DISTRIBUTIONS_ALL
    WHERE invoice_id = &inv_id
    ORDER BY invoice_distribution_id asc
    The line_type_lookup_code should contain the tax_code.
    Run this query for some invoice having tax lines. You should get all the required details.
    Hope that helps.
    Thanks,
    Anil

Maybe you are looking for

  • Cross Reference, Paragraph Style conflict?

    I'm created an epub file and have a cross reference for one of my chapter titles. When I export it to ADE the final product has the cross reference in the file but the paragraph style for the text that I linked lost all of it's styling somehow. The p

  • How can I force a out-of-date client to do a sync with master?

    I use 'DB_REPMGR_ACKS_NONE' for some clients which locate in different areas. But sometimes the network is not that good, and causes the client data out-of-date. My question is that: 1. Is there a api that can do a manual sync without restarting the

  • Keeping my iTunes library in a Airport connect Hardrive

    I want to keep my iTunes library on a hard drive that I have connected to my Airport wireless network. When I do this in the default configuration iTunes cannot access the library until I go out to the shared drive, connect to it, and browse into it

  • Video Player stoped working

    Hi  I have symbian Belle on my e7.0, its video player suddenly stoped working for all file formates. only audio comes out when playing video files. Please help me.

  • Question about using views in joins

    I have a question that is related to views. When a view is joined with another table, how does Oracle internally handle it? Does it create a temporary table that contains the resultant rows of the view and join that temorary table to the other table