Settting org Context in Discoverer

Hi,
I have a discoverer report query which uses the context dependent table for e.g. pa_projects view is used instead of pa_projects_all base table to get the operating unit specific data.
when I set the org context (use MO_GLOBAL.SET_POLICY_CONTEXT) and run the query in sql plus/Toad, I am able to get the data.
But the same query is not returning data in Discoverer Desktop tool.
Just want to know, is there any profile or set up at Instance level or discoverer tool level which is restricting the data.
or is there any system profile which is used to set the business unit for a user in Discoverer Reports.
Thanks,
Sachin

Pl post details of OS, database and EBS versions.
Pl see these if MOS Docs can help
How To Run SQL From An Applications Mode Discoverer Workbook In SQL*PLUS (SQLPLUS) (Doc ID 279736.1)
Discoverer 10g (10.1.2) Querying Against An E-Business Suite 12 Multi-Org VPD Protectected View With ORG_ID Returns No Data (Doc ID 732826.1)
HTH
Srini

Similar Messages

  • R12 - Discoverer - MOAC access for folders based on views

    Hi
    After upgrade to R12 , workbooks which were based on org-context views are not returning any data.
    When the same query is run from SQL session after settting fnd_global.apps_initialize and mo_global.init, the query returns rows.
    We are using discoverer desktop edition 10g. Is this an issue in the way applications context gets set when selecting the responsibility from discoverer?
    Regards,
    Francis

    hi
    i followed this note, but it mentions that the correct solution is to implement the ebusiness R12 MOAC as per documentation
    if it was an MOAC setup issue, then the same discoverer workbook query should not fetch rows even if it was run from SQL*Plus
    I set the apps session using FND_GLOBAL.apps_initialize and MO_GLOBAL.init and ran the query from backend. This works and returns rows.
    But the same responsibility and query when accessed from discoverer returns no rows
    Regards,
    Alister

  • MOAC / "Org-Based" Security

    Hello,
    I'm developing custom pl/sql for submitting concurrent requests/sets. For reference, here is what my initialization 'block' looks like in the pl/sql:
    apps.fnd_global.apps_initialize(user_id, resp_id, app_id);
    apps.mo_global.set_policy_context('M');
    apps.mo_global.init(appShortName);
    (or)
    apps.fnd_global.apps_initialize(user_id, resp_id, app_id);
    apps.mo_global.set_policy_context('S', org_id);
    apps.mo_global.init(appShortName);
    (depending on whether the user chooses a 'multi-org' context or 'single-org' context)
    I just have a few general questions.
    1) Is the "mo_global.set_policy_context" followed by "mo_global.init" proper form?
    2) I understand that if you choose multi-org (set_policy_context('M')), it reads the 'fnd_global.apps_initialize'd user's "allowed orgs" from his profile options (I forget the exact ones at this moment). Is this correct?
    3) Is the sole purpose of "multi-org" security for performing multiple operations on multiple orgs without having to switch responsibility?
    4) Most importantly (saved this one for last), I'm reading about the various different kinds of security (namely, http://docs.oracle.com/cd/E14223_01/bia.796/e14219/security.htm#BGBIFAIG):
    Operating Unit Org-Based security
    Inventory Org-Based Security
    Company Org-Based Security
    Business Group Org-Based Security
    HR Org-based Security
    Payables Org-Based Security
    Receivables Org-Based Security
    SetID-Based Security
    Position-Based Security
    Ledger-Based Security
    My question is, are all of these various "securities" all managed with organizations? In other words, will my code (above) enable users to use ANY of these different kinds of security, if they so choose?

    Hey so seeing as this question hasn't really been answered yet I figure I'll give it another go.
    I'm going to be very specific this time:
    I run PL/SQL scripts against the EBS database in order to do things like schedule requests/request-sets. The first thing I do (always) is initialize the apps context:
    apps.fnd_global.apps_initialize(u_id, r_id, a_id);
    Next, depending on the situation (still unsure when/why, but whatever), we initialize the org context. This is done by performing exactly one of the following steps.
    apps.mo_global.set_policy_context('M', null);
    OR
    apps.mo_global.set_policy_context('S', org_id);
    OR
    apps.mo_global.init('appname');
    Now, the ORG_ID comes from this statement:
    SELECT organization_id FROM apps.org_organization_definitions2 WHERE organization_name = 'blah'
    Again, I don't know why/when we need to do this or apparently what any of these things do but it's kind of beyond the scope of what I do. SOMEBODY chooses one of these, depending on their mood (or whatever factors :) ). Based on my model, the following are the possibilities thus far:
    apps.fnd_global.apps_initialize(u_id, r_id, a_id);
    OR
    apps.fnd_global.apps_initialize(u_id, r_id, a_id);
    apps.mo_global.set_policy_context('M', null);
    OR
    apps.fnd_global.apps_initialize(u_id, r_id, a_id);
    apps.mo_global.set_policy_context('S', org_id);
    OR
    apps.fnd_global.apps_initialize(u_id, r_id, a_id);
    apps.mo_global.init('appname');
    After this, I use
    apps.fnd_submit.submit_program('appName','progName','STAGEXYZ', args); <-- however many times I need
    apps.fnd_submit.set_request_set('appname','requestSetName');
    OR
    apps.fnd_request.submit_request('appName','progName','description',starttime,FALSE, args);
    My question is twofold:
    1) Is this model generic enough? In other words, without doing anything extra, will people be able to do pretty much everything you could think of, at least in terms of running concurrent requests / sets? Will I ever - EVER - need to chain "set_policy_context" with "init"? <-- I would really love a yes/no answer because I am in no way/shape/form an EBS expert. I've read all the docs that I've been presented with thus far but I haven't found a straight answer to this yet.
    2) I understand there are all different kinds of "org-based" security. Could I use my current code to initialize an inv_org, for example? If not, where could I turn for help? Are there other tables I should use for inv_orgs, hr_orgs, etc?
    THANKS! YOU ARE THE BEST!

  • How to pass parameter in Discoverer inner query  PLZ give solution-URGENT

    Hi All,
    My need is I have a query in Disco Admin which has inner query as mention below:
    select Net_Drawn_Amount,Undrawn_Amount,Business_Date from
    (select * from t_FacilityExtract) A,
    We are creating a workbook using Diso Plus and creating a parameter on Business_date which is date partitioned, but issue is in inner query(select * from t_FacilityExtract) is picking whole data which has millions of rows.
    Plz help me how to filter inner query.
    It is just a sample query.
    Plz help me as soon as possible.
    Thanks in advance
    Amit

    Hi,
    Generally, using database contexts is the best way to pass parameters to folders defined in Disco Admin. You can look at this posts or download a article on using contexts with Discoverer from my website (www.cabotconsulting.co.uk).
    Re: Implementing HR report in Discoverer
    Re: Passing multiple parameters into Custom Folder...
    Re: Parameters in SubQuery
    Re: Passing Parameters to a discoverer folder using Note 282249.1
    Rod West

  • How I can set ORG_ID context (for Oracle Apps Views) in ODI designer tool?

    Hi All,
    I want to get data from apps views (like OE_ORDER_HEADER_V) into our data warehouse detination table using ‘Oracle Data Integrator’ tool.
    The issue is that when I reverse Oracle Table or Synonym directly, everything works fine i.e. after 'Interface' execution, I can see how many rows imported into destination table from this source Oracle table/synonym.
    But when I use Apps view as a source then 'Interface' executes fine with ‘no error’ but NO rows imports to the destination table.
    I believe, the only difference is that I am not able to set Org_Id before executing ODI interface so it is not picking the data.
    Please let me know the steps/instructions to set org_id context on apps view then reverse in ODI Designer tool.
    Please note that I can set org_id using SQLPlus successfully as given below (and see data using the same Apps view). What to do in ODI designer tool to achieve similar data:
    begin
    fnd_global.apps_initialize(0, 21623, 660);
    mo_global.init('ONT');
    end;
    -- connect using apps/apps at Vision SQLPlus
    -- User_Id -> 0 (<-- SYSADMIN )
    -- Responsibility_Id-> 21623 (<-- Order Management Super User )
    -- Application_id -> 660 (<-- ONT )
    -- select count(*) from oe_order_headers_v where rownum < = 100
    I would appreciate your quick help in this.
    Thanks in advance.

    Set org context in 11i:
    ===============
    The SQL command to set the ORG_ID prior to running a script is:
    SQL> execute dbms_application_info.set_client_info(&org_id);
    Enter the org_id when prompted.
    If using Toad
    Begin
    fnd_client_info.set_org_context(&org_id);
    End;
    Set org context in R12
    ================
    The SQL command to set the ORG_ID prior to running a script is:
    SQL> exec mo_global.init('AR');
    exec mo_global.set_policy_context('S','&org_id');
    Enter the org_id when prompted.
    The procedure - mo_global.set_policy_context has two parameters
    p_access_mode & p_org_id
    p_access_mode Description
    S In case you want your current session to work against Single ORG_ID
    M In case you want your current session to work against multiple ORG_IDs
    p_org_id: Only applicable if p_access_mode is passed value of "S"
    If using Toad
    Begin
    mo_global.set_policy_context(‘S’, &org_id);
    End;

  • What is org view

    I tried to run a select statement on them and they dont respond
    what do i do.

    Sounds like you need to set your org context in sql before running your query
    something like
    sql> exec fnd_client_info.set_org_context('p_org_id');
    where
    p_org_id is the id of the organization that you want to view the data of.
    If that doesn't work, panic!
    cheers, iguru

  • Hi Guys

    Hi Friends,
    I am running Payables Open Interface Import to load invoices from invoice interface table in R12.
    But I am facing below error: MSG-00883: After Repport Trigger: Setting the Org Context to Multiple
    I have done below steps further to fix my problem but no luck:
    (1) I am creating my Invoice in USD so I define the daily rates for the Invoice date in Payables Setup.
    (2) I have created my Invoice, Vendor Sites, PO header,PO Lines, PO Line Locations and PO distribution in a Single org only.
    Please do let me know if any one of you have faced this issue earlier and comes to the solution.
    Regards,
    Ram

    Hi and Welcome to the Community!
    I suggest this thread:
    http://supportforums.blackberry.com/t5/Desktop-Software-for-PC/Cleanly-quot-Starting-Over-quot-with-...
    It starts with a process for cleanly starting over, and there is some discussion, and there is also a post (15) with links to older Desktop Software versions, if those are needed. Note that this is not, by any means, guaranteed to work...but it has worked for many to resolve issues they are having.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Error in Payables Open Interface Import

    Hi Experts,
    I am loading some Invoices through Payable Interface.
    I have populated data in both the interface table i.e. ap_invoices_interface and ap_invoice_lines_interface.
    when i run Payables Open Interface Import its giving me the below message and the status column in ap_invoice_interface showing 'REJECTED'
    Enter Password:
    REP-0004: Warning: Unable to open user preference file.
    MSG-00000: 0 invoice(s) were created during the process run
    MSG-00000: 6 invoice(s) were fetched during the process run
    MSG-00000: summarize flagN
    MSG-00883: After Repport Trigger: Setting the Org Context to Multiple
    The org_id in both the table are same.
    I dont understand what could be the error. Please help me in find out the solutions.
    Thanks,
    Atul

    What is your application release?
    I am loading some Invoices through Payable Interface.
    I have populated data in both the interface table i.e. ap_invoices_interface and ap_invoice_lines_interface.
    when i run Payables Open Interface Import its giving me the below message and the status column in ap_invoice_interface showing 'REJECTED'
    Enter Password:
    REP-0004: Warning: Unable to open user preference file.
    MSG-00000: 0 invoice(s) were created during the process run
    MSG-00000: 6 invoice(s) were fetched during the process run
    MSG-00000: summarize flagN
    MSG-00883: After Repport Trigger: Setting the Org Context to MultiplePlease see if (R12AP: Interface Does Not Copy The DFF Values From Lines To Distribution. [ID 1457398.1]) helps.
    Thanks,
    Hussein

  • Supplier Open Interface

    Dear Gurus,
    Please help me with the following :
    I have 2 OU’s as follows:
    AOU
    BOU
    I have four suppliers:
    1 AAA India, Hyderabad belongs to both the OU
    2 BBB India, Calcutta belongs to both the OU
    3 CCC Kenya, Nairobi belongs to AOU
    4 DDD Ghana, Accra belongs to BOU
    Now I have loaded data into AP_SUPPLIERS_INT and AP_SUPPLIER_SITES_INT, but while giving the name on OPERATING_UNIT_NAME what shall I give when it come to supplier AAA and BBB.
    I am also having following questions:
    1. When I run the supplier open interface which OU I have to select?
    2. How does my common supplier for both the OU will get populated, do I have to run supplier open interface twice? Once for each OU?
    3. Again when it comes to Supplier Site Open Interface what do I need to do, is it I have to populate the OU name twice and run the program twice ?
    Please help me by sharing your knowledge.
    Note: We are on R12
    Regards
    Kiran Rana

    1.Suppliers are not OU striped so running the Suppliers Open Interface will import all the valid records from the interface tables.
    2.Supplier Site is OU striped. So you need to create 2 records in the sites_int table, one for each OU. When you run the Supplier Sites Open Interface program these records will be imported. If your setup is such that you can submit this program in an org context the you need to run it twice once for each OU.
    3. I guess this is already answered by above.
    Hope that helped :), my points please!!

  • PAYABLE OPEN INTERFACE IN R12 NOT PICKING INTERFACE TABLE DATA ...

    The data is getting loaded into interface tables. But while importing from interface tables to base tables using "Payables Open Interface Import " receiving the log message
    Enter Password:
    MSG-00000: 0 invoice(s) were created during the process run
    MSG-00000: 0 invoice(s) were fetched during the process run
    MSG-00000: summarize flagN
    MSG-00883: After Repport Trigger: Setting the Org Context to Multiple
    The invoices are not getting loaded into base table. Checked table ap_interface_rejections. There is no data present in this table.
    Can some body on this forum help.
    Thank you in advance.
    Thanks and Regards,
    Sreenivas Muppasani
    91-9731068499

    Hi Sreenivas and Raju,
    there are two related documentations available in oracle, first states it could be a Report Cache issue which needs to be cleared, another one was a bug where patch application was suggested .....
    Can you check the references link and confirm that is not the cause ... if not try entering minimal (mandatory) information alone on the interface table and attempt importing ....?
    References:
    APXIIMPT - Payables Open Interface Import In Error [ID 1307261.1]     
    R12AP: Interface Does Not Copy The DFF Values From Lines To Distribution. [ID 1457398.1]     
    Regards,
    Ivruksha

  • REP-0004: Warning: Unable to open user preference file.

    Hi,
    I am creating an invoice header in Payable through open interface in r12. I have inserted one line in  ap_invoices_interface table.
    When I run Payables Open Interface Import request, it completes normal but invoice does not create.
    Please see below log file and provide your guidence.
    Payables: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    APXIIMPT module: Payables Open Interface Import
    +---------------------------------------------------------------------------+
    Current system time is 24-DEC-2013 12:39:46
    +---------------------------------------------------------------------------+
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    p_source='MANUAL INVOICE ENTRY'
    p_batch_name='test4'
    p_purge_flag='N'
    p_trace_switch='N'
    p_debug_switch='N'
    p_summary_flag='N'
    p_commit_batch_size='1000'
    p_user_id='19334'
    p_login_id='2499994'
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.AR8MSWIN1256
    Enter Password:
    REP-0004: Warning: Unable to open user preference file.
    MSG-00000: 0 invoice(s) were created during the process run
    MSG-00000: 0 invoice(s) were fetched during the process run
    MSG-00000:  summarize flagN
    MSG-00883: After Repport Trigger: Setting the Org Context to Multiple
    Report Builder: Release 10.1.2.3.0 - Production on Tue Dec 24 12:39:47 2013
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Regards
    Farooq

    Please also see if the following docs help.
    R12: Master Troubleshooting Guide for Supplier Contacts Open Interface Import Report (APXSCIMP) [Video] (Doc ID 1373699.1)
    R12: REP-0004 Error While Running Supplier Contacts Open Interface Import Program (APXSCIMP) (Doc ID 1195815.1)
    R12: APXSUIMP Ends With REP-0004 Error, But Output Does Not Display Reason for Rejection (Doc ID 1060824.1)
    Thanks,
    Hussein

  • Datablock from a custom view

    Hello,
    I have created a datablock manually which has the source as view.
    Added all the items which are to be displayed.
    when i run the form, the block shows me a message that Query caused no records to retrieve.( i have added execute query in the form too).
    I selected the view from backend, it has 71 rows.
    What properties should be set to ensure that the records are fetched.
    Note: Using Oracle form builder 6i
    Just the confirmation. in the data block Property the
    Data source type is TABLE
    Data source name is VIEW name
    is this correct?
    Note : Using oracle forms 6i
    Thanks,
    yadnesh
    Edited by: Yadnesh on May 31, 2013 12:03 AM

    Can you please let me know where do i have to set the org context or the org id in detail?Well, as I recall, you only need this if your EBS is configured for multiple organizations. It has been a while since I've worked with the EBS, but when I did we were a multi-org setup. Typically, you don't have to set the org or context when you run your form from the Application as this is already set for you. However, if your Custom Form does not include all of the objects from the TEMPLATE.fmb, you will run into problems because your Form will not be properly configured for the EBS framework. If you didn't create your custom form using the TEMPLATE.fmb, I strongly recommend you open the TEMPLATE.fmb and do "Save As" and save the TEMPLATE.fmb as your new form and them copy and paste all of the objects from your Custom Form into the new Custom Form you created from the template.
    If you started your Form from the TEMPLATE.fmb, then I recommend you talk to your Apps DBA or other senior developer on your project and confirm with them that you have included all of the required/necessary objects to support your EBS Custom Extensions.
    Also, if you haven't done this already, I recommend you take a look at the Oracle Applications Documentation library. Select your EBS version and then scroll to the Standards section and review the following documents:
    <ul>
    <li>Oracle Applications Developer's Guide
    <li>Oracle Applications User Interface Standards for Forms-Based Products
    <li>Oracle Application Framework Personalization Guide
    </ul>
    This documentation is a "must read" when working with the EBS.
    Finally, when you have an EBS related question (like this question) the best forum to ask your question in is the General EBS Discussion forum. My knowledge of EBS is very rusty. ;-)
    Sorry, I couldn't be more helpful, but the people in the EBS General Discussion forum will be able to help!
    Craig...

  • Error While Creating Customer Account Site.

    Hi ,
    I am creating a customer thru API's.
    I am succesffuly creating location,party,party site,party site use,customer account.But unable to create customer account site. I am getting the below error:
    Unable to process your transaction. The operating unit is either invalid or it cannot be derived. Please verify your Multi-Org profile options.
    Could anyone help me to resolve out this issue.

    Hi,
    What is the application release?
    Did you set the Application/Multi-org context properly before using this API?
    Note: 732671.1 - 'Change PO API' Errors with 'Multi-Org profile options' as Org Context Is Not Set Correctly
    Note: 420787.1 - Oracle Applications Multiple Organizations Access Control for Custom Code
    Note: 209185.1 - How To Set the Applications Context (FND_GLOBAL.APPS_INITIALIZE)
    Regards,
    Hussein

  • URGENT!!! - Applying existing credit memo to existing invoice

    Hi All,
    I have found a package (not a public API) which can be used to applying existing CM to existing INV, package is 'ARP_PROCESS_APPLICATION.CM_APPLICATION'. There are many input parameters that need to go in but I am just listing out the ones identified in package documentation:
    p_cm_ps_id - PS Id of the Credit Memo
    p_invoice_ps_id - PS Id of the transaction p_amount_applied - TO amount
    p_apply_date - Application date
    p_gl_date - GL Date
    p_ussgl_transaction_code - USSGL transaction code p_customer_trx_line_id - Line of the transaction applied
    p_module_name - Name of the module that called this procedure p_module_version - Version of the module that called this procedure
    while testing locally, I did set up the org context, initialized the application and provided values for all the variables but sent
    --> null for p_ussgl_transaction_code
    --> null for p_customer_trx_line_id
    --> 'ARREREVB' for p_module_name (this is actually not the module calling this program but gave a random value since the input is not being validated by the package)
    -->'1.0' for p_module_version (random value since it is not being validated)
    After setting up all these values the API is still erroring out on execution. Should I pass any other values to this private API? Did anyone successfully execute this private API ? if yes can you please guide me,thanks.
    Ajay

    Hi
    In the Invoice window Enter Debit or Credit Memo, Form the Match Button ,Select "Invoice"
    Select Match
    In find Invoice Match window Enter Search Creteria for Invoice
    If you want to see a invoice matched to purchase order enter the purchase order mumber
    Then Match
    And while making Payment you have to select that Debit or Credit memo then only it is removed form the Supplier
    Thanks
    Sunil

  • InitiateTask using API

    Hi all,
    I need start my process using BPEL API. I found initiateTask method of ITaskService interface but I don't understand how use it. Can you help me please?
    My process name is "Test". Input parameters are 2 string: param1 and param2.
    If I use BPEL console or webservice, I start my process without problems, but I want start it using API
    Thanks in advance
    LS

    Seems Org context is not properly set.
    1) Set the org context as follows:
    Use the following queries to find responsibility id and user id:
    a. Query to find responsibility id
    select responsibility_id,responsibility_name
    from fnd_responsibility_vl
    where application_id = 222
    and responsibility_name like '%&responsibility_name%';
    b. Query to find user id
    select user_id,user_name
    from fnd_user
    where user_name = '&user_name';
    For example:
    if resp_id = 50627 and user_id = 1253, then execute the following:
    fnd_global.apps_initialize(user_id => 1253, resp_id => 50627, resp_appl_id => 222 );
    mo_global.set_policy_context('S',<your_org_id>);
    2) Run the API.
    => Refer note 437119.1 for additional details
    Edited by: Srinivas Velumuri on May 17, 2011 5:21 AM

Maybe you are looking for

  • Cannot Install Software Update after a Clean Install

    I did a clean install of 10.5. I ran the initial Software Update and proceeded to install all the available updates including Version 10.5.4. I installed some software and later did another Software Update check. There were 2 more updates available.

  • Cannot view all of Timeline anymore

    Hello, I'm very new to Flash 8. I have a template I've been playing with that has several different sections. About us, Contact us, Services, etc. Along the way, I must have clicked on something to change my Timeline view. I can play the first part o

  • TT0846: Data store connection invalid or not current

    In one of our environments we started getting TT0846 error randomly. Everytime we get this error we have to restart our application to reconnect to datasore. When we checked the error logs, we found the following: 08:32:00.56 Err : : 20084: 20089/0x1

  • Where i can find the camera sittings in 3gs ios5.0.1

    where is the camera sitting in ios 5.0.1 like nightvisin (nightmode) for take pic in low light  and how many pixel i use for pic & vides

  • Can any one tell me Regarding Withholding Tax

    Actually ,While making a transaction in A/P invoice ,I have activativated  the subject to withholding tax in the BP Master Data.And in the item master data tab page for the particular item I have also activated thebwithholding tax liable.So the real