User Function Name wrong resultset in Oracle Apps Query

Hi,
I am using the below query to extarct the user function names alonng with responsilibity .But doing so i am getting a User Function Name for eg 'Cross Validation Rules' under Order Management User.But thats wrong.Cross validation rules should exists in Receivables,GL and Payables.
select distinct frv.menu_id, frv.responsibility_id, frv.responsibility_name, fff.function_name, ffft.user_function_name
from
fnd_responsibility_vl frv,
fnd_responsibility frp,
fnd_form_functions fff,
fnd_form_functions_tl ffft,
fnd_resp_functions resp,
fnd_menu_entries mnu,
fnd_menus fmn
where
fff.function_id = ffft.function_id
and mnu.menu_id=frp.menu_id
and mnu.menu_id=fmn.menu_id
and frv.responsibility_id=resp.responsibility_id
and mnu.function_id=ffft.function_id
and resp.rule_type='M'
and frv.menu_id in (select me.menu_id
from fnd_menu_entries me
start with me.function_id = fff.function_id
connect by prior me.menu_id = me.sub_menu_id )
and (frv.responsibility_name like '%Order%')
order by 1
Kindly any help will be helpful for me

What is your application release?
I am using the below query to extarct the user function names alonng with responsilibity .But doing so i am getting a User Function Name for eg 'Cross Validation Rules' under Order Management User.But thats wrong.Cross validation rules should exists in Receivables,GL and Payables.Please try the queries in these docs.
Script To Extract Submenu And Function Information About A Menu [ID 458701.1]
HOW TO GENERATE MENU TREE FOR A MENU ATTACHED TO A RESPONSIBILITY IN ORACLE APPLICATIONS 11i ? [ID 312014.1]
Thanks,
Hussein

