New to Discoverer

Hi,
I am absolutely unfamiliar with Discoverer,
I need help in using it, right from the basics.
Is there any online help / documentation / e-books that I can make use of?

Similar to the docs suggested for the admin manual, the Plus and Viewer manuals online - ala free - have everything you need to know.
You can load example setups, worksheets (reports), etc. and actually learn online.
Russ

Similar Messages

  • New to Discoverer have join/query question

    I have the following query; I am trying to import it but when I do, discoverer only brings in one of the two OUTAGE_FACTOR fields. Can I not just import this? I have the other joins set up ie fiscal year, plan id and unit. Do I need to set up the outer joins in the business area first? I'm assuming that is why it is not importing both fields.
    SELECT prev_y.OUTAGE_FACTOR LY,
    curr_y.OUTAGE_FACTOR FYTD,
    outage.unit_nme,
    outage.jul,
    outage.aug,
    outage.sep,
    outage.oct,
    outage.nov,
    outage.dec,
    outage.jan,
    outage.feb,
    outage.mar,
    outage.apr,
    outage.may,
    outage.jun
    FROM OUTAGE_MONTH_MX outage, OUTAGE_YEAR_MV curr_y, OUTAGE_YEAR_MV prev_y WHERE outage.l_year_fiscal_year = 2006 and outage.plant_id = 'FPP' and outage.l_year_fiscal_year = curr_y.L_YEAR_FISCAL_YEAR and outage.plant_id = curr_y.PLANT_ID and
    outage.UNIT_NME = curr_y.UNIT_NME and outage.l_year_fiscal_year - 1 = prev_y.L_YEAR_FISCAL_YEAR(+) and outage.plant_id = prev_y.PLANT_ID(+) and
    outage.UNIT_NME = prev_y.UNIT_NME(+)

    Disco is also stripping the outer joins when I import the sql.
    From sql inspector:
    SELECT O100494.UNIT_NME, O100494.JUL, O100494.AUG, O100494.SEP, O100494.OCT, O100494.NOV, O100494.DEC, O100494.JAN, O100494.FEB, O100494.MAR, O100494.APR, O100494.MAY, O100494.JUN, O100535.OUTAGE_FACTOR
    FROM STAR.OUTAGE_MONTH_MX O100494, STAR.OUTAGE_YEAR_MV O100535
    WHERE ( ( O100494.L_YEAR_FISCAL_YEAR = O100535.L_YEAR_FISCAL_YEAR ) AND ( O100494.PLANT_ID = O100535.PLANT_ID ) ) AND ( O100494.UNIT_NME = O100535.UNIT_NME ) AND ( O100494.PLANT_ID = O100535.PLANT_ID ) AND ( O100494.L_YEAR_FISCAL_YEAR-1 = O100535.L_YEAR_FISCAL_YEAR ) AND ( O100494.UNIT_NME = O100535.UNIT_NME ) AND ( O100494.PLANT_ID = 'FPP' ) AND ( O100494.L_YEAR_FISCAL_YEAR = 2006 )
    ;

  • Creating a new workbook in Oracle Discoverer

    I am not very familiar with Oracle Discoverer but have had to be involved in it recently. What i am trying to do is create a new business area. I logged on to the Oracle Discoverer administrator and followed these steps
    - Create a new business area from online dictionary
    - Selected the schema user
    - Selected the tables/views i wanted to include in the business area
    - Click finish
    Now i have included the tables in the business area. When the user logs on to Oracle Discoverer he can see the 3 tables/views i selected. If they try to create a new workbook they can only include one of the tables in the workbook but not all 3 at the same time. If i include one table, the other two tables become 'disabled' and cannot be included in the workbook.
    Any ideas why this is happening?

    Hi ziggy
    It sounds like you did not create any joins between the 3 folders. Those have to be in place in order for a user to be able to create reports from more than one folder.
    If you are new to Discoverer administration I would suggest you get some training. Oracle offer great training at numerous locations around the country and there are numerous self-help locations that you can find if you plus Discoverer Training into any Google search box.
    My company also has e-learning for Discoverer and you can find out more by visiting this website: http://ascbi.com
    Best wishes
    Michael

  • Running resports from new database using discoverer desktop

    Hi,
    I am new here on the project and dont have much documentation avaialable. I have is just passwords.
    I am new to discoverer. I see that there is one historical database names as HIPRD which has historical HR information of audit purpose(just database , no EBS apps). all users who uses HIPRD database they have user_id as database schema.
    the way usres uses data from HIPRD database is either through disco desktop or they launch disco viewer. So they login in disco desktop as username/password database name untick oracle application user. once they login they see all folders where they hace access to run reports.
    I created new database called TEST using cold backup set of HIPRD and i have upgraded to 11gR1. I have updated my local tnsnames.ora with TEST entry and i am able to connect TEST(11g) which has same data as it is available in HIPRD.
    My question is what I have to do on disco side so that usres can run reports from upgraded 11g TEST database using disco desktop or disco viewer the way they are doing for HIPRD.
    Please help, I am new to discoverer

    please i need help

  • How make a new report in discovere?

    Hi
    I am new in discovere and have database,discovere administrator and BI tool install on my system. Please tell me from where i can open discovere tool and create a simple report from my database.
    Regards

    Hi,
    There are two ways
    1.Desktop
    2.URL
    For 1 one very simple install Discoverer administrator and create a EUL in the Data base.
    Then use Discoverer Desktop to create new report.
    For 2 You have to install a application server and do the same step of 1 ( as given above) and viewer can use the URL to view the reports.
    Thanks,
    Himanshu Tiwari

  • Discoverer  report does not sum up the column

    Hi All,
    I am running the discoverer report from discoverer desktop and was
    trying to use the sum function to sum the total amount of the report.
    The sum function does not work and it only display Cell
    Sum: (blank) with no actual data.
    When i checked the report details some columns are calculated based on the columns which i want to sum up.
    Any ideas please share with me
    Thanks in advance.

    b) What is the difference between sum and cell sum? Well, I certainly won't claim to be a Discoverer guru. From what little I have seen, the practical result is not any difference really between the two. SUM of a calculated row is adding up the calculation to the total. Whereas cell sum is like adding up the individual values behind the calculation you see. The distinction makes more sense when you have SUM DISTINCT and CELL SUM DISTINCT being involved. Then you will see a difference in the calculated total. But for SUM and CELL SUM itself, I have not seen any difference between the two, but I am still pretty new to Discoverer.
    e) Aggregate field from a folder. Well, this may be one where you have to play around with your own data to understand. Let me try to give you a simple example. Let's say you have a sales table with 100 rows. You have sales data for 5 cities, and each city has 20 rows of sales history. If you pick Sales Dollars Detail and City Name for your workbook and run, you will get 100 rows in your result (complete detail listing). So that is what happens with no aggregation. Now, instead of doing Sales Dollars Detail, you pick Sales Dollars Sum (the same thing as saying SUM(Sales Dollars) in an SQL statement). Run the workbook. You will now get 5 rows of data, instead of 100 rows of data. You will get one row for each city. If you look at the SQL that Discoverer generates, you will see that it has now done a GROUP BY in the SQL statement. Notice I have not said anything about DISTINCT (just trying to keep things simple).
    Now, lets say you do a workbook for City, Part Number, and Sales Dollars Sum. Run the workbook. You get a summarized result (say maybe 10 rows of summary data this time). If you look at the Discoverer SQL, the GROUP BY is now by city and part number, automatically doing that because you picked the SUM version of sales dollars.
    Now lets say you add Sales Units Detail to the workbook. Discoverer will give you a warning message that you are have both an aggregate and a non-aggregate and that you may end up with unpredictable results. Run the workbook. You will be back to 100 rows, because you specified sales units in detail.
    Most of the time I do not want to see detail rows in a workbook. So most of the time I am picking the SUM aggregate for an amount item.
    Hope this explains things a bit. Sounds like maybe you need to take the Discoverer Create Queries and Reports class. Would help you understand these things better. Good luck.
    John Dickey

  • How to Define Workbook / Business Ares Security Correctly for new Users

    Hi All,
    Please could you help me understand the Security Model for Workbooks and business Areas as I believe I am very close to understanding it, but missing something important.
    Background Information:
    We are using the predefined Oracle Business Areas (Payables, Receivables, Purchasing & General Ledger) to build our reports on. These are the steps I am taking to try and assign a new user & responsibility access to the existing report.
    1. I create the Report in Discoverer Desktop under the ‘General Ledger Responsibility’ logged in as myself – assume report name = ‘Report_1’.
    2. I create a new Responsibility in Oracle Apps called ‘Discoverer Resource Coordinators’.
    3. I create a new User in Oracle Apps called ‘Joe Bloggs’ and assign the responsibility ‘Discoverer Resource Coordinators’ to the Joe.
    4. Logged in as myself in Discoverer Desktop, Responsibility ‘General Ledger’ I Share the Report (Report_1) to the new Responsibility I just created ‘Discoverer Resource Coordinators’.
    5. In Discoverer Administration, Security, I assign the new Responsibility ‘Discoverer Resource Coordinators’ to the predefined Oracle Business Areas (Payables, Receivables, Purchasing & General Ledger).
    6. In Discoverer Administration I set privileges so that the Responsibility ‘Discoverer Resource Coordinators’ can do all tasks, query data, administer. .etc. etc..
    7. I therefore believe everything has been done and attempt to Login and run the report under Joe Bloggs, but am unable to retrieve any data.
    Help… what am I missing!
    Thanks,
    Lance
    Message was edited by:
    Lance

    Dear All,
    This has now been adjusted according to your recommendations but to no avail.
    Myself and Lance have ensured that this new responsibility has unlimited access to all the existing Business areas to eliminate joins within folders not being recognised, we have also ensured that the workbooks that have been created are shared with the correct responsibility.
    I have thoroughly tested this set up by logging in as this new responsibility within Disco. Client to try and retrieve data in a new Workbook, but even for the simplest of queries this fails.
    It seems that there may be a problem with the Responsibility linking to the EUL, could this be due to the new responsibility being created after the Current EUL was set up?
    Does anyone have any information or knowledge where this could happen?
    Regards
    Si

  • Discoverer Report - Not In condition

    Hi,
    I am somewhat new to Discoverer but pretty computer savvy. The problem I am having revolves around the inability to display employees who do not have a certain “competency” associated with their training records.
    For example I will set a condition in Discoverer that states: competency_level Not In WHMIS.
    What this will do is return all the competencies that not equal WHMIS, such as First Aid, CPR ect. Really what I want is for the report to display a listing of employee who do not have the associated competency.
    Here is the SQL statement that is generated:
    SELECT O100713.CANDIDATE_CODE, O100713.FIRST_NAME, O100713.LAST_NAME, O100610.LEVEL_CODE
    FROM P2K.P2K_CP_COMPETENCE_LEVELS O100610, P2K.P2K_CP_COMPETENCE_USAGES O100611, P2K.P2K_RE_CANDIDATES O100713
    WHERE ( ( O100610.ID = O100611.CCCL_ID ) AND ( O100713.ID = O100611.RCA_ID ) ) AND ( O100610.LEVEL_CODE NOT IN (( 'WHMIS-ORIENTAT' )) )
    I believe that my problem is in the WHERE clause ( O100610.ID = O100611.CCCL_ID ). I believe that I need to remove this from the statement but I am unable to do so.
    Any help would be greatly appreciated.
    Chris

    Chris,
    Bit of a pain this one. The report is probably doing literally what you are asking for. What I reckon you really need is a subquery first to identify all the employees without this particular value and then use these employee numbers withing the main body of your query to restrict to who you want and bring back the associated training records.
    Discoverer whilst having the ability to do sub queries, I have found to be a bit hit and miss depending on the volume of data that you are trying to pull back. Personally I'd try to build a custom view to handle such or if it's a one of then just use Toad or whatever and run the sql.
    Scott

  • Discoverer and oracle application link

    Hi
    I am new to discoverer , i have created a discoverer report and wanted to link to oracle applications..
    i have followed the steps given below pls do correct me where ever i went wrong at last i was not able to succeed in linking to oracle apps.
    pls do help me out..
    the steps are as follows
    1. Connect to Discoverer Administrator
    username = system
    pwd = manager
    connect = clonvis
    2.Prompts for creating EUL
    3.Created a NEW EUL
    selected (New EUL is for use by Oracle application users only)
    user: TESTDIS
    PWD :
    4.Selected the Schema for oracle application FND TABLES
    Shema : APPS
    5. selected the Default tablespace and Temporary tablespace
    6. EUL has been created successfully (message prompted)
    7. Prompted for creation of TUTORIAL (Selected YES)
    8. Message TUTORIAL created successfully prompted
    9. message(Do You want to connect as the owner of the EUL which you just created? )
    selected YES
    10.LOAD Wizard
    Create a new business area
    11. selected a business object ADS_ADDRESSES_ALL from the list in ( LOAD WIZARD 3)
    12. Business area name "TEST_ADS_BA" (LOAD WIZARD STEP 5)
    13. Logged into apps
    14. Function Creation
    Description TAB
    function = TESTDIS
    User function name = TESTDIS
    Properties TAB
    Type = SSWA plsql function
    Maintenance Mode support = None
    context Dependence = Responsibility
    Form tab
    Parameters = "workbook=TESTDIS&VIEWER=Y"
    WebHTML
    HTMLCall = OracleOASIS.RunDiscoverer
    15. Attached the function to the Payables Manager Menu
    16. Selected the Payables Manager Responsibility
    17. Navigated to TESTDIS (Menu)
    18. Doubled clicked the menu TESTDIS
    ERROR
    Your session is no longer valid. please login again
    once i provide the username/pwd and navigate to the menu TESTDIS
    The ERROR is repeated.
    pls do help me out...
    Regards
    Yram

    Hi Yram
    Great explanation and good posting with lots of useful information.
    You need to administer and log in to Apps as an Apps user. You use a database user only for the purposes of creating the EUL. It would take a long time to explain all of the steps here. However, I have an illustrated white paper on my downloads page that explains setting up an EUL in Apps mode.
    At first glance though it sounds like you may not have defined a Gateway UserID and Foundation Name inside Discoverer Administrator. You do this using Tools | Options | Connection. The Gateway UserID and Password is usually applsyspub/pub, while the Foundation Name is apps. The entries are usually in lowercase.
    My downloads page can be found at: http://learndiscoverer.com/downloads/downloads.htm and the document is called Setting up an Apps mode EUL.
    Let me know how you get on.
    Best wishes
    Michael

  • Discoverer report with parameters and functions

    I am new to Discoverer. Is there a way to create a report (with parameters) of one line per customer such that the following data will be displayed for each customer?
    Among the parameters is: from_date (month & year) ,to_date
    The basic query gives totals for each date (month & year) for every customer.
    Among the fields displayed:
    1-customer_id,
    2-balance until from_date,
    3-total activity between from_date and to_date
    I have a function to calculate the total balance until from_date, but then I cannot get the total activity on the same line. I tried using another function and I tried using a total calculation but to no success.
    Is this possible?
    Thanks.

    Hi Markus
    You need to determine whether you can in fact call a Discoverer report using a URL before linking it in Portal. You need to run the report in Viewer first and then see copy the URL from the address line of the browser. Then you open another browser and paste the URL. You may well be prompted for a username and password but hopefully the correct report with the right parameters will then execute.
    Assuming this works you then paste the same URL link into Portal and you should be able to get the report to run.
    Best wishes
    Michael

  • Links in Discoverer Reports

    I am new to Discoverer Reports so i want know, how to implement links in discoverer reports, I have two worksheets/links/pages in a
    Discoverer Report, in the first worksheet/page some data will be displayed,
    i want to display links for a particular column, if i click on the column value/cell value, it should take me to another page/worksheet with the column value
    /cellvalue as parameter to the next page/link.
    Provide me a solution for creating this discoverer report.
    Thanks,
    Manju.

    Manju,
    I'm not sure which version of Discoverer are you using. If you are using Discoverer 10gR2 then you can follow these steps fot that. I'm assume you want to show header(Eg; PO) information on one sheet and when user click on it you want to show the (PO)line information. Taking the PO report as example follow these steps in discoverer plus.
    Create 2 worksheets with the necessary information.Keep the PO Number in both the sheets. Select PO Number then goto Tools-->Manage Links and select the destination workbook and sheet. Give a name to the link. This will give you the information you need but will still show you line level information for all the PO's. Create a condition in both sheets for PO Number go back to edit link and the parameters button is enabled select the PO# parameter there. Hope this helps.

  • Which table keeps the Discoverer Report list?

    Hi,
    I'm new to Discoverer, actually I haven't started to use yet.
    I would like to know is it possible to retrieve a list of reports created in Discoverer so that I can add them to the standard reports that I developed using Oracle Report builder in my application. If possible, which table can I get the report list?
    My second question, is it possible to run a Discoverer report directly if I have the report link? Or everytime I run I must enter the schema username and password?
    Please advise.
    Thank you.

    Hi
    With regards to question 1, I don't believe this is possible any more. The older versions were rather flexible in that approach but sadly, no more.
    With regards to question 2, using a VPD you can authenticate to your heart's content using any custom defined table you wish. This is just an out of the box idea, and I don't know whether it will work, but here goes.
    The table that stores public connections is this one: orasso.wwsso_psex_user_info$
    I am wondering what would happen if we put a restriction on SELECT from that table to not allow selection if the SSO user was not of a certain class or did not have a certain privilege.
    Would anyone else care to comment here?
    By the way, inside SQL, this code SYS_CONTEXT('USERENV', 'CLIENT_IDENTIFIER') will return the SSO user.
    For more info on public connections, look here: http://download-west.oracle.com/docs/html/B13918_03/conns.htm#i1016752
    Best wishes
    Michael

  • How to delete duplicate reports in Discoverer created by APPS?

    I am a functional anyalst and new to Discoverer.  I have created several reports in Disco Plus and some how users are seeing duplicate reports, one under my name and two under APPS.  I'm not sure how this happened.  I suspect it may have happened when copying the EUL's related to the reports.  The EUL's are all owned by APPS. I can not delete the reports since I'm not the owner.  I've asked our DBA to search for the reports but he was not able to find them.  How can we find these reports created by APPS and delete them?  Thanks for any help. 

    Hi ,
    RSZDELETE tcode is used to delete the query as well as work book also.
    when you are deleting the query it will ask for work book also.
    Thanks & Regards,
    Ramnaresh . P.

  • How to create optional parameters in discoverer 10.1.2

    I am new to discoverer, Can any one tell me how to create optional parameters in Discoverer desktop edition in 10.1.2
    I looked at the following thread which says optional parameters can be created in 10.1.2 but doesn't tell how tro create it
    How to create optional parameters in Discoverer
    Thanks in Advance

    Hi.
    In the thread you quoted Michael Armstrong-Smith says that optional parameters can be created in Plus but not in Desktop and that's true.
    So your question "how to create optional parameters in Discoverer desktop" is already answered in that thread.
    Assume that it is a typo and you wanted to ask how to create optional parameters in Plus.
    Then the answer is simple: Just uncheck the "Require users to enter a value" checkbox when creating new parameter.
    Regards Jakub

  • GL REPORTS IN DISCOVERER

    hI Group,
    i am new to discoverer ,i have a client requirement here,
    requirement is:
    they have a report in gl called 'general ledger detail % horizantal'( it is develop with reports 6i)
    i have to translate this into oracle discoverer
    query-->
    SELECT A.NAME NAME,
    A.JHI JHI,
    A.account_num account_num,
    A.DESCRIPTION DESCRIPTION,
    A.category category,
    a.seq_num1 seq_num1,
    a.lseq lseq,
    a.cat_name cat_name,
    A.location location,
    A.division division,
    A.acc_desc acc_desc,
    A.source source,
    A.je_line_num je_line_num,
    A.Accounted_Date Accounted_Date,
    A.entry entry,
    A.batch batch,
    A.naration naration,
    A.LSequence LSequence,
    A.Document_num Document_num,
    A.LLine LLine,
    A.debit debit,
    A.credit credit,
    A.ent_dr ent_dr,
    A.ent_cr ent_cr,
    A.reference reference,
    A.ref2 ref2,
    A.ref3 ref3,
    A.reference_1 reference_1,
    A.reference_2 reference_2,
    A.reference_3 reference_3,
    A.transaction_no transaction_no,
    A.reference_5 reference_5,
    A.reference_6 reference_6,
    A.reference_7 reference_7,
    A.reference_8 reference_8,
    A.reference_9 reference_9,
    A.reference_10 reference_10,
    A.seq_id seq_id,
    A.seq_NUM seq_NUM,
    A.h_seq_id h_seq_id,
    A.gl_sl_link_id gl_sl_link_id,
    A.ae_line_id ae_line_id,
    A.gl_code_id gl_code_id,
    A.org_id org_id,
    A.org_name org_name
    FROM (select
    jh.NAME,
    JH.JE_HEADER_ID JHI ,
    nvl(gcc.SEGMENT4,0) account_num,
    nvl(ffv.DESCRIPTION,0) DESCRIPTION,
    decode(jc.je_category_name,'7','JV','8','JV','9','JV','10','JV','11','JV','12','JV','13','JV',jc.je_category_name)category,
    decode(jc.je_category_name,'7',jh.doc_sequence_value,'8',jh.doc_sequence_value,'9',jh.doc_sequence_value,'10',jh.doc_sequence_value,'11',jh.doc_sequence_value,'12',jh.doc_sequence_value,'13',jh.doc_sequence_value,ir.subledger_doc_sequence_value)seq_num1,
    decode(jc.je_category_name,'7',jc.USER_JE_CATEGORY_NAME ,'8',jc.USER_JE_CATEGORY_NAME,'9',jc.USER_JE_CATEGORY_NAME,'10',jc.USER_JE_CATEGORY_NAME,'11',jc.USER_JE_CATEGORY_NAME,'12',jc.USER_JE_CATEGORY_NAME,'13',jc.USER_JE_CATEGORY_NAME, ds.name)lseq,
    jc.USER_JE_CATEGORY_NAME cat_name,
    nvl(gcc.SEGMENT1 ,0) location,
    nvl(gcc.SEGMENT2,0) division,
    ffv.DESCRIPTION acc_desc,
    jh.je_source source,
    ir.je_header_id je_header_id,
    ir.je_line_num je_line_num,
    jl.effective_date Accounted_Date,
    jh.name entry,
    jh.je_batch_id batch,
    substr(jl.description,1,250)naration,
    ds.name LSequence,
    jh.doc_sequence_value Document_num,
    jl.je_line_num LLine,
    nvl(jl.accounted_dr,0) debit,
    nvl(jl.accounted_cr ,0) credit,
    jl.ACCOUNTED_DR ent_dr,
    jl.ACCOUNTED_CR ent_cr,
    jh.external_reference reference,
    jl.reference_2 ref2,
    jl.reference_3 ref3,
    nvl(jl.period_name,0) per_name,
    nvl(ir.reference_1,' ') reference_1,
    ir.reference_2 reference_2,
    ir.reference_3 reference_3,
    ir.reference_4 transaction_no,
    nvl(ir.reference_5,' ') reference_5,
    ir.reference_6 reference_6,
    ir.reference_7 reference_7,
    ir.reference_8 reference_8,
    ir.reference_9 reference_9,
    ir.reference_10 reference_10,
    ir.subledger_doc_sequence_id seq_id,
    ir.subledger_doc_sequence_value seq_num,
    jh.doc_sequence_id h_seq_id,
    nvl(ir.gl_sl_link_id,0) gl_sl_link_id,
    null ae_line_id,
    jl.code_combination_id gl_code_id,
    hou.ORGANIZATION_ID org_id,
    hou.name org_name
    from GL_JE_LINES jl,
    GL_JE_HEADERS jh,
    GL_JE_BATCHES jb,
    GL_JE_SOURCES js,
    GL_JE_CATEGORIES jc,
    GL_IMPORT_REFERENCES ir,
    --ap_ae_lines_all            ael,
    FND_DOCUMENT_SEQUENCES ds,
    gl_code_combinations gcc,
    fnd_flex_values_vl ffv,
    hr_operating_units hou
    where
    jl.status||'' = 'P'
    --- and jl.code_combination_id = :ccid
    ---and jl.set_of_books_id = :P_SET_OF_BKS_ID
    and jh.status = 'P'
    and jh.actual_flag = 'A'
    and jh.je_header_id = jl.je_header_id + 0
    ---jh.je_source||'' like
    --decode(:P_SOURCE,'','%', :P_SOURCE)
    -- and jh.je_category||'' like decode(:P_CATEGORY,'','%',:P_CATEGORY)
    and jb.je_batch_id = jh.je_batch_id + 0
    and jb.average_journal_flag = 'N'
    and js.je_source_name = jh.je_source
    and jc.je_category_name = jh.je_category
    and ir.je_header_id (+) = jl.je_header_id
    and ir.je_line_num (+) = jl.je_line_num
    and ( ir.rowid IS NULL
    --or jh.je_source                   IN  ('Inventory','Payables', 'Receivables','Purchasing')
    or ir.rowid IN ( SELECT max(ir2.rowid)
    FROM gl_import_references ir2
    WHERE ir2.je_header_id = jl.je_header_id
    AND ir2.je_line_num = jl.je_line_num))
    --and ael.gl_sl_link_id(+)       =  ir.gl_sl_link_id
    and ds.doc_sequence_id (+) = ir.subledger_doc_sequence_id
    and gcc.CODE_COMBINATION_ID = jl.CODE_COMBINATION_ID
    and ffv.FLEX_VALUE_SET_ID='1009979'
    and gcc.SEGMENT4=ffv.FLEX_VALUE
    and gcc.SEGMENT1 =:location -11
    and gcc.SEGMENT4 between nvl(:From_acc,gcc.SEGMENT4) and nvl(:To_acc,gcc.SEGMENT4)
    --AND GCC.SEGMENT2 =NVL(:DIV,GCC.SEGMENT2)
    and gcc.segment2 BETWEEN nvl(:FROM_Div,gcc.segment2) AND NVL(:TO_DIV,GCC.SEGMENT2)
    and jl.effective_date between nvl(:from_date,jl.effective_date) and nvl(:to_date,jl.effective_date)
    and gcc.SEGMENT1 between nvl(:from_loc,gcc.SEGMENT1) and nvl(:to_loc,gcc.SEGMENT1)
    and hou.ORGANIZATION_ID=:Operating_Unit
    AND JH.JE_SOURCE <>'Purchase Invoices'
    AND nvl(JL.GL_SL_LINK_ID,0) <> 85508
    --order by jl.EFFECTIVE_DATE,gcc.SEGMENT4
    UNION ALL
    select distinct
    null NAME,
    null JHI ,
    gcc.SEGMENT4 account_num,
    ffv.description DESCRIPTION,
    xai.user_je_category_name category,
    xai.doc_sequence_value seq_num1,
    xai.doc_sequence_name lseq,
    null cat_name,
    gcc.segment1 location,
    gcc.segment2 division,
    null acc_desc,
    null source,
    null je_header_id,
    null je_line_num,
    xai.accounting_date Accounted_Date,
    null entry,
    null batch,
    xai.comments naration,
    null LSequence,
    null Document_num,
    null LLine,
    xai.accounted_dr debit,
    xai.accounted_cr credit,
    xai.accounted_dr ent_dr,
    xai.accounted_cr ent_cr,
    null reference,
    null ref2,
    null ref3,
    null per_name,
    xai.third_party_name reference_1,
    null reference_2,
    null reference_3,
    null transaction_no,
    null reference_5,
    null reference_6,
    null reference_7,
    null reference_8,
    null reference_9,
    null reference_10,
    null seq_id,
    null seq_num,
    null h_seq_id,
    null gl_sl_link_id,
    null ae_line_id,
    null gl_code_id,
    hou.ORGANIZATION_ID org_id,
    hou.name org_name
    from GL_JE_LINES jl,
    GL_JE_HEADERS jh,
    GL_JE_BATCHES jb,
    GL_JE_SOURCES js,
    GL_JE_CATEGORIES jc,
    GL_IMPORT_REFERENCES ir,
    --ap_ae_lines_all            ael,
    FND_DOCUMENT_SEQUENCES ds,
    gl_code_combinations gcc,
    fnd_flex_values_vl ffv,
    hr_operating_units hou,
    xla_ap_inv_ael_gl_v xai
    where
    jl.status||'' = 'P'
    --- and jl.code_combination_id = :ccid
    ---and jl.set_of_books_id = :P_SET_OF_BKS_ID
    and jh.status = 'P'
    and jh.actual_flag = 'A'
    and jh.je_header_id = jl.je_header_id + 0
    ---jh.je_source||'' like
    --decode(:P_SOURCE,'','%', :P_SOURCE)
    -- and jh.je_category||'' like decode(:P_CATEGORY,'','%',:P_CATEGORY)
    and jb.je_batch_id = jh.je_batch_id + 0
    and jb.average_journal_flag = 'N'
    and js.je_source_name = jh.je_source
    and jc.je_category_name = jh.je_category
    and ir.je_header_id (+) = jl.je_header_id
    and ir.je_line_num (+) = jl.je_line_num
    and ( ir.rowid IS NULL
    --or jh.je_source                   IN  ('Inventory','Payables', 'Receivables','Purchasing')
    or ir.rowid IN ( SELECT max(ir2.rowid)
    FROM gl_import_references ir2
    WHERE ir2.je_header_id = jl.je_header_id
    AND ir2.je_line_num = jl.je_line_num))
    --and ael.gl_sl_link_id(+)       =  ir.gl_sl_link_id
    and ds.doc_sequence_id (+) = ir.subledger_doc_sequence_id
    and gcc.CODE_COMBINATION_ID = jl.CODE_COMBINATION_ID
    and ffv.FLEX_VALUE_SET_ID='1009979'
    and gcc.SEGMENT4=ffv.FLEX_VALUE
    and gcc.SEGMENT1 =:location -11
    and gcc.SEGMENT4 between nvl(:From_acc,gcc.SEGMENT4) and nvl(:To_acc,gcc.SEGMENT4)
    --AND GCC.SEGMENT2 =NVL(:DIV,GCC.SEGMENT2)
    and gcc.segment2 BETWEEN nvl(:FROM_Div,gcc.segment2) AND NVL(:TO_DIV,GCC.SEGMENT2)
    and jl.effective_date between nvl(:from_date,jl.effective_date) and nvl(:to_date,jl.effective_date)
    and gcc.SEGMENT1 between nvl(:from_loc,gcc.SEGMENT1) and nvl(:to_loc,gcc.SEGMENT1)
    and hou.ORGANIZATION_ID=:Operating_Unit
    AND JH.JE_SOURCE <>'Purchase Invoices'
    AND JL.GL_SL_LINK_ID ='85508'
    and xai.application_id = 200
    AND xai.je_header_id = 4268
    AND xai.je_line_num = 3
    union
    select
    jh.NAME,JH.
    JE_HEADER_ID ,
    nvl(gcc.SEGMENT4,0) account_num,
    nvl(ffv.DESCRIPTION,0) DESCRIPTION,
    decode(jc.je_category_name,'7','JV','8','JV','9','JV',jc.je_category_name)category,
    null seq_num1,
    null lseq,
    jc.USER_JE_CATEGORY_NAME cat_name,
    nvl(gcc.SEGMENT1 ,0) location,
    nvl(gcc.SEGMENT2,0) division,
    ffv.DESCRIPTION acc_desc,
    jh.je_source source,
    ir.je_header_id je_header_id,
    ir.je_line_num je_line_num,
    jl.effective_date Accounted_Date,
    jh.name entry,
    jh.je_batch_id batch,
    substr(AID.DESCRIPTION,1,250) naration,
    ds.name LSequence,
    jh.doc_sequence_value Document_num,
    jl.je_line_num LLine,
    nvl(jl.accounted_dr,0) debit,
    nvl(jl.accounted_cr ,0) credit,
    jl.ACCOUNTED_DR ent_dr,
    jl.ACCOUNTED_CR ent_cr,
    jh.external_reference reference,
    jl.reference_2 ref2,
    jl.reference_3 ref3,
    nvl(jl.period_name,0) per_name,
    nvl(ir.reference_1,' ') reference_1,
    ir.reference_2 reference_2,
    ir.reference_3 reference_3,
    ir.reference_4 transaction_no,
    nvl(ir.reference_5,' ') reference_5,
    ir.reference_6 reference_6,
    ir.reference_7 reference_7,
    ir.reference_8 reference_8,
    ir.reference_9 reference_9,
    ir.reference_10 reference_10,
    ir.subledger_doc_sequence_id seq_id,
    ir.subledger_doc_sequence_value seq_num,
    jh.doc_sequence_id h_seq_id,
    ir.gl_sl_link_id gl_sl_link_id,
    ael.ae_line_id ae_line_id,
    jl.code_combination_id gl_code_id,
    hou.ORGANIZATION_ID org_id,
    hou.name org_name
    from GL_JE_LINES jl,
    GL_JE_HEADERS jh,
    GL_JE_BATCHES jb,
    GL_JE_SOURCES js,
    GL_JE_CATEGORIES jc,
    GL_IMPORT_REFERENCES ir,
    ap_ae_lines_all ael,
    FND_DOCUMENT_SEQUENCES ds,
    gl_code_combinations gcc,
    fnd_flex_values_vl ffv,
    hr_operating_units hou,
    AP_INVOICEs_ALL AID
    where
    jl.status||'' = 'P'
    --- and jl.code_combination_id = :ccid
    ---and jl.set_of_books_id = :P_SET_OF_BKS_ID
    and jh.status = 'P'
    and jh.actual_flag = 'A'
    and jh.je_header_id = jl.je_header_id + 0
    ---jh.je_source||'' like
    --decode(:P_SOURCE,'','%', :P_SOURCE)
    -- and jh.je_category||'' like decode(:P_CATEGORY,'','%',:P_CATEGORY)
    and jb.je_batch_id = jh.je_batch_id + 0
    and jb.average_journal_flag = 'N'
    and js.je_source_name = jh.je_source
    and jc.je_category_name = jh.je_category
    and ir.je_header_id (+) = jl.je_header_id
    and ir.je_line_num (+) = jl.je_line_num
    and ( ir.rowid IS NULL
    --or jh.je_source                   IN  ('Inventory','Payables', 'Receivables','Purchasing')
    or ir.rowid IN ( SELECT max(ir2.rowid)
    FROM gl_import_references ir2
    WHERE ir2.je_header_id = jl.je_header_id
    AND ir2.je_line_num = jl.je_line_num))
    and ael.gl_sl_link_id(+) = ir.gl_sl_link_id
    and ds.doc_sequence_id (+) = ir.subledger_doc_sequence_id
    and gcc.CODE_COMBINATION_ID = jl.CODE_COMBINATION_ID
    and ffv.FLEX_VALUE_SET_ID='1009979'
    and gcc.SEGMENT4=ffv.FLEX_VALUE
    and gcc.SEGMENT1 =:location -11
    and gcc.SEGMENT4 between nvl(:From_acc,gcc.SEGMENT4) and nvl(:To_acc,gcc.SEGMENT4)
    --AND GCC.SEGMENT2 =NVL(:DIV,GCC.SEGMENT2)
    and gcc.segment2 BETWEEN nvl(:FROM_Div,gcc.segment2) AND NVL(:TO_DIV,GCC.SEGMENT2)
    and jl.effective_date between nvl(:from_date,jl.effective_date) and nvl(:to_date,jl.effective_date)
    and gcc.SEGMENT1 between nvl(:from_loc,gcc.SEGMENT1) and nvl(:to_loc,gcc.SEGMENT1)
    and hou.ORGANIZATION_ID=:Operating_Unit
    AND JH.JE_SOURCE LIKE 'Purchase Invoices'
    AND IR.REFERENCE_2 = AID.INVOICE_ID
    union all
    select
    distinct
    null NAME,
    null JHI ,
    nvl(gcc.SEGMENT4,0) account_num,
    nvl(ffv.DESCRIPTION,0) DESCRIPTION,
    null category,
    null seq_num1,
    null lseq,
    null cat_name,
    nvl(gcc.SEGMENT1 ,0) location,
    nvl(gcc.SEGMENT2,0) division ,
    null acc_desc,
    null source,
    null je_header_id,
    null je_line_num,
    null Accounted_Date,
    null entry,
    null batch,
    null naration,
    null LSequence,
    null Document_num,
    null LLine,
    null debit,
    null credit,
    null ent_dr,
    null ent_cr,
    null reference,
    null ref2,
    null ref3,
    null per_name,
    null reference_1,
    null reference_2,
    null reference_3,
    null transaction_no,
    null reference_5,
    null reference_6,
    null reference_7,
    null reference_8,
    null reference_9,
    null reference_10,
    null seq_id,
    null seq_num,
    null h_seq_id,
    null gl_sl_link_id,
    null ae_line_id,
    null gl_code_id,
    null org_id,
    null org_name
    from gl_code_combinations gcc ,fnd_flex_values_vl ffv
    where gcc.SEGMENT4 between nvl(:From_acc,gcc.SEGMENT4) and nvl(:To_acc,gcc.SEGMENT4)
    and gcc.segment2 BETWEEN nvl(:FROM_Div,gcc.segment2) AND NVL(:TO_DIV,GCC.SEGMENT2)
    and gcc.SEGMENT1 between nvl(:from_loc,gcc.SEGMENT1) and nvl(:to_loc,gcc.SEGMENT1)
    and ffv.FLEX_VALUE_SET_ID='1009979'
    and gcc.SEGMENT4=ffv.FLEX_VALUE
    and gcc.CODE_COMBINATION_ID not in (
    select distinct
    jl.code_combination_id gl_code_id
    from GL_JE_LINES jl,
    GL_JE_HEADERS jh,
    GL_JE_BATCHES jb,
    GL_JE_SOURCES js,
    GL_JE_CATEGORIES jc,
    GL_IMPORT_REFERENCES ir,
    ap_ae_lines_all ael,
    FND_DOCUMENT_SEQUENCES ds,
    gl_code_combinations gcc,
    fnd_flex_values_vl ffv,
    hr_operating_units hou
    where
    jl.status||'' = 'P'
    --- and jl.code_combination_id = :ccid
    ---and jl.set_of_books_id = :P_SET_OF_BKS_ID
    and jh.status = 'P'
    and jh.actual_flag = 'A'
    and jh.je_header_id = jl.je_header_id + 0
    ---jh.je_source||'' like
    --decode(:P_SOURCE,'','%', :P_SOURCE)
    -- and jh.je_category||'' like decode(:P_CATEGORY,'','%',:P_CATEGORY)
    and jb.je_batch_id = jh.je_batch_id + 0
    and jb.average_journal_flag = 'N'
    and js.je_source_name = jh.je_source
    and jc.je_category_name = jh.je_category
    and ir.je_header_id (+) = jl.je_header_id
    and ir.je_line_num (+) = jl.je_line_num
    and ( ir.rowid IS NULL
    --or jh.je_source                   IN  ('Inventory','Payables', 'Receivables','Purchasing')
    or ir.rowid IN ( SELECT max(ir2.rowid)
    FROM gl_import_references ir2
    WHERE ir2.je_header_id = jl.je_header_id
    AND ir2.je_line_num = jl.je_line_num))
    and ael.gl_sl_link_id(+) = ir.gl_sl_link_id
    and ds.doc_sequence_id (+) = ir.subledger_doc_sequence_id
    and gcc.CODE_COMBINATION_ID = jl.CODE_COMBINATION_ID(+)
    and ffv.FLEX_VALUE_SET_ID='1009979'
    and gcc.SEGMENT4=ffv.FLEX_VALUE(+)
    and gcc.SEGMENT1 =:location -11
    and gcc.SEGMENT4 between nvl(:From_acc,gcc.SEGMENT4) and nvl(:To_acc,gcc.SEGMENT4)
    --AND GCC.SEGMENT2 =NVL(:DIV,GCC.SEGMENT2)
    and gcc.segment2 BETWEEN nvl(:FROM_Div,gcc.segment2) AND NVL(:TO_DIV,GCC.SEGMENT2)
    and jl.effective_date between nvl(:from_date,jl.effective_date) and nvl(:to_date,jl.effective_date)
    and gcc.SEGMENT1 between nvl(:from_loc,gcc.SEGMENT1) and nvl(:to_loc,gcc.SEGMENT1)
    and hou.ORGANIZATION_ID=:Operating_Unit
    AND JH.JE_SOURCE <>'Purchase Invoices' ))A
    order by A.Accounted_Date,A.account_num,A.seq_NUM
    can any body give the steps how to implement its business area and work book i(step by step) ?
    **i am using discoverer 10g**
    Thanks & Regards,
    azamtulla khan

    In its simplest form - you want to create a custom folder (Insert -> Folder -> Custom) in Disco Admin using the SQL from the report.
    You cannot have bind parameters in your SQL, so you will have to use a trick detailed in Note 304192.1 on metalink.
    This allows you to restrict your query within the SQL of the custom folder.
    If you don't do it this way you could hit performance issues as any parameters defined in the workbook will be applied after the SQL in the custom folder has been run.
    Hope this gets you on the way.

Maybe you are looking for