Query to find responsibilities from backend ?

hello,
When I check the resp of a particular user thru Define User scrren, I am able to see the resp
But when I am checking with the following query, it says "no rows selected"
The same query works for other user
Can someone please give the right query
select a.USER_NAME, a.EMPLOYEE_ID, b.RESPONSIBILITY_ID, c.RESPONSIBILITY_NAME, b.START_DATE, b.END_DATE
from apps.FND_USER a, apps.FND_USER_RESP_GROUPS b, apps.FND_RESPONSIBILITY_TL c
where a.USER_ID=b.USER_ID and b.RESPONSIBILITY_ID=c.RESPONSIBILITY_ID
and user_name = ' <user_name>';
Thanks

USER_NAME APPLICATION_NAME RESPONSIBILITY_NAME RESPONSIBILITY_ID END_DATE
RBEHARI Cisco Payables NL AP Inquiry 52907
RBEHARI Cisco General Ledger NL GL User 52918
RBEHARI Cisco Corporate Purc NL PO Global Procurement Inqui 52872
hasing ry
SQL> l
1 select u.user_name, a.application_name, r.responsibility_name, r.responsibility_id, wu.end_date
2 from apps.fnd_user u, apps.fnd_responsibility_vl r, apps.fnd_application_vl a, apps.wf_local_roles ur,
3 apps.wf_user_role_assignments wu
4 where u.user_name=wu.user_name and wu.role_name=ur.name
5 and ur.display_name=r.responsibility_name
6 and a.application_id=r.application_id
7 and wu.user_name='RBEHARI' and
8 (wu.end_date is null or wu.end_date >= sysdate)
9 order by u.user_name, r.responsibility_name
10*
SQL> /
no rows selected
SQL> l
1 select a.USER_NAME, a.EMPLOYEE_ID, b.RESPONSIBILITY_ID, c.RESPONSIBILITY_NAME, b.START_DATE, b.END_DATE
2 from apps.FND_USER a, apps.FND_USER_RESP_GROUPS b, apps.FND_RESPONSIBILITY_VL c
3 where a.USER_ID=b.USER_ID and b.RESPONSIBILITY_ID=c.RESPONSIBILITY_ID
4* and user_name = 'RBEHARI'
My user id returns rows in both queries
USER_NAME APPLICATION_NAME RESPONSIBILITY_NAME RESPONSIBILITY_ID END_DATE
PNATHANI System Administratio System Administrator 20420
n
SQL> l
1 select u.user_name, a.application_name, r.responsibility_name, r.responsibility_id, wu.end_date
2 from apps.fnd_user u, apps.fnd_responsibility_vl r, apps.fnd_application_vl a, apps.wf_local_roles ur,
3 apps.wf_user_role_assignments wu
4 where u.user_name=wu.user_name and wu.role_name=ur.name
5 and ur.display_name=r.responsibility_name
6 and a.application_id=r.application_id
7 and wu.user_name='PNATHANI' and
8 (wu.end_date is null or wu.end_date >= sysdate)
9* order by u.user_name, r.responsibility_name
USER_NAME EMPLOYEE_ID RESPONSIBILITY_ID RESPONSIBILITY_NAME START_DAT END_DATE
PNATHANI 173045 20420 System Administrator 01-JAN-00 01-JAN-99
SQL> l
1 select a.USER_NAME, a.EMPLOYEE_ID, b.RESPONSIBILITY_ID, c.RESPONSIBILITY_NAME, b.START_DATE, b.END_DATE
2 from apps.FND_USER a, apps.FND_USER_RESP_GROUPS b, apps.FND_RESPONSIBILITY_VL c
3 where a.USER_ID=b.USER_ID and b.RESPONSIBILITY_ID=c.RESPONSIBILITY_ID
4* and user_name = 'PNATHANI'