Similar Messages

  • Change User Function Name

    Hi all,
    I'm trying to create menus & responsibilities using data loader so that I don't need to recreate it manually but data loader crashed because some of the user function name are the same.
    For example, open Sysadmin -> Application -> Menu -> AP_PAYMENTS_ENTRY_GUI12 in Vision. In Seq. 3 we have Payments menu with AP_APXPAWKB_CHECK_MENU submenu and Payments functions. Tried to search in Functions LOV and we'll get some User Function Name equal to Payments but different Function Name.
    I'd tried to change some User Function Name and all the menus that directed to it changed too, the referential integrity worked I think :P but I want to ask whether it will caused any trouble if I changed it in Test & Production environment?
    Thx.

    I don't consider those to be "hacks" in my book
    They are just bad design approaches:
    In the first case, you will loose the audit trail to the caller.
    In the second case you will be forced to grant authority to the end user to open a step in another user's context. That will open another backdoor for them as well in SM37 etc...
    > PS: If the real problem is just that you cannot grant the authorization on a certain function module as it is used in different standard applications so the authorization for your program would result in to powerful authorizations in sap standard transactions, the I would copy the function module and use it. This Z fm could be authorized bypassing this problem.
    A better option with less coding involved, would be to use SU24. This way you keep the audit trail and isolate the transaction as being an exception to the standard checks for one specific object. An auditor might wonder why a user can release a PO when they don't have one of the required objects, but they will easily find it if they know where to look.
    It is also easy to do this in a secure way, such that you can document it for the auditor and give it to them upfront to understand. A good auditor should understand and appreciate that.
    If you achieve this programmatically with tricks, you will have a tough time... (as will the auditor).
    I have done many audits and also hunted down some dodgey coding in my time. The idea should not be to run away from the auditors, but rather expect that they know what they are talking about and make your design compliant with their and your client's control requirements.
    This should be the approach regardless of whether or not you can change sy-uname as a developer.
    The original question might also have been: "Can I pass a backdated authority-check against a user who once had the authorizations way back when?" Same thing... bad idea...
    Cheers,
    Julius

  • Need a function name for Sql and Oracle

    Retrieving value of next line by doing opteration in previous row.

    Can you rephrase the question? Or better yet, provide an example? I'm not sure I understand what you are asking.
    My best guess is that you are looking for the analytic functions LEAD or LAG in Oracle, assuming you are on a relatively recent Oracle version. If by "SQL and Oracle" in your subject you mean "SQL Server and Oracle" (SQL is a language that all relational databases implement, SQL Server is Microsoft's relational database), I have no idea how (or if) you can do something similar with a built-in function in SQL Server. You would want to post in a SQL Server group to see how they handle that sort of thing.
    Justin

  • Identify user logged in discoverer as a oracle apps user

    Hi Guys,
    I am using web based to log in to discoverer as a oracle applications user. there is a report in one responsibility related to PO. My question is, can i catch the user who is logged in (his username or user ID) to be printed on the report.
    or
    I created a report which can see the details of the requisition (req ID, line number, Requestor, Approver, Requestor Dept, PO Number, etc). My report should display only the requisitions created by the user who is logged in who will be the requestor here in this case. I cant pass requestor as the parameter. It should automatically take the user logged in as requestor and display only his requisitions on to the output.
    Help Appreciated.
    Thanks

    use FND_GLOBAL.USER_NAME to get current user and pass it as parameter

  • Automatically disable user accounts after specific number days Oracle Apps

    Hi All,
    Is there a way, using group policy or any other method to automatically disable a user account if it hasnt been used (ie,, no has logged on using that account) after a certain amount of days??
    This is something I would like to apply enterprise wide, so setting expiry dates on each users object is out, and obviously I only want to apply this to inactive accounts.
    Thanks in advance
    Saquib

    Saquib,
    There is no such profile option. However, you can write a code to check LAST_LOGON_DATE in FND_USER table and based on this you can disable/lock the account.

  • Oracle apps query-p2p cycle

    Hi all....
    I am using oracle 10g........
    The following query is a union of two queries....The second query is a subset of the first meaning that it has fewer tables and fewer select columns as well....(I have to use union on the two queries....for a gud reason) .What i want is that the union return only the superset records from result of the union of the two queries when i pass a parameter at runtime like supplier_name as mentioned in the the query below .......
    /* Formatted on 2012/05/14 16:49 (Formatter Plus v4.8.8) */
    SELECT * FROM(SELECT DISTINCT reql.unit_meas_lookup_code "UNIT",
    reqh.type_lookup_code "PR_TYPE",
    reql.document_type_code "SUBTYPE",
    reqh.segment1 "PR_NO", reqh.creation_date "PR DATE",
    mtb.segment1 "ITEM_CODE",
    pol.item_description "DESCRIPTION",
    mcb.segment1 "INVENTORY_CATEGORY",
    reql.manufacturer_part_number "MFG NO/DRG NO",
    poh.authorization_status "AUTHORIZATION STATUS",
    papf.full_name "BUYER", NULL "CUSTOMER",
    DECODE (poh.type_lookup_code,
    'RFQ', poh.segment1
    ) "RFQ NO",
    DECODE (poh.type_lookup_code,
    'RFQ', poh.creation_date
    ) "RFQ DATE",
    NULL "RFQ SUPPLIER",
    DECODE (poh.type_lookup_code,
    'QUOTATION', poh.segment1
    ) "QTN NO",
    DECODE (poh.type_lookup_code,
    'QUOTATION', poh.reply_date
    ) "QTN DATE",
    DECODE (poh.type_lookup_code,
    'STANDARD', poh.segment1,
    'BLANKET', poh.segment1,
    'PLANNED', poh.segment1
    ) "PO_NO",
    DECODE (poh.type_lookup_code,
    'STANDARD', poh.creation_date,
    'BLANKET', poh.creation_date,
    'PLANNED', poh.creation_date
    ) "PO DATE",
    pv.vendor_name "SUPPLIER",
    NULL "SUPPLIER ACKNOWLEDGMENT DATE",
    TRUNC
    (reqh.creation_date
    - TRUNC (poh.creation_date)
    "NO OF DAYS TAKEN FROM PR TO PO",
    DECODE (rcvh.asn_type,
    'ASBN', rcvh.shipment_num
    ) "ASBN NO",
    rcvh.receipt_num "RECEIPT NO",
    rcvh.creation_date "RECEIPT DATE",
    apia.invoice_num "INVOICE_NO",
    NULL "QUALITY INSPECTION DATE",
    rcvt.inspection_status_code "INSPECTION RESULT",
    NULL "STOCKING DATE",
    TRUNC (poh.creation_date)
    - TRUNC (reqh.creation_date) "NO OF DAYS TAKEN FROM",
    NULL "PV NO", NULL "PV DATE",
    apc.amount "PAYMENT RELEASE AMOUNT",
    apc.released_date "PAYMENT RELEASE DATE",
    apc.payment_method_code "PAYMENT RELEASE MODE",
    NULL "NO OF DAYS TAKEN FROM RECEIPT"
    FROM po_requisition_headers_all reqh,
    po_requisition_lines_all reql,
    po_req_distributions_all reqd,
    po_distributions_all pod,
    po_headers_all poh,
    po_lines_all pol,
    po_line_locations_all poll,
    rcv_shipment_headers rcvh,
    rcv_shipment_lines rcvl,
    rcv_transactions rcvt,
    ap_invoice_distributions_all apid,
    ap_invoices_all apia,
    ap_payment_schedules_all aps,
    ap_invoice_payments_all app,
    ap_checks_all apc,
    per_all_people_f papf,
    po_vendors pv,
    mtl_system_items_b mtb,
    mtl_categories_b mcb,
    mtl_item_categories mic
    WHERE reqh.requisition_header_id =
    reql.requisition_header_id
    AND reql.requisition_line_id = reqd.requisition_line_id
    AND pod.req_distribution_id = reqd.distribution_id
    AND pol.po_line_id = pod.po_line_id
    AND poh.po_header_id = pol.po_header_id
    AND pol.po_line_id = poll.po_line_id
    AND pod.po_distribution_id = apid.po_distribution_id
    AND pod.po_distribution_id = rcvt.po_distribution_id
    AND rcvl.shipment_header_id = rcvh.shipment_header_id
    AND rcvh.shipment_header_id = rcvt.shipment_header_id
    AND rcvt.po_distribution_id = apid.po_distribution_id
    AND app.check_id = apc.check_id
    AND apid.invoice_id = apia.invoice_id
    AND apia.invoice_id = app.invoice_id
    AND app.invoice_id = aps.invoice_id
    AND poh.agent_id = papf.person_id
    AND poh.vendor_id = pv.vendor_id
    AND pol.item_id = mtb.inventory_item_id
    AND mic.inventory_item_id = pol.item_id
    AND poh.authorization_status = 'APPROVED'
    AND mcb.category_id = mic.category_id
    UNION
    SELECT DISTINCT NULL "UNIT", NULL "PR_TYPE", NULL "SUBTYPE",
    NULL "PR_NO", NULL "PR DATE",
    mtb.segment1 "ITEM_CODE",
    pol.item_description "DESCRIPTION",
    mcb.segment1 "INVENTORY_CATEGORY", NULL,
    poh.authorization_status "AUTHORIZATION STATUS",
    papf.full_name "BUYER", NULL "CUSTOMER",
    DECODE (poh.type_lookup_code,
    'RFQ', poh.segment1
    ) "RFQ NO",
    DECODE (poh.type_lookup_code,
    'RFQ', poh.creation_date
    ) "RFQ DATE",
    NULL "RFQ SUPPLIER",
    DECODE (poh.type_lookup_code,
    'QUOTATION', poh.segment1
    ) "QTN NO",
    DECODE (poh.type_lookup_code,
    'QUOTATION', poh.reply_date
    ) "QTN DATE",
    DECODE (poh.type_lookup_code,
    'STANDARD', poh.segment1,
    'BLANKET', poh.segment1,
    'PLANNED', poh.segment1
    ) "PO_NO",
    DECODE (poh.type_lookup_code,
    'STANDARD', poh.creation_date,
    'BLANKET', poh.creation_date,
    'PLANNED', poh.creation_date
    ) "PO DATE",
    pv.vendor_name "SUPPLIER",
    NULL "SUPPLIER ACKNOWLEDGMENT DATE", NULL,
    DECODE (rcvh.asn_type,
    'ASBN', rcvh.shipment_num
    ) "ASBN NO",
    rcvh.receipt_num "RECEIPT NO",
    rcvh.creation_date "RECEIPT DATE",
    apia.invoice_num "INVOICE_NO",
    NULL "QUALITY INSPECTION DATE",
    rcvt.inspection_status_code "INSPECTION RESULT",
    NULL "STOCKING DATE", NULL, NULL "PV NO",
    NULL "PV DATE", apc.amount "PAYMENT RELEASE AMOUNT",
    apc.released_date "PAYMENT RELEASE DATE",
    apc.payment_method_code "PAYMENT RELEASE MODE",
    NULL "NO OF DAYS TAKEN FROM RECEIPT"
    FROM po_distributions_all pod,
    po_headers_all poh,
    po_lines_all pol,
    rcv_shipment_headers rcvh,
    rcv_shipment_lines rcvl,
    rcv_transactions rcvt,
    ap_invoice_distributions_all apid,
    ap_invoices_all apia,
    ap_payment_schedules_all aps,
    ap_invoice_payments_all app,
    ap_checks_all apc,
    per_all_people_f papf,
    po_vendors pv,
    mtl_system_items_b mtb,
    mtl_categories_b mcb,
    mtl_item_categories mic
    WHERE pol.po_line_id = pod.po_line_id
    AND poh.po_header_id = pol.po_header_id
    AND pod.po_distribution_id = apid.po_distribution_id
    AND pod.po_distribution_id = rcvt.po_distribution_id
    AND rcvl.shipment_header_id = rcvh.shipment_header_id
    AND rcvh.shipment_header_id = rcvt.shipment_header_id
    AND rcvt.po_distribution_id = apid.po_distribution_id
    AND app.check_id = apc.check_id
    AND apid.invoice_id = apia.invoice_id
    AND apia.invoice_id = app.invoice_id
    AND app.invoice_id = aps.invoice_id
    AND poh.agent_id = papf.person_id
    AND poh.vendor_id = pv.vendor_id
    AND pol.item_id = mtb.inventory_item_id
    AND mic.inventory_item_id = pol.item_id
    AND poh.authorization_status = 'APPROVED'
    AND mcb.category_id = mic.category_id) a
    WHERE 1 = 1
    AND ( a.pr_type = NVL (:pr_type, a.pr_type)
    OR (:pr_type IS NULL AND a.pr_type IS NULL)
    AND ( a.pr_no = NVL (:pr_no, a.pr_no)
    OR (:pr_no IS NULL AND a.pr_no IS NULL)
    AND ( a.unit = NVL (:unit_lookup_code, a.unit)
    OR (:unit_lookup_code IS NULL AND a.unit IS NULL)
    AND a.supplier = NVL (:supplier_name, a.supplier)
    AND a.inventory_category = NVL (:inventory_category, a.inventory_category)
    AND a.buyer = NVL (:buyer_name, a.buyer)
    AND a.invoice_no = NVL (:invoice_no, a.invoice_no)
    AND a.item_code = NVL (:item_code, a.item_code)
    Edited by: Dave on May 14, 2012 5:08 AM
    Edited by: Dave on May 14, 2012 5:14 AM

    Dave wrote:
    What i want is that the union return only the superset records from result of the union of the two queriesThat is what Union does.
    If it doesn't, then it means it's not real duplicates.
    For example :Scott@my11g SQL>with
      2  table_A(val) as (
      3  select 'This is a duplicate' from dual
      4  union all select 'This is another' from dual
      5  union all select 'This is not' from dual
      6  )
      7  ,table_B(val) as (
      8  select 'This is a duplicate' from dual
      9  union all select 'This is another' from dual
    10  )
    11  ------ end of sample data ------
    12  select val from table_A
    13  union
    14  select val from table_B ;
    Scott@my11g SQL>/
    VAL
    This is a duplicate
    This is another
    This is notSee ? only 3 rows from the 5 (3+2) originals.
    But if I add some pseudo columns Which_table with different values for each table, then :Scott@my11g SQL>with
      2  table_A(val) as (
      3  select 'This is a duplicate' from dual
      4  union all select 'This is another' from dual
      5  union all select 'This is not' from dual
      6  )
      7  ,table_B(val) as (
      8  select 'This is a duplicate' from dual
      9  union all select 'This is another' from dual
    10  )
    11  ------ end of sample data ------
    12  select val, 'from table_A' which_table from table_A
    13  union
    14  select val, 'from table_B' from table_B ;
    VAL                 WHICH_TABLE
    This is a duplicate from table_A
    This is a duplicate from table_B
    This is another     from table_A
    This is another     from table_B
    This is not         from table_AThere is now 5 rows, they are no longer duplicates.

  • Clarification on using function in where clause of oracle sql query

    I have an issue in regarding function using where clause of sql query..
    We are facing performance issue while executing query, so in what ways to improve the performance of the query which i have posted below.
    select col ,case when my_function(parameter)
    from tab1 a ,tab2 b,tabl3 c
    where a.column1=b.column2
    and b.column3 =c.column6
    and my_function(parameter)>0
    Regards
    Dinesh
    Edited by: wild fire on May 18, 2012 4:15 PM

    Dinesh,
    remind that when you use a function in the where clause it normally will get started for each record in the table.
    So your answer is two-fold:
    1. make the function only start when needed by adding a function based index on the table (this will make inserts and updates slower)
    2. make the function faster by adding the DETERMINISTIC clause if possible. this will make Oracle "cache" the result of the function.
    Regards,
    Richard
    blog: http://blog.warp11.nl
    twitter: @rhjmartens
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Vb-oracle app - query failing

    i am having a problem running a select statement from VB6 to an Oracle 8 database.
    the SQL statement works when the number of records in the table PrData is small (300 records) but not when there are lots of records (166800 records). when the query is executed in VB, it runs for approximately a minute then fails with error 3669, description 'Execution cancelled'.
    i can run the same query in the SQL Worksheet against the large database and it does not fail and give an error. it returns the correct records.
    is there a setting i am missing to allow the query to finish? why does it work from the worksheet but not from VB? any help would be greatly appreciated.
    here is how i'm connecting and opening the recordset:
    'connect:
    Set wrkMM = CreateWorkspace("WKS", "", "", dbUseODBC)
    sStr = "ODBC;DSN=" + Trim(oCent.ODBCSource) + ";UID=" + xstrOracleName + ";PWD=" + xstrOraclePswd + ";"
    ' create connection
    wrkMM.DefaultCursorDriver = dbUseODBCCursor
    Set conMC = wrkMM.OpenConnection("", dbDriverNoPrompt, bReadOnly, sStr)
    'get records
    conMC.OpenRecordset(strSQL, dbOpenForwardOnly)
    the SQL statement is:
    SELECT PrData.ProjectID, PrData.MetricId, PrMetric.DisplayFormat, PrData.DataValue, PrData.CollectDate, PrData.ProductID FROM PrMetric, PrData WHERE (PrMetric.ProjectID in (71)) AND (PrMetric.DataType <> 3) AND (PrMetric.GlobalID = 34 AND (PrMetric.PushData = 1) AND PrMetric.MetricID IN (Select MetricID from PrCatMetric Where ProjectID in (71))) AND (PrData.MetricId = PrMetric.MetricID) ORDER BY PrData.ProjectId, PrData.CollectDate, PrData.ProductID;
    null

    i am having a problem running a select statement from VB6 to an Oracle 8 database.
    the SQL statement works when the number of records in the table PrData is small (300 records) but not when there are lots of records (166800 records). when the query is executed in VB, it runs for approximately a minute then fails with error 3669, description 'Execution cancelled'.
    i can run the same query in the SQL Worksheet against the large database and it does not fail and give an error. it returns the correct records.
    is there a setting i am missing to allow the query to finish? why does it work from the worksheet but not from VB? any help would be greatly appreciated.
    here is how i'm connecting and opening the recordset:
    'connect:
    Set wrkMM = CreateWorkspace("WKS", "", "", dbUseODBC)
    sStr = "ODBC;DSN=" + Trim(oCent.ODBCSource) + ";UID=" + xstrOracleName + ";PWD=" + xstrOraclePswd + ";"
    ' create connection
    wrkMM.DefaultCursorDriver = dbUseODBCCursor
    Set conMC = wrkMM.OpenConnection("", dbDriverNoPrompt, bReadOnly, sStr)
    'get records
    conMC.OpenRecordset(strSQL, dbOpenForwardOnly)
    the SQL statement is:
    SELECT PrData.ProjectID, PrData.MetricId, PrMetric.DisplayFormat, PrData.DataValue, PrData.CollectDate, PrData.ProductID FROM PrMetric, PrData WHERE (PrMetric.ProjectID in (71)) AND (PrMetric.DataType <> 3) AND (PrMetric.GlobalID = 34 AND (PrMetric.PushData = 1) AND PrMetric.MetricID IN (Select MetricID from PrCatMetric Where ProjectID in (71))) AND (PrData.MetricId = PrMetric.MetricID) ORDER BY PrData.ProjectId, PrData.CollectDate, PrData.ProductID;
    null

  • Oracle APPS Query for Natural Accoun in the Chart of account

    Hello Guys,
    I am working on a query to display the natural account listing in a report, I have made the below query
    select  application_id ,SEGMENT_NAME, flex_value ACCOUNT_CODE , DESCRIPTION ACCOUNT_DESCRIPTION
    from FND_FLEX_VALUES,FND_ID_FLEX_SEGMENTS ,fnd_flex_values_tl
    where
    FND_ID_FLEX_SEGMENTS.APPLICATION_ID='101'
    AND SEGMENT_NAME='Natural Accounts'
    and FND_FLEX_VALUES.FLEX_VALUE_SET_ID=FND_ID_FLEX_SEGMENTS.FLEX_VALUE_SET_ID
    AND FND_FLEX_VALUES.FLEX_VALUE_ID=fnd_flex_values_tl.FLEX_VALUE_ID
    Its showing me the correct values but there is repetition of record each row is displayed 4 times, I have checked the joins and fields but still cant find any idea what could be causing this duplication,
    Any help will be appreciated
    Regards              

    Refer this query, you can get
    select FIS.SEGMENT_NAME, FFV.FLEX_VALUE, FIF.ID_FLEX_STRUCTURE_CODE , FSA.*
    from FND_SEGMENT_ATTRIBUTE_VALUES FSA, FND_ID_FLEX_SEGMENTS_VL FIS, FND_FLEX_VALUES_VL FFV, FND_ID_FLEX_STRUCTURES FIF
    where FSA.attribute_value='Y'
    and FSA.ID_FLEX_CODE = 'GL#'
    and FSA.SEGMENT_ATTRIBUTE_TYPE = 'GL_ACCOUNT' --Natural Account Segment
    and FIF.ID_FLEX_STRUCTURE_CODE='ACCOUNTING_FLEXFIELD'
    and FSA.APPLICATION_COLUMN_NAME = FIS.APPLICATION_COLUMN_NAME
    and FIS.FLEX_VALUE_SET_ID = FFV.FLEX_VALUE_SET_ID
    and FIS.ID_FLEX_NUM=FIF.ID_FLEX_NUM
    and FIS.ID_FLEX_CODE=FIF.ID_FLEX_CODE
    AND FSA.ID_FLEX_CODE= FIF.ID_FLEX_CODE
    and FSA.ID_FLEX_NUM=FIF.ID_FLEX_NUM
    thanks

  • How to register the Discoverer workbook in Oracle Apps 12i

    I am trying to access a workbook form the Apps side. I did all the things which I got from metalink except the last step 6. I reloginned and check but it is giving the error like
    "The webpage cannot be found ".
    Please assisst me.
    1. Create the workbook.
    2. Open the workbook in the Discoverer Desktop or Plus edition and go to
    'File->Manage Workbooks->Properties' look for the value for 'Identifier'. Save this value.
    3. Create a form function. Open the Function form and create a new function.
    Define the Form Function.
    The form function definition includes the properties listed in these tabs:
    3.1 Description tab:
    3.1.1 Function Name: BIS_[X] (use something to distinguish it from seeded functions)
    3.1.2 User Function Name: This is the name that will show in the menu
    3.1.3 Description: Add a description of the function if you want.
    3.2 Properties tab:
    3.2.1 Type: Select "SSWA plsql function"
    3.2.2 Maintenance Mode Support: Leave as "None"
    3.2.3 Context Dependence: Leave as "Responsibility"
    3.3 Form tab:
    3.3.1 Form: Leave the field blank.
    3.3.2 Application: Leave the field blank.
    3.3.3 Parameters: workbook=<(workbook identifier from step2) &PARAMETERS=sheetid~worksheet id*param_parameter name One~Parameter One Value*param_parameter name Two~Parameter Two Value*
    Eg; 'workbook=TEST_WORKBOOK&PARAMETERS=sheetid~1*' would open sheet 1 of the workbook.
    # According to the Applications Administration Edition the workbook name will also work here.
    See Expanation section below for more information on setting up parameters and changes fro Discoverer Viewer.
    3.4 Web HTML tab:
    3.4.1 HTML call : Set as OracleOasis.RunDiscoverer
    3.5 Web Host tab:
    3.5.1 Leave all fields blank.
    3.6 Region tab:
    3.6.1 Leave all fields blank.
    3.7 Save the form.
    4. Open the menu form as sysadmin.
    4.1 Search for the main menu under which you want the link to appear.
    4.2 Add the information you need such as prompt, submenu, description etc.
    4.3 Enter into the Function field the name of the function you created in step 3.
    4.4 Save the menu form.
    A message will appear saying that a concurrent program will run to regenerate the menus.
    You can cancel it if you want and do step 5 below if the menu does not appear after the concurrent program runs.
    5. Use adadmin and recompile the menu information to make the changes appear.
    6. Bounce Apache and Forms.
    Thanks,
    ABR

    Hi Hussein,
    Very much thanks to you Hussein. I gone through the doc 471303.1 and came to know that the options and values which we have to take for Launching Discoverer Report from 11i & 12i is differenet. Ohh great its working and I have a question when I am selecting the Discoverer Report function from the Apps the follwoing error is coming.
    A connection error.
    - Oracle BI Discoverer is unable to complete the connection initialization.
    - Default or specified schema containing EUL tables is inaccessible and asking for the log in details.
    Can't we go directly to the Discoverer Viewer where we can see the Worksheets without coming through the login page.
    Once again thank you Hussein.
    ABR.

  • How to delete a project in Oracle apps R12

    Hi
    OS RHEL 5.5
    Database 11.1.0.7
    Applications R12
    Initially I have created a project in oracle apps from wrong template and modified the template then created a project with the same modified template.
    Now the wrong project needs to be deleted so how to delete the project which had been created from wrong template in oracle apps R12 and integrated project with MSP.
    Both the wrong and correct projects are referring to the same template.
    Please help me to delete the project as it is done in production database.
    Rgrd
    Edited by: 955685 on Feb 4, 2013 8:10 AM

    955685 wrote:
    Hi
    OS RHEL 5.5
    Database 11.1.0.7
    Applications R12
    Initially I have created a project in oracle apps from wrong template and modified the template then created a project with the same modified template.
    Now the wrong project needs to be deleted so how to delete the project which had been created from wrong template in oracle apps R12 and integrated project with MSP.
    Both the wrong and correct projects are referring to the same template.
    Please help me to delete the project as it is done in production database.
    Rgrd
    Edited by: 955685 on Feb 4, 2013 8:10 AMPlease see these docs/links.
    Delete Project Functionality not Working [ID 1060648.1]
    PRC: Delete Project Performance Reporting Data Completes With Error ORA-12838 ORA-6512 [ID 748674.1]
    How Can the PA Period Type Be Changed if It Has Been Entered Incorrectly? [ID 881424.1]
    PAXPREPR Unable To Delete Project [ID 874642.1]
    http://www.oracle.com/pls/ebs121/search?word=Delete+AND+Project&format=ranked&remark=quick_search
    Thanks,
    Hussein

  • Implementing Security For ADF Pages when integrated with Oracle APPS

    Hi,
    Can anyone please let me know the solution to the below problem ?
    I have an ADF application that is deployed on a weblogic server. An URL is generated to access the ADF Pages.
    I have created one more simple jsp (Launch.jsp) which redirects to this URL on page load.
    I am using Oracle APPS where:
    ->I registered a form function referring to Launch.jsp
    ->I am referring form function in a responsibility , attaching that to a menu
    ->When the valid oracle user logs in, I am sending all oracle apps environment variables (User id , Responsibility id, application id ) for that session
    What my issue is :
    ->The URL along with the parameters that I am sending from the Launch.jsp to the ADF Page is visible to the user. So, even if the Oracle APPS user has not logged in, anybody who knows the URL can access the ADF Pages.
    ->So, Is there any way to implement the security so as, even if anyone knows the URL of the ADF Page cannot access the ADF Pages without the valid user being logged-in through the Oracle APPS.
    I am using Jdeveloper 11g.
    Please let me know if you need anymore details.
    Thanks in advance,
    Kavitha

    Please help me out if anyone has a solution to this problem.
    Thanks,
    Kavitha

  • Print message in function name not present

    I have to execute a function from a table . It is like
    cursor c1 is select fun_name from config_Table loop
    v_format_sql := 'select '||c1.fun_name|| ' from dual ';
    execute immediate v_format_sql into format_count;
    end loop;
    But if the function in the config_Table is not there or the function name is wrong it exits from the program
    Please help me to print the text "function name wrong" if the function name does not exists in the database.

    Hi,
    You can do it like this:
    SELECT COUNT(*) INTO v_func_count FROM user_objects
    WHERE OBJECT_TYPE='FUNCTION' AND STATUS='VALID'
    AND object_name = TO_UPPER(c1.fun_name);
    IF v_func_count = 0 THEN
    -- Function does not exist or not in valid state.
    END IF;
    Regards

  • Using Discoverer with Oracle Apps

    Hi,
    I have Oracle Apps vision instance on my laptop. I installed Discoverer Administrator and Desktop. But when I connect through Desktop, it only recognizes database users. When I check Application User check box still it did not recognize the Oracle Apps user 'SYSADMIN', the error message is 'Invalid username/password' which is a valid user and I could login to Oracle Apps using it and it has many responsibilities.
    Is there a step I am missing to synchronize Apps users with database or Discoverer Administrator/Desktop so that I can login to Desktop using Apps user to create workbooks.
    Thanks,
    Suresh

    Hi Rod,
    Thanks for the reply. At the time of creation of EUL it gives two options
    1. Grant Access to Public
    2. New EUL is for use by Oracle Applications users only
    When I selected the second one I am not able to access it by any user from desktop tool but when I used the first option I can only login from Desktop using database users only not Appliations users, it gives error message 'Invalid username/password'. I dont see anywhere else I need to do something while creating EUL.
    Please give me the insight into this.
    Thanks,
    Suresh

  • Incorrect Results When Using an In-Line View and User Function in 10g

    My developers are complaining of incorrect Select statement results when using an in-line view along with a user defined function. Below is the statement:
    select test_f(wo1)
    from
    (SELECT a.WORK_ORDER_NBR, b.work_order_nbr wo1/*, facility_f(A.FACILITY),
    A.PLANNER, A.WO_STATUS, mil_date(A.WO_STATUS_DATE)*, A.WORK_ORDER_TYPE,
    A.WO_DESCRIPTION
    FROM TIDWOWRK A, TIDWOTSK B
    WHERE B.WORK_ORDER_NBR(+) = A.WORK_ORDER_NBR))
    where wo1 is null;
    Test_f() is a user defined function and the above query returns thousands of rows. It should return 308 rows. It is apparent that the target database is not evaluating the "where wo1 is null;" clause.
    select to_char(wo1)
    from
    (SELECT a.WORK_ORDER_NBR, b.work_order_nbr wo1/*, facility_f(A.FACILITY),
    A.PLANNER, A.WO_STATUS, mil_date(A.WO_STATUS_DATE)*, A.WORK_ORDER_TYPE,
    A.WO_DESCRIPTION
    FROM TIDWOWRK A, TIDWOTSK B
    WHERE B.WORK_ORDER_NBR(+) = A.WORK_ORDER_NBR))
    where wo1 is null;
    In the above query return 308 rows. The user function was replaced by an Oracle function. The Where clause is now evaluated correctly.
    The query is executed from an Oracle 10g R2 database and retrieves data from a 9.2.0.6 database.
    I've seen a little information on Metalink. It appears that there was some trouble in 9i, but were fixed in a 9.2.0.6 patch. I don't see any information about a 10.2.0.2 database.
    Anyone have any experiences or a successful solution. I suspect that I will need to report this to Oracle and wait for a patch.
    Thanks,
    John

    I can only think of two reasons for this behaviour:
    1) You are executing these two queries from two different users and there is some policy on the table.
    2) The function doesn't do an upper, but returns null a lot of times, even when the input is a not null value, like this:
    SQL> create table tidwowrk
      2  as
      3  select 1 id, 'A' work_order_nbr, 'DST' facility from dual union all
      4  select 2, null, 'TRN' from dual union all
      5  select 3, 'C', 'DST' from dual
      6  /
    Tabel is aangemaakt.
    SQL> create table tidwotsk
      2  as
      3  select 'A' work_order_nbr from dual union all
      4  select 'B' from dual
      5  /
    Tabel is aangemaakt.
    SQL> create or replace function test_f (a in varchar2) return varchar2
      2  is
      3  begin
      4    return case a when 'A' then null else a end;
      5  end;
      6  /
    Functie is aangemaakt.
    SQL> select count(*)
      2    from ( SELECT a.WORK_ORDER_NBR
      3                , test_f(b.work_order_nbr) wo1
      4             FROM TIDWOWRK A
      5                , TIDWOTSK B
      6            WHERE B.WORK_ORDER_NBR(+) = A.WORK_ORDER_NBR
      7              and a.facility in ('DST', 'TRN', 'SUB')
      8         )
      9   where wo1 is null
    10  /
                                  COUNT(*)
                                         3
    1 rij is geselecteerd.
    SQL> select count(*)
      2    from ( SELECT a.WORK_ORDER_NBR
      3                , to_char(b.work_order_nbr) wo1
      4             FROM TIDWOWRK A, TIDWOTSK B
      5            WHERE B.WORK_ORDER_NBR(+) = A.WORK_ORDER_NBR
      6              and a.facility in ('DST', 'TRN', 'SUB')
      7         )
      8   where wo1 is null
      9  /
                                  COUNT(*)
                                         2
    1 rij is geselecteerd.Regards,
    Rob.

Maybe you are looking for

  • Delete Track from iTunes Library if in User Playlist

    Hello I want to delete [music] tracks from the main iTunes [10.7] library if they are in a user playlist. I saw (on dougscripts.com) an approach where the database id was obtained from the track in the playlist and this was then used to delete from t

  • Corporate group match code

    Hi, Can anyone guide me on how to create a Match code for Corporate group field in the Vendor Master? and create a list of possible values?. Thanks, Cecilia

  • I want a PDA for my confidenti​al data

    I have a LifeDrive, on which I keep my confidental data and always keep it off the grid.  (I also have a smart phone, which is, of course, connected.)  I would like to continue this set-up, but see that when I give up my last Windows XP machine, I'll

  • How Can I increase performance of Query with Distinct Keyword

    Dear Experts, In my Query when I execute this without Distinct it give result very soon, But when I excute this with Distinct its performance is very slow is there any option for increase the performance with Distinct . I have to use Distinct accordi

  • Non facing pages with two masters

    My pre-press contact has advised me to create documents without facing pages checked. I'm not 100% sure why since I'll be exporting to .pdf anyway, allowing them to impose the pages.  She just said that facing pages "nearly always cause problems." Ho