R12 QUERY

In oracle r12 I have done the following:
R12 -> inventory->reports->transactions->single request(selected) -> and then select name as transaction historical summary then press ok.. after this its asking to fill fields. I have done this. and I have submitted that request. I have viewed that request in view->requests-> all requests-> I have pressed view output button -> by this I viewed the output for my table and fields entered at before level.
Now I would like to view the query for that. I have pressed the view log button to view log details. There are no errors so Iam viewing some text regarding that request.
My need is now if i press view log button then the query which is used to display that output has to be shown. Can I know the settings for this to do in oracle apps R12.
Thanks.

Duplicate post -- oracle apps

Similar Messages

  • R12 query for tax_rate --ar_vat_taxes_b

    Can someone please suggest a R12 replacement query for
    select distinct tax.tax_rate from AR.AR_VAT_TAX_ALL_B tax
    where tax.org_id = :parameter.org_id
    and tax.tax_type ='VAT'
    and tax.enabled_flag = 'Y'
    order by tax.tax_rate
    Edited by: 918124 on Dec 8, 2012 3:55 AM

    hi all
    i got the solution here it is
    SELECT ZJB.TAX_REGIME_CODE "REGIME"
    ,ZJB.TAX_JURISDICTION_CODE "JURISDICTION"
    ,ZJB.TAX"TAX"
    ,(CASE
    WHEN ZJB.TAX='CITY'THEN(
    select distinct GEOGRAPHY_ELEMENT1||'-->'||GEOGRAPHY_ELEMENT2
    ||'-->'||GEOGRAPHY_ELEMENT3||'-->'||GEOGRAPHY_ELEMENT4
    from hz_relationships HR
    ,hz_geographies HG
    where HR.OBJECT_ID=ZJB.ZONE_GEOGRAPHY_ID
    AND HR.SUBJECT_ID=HG.GEOGRAPHY_ID)
    WHEN ZJB.TAX='COUNTY' THEN(SELECT RTRIM(GEOGRAPHY_ELEMENT1||'-->'||GEOGRAPHY_ELEMENT2
    ||'-->'||GEOGRAPHY_ELEMENT3||'-->'||GEOGRAPHY_ELEMENT4,'-->')
    FROM HZ_GEOGRAPHIES HG
    WHERE ZJB.ZONE_GEOGRAPHY_ID=HG.GEOGRAPHY_ID)
    WHEN ZJB.TAX='STATE' THEN(SELECT RTRIM(GEOGRAPHY_ELEMENT1||'-->'||GEOGRAPHY_ELEMENT2
    ||'-->'||GEOGRAPHY_ELEMENT3||'-->'||GEOGRAPHY_ELEMENT4,'-->')
    FROM HZ_GEOGRAPHIES HG
    WHERE ZJB.ZONE_GEOGRAPHY_ID=HG.GEOGRAPHY_ID)END)"GEOGRAPHY_HEIRARCHY"
    ,(CASE
    WHEN ZJB.TAX='CITY'THEN(
    select distinct GEOGRAPHY_NAME
    from hz_relationships HR
    ,hz_geographies HG
    where HR.OBJECT_ID=ZJB.ZONE_GEOGRAPHY_ID
    AND HR.SUBJECT_ID=HG.GEOGRAPHY_ID)
    WHEN ZJB.TAX='COUNTY' THEN(SELECT GEOGRAPHY_NAME
    FROM HZ_GEOGRAPHIES HG
    WHERE ZJB.ZONE_GEOGRAPHY_ID=HG.GEOGRAPHY_ID)
    WHEN ZJB.TAX='STATE' THEN(SELECT GEOGRAPHY_NAME
    FROM HZ_GEOGRAPHIES HG
    WHERE ZJB.ZONE_GEOGRAPHY_ID=HG.GEOGRAPHY_ID)END)"GEOGRAPHY_NAME"
    ,ZRB.PERCENTAGE_RATE"TAX RATE"
    FROM ZX_JURISDICTIONS_B ZJB
    ,ZX_RATES_B ZRB
    WHERE ZJB.TAX_REGIME_CODE='&regime_code'
    AND ZRB.TAX_REGIME_CODE=ZJB.TAX_REGIME_CODE
    AND ZRB.TAX_JURISDICTION_CODE=ZJB.TAX_JURISDICTION_CODE
    AND ZRB.ACTIVE_FLAG='Y'
    Edited by: 882910 on Apr 16, 2012 10:02 PM

  • Document sequence in GL, R12 - query mode

    Hi!
    General Ledger responsibility, Enter Journal form.
    When I enter and save a new journal I get Document Number. But when I enter query mode and I do my searching for this specific number, field (Document Number) is protected!!
    Do I missing something? Maybe some profile option?
    Please help.
    Thank you.
    Best regards.

    Hi,
    I presume that you are trying to search for the JV through Enter Query (F11) mode and must not be able to enter any Document Number because the field is protected in query mode.
    If you want to search for Journal based upon the document number, click on Find. In the find journals window, click "More" Button and there you can search based on the document number.
    I hope it is clear.
    Gajendra

  • R12 equivalent on this 11i query

    All,
    I am working on an R12 upgrade project and by looking at the documentations, there are lot of tables in AP which are co-existing and changed but not getting a clear idea of what got changed and why multiple tables exist. Is there anyone here who can provide me the R12 query for this 11i query below?
    SELECT distinct
         ac.vendor_name,
         nvl(ac.address_line1,ac. address_line2) address_line1,
         decode(ac.city,null,'',ac. city||',')||ac.state||' '||ac.zip city_state_zip,
         pv.segment1 vendor_no,
         abb.bank_name payee_bank,
         ac.currency_code cur_code,
         ac.check_date pmt_date,
         ac.check_number pmt_number,
         ac.amount pmt_amount,
         ac.check_id
    FROM      ap_checks_all ac,
         ap_bank_accounts_all aba,
         ap_bank_branches abb,
         po_vendors pv
    WHERE
    ac.PAYMENT_METHOD_LOOKUP_ CODE in ('EFT','WIRE')
    and ac.status_lookup_code in ('NEGOTIABLE','CLEARED BUT UNACCOUNTED','RECONCILED UNACCOUNTED')
    and ac.vendor_id=pv.vendor_id
    and ac.external_bank_account_id = aba.bank_account_id
    and aba.bank_branch_id = abb.bank_branch_id
    order by ac.check_date;
    Thanks for your help.

    Hi,
    In R12 Banks and Bank branches are treated as parties and stores in HZ_PARTIES table. Also the bank accounts model has been changed in R12. All internal bank accounts store in CE_BANK_ACCOUNTS table and external bank accounts store in IBY_EXT_BANK_ACCOUNTS table. Please try below query for R12.
    SELECT distinct
    ac.vendor_name,
    nvl(ac.address_line1,ac. address_line2) address_line1,
    decode(ac.city,null,'',ac. city||',')||ac.state||' '||ac.zip city_state_zip,
    aps.segment1 vendor_no,
    hzp.party_name payee_bank,
    ac.currency_code cur_code,
    ac.check_date pmt_date,
    ac.check_number pmt_number,
    ac.amount pmt_amount,
    ac.check_id
    FROM apps.ap_checks_all ac,
    apps.IBY_EXT_BANK_ACCOUNTS IBYEB,
    apps.hz_parties hzp,
    apps.ap_suppliers aps
    WHERE
    ac.PAYMENT_METHOD_CODE in ('EFT','WIRE')
    and ac.status_lookup_code in ('NEGOTIABLE','CLEARED BUT UNACCOUNTED','RECONCILED UNACCOUNTED')
    and ac.vendor_id=aps.vendor_id
    and ac.external_bank_account_id = IBYEB.ext_bank_account_id
    and IBYEB.bank_id = hzp.party_id
    order by ac.check_date desc;
    If this answers your question please mark it as answered.
    Thanks,
    Ram
    FYI: This is just for your infromational needs.

  • Bind variable error while adding dynamic where clause to VO query

    hi
    i have extended a VO and in the VOImpl i have written the following code
    public class HzPuiClassificationListVOExImpl extends HzPuiClassificationListVOImpl
    public void initQuery(String partyId, String s1, String classCode)
    /* Logging Code*/
    if(this.isLoggingEnabled(OAFwkConstants.PROCEDURE))
    {this.writeDiagnostics(this," > initQuery() , partyId ="+partyId+" , s1 ="+s1+", classCode="+classCode,OAFwkConstants.PROCEDURE);}
    setWhereClauseParams(null);
    setWhereClauseParam(0, classCode);
    setWhereClauseParam(1, classCode);
    setWhereClauseParam(2, partyId);
    String query = super.getQuery();
    * Check if the whereClause is already present
    if(query!=null && query.toUpperCase().indexOf("AAAAA") == -1)
    OAApplicationModule am = (OAApplicationModule)this.getApplicationModule();
    OADBTransaction oadbTxn = am.getOADBTransaction();
    String whereClause = "   class_category IN ("+
    *" SELECT flv.lookup_code"+*
    *" FROM fnd_lookup_values flv, fnd_lookup_values_dfv dfv"+*
    *" WHERE flv.rowid = dfv.row_id"+*
    *" AND flv.lookup_type = 'XXXXX'"+*
    *" AND dfv.context_value = flv.lookup_type"+*
    *" AND dfv.oco_enabled = 'Y' "+*
    this.addWhereClause(whereClause);
    this.executeQuery();
    * This is the default constructor (do not remove)
    public HzPuiClassificationListVOExImpl()
    when i run the page i get this error
    java.sql.SQLException: Missing IN or OUT parameter at index:: 2
    the original vo query below has 3 bind variables
    SELECT *
    FROM (SELECT *
    FROM (SELECT cc.class_category
    ,l.meaning
    FROM hz_class_categories cc
    ,fnd_lookup_types_vl l
    WHERE cc.class_category = l.lookup_type
    AND l.view_application_id = 222
    AND EXISTS (
    SELECT NULL
    FROM hz_code_assignments ca
    WHERE ca.owner_table_name = 'HZ_CLASS_CATEGORIES'
    AND ca.owner_table_id IS NULL
    AND ca.owner_table_key_1 = cc.class_category
    AND ca.class_category = 'CLASS_CATEGORY_GROUP'
    AND ca.class_code = :1
    AND NVL (ca.status, 'A') = 'A'
    AND SYSDATE BETWEEN ca.start_date_active AND NVL (ca.end_date_active, SYSDATE + 1))
    UNION ALL
    SELECT cc.class_category
    ,l.meaning
    FROM hz_class_categories cc
    ,fnd_lookup_types_vl l
    WHERE cc.class_category = l.lookup_type
    AND l.view_application_id = 222
    AND 'INDUSTRIAL_GROUP' <> :2
    AND NOT EXISTS (
    SELECT NULL
    FROM hz_code_assignments ca
    WHERE ca.owner_table_name = 'HZ_CLASS_CATEGORIES'
    AND ca.owner_table_id IS NULL
    AND ca.owner_table_key_1 = cc.class_category
    AND ca.class_category = 'CLASS_CATEGORY_GROUP'
    AND NVL (ca.status, 'A') = 'A'
    AND SYSDATE BETWEEN ca.start_date_active AND NVL (ca.end_date_active, SYSDATE + 1))
    AND hz_classification_v2pub.is_valid_category ('HZ_PARTIES'
    ,cc.class_category
    ,:3) = 'T') a
    WHERE EXISTS (
    SELECT NULL
    FROM hz_class_code_denorm
    WHERE class_category = a.class_category
    AND TRUNC (SYSDATE) BETWEEN NVL (start_date_active, TRUNC (SYSDATE)) AND NVL (end_date_active, TRUNC (SYSDATE))
    AND enabled_flag = 'Y'
    AND LANGUAGE = USERENV ('LANG'))) qrslt
    A similar error was discussed at this link but it did not give final solution
    [http://kr.forums.oracle.com/forums/thread.jspa?threadID=618451]
    help me to solve this issue..
    Thanks,
    Varun
    Edited by: user10707840 on May 19, 2009 7:18 AM

    its not the AM code .. its the code in VOImpl...
    the same code is working in 11i but when its migrated to R12 its giving this error..
    The original seeded VO query in 11i contains the same bind variable :1 at three places
    SELECT * FROM (select class_category, meaning from hz_class_categories, fnd_lookup_types_vl l where hz_class_categories.class_category = l.lookup_type and l.view_application_id = 222 and class_category in (select owner_table_key_1 from hz_code_assignments ca where ca.owner_table_name = 'HZ_CLASS_CATEGORIES' and ca.owner_table_id is null and ca.class_category = 'CLASS_CATEGORY_GROUP' and ca.class_code = :1 and nvl(ca.status, 'A') = 'A' and sysdate between ca.start_date_active and nvl(ca.end_date_active, sysdate+1)) union all select cc.class_category , meaning from hz_class_categories cc, fnd_lookup_types_vl l, hz_class_category_uses cu where cc.CLASS_CATEGORY = cu.class_category AND ( UPPER(CU.ADDITIONAL_WHERE_CLAUSE) LIKE decode(:1, 'ORG_GROUP','%PARTY_TYPE%ORGANIZATION%', 'PERSON_GROUP', '%PARTY_TYPE%PERSON%', '%') or CU.ADDITIONAL_WHERE_CLAUSE IS NULL or UPPER(CU.ADDITIONAL_WHERE_CLAUSE) LIKE '%WHERE 1=1%' ) and cu.owner_table = 'HZ_PARTIES' and cc.class_category = l.lookup_type and l.view_application_id = 222 and cc.class_category not in (select owner_table_key_1 from hz_code_assignments hca where hca.owner_table_name = 'HZ_CLASS_CATEGORIES' and hca.owner_table_id is null and hca.class_category = 'CLASS_CATEGORY_GROUP' and nvl(hca.status, 'A') = 'A' and sysdate between hca.start_date_active and nvl(hca.end_date_active, sysdate+1)) and cc.class_category not in ( 'RELATIONSHIP_TYPE_GROUP', 'CLASS_CATEGORY_GROUP') and 'INDUSTRIAL_GROUP' <> :1) QRSLT ORDER BY meaning
    the code working in 11i had only one setWhereClauseParam line i.e. setWhereClauseParam(0, classCode);
    when i ran the same code in R12 it errd out..
    I checked the original R12 query... it has 3 bind variables :1 , :2 and :3 ... so i added 2 more setWhereClauseParam statements
    setWhereClauseParam(1, classCode);
    setWhereClauseParam(2, partyId);
    but still its giving the same error
    ORIGINAL R12 query already posted above...

  • Replacement of Tax Columns from AP Tables to ZX Tables

    Explanation of Queries :
    11i Query:
    select DIST_MATCH_TYPE, LINE_TYPE_LOOKUP_CODE, AMOUNT_INCLUDES_TAX_FLAG, DISTRIBUTION_LINE_NUMBER, LINE_GROUP_NUMBER,
    TAX_CODE_OVERRIDE_FLAG,
    TAX_RECOVERY_OVERRIDE_FLAG,
    TAX_RECOVERY_RATE,
    VAT_CODE
    from AP_INVOICE_DISTRIBUTIONS_ALL where INVOICE_ID=2803856 -- This Query is fine in 11i Version and no modification is needed. All I need to modify the below R12 Query.
    R12 Query:
    select
    aid.DIST_MATCH_TYPE, ail.LINE_TYPE_LOOKUP_CODE, zls.TAX_AMT_INCLUDED_FLAG AMOUNT_INCLUDES_TAX_FLAG,
    nvl(aid.OLD_DIST_LINE_NUMBER,aid.DISTRIBUTION_LINE_NUMBER) DISTRIBUTION_LINE_NUMBER,
    zls.OVERRIDDEN_FLAG TAX_CODE_OVERRIDE_FLAG,
    aid.TAX_RECOVERY_OVERRIDE_FLAG, --Need to get the mapping column in R12 from ZX Tables
    aid.TAX_RECOVERY_RATE, --Need to get the mapping column from in R12 from ZX Tables
    ail.TAX_CLASSIFICATION_CODE vat_code
    from
    ap_invoices_all ai,
    ap_invoice_lines_all ail,
    ap_invoice_distributions_all aid,
    ZX_LINES_SUMMARY zls
    where ai.invoice_id=ail.invoice_id
    and ail.invoice_id=aid.invoice_id
    and ail.line_number=aid.invoice_line_number
    and ai.invoice_id=zls.TRX_ID
    and aid.DISTRIBUTION_LINE_NUMBER=zls.SUMMARY_TAX_LINE_NUMBER
    and ai.invoice_id=2803856
    order by ail.line_number;
    Please suggest me on the columns to be replaced and help me out. Appreciate your help....
    Regards,
    Mohammed Manzur

    Pl do not post duplicate threads - Replacement of Tax Columns in R12 Environment (12.1.3)
    Srini

  • How to create a calendar for two years in GL

    how to create a calendar for two years in GL

    Hi,
    - Login into Oracle EBS and select a responsiblity with GL Superuser drants (e.g. General Ledger Super User)
    - Navigate to Setup + Financials + Calendars and open the GUI Accounting (Navigation for R12)
    - Query the used calendard (used from jour Set of Books/ Ledger via the GUI
    - Enter for each Period (= Period Type 13, 16, 18,...) one Record, have a look to the existing data, used the same logic.
    In the GUI, defined the calendar for 2 Years
    Dirk

  • Query change from 11i to R12

    Hi,
    Please help me out from the below query.....
    In 11i we are using the below Query.
    SELECT a.AE_HEADER_ID,a.AE_LINE_NUMBER,
    a.AE_LINE_ID, a.AE_LINE_TYPE_CODE,a.CODE_COMBINATION_ID,
    a.CURRENCY_CODE,a.ENTERED_DR,a.ENTERED_CR,a.ACCOUNTED_DR,a.ACCOUNTED_CR,a.SOURCE_TABLE,
    a.SOURCE_ID,a.LAST_UPDATE_DATE FROM
    AP_AE_LINES_ALL a,
    AP_AE_LINES_Local_table e, ap_invoice_distributions d
    WHERE a.source_table = 'AP_INVOICE_DISTRIBUTIONS'
    AND a.source_id = d.invoice_distribution_id AND
    a.last_update_date -(sysdate - 10) > 0
    AND a.AE_LINE_ID = e.AE_LINE_ID(+)
    I need to change this query related to R12 changes.
    Please help me whether i need to use xla_ae_lines table from R12. if yes there are AE_LINE_ID, AE_LINE_TYPE_CODE columns are not there in xla_ae_lines table. Pls let me know where to refer the AE_LINE_ID, AE_LINE_TYPE_CODE columns in R 12.

    Hi,
    In R12 ae_line_id replaced with ae_line_num,
    Pls. find the sample query.
    SELECT a.ae_header_id, a.ae_line_num, a.accounting_class_code,
    a.code_combination_id, a.currency_code, a.entered_dr, a.entered_cr,
    a.accounted_dr, a.accounted_cr, a.source_table, a.source_id,
    a.last_update_date
    FROM xla_ae_lines a, apps.ap_invoice_distributions_all d
    WHERE a.source_table = 'AP_INVOICE_DISTRIBUTIONS'
    AND a.source_id = d.invoice_distribution_id

  • AP Subledger Trial Balance query in R12

    I have to display below columns in the output(AP Subledger Trial Balance) in R12:
    GL_CODE_COMBINATIONS(Segment1,segment3,segment4)
    GL_PERIODS(END_DATE)
    XLA_TRIAL_BALANCES(remaining amount)
    I have written a sql query but i need to satisfy below conditions in the below query. I am facing issues with the joins.can any one please help me to solve issue.
      ‘Accounting Period’ parameter needs to be added in the below query.
    The sql query will generate the AP subledger balance data for the particular operating unit from where the report is run.
    The report will give ‘at point in time’ data for the entire period for which the extract is run.
    Example:
    When the report is run on 01-Jul-2014 for the period ‘JUL-14′, then the report will extract all the data for JUL-14 at that point in time , i.e. the sysdate would be considered
    SELECT gcc.segment1,
    gcc.segment3,
    gcc.segment4,
    tb1.diff remaining_amount,
    glp.end_date –join condition required
    FROM gl_code_combinations gcc,
    gl_periods glp,
    (SELECT tb.code_combination_id,tb.ledger_id,
    SUM (NVL (tb.acctd_rounded_cr, 0)),
    SUM (NVL (tb.acctd_rounded_dr, 0)),
    SUM (NVL (tb.acctd_rounded_cr, 0))
    – SUM (NVL (tb.acctd_rounded_dr, 0)) diff,
    tb.gl_date
    FROM xla_trial_balances tb
    WHERE tb.definition_code IN(‘XX_US’,’XX_CA’)
    AND TRUNC(tb.gl_date) <= TRUNC(SYSDATE) –TO_DATE ('1-JUN-2014')
    GROUP BY tb.code_combination_id,
    tb.gl_date,tb.ledger_id
    HAVING SUM (NVL (tb.acctd_rounded_cr, 0))
    SUM (NVL (tb.acctd_rounded_dr, 0))) tb1
    WHERE tb1.code_combination_id = gcc.code_combination_id
    –Join condition required for gl_periods table to display end_date column.
    –org_id and period_name parameters are required

    Hi Vamsi,
    I've recreated the standard oracle Trial balance package & XML file . Now i'm able to populate the data into custom table as well as standard table . But the report out doesn't show data in it . it just shows report title, columns bUT NO DATA. the xml file itself doesnt contain data. The custom report completes in 2 mins. But standard report completes in 7 mins
    Steps
    1. Create custom package similar to oracle standard package & added new insert statement to populate trial balance data into custom table.
    2. created new datadefinition with new datatemplate(refering custom package) similar to oracle standard datatemplate.
    3. create template same as standard template.
    4. copy of standard conc program with custom application
    5. Ran the report ...able to populate data into custom table .....but unable to see data in the report.
    Please let me know if i'm missing anythng.

  • How to use this query in R12

    the query below , i am using in valueset :
    select * from AR_LOCATION_VALUES
    Where ar_location_values.location_segment_qualifier =
    'COUNTRY' and ar_location_values.location_structure_id in ( select location_structure_id from ar_system_parameters )
    how to use this query to set in R12?
    Thanks

    hi
    i am using the following query in 11i and i want to use the same in R12 :
    SELECT ar_location_values.location_segment_description,ar_location_values.location_segment_value,location_segment_id
    FROM AR_LOCATION_VALUES
    WHERE ar_location_values.location_segment_qualifier = 'COUNTRY'
    AND ar_location_values.location_structure_id IN
    (SELECT location_structure_id FROM ar_system_parameters)
    note: the table ar_location_values is obsolette in R12 so what is the replacement table in R12 for this?

  • Query or Profile Option to find Current logged in user in oracle apps R12

    Query or Profile Option to find Current logged in user in oracle apps R12.
    I want to get value of current user who is logged in to that particular session, based on the value of user_id or user_name returned i have to do a Forms Personalization.
    Plz help.
    Regards,
    Sadiya P.

    Hi Sadiya,
    do you have the answer for this? please send it to me because i am also have same requirement. so plz post it here....

  • Profit & Loss Query in oracle R12

    hi
    Anybody know that how to get profit and loss in oracle apps R12 and if any person have the Profit & Loss Query, so plz send me query.
    Thanks
    Zulqarnain

    Hi Everyone,
    Thks for your help.
    @ Srini and John:
    Yes, this happens to all the users connecting to the system. Its kind of funny when a user comes and says "My screen has gone green" :-)
    But it is a bit serious since we are going into UAT, and the client will definitely complain of this.
    @ John:
    It does not seem to be a Client Side Problem, as I have made everyone clear their cache and try again.
    And what's intruiging now, is that this issue never occurred on one of the instances we have been using, and suddenly yesterday we started encountering this on that instance as well. As per a Metalink Note referred by Hussein, I have forced the Color Scheme and Look and Feel to Swan and Oracle at Site Level. Yet the problem is encountered.
    However, there is one thing that I will try and revert back. With R12, Java Version 1.5.* is shipped.
    All the machines here have the 1.6 Version
    I will try to downgrade and re-install the 1.5 Version and verify
    @ Hussein:
    Where can I locate the Application File and verify pls ?
    How do I compile all the JSP Files (Using adadmin? )
    Thks everyone
    Ravi

  • Problem with Query in supplier in R12

    Hi,
    I have issue with the Supplier sites and Supplier contacts join, can any one please let me know what are the joins in R12 between Sites and contacts?
    Edited by: 902157 on Apr 30, 2012 1:17 AM

    Hi,
    You can do a join instead of using a scalar sub-query:
    SELECT        a.dt
    ,       CASE
              WHEN  t.dt IS NOT NULL
              THEN  'Y'
           END          AS in_top_days
    FROM        (
              SELECT      to_date (p_date_start, 'dd-mm-yyyy') + LEVEL - 1 dt
                    FROM dual
                    CONNECT BY      LEVEL <=
                                     to_date(p_date_end, 'dd-mm-yyyy') - to_date(p_date_start, 'dd-mm-yyyy') + 1
                            AND      PRIOR dbms_random.value IS NOT NULL --workaround for oracle 8i
           )          a
    ,         top_days     t
    WHERE        a.dt      = t.dt (+)
    ORDER BY  a.dt; 
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), a few sets of parameters (p_date_start and p_date_end), and the results you want from that data for each set.
    Explain, using specific examples, how you get those results from that data.

  • P2P Cycle Query in R12

    Hi Gurus,
    I need a query to get the information of P2P cycle in oracle apps r12.
    here is my cycle
    PR->RFQ->QUOTATION->PO->RECEIVING->INVOICE->PAYMENTS
    I need the following data in the query.
    PR#,
    PR_APPROVAL_DATE,
    RFQ#,
    RFQ_CREATION_DATE,
    QUOTE_ANALYSIS_APPROVAL_REASON,
    PO#, PO_APPROVAL_DATE,
    PO_TOTAL_AMOUNT,
    BUYER,
    RECEIVING_DATE,
    INVOICE_NUM,
    INVOICE_DATE,
    PAYMENT_DATE,
    AMOUNT_PAID
    SUPPLIER # AND SUPPLIER_NAME
    your response will be highly appreciated.
    Thanks & Regards
    Shariff

    Hi,
    Where do you find it difficult to prepare the query?
    Are you looking for tables involved in the query then check this out [http://docs.oracle.com/cd/A85964_01/acrobat/potrm.pdf]
    Regards

  • R12 AP TB Query

    Hello All,
    Please Can any one send me the R12 AP Trial Balance Query, Its Very urgent.
    Thanks in Advance
    Regards,
    Muthu
    [email protected]

    Please do not create duplicate posts -- R12 AP TB Query

Maybe you are looking for

  • Asset Deperciation amount is not getting updated in cost acccount?

    Dear all, Created an asset and assigned that to a cost center and maintained dep. key for both book of accounts and cost account, then I run the dep. its getting posted to FI but at the same time when i check S_ALR_87010175  i am not getting the cost

  • Problem with GUI in applet

    Hai to all, I am having a problem with GUI in applets My first class extends a JPanel named A_a import javax.swing .*; import java.awt.*; import java.awt.event.*; public class A_a extends JPanel JButton jb; JTextArea text; public A_a() setLayout(new

  • HP Officejet Pro L7590 (L7555) has legal size flatbed but won't scan legal size documents - WHY?

    HP Officejet Pro L7590 (L7555) has legal size flatbed but won't scan legal size documents - WHY? Scanning to a Macbook Pro osx (10.6)

  • Special procurement in SRM

    Hi All Can the special procurement processes like Sub contracting, Consignment, third party PO and STO be handled in SRM ? if so , can anybody pls tell me how to go about it? Thanks Rashmi

  • GL Park and Post Automation

    I am in process for the GL Park and Post automation from current manual process. Accountetn - Park Mgr - Post Mgr II - Post 1) 50,000.99 and below will park and post without approval 2) 50,001 to 20 M will require approval and post by next level mana