Similar Messages

  • Is there any way to get the query used in discoverer from backend??

    Hi All,
    I am new to dicoverer.
    Is there any way to get the query used in discoverer from backend??
    Thanks,
    Sachin

    Hi,
    you can view the SQL from within the discoverer menu:
    in desktop: View-> SQL Inspector
    in Plus: Tools-> Show SQL
    The SQL in the DB tables is encrypted so it's a problem getting it from there.
    You can export the workbook into SQL but it is not working for every worksheet (subquery, inline pivot tables...)
    you can create a batch file to export them all using the output of this script:
    select null,null,'echo off'
    from dual
    union all
    select distinct
    qs.qs_doc_name Workbook_name,
    qs.qs_doc_details Worksheet_Name,
    'start /wait <path>\dis51usr.exe /connect '||'&p_user_name'||'/'||'&p_password'||'@'||'&p_env'||' /apps_user /apps_responsibility "&responsibility" /opendb '||
    chr(34)||qs.qs_doc_name||chr(34)||' /sheet "'||qs.qs_doc_details||'"'||' /export SQL "C:\Export Discoverer SQL\'||qs.qs_doc_name||'-'||qs.qs_doc_details||'.sql" /batch'
    from eul_us.eul5_qpp_stats qs
    where qs.qs_doc_name is not null
    --order by 1,2
    union all
    select null,null,'echo off'
    from dual
    union all
    select null,null,'exit'
    from dual

  • Query to find responsibilities

    Hi,
    Any one has a query to find out all responsibility names to which a specific form is assigned?
    e.g. need to know what are all responsibilities which got Organization Items form assigned
    Thanks

    Hi,
    Any one has a query to find out all responsibility names to which a specific form is assigned?
    e.g. need to know what are all responsibilities which got Organization Items form assigned
    Thanks

  • How to add bulk responsibilities from backend

    Hi All,
    At my existing EBS system, every time request is coming from the technical and functional team to add bulk responsibilities to bulk users.
    From frontend, it is a very time consuming.
    Can u please suggest as how can I add bulk responsibilities to bulk users from backend?
    Thanks-
    p

    Use FND_USER_PKG API.
    FND_USER_PKG
    http://forums.oracle.com/forums/search.jspa?threadID=&q=FND_USER_PKG&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    For information regarding SQL Loader you may go through
    http://download.oracle.com/docs/html/A97312_01/sql_lodr.htm
    It may be possible through WebAdi too but it would be more complex you may refer below link
    http://www.aboutoracleapps.com/2007/07/web-adi.html
    ;) AppsMasti ;)
    Sharing is Caring

  • Strange Behavior: VO query result shown in UI different from backend

    Hi Experts,
    I have an issue with one of the VOs in my application. The VO uses an expert query.
    The application uses ADF faces for the front end. The UI is created by dragnDrop method from ViewCriteria(Datacontrol for this VO) to the page.
    I would expect the page to always show the data which I would get when I execute the query from the backend.
    But the data that comes up in the UI(through the VO and queryPanel, af:table) is different from the data set if I execute the query directly from backend. (Oracle 11G Database)
    The issue occurs for one set of data and not for another set of data.
    I tried the following:
    In VOImpl, the executeQuery method is overridden to add additional filters.
    Just before super.executeQuery, captured the getQuery() result.
    The query got this way, I am running from back-end(SQLPLUS/Toad) returns expected results, whereas when the Application is run, the UI table shows duplicate data for one set alone.
    Please share pointers on how to debug this issue further.
    Please note that this post is not about the query but I am illustrating the query here just in case its needed.
    The query is something like this:
    Fetch rows from maintable that belong to either the set mapping to :bindvariable1 or the set mapping to bindvariable2. This could be represented as a union between the two selects as well.
    select
    col1,col2,col3...
    from main_table, table1, table2
    where
    (main_table.idcolumn =:bindvariable1
    and table1.referencecolumn =:bindvariable1
    and table2.referncecolumn =:bindvariable1)
    or
    (main_table.idcolumn =:bindvariable2
    and table1.referencecolumn =:bindvariable2
    and table2.referncecolumn =:bindvariable2)
    and
    maintable.idcolumn2=table1.idcolumn
    and maintable.idcolumn3=table2.idcolumn
    Thanks for your time and help.
    Ganesh Iyer

    Do you have a security policy associated with the table?
    Oracle 8i supports virtual private database where the server can dynamically modify a query.
    The query 'SELECT * FROM EMP' could be modified by the server to 'SELECT * FROM EMP WHERE DIVISION = 'AIRCRAFT' by putting a security policy on the EMP table.
    You, as a user, would never know it happened.
    A security policy based on some arcane rule such as the time of day could cause the problem you are describing.
    The only other way I know of is if you logged in as two different users and each user has different privileges on the table.
    Good luck!
    null

  • Query to find Concurrent requests executed on each db node in RAC from in last 24 Hours

    Hi
    Could you please help me in getting the query to find total number of concurrent requests executed on each db node in Two DB Node RAC with PCP ( Two CM Nodes) in last 24 hours.

    c2670397-8171-480e-b9f8-8874e77ee0b4 wrote:
    Hi
    Could you please help me in getting the query to find total number of concurrent requests executed on each db node in Two DB Node RAC with PCP ( Two CM Nodes) in last 24 hours.
    Query FND_CONCURRENT_REQUESTS table (ACTUAL_START_DATE and ACTUAL_COMPLETION_DATE columns) -- http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_CONCURRENT_REQUESTS&c_owner=APPLSYS&c_type=TABLE
    https://community.oracle.com/message/10780262#10780262
    https://community.oracle.com/message/10589420#10589420
    Thanks,
    Hussein

  • Query to find machines downloading from which DP

    We have large environment with almost 100 Secondary sites.
    All these secondaries are DP's as well.
    Need to know any query to find, to which DP the machine is looking up to download the package? Heartbeat discovery happens on each DP i.e, secondary site. I need to know on which particular Secondary site the heartbeat for a machine is happening.
    System Security analyst at CapG

    Per Garth's answer, DP usage by clients isn't something explicitly tracked as it's truly a dynamic determination made every time the client needs content.
    For your last statement, not sure what you are after: "I need to know on which particular Secondary site the heartbeat for a machine is happening." Heartbeat discovery records are created by the clients and have nothing specifically to do with secondary
    sites. The clients do submit these to their management point though which is the MP of the secondary site in cases where the clients are using a secondary site.
    Jason | http://blog.configmgrftw.com

  • Query to find out controls displayed as in UI for an applet,along with view

    Hi,
    I am looking for a query to find out list of all the controls as displayed in UI applet along with applet's view.
    Please note that in the query only mapped controls (those displayed in UI ) should come up.
    Regards,
    Kunal

    Hi,
    If the EUL is an apps mode (EBS) EUL then the eu_username column is the apps user id or apps resp id. If you want to show only the responsibilities and convert those ids to names then you need to use the EUL5_GET_APPS_USERRESP function like this:
    select ba_name, ba_developer_key, EUL5_GET_APPS_USERRESP(eu.eu_username, 'R') responsibility_name
    from eul5_bas ba
       , eul5_access_privs ap
       , eul5_eul_users eu
    where ba.ba_id = ap.gba_ba_id
    and ap.ap_type = 'GBA'
    and ap.ap_eu_id = eu.eu_id
    and eu.eu_role_flag=1
    order by 1,2,3Rod West

  • SQL Query to find menus and submenus attached to responsibility

    Hi,
    I am looking for help to find out a sql query to pull out the list of all the menu's associated with each of the responsibilities assigned to users. Please let me know any SQL query to find out menus attached for responsibilities assigned to users.

    835129 wrote:
    I was asked by my lead to list out responsibilities and attached menus and I was asked to submit the output from production. In the metalink note provided by you it was asked to create table collecting all menu id's and I cannot create any tables in production. Apart from this there were 1000's of users with different responsibilities and different menus. I cannot collect all of the users menu ids.
    I just want to list out responsibilities and attached menus. Is that something you can helpout withhttps://forums.oracle.com/forums/search.jspa?threadID=&q=fnd_responsibility_vl+AND+fnd_menu&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=fnd_responsibility_tl+AND+FND_MENU_ENTRIES_TL&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Please search the forum for these tables/views and you should get many hits:
    FND_MENU_ENTRIES_TL
    FND_MENU_ENTRIES_VL
    FND_RESPONSIBILITY_TL
    FND_RESPONSIBILITY_VL
    Thanks,
    Hussein

  • Query to find the request group associated with a responsibility

    Hi All,
    I have to attach a report to around 30 responsibilities. For this I will have to find the request group for each responsibility and then add the Concurrent Program for the report in the corresponding request group.
    Can anyone help me with a query to find the request group associated with a responsibility.
    Regards,
    SK

    Just to add to the query above, if you want to see request group along with request_group_id you do join as follows
    SELECT frv.responsibility_name
    ,frg.request_group_name
    FROM fnd_request_groups frg,
    fnd_request_group_units frgu,
    fnd_responsibility_vl frv
    WHERE 1 = 1
    AND frgu.request_group_id = frg.request_group_id
    AND frv.request_group_id = frg.request_group_id
    ORDER BY responsibility_name
    Thanks
    Shailendra

  • Query to find Orders that have all LINES CLOSED status

    All,
    CAn someone send me SQL QUERY TO find all ORDERS that have all LINES in CLOSED status.
    we have an issue in an environment, i am trying to build a data fix script.
    regards
    girish

    Hi,
    Try this :
    Method-1 (backend):
    *==============*
    select a.order_number, b.line_number, b.flow_status_code
    from oe_order_headers_all a, oe_order_lines_all b
    where a.header_id = b.header_id
    and a.org_id= &Org_id     -- Operating_unit_id
    and a.org_id = b.org_id
    and b.flow_status_code='CLOSED'
    Method-2 (front end)
    *==============*
    Orders,Returns --> Order Organizor --> Find orders/Quotes form will open --> Close this serch page only.... --> Now you will able to see Order oganizor form --> Click on Lines Tab of this form (you will see this tab atleft bottom side of the page) --> Press F11.. --> In status Field give parameter as *"CLOSED"..*and press Ctrl + F11 ..... Take an export of the form output..
    Risk : this query may take hell lot of time to complete..as it is going to pull all closed line of a particular Org..
    Method-3
    *========*
    Check if you can find any oracle standard report for closed lines..
    Hope this will help..
    Regards :)
    S.P DASH

  • CAN I UPDATE DATABSE OF SAP FROM BACKEND

    Dear Experts,
    can i update database of SAP from Backend , if i update some fields from backend using update query , then sap chage behavior like series not show  or some previous record does not find. etc etc.
    so my que is can i update the sap databse using any tric which is not affect to SAP Behavior it's behave normally after updation.
    thanking you,
    ganesh mahajan

    Dear sir,
    Actually we are goes to validate delivery and outgoing excise invoice ,means
    your delivery doc num should be outgoing excise invoice otherwise massage fir " document number does not match."
    so that time from above table.
    but the eroor is baseref num is nvarchar but error madssage is " can not covert nvarchar to int "
    Thanking you,
    ganesh Mahajan

  • Want to check Active Users in Oracle EBIZ R12 from backend.

    Want to check Active Users in Oracle EBIZ R12 from backend. Active users concurrent is showing all the user available in EBIZ can any one help me to find out
    what is the actual user available in ebiz unlock unexpired.

    956731 wrote:
    Want to check Active Users in Oracle EBIZ R12 from backend. Active users concurrent is showing all the user available in EBIZ can any one help me to find out
    what is the actual user available in ebiz unlock unexpired.Please see old threads for the query you need to run:
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Users+AND+Connected+AND+Query&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Users+AND+Connected&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Query to find out the time used by an user for an application

    Hello All,
    I want to know the query to find out the whole time used by the user for an application. Please view the below data
    Employee:
    SNO EMP_ID EMP_NAME EMP_DATE LOGIN_TIME LOGOUT_TIME
    1 10 Visu 21-Nov-2010 06:30:00 07:30:00
    2 10 Visu 21-Nov-2010 06:40:00 07:20:00
    3 10 Visu 21-Nov-2010 06:50:00 07:50:00
    4 10 Visu 21-Nov-2010 07:30:00 08:30:00
    5 10 Visu 21-Nov-2010 09:30:00 10:30:00
    By checking the above data we can say that the total time Visu used the application is
    8.30 - 6.30 (From 1,2,3,4 records) = 2hrs
    10.30 - 9.30 (Based on 5th rec) = 1hr
    So the total time Visu used the application would be 3 hrs = 180 mins.
    Could you please help me in getting the result from that data using a query?

    odie_63 wrote:
    I think it may be solved with analytics too.
    with t1 as (
                select 1 sno,10 emp_id,'Visu' emp_name,'21-Nov-2010' emp_date,'06:30:00' login_time,'07:30:00' logout_time from dual union all
                select 2,10,'Visu','21-Nov-2010','06:40:00','07:20:00' from dual union all
                select 3,10,'Visu','21-Nov-2010','06:50:00','07:50:00' from dual union all
                select 4,10,'Visu','21-Nov-2010','07:30:00','08:30:00' from dual union all
                select 5,10,'Visu','21-Nov-2010','09:30:00','10:30:00' from dual
         t2 as (
                select  emp_id,
                        emp_name,
                        emp_date,
                        to_date(emp_date || login_time,'DD-MON-YYYYHH24:MI:SS') login_time,
                        to_date(emp_date || logout_time,'DD-MON-YYYYHH24:MI:SS') logout_time
                  from  t1
         t3 as (
                select  t2.*,
                        case
                          when login_time < max(logout_time) over(
                                                                  partition by emp_id,emp_date
                                                                  order by login_time
                                                                  rows between unbounded preceding
                                                                           and 1 preceding
                            then 0
                          else 1
                        end start_of_group
                  from  t2
         t4 as (
                select  t3.*,
                        sum(start_of_group) over(partition by emp_id,emp_date order by login_time) grp
                  from  t3
         t5 as (
                select  emp_id,
                        emp_date,
                        min(login_time) login_time,
                        max(logout_time) logout_time
                  from  t4
                  group by emp_id,
                           emp_date,
                           grp
    select  emp_id,
            numtodsinterval(sum(logout_time - login_time),'day') time_spent
      from  t5
      group by emp_id
      order by emp_id
        EMP_ID TIME_SPENT
            10 +000000000 03:00:00.000000000
    SQL> SY.

  • Looking for a query to find first/last dates in overlapping dates...

    Hi,
    I'm looking for a query to find the first dates and last dates in a table conaining overlapping dates.
    I have a subscription table which has for each Customer start and end date for different subscriptions.
    I want to know the different ranges of date where there is subscriptions active.
    so if the table has this:
    CustID, Start date, end date
    1, 2008-01-01, 2012-06-06
    1 ,2009-01-01, 2011-01-01
    1, 2011-01-01, 2013-02-02
    1, 2013-01-01, 2013-08-08
    1, 2014-01-01, 2014-04-04
    I want to produce this result:
    custid, range start, range end
    1, 2008-01-01, 2013-08-08
    1, 2014-01-01, 2014-04-04
    the first row is the range identified from the 4 rows in my subscription table.
    thanks :)

    I think I found it...
    http://stackoverflow.com/questions/5213484/eliminate-and-reduce-overlapping-date-ranges
    let me try this method
    Hi,
    m writing to follow up with you on this post. Thanks for you posting a reply to share your workground. Was the problem resolved after performing the above link? If you are satisfied with the above solution, I’d like to mark this issue as "Answered".
    Please also feel free to unmark the issue, with any new findings or concerns you may have.
    Thanks,
    Sofiya Li
    If you have any feedback on our support, please click here.
    Sofiya Li
    TechNet Community Support

Maybe you are looking for

  • Contacts There But Not There/Mobile Me

    Prior to my updating to 2.0.1 today I noticed my contacts are screwed up. The favorites list numbers but are not connected to my contacts. In my Contacts it shows names but no info at all. It will not Sync with my computer since I have Mobile Me. Any

  • Should  I leave my macbook plugged in when I'm not using it?

    Should I leave my macbook charging cable plugged in when I'm not using it?

  • VOID PRINTED CHECK

    Dear All, can any one give me the procedure for void the printed check. If  I get the answer ASAP I would be appreciate. Thanks in advance Regards srinivas

  • Compile Error with ResultSet.CONCUR_UPDATEABLE

    Hi All, I get the following compile error "CopyTable.java [49:1] cannot resolve symbol symbol : variable CONCUR_UPDATEABLE location: interface java.sql.ResultSet Statement DestStmt = DestDB.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.C

  • Problem with .jnlp files

    I have an iMac running 10.6.8. I'm having a problem with .jnlp files. I've downloaded two, cgoban.jnlp and gopanda.jnlp. When I double-click the file, nothing happens. If I Control-click and select Open With Java Web Start, same. Nothing happens. Sof