Need Query to get Menu's - SubMenu's and Functions attached to a Responsibi
Hi,
Need SQL Query to get Menu's - SubMenu's and Functions attached to a Responsibility...
There are two tables fnd_menus_vl and fnd_menu_entries_vl....
I need to call in these two tables again as the sub_menu_id acts as menu_id in order to get the submenu and their entries....
Please suggest how to achieve this...
Thanks
Aman
Hi Aman,
>
Need SQL Query to get Menu's - SubMenu's and Functions attached to a Responsibility...
There are two tables fnd_menus_vl and fnd_menu_entries_vl....
I need to call in these two tables again as the sub_menu_id acts as menu_id in order to get the submenu and their entries....
Please suggest how to achieve this...please see this
SQL Query to find menus and submenus attached to responsibility
Re: How to check a function is accessible under responsibility?
;) AppsMasti :)
sharing is Caring
Similar Messages
-
Query to get the details of Blocking and deadlock occurred for the Day
Hi,
I need a query to get the details of blocking and deadlock occurred for the day.You havent specified which version of SQL you are using which makes it difficult to give a solution. Assuming its latest versions , by default SQL Server (in any versions) doesnt track blocking information.
You need to run some kind of queries/traces to capture blocking. The same goes with Deadlocks where majority of the DBA's enable trace flag 1222/1205 when they suspect deadlocks happening.
Check this link -
http://dba.stackexchange.com/questions/10644/deadlock-error-isnt-returning-the-deadlock-sql/10646#10646
This link gives code to get historic deadlock information. I havent used it , I just googled to get that.
That being said if you are looking for something to capture for the future check the below links.
Check these links on how to setup extended events to capture deadlock and blocking.
http://sqlblog.com/blogs/jonathan_kehayias/archive/2010/12/21/an-xevent-a-day-21-of-31-the-future-tracking-blocking-in-denali.aspx
http://blogs.msdn.com/b/sqlserverfaq/archive/2013/04/27/an-in-depth-look-at-sql-server-memory-part-2.aspx
http://blogs.technet.com/b/mspfe/archive/2012/06/28/how_2d00_to_2d00_monitor_2d00_deadlocks_2d00_in_2d00_sql_2d00_server.aspx
HTH
Regards, Ashwin Menon My Blog - http:\\sqllearnings.com -
Needs Query to get the cycle time automatically based on the value provided in the UDF on OWOR table
Dear all,
Need a query to get the Cycle time in hr based on the value provide in the udf on OWOR table.
Details of UDF:-
1.Start date =10/07/14 (Field Name U_EA_REST)
2.Start time =10:00 (Field Name U_EA_REASTARTTIME)
3.End date =11/07/14 (Field Name U_EA_REET)
4.End Time=14:00 (Field Name U_EA_REAENDTIME
Cycle Time=_______ (Field Name U_EA_REACYCLETIME)
Regards,
BanugopanRajendranDear all,
Need a query to get the Cycle time in hr based on the value provide in the udf on OWOR table.
Details of UDF:-
1.Start date =10/07/14 (Field Name U_EA_REST) - Date Type
2.Start time =10:00 (Field Name U_EA_REASTARTTIME) - Hour Type
3.End date =11/07/14 (Field Name U_EA_REET) - Date Type
4.End Time=14:00 (Field Name U_EA_REAENDTIME - Hour Type
Cycle Time=_______ (Field Name U_EA_REACYCLETIME) - Hour Type
Regards,
BanugopanRajendran -
Need query to get parent and child relations
Hi,
SELECT
a.ID MASTER_ID, a.UNIQUE_NAME MASTER_UNIQUE_NAME, d.ID CHILD_ID, d.UNIQUE_NAME CHILD_UNIQUE_NAME, 1 SUB_LEVEL
FROM
srm_projects a,
prTask b,
prSubProject c,
srm_projects d
WHERE
a.id = b.prProjectID
AND b.prID = c.prTaskID
AND c.PRREFPROJECTID=d.id
The above query gives a project and its child.
Child project can inturn have child projects.
But the above query gives only the first level.
To obtain second level I am presently using the following query
SELECT
a.ID MASTER_ID, a.UNIQUE_NAME MASTER_UNIQUE_NAME, d.ID CHILD_ID, d.UNIQUE_NAME CHILD_UNIQUE_NAME, 1 SUB_LEVEL
FROM
srm_projects a,
prTask b,
prSubProject c,
srm_projects d
WHERE
a.id = b.prProjectID
AND b.prID = c.prTaskID
AND c.PRREFPROJECTID=d.id
UNION ALL
SELECT
a.ID, a.UNIQUE_NAME, g.ID, g.UNIQUE_NAME, 2 SUB_LEVEL
FROM
srm_projects a,
prTask b,
prSubProject c,
srm_projects d,
prSubProject e,
prTask f,
srm_projects g
WHERE
a.id = b.prProjectID
AND b.prID = c.prTaskID
AND c.PRREFPROJECTID=d.id
AND d.ID = f.PRPROJECTID
AND f.prID = e.prTaskID
AND e.PRREFPROJECTID=g.id
But the problem is there is no limit on levels. They can go on to 20 to 30.
So i need a query which gives me all the levels and not as above one where i am specifying till wht level.
Please guide me.Thanks.
Please find the table structures
CREATE TABLE SRM_PROJECTS
ID NUMBER NOT NULL,
NAME VARCHAR2(240 BYTE),
UNIQUE_NAME VARCHAR2(60 BYTE),
DESCRIPTION VARCHAR2(2286 BYTE),
IS_ACTIVE NUMBER DEFAULT 1 NOT NULL,
CREATED_DATE DATE NOT NULL,
CREATED_BY NUMBER NOT NULL,
LAST_UPDATED_DATE DATE NOT NULL,
LAST_UPDATED_BY NUMBER NOT NULL,
CREATE TABLE PRTASK
PRUID VARCHAR2(32 BYTE),
PRID NUMBER(10),
PRPROJECTID NUMBER(10),
PRISUNPLANNED NUMBER(10) DEFAULT 0 NOT NULL,
PRSHORTNAME VARCHAR2(48 BYTE),
PRNAME VARCHAR2(450 BYTE),
PREXTERNALID VARCHAR2(48 BYTE),
PRISMILESTONE NUMBER(10) DEFAULT 0 NOT NULL,
PRCATEGORY VARCHAR2(96 BYTE),
CREATE TABLE PRSUBPROJECT
PRUID VARCHAR2(32 BYTE),
PRID NUMBER(10),
PRTASKID NUMBER(10),
PRREFPROJECTID NUMBER(10),
PRREFTASKID NUMBER(10),
PRISREADONLY NUMBER(10) DEFAULT 0 NOT NULL,
PRISIPD NUMBER(10) DEFAULT 0 NOT NULL,
PRMODBY VARCHAR2(96 BYTE),
PRMODTIME DATE
) -
Query for getting records max reported timestamp and 2nd max report
query for getting records in between
max reported timestamp and 2nd max reported timestamp
HERE IS ALL RESULT SET
TIME DOMAIN
30:jun:2006:20:08:45 TOMCAT
30:jun:2006:20:08:45 TOMCAT
30:jun:2006:20:07:04 TOMCAT
30:jun:2006:20:07:04 TOMCAT
30:jun:2006:20:07:24 TOMCAT
30:jun:2006:20:07:24 TOMCAT
30:jun:2006:20:07:45 TOMCAT
30:jun:2006:20:07:45 TOMCAT
30:jun:2006:20:08:05 TOMCAT
30:jun:2006:20:07:04 TOMCAT
30:jun:2006:20:08:05 TOMCAT
PD_REPORTED_TIMESTAM PD_USER
30:jun:2006:20:08:25 TOMCAT
30:jun:2006:20:08:25 TOMCAT
30:jun:2006:20:08:45 TOMCAT
30:jun:2006:20:08:45 TOMCAT
30:jun:2006:20:07:24 TOMCAT
30:jun:2006:20:07:04 TOMCAT
30:jun:2006:20:07:24 TOMCAT
30:jun:2006:20:07:45 TOMCAT
30:jun:2006:20:07:45 TOMCAT
30:jun:2006:20:08:05 TOMCAT
30:jun:2006:20:08:05 TOMCAT
PD_REPORTED_TIMESTAM PD_USER
30:jun:2006:20:08:25 TOMCAT
30:jun:2006:20:08:25 TOMCAT
QUERY RESULT TO COME
TIME DOMAIN
TOMCAT 30:jun:2006:20:08:45
TOMCAT 30:jun:2006:20:08:45
TOMCAT 30:jun:2006:20:08:45
TOMCAT 30:jun:2006:20:08:45
Message was edited by:
user517983Hi,
can we write query like this.
1 select pd_user,PD_REPORTED_TIMESTAMP
2 from sp_process_detail_current spdc
3 where host_id='DSCP02469'and pd_user='TOMCAT'
4 and exists(
5 select PD_REPORTED_TIMESTAMP from sp_process_detail_current
6* having max(PD_REPORTED_TIMESTAMP)-spdc.PD_REPORTED_TIMESTAMP=0)
SQL> /
PD_USER PD_REPORTED_TIMESTAM
TOMCAT 30:jun:2006:20:08:45
TOMCAT 30:jun:2006:20:08:45
TOMCAT 30:jun:2006:20:08:45
TOMCAT 30:jun:2006:20:08:45 -
CAML Query to get Items based on Year and Month From Date Column
Hi All,
* As we knew that there are default columns in calendar like Stattdate,Title,Location..etc.
* I required the CAML Query to get the list items of calender of particular Month and Year,So that I can get number of items or evetns are in Calendar
Can any one help me how can I do this using caml query
SamarHi Stuart,
Thanks for your response,I had chosen 2nd option of our above mention suggestion.But when I try to fetech the data from a calendar it is showing below error .I
had checked the below code with oter lists by changing Type to text and it worked fine.Can you please help me how can I fetech for the calulated columns
Error
"One or more field
types are not installed properly. Go to the list settings page to delete these
fields. "
Code:
string year="2014";
string month="February";
SPSite mysite = SPContext.Current.Site;
SPWeb myweb = mysite.OpenWeb();
try
SPList mylist = myweb.Lists["Calendar"];
SPQuery myquery = new SPQuery();
myquery.Query = @"<Where>
<And>
<Eq>
<FieldRef Name='Year'/>
<Value Type='Calculated'>"
+ year + @"</Value>
</Eq>
<Eq>
<FieldRef Name='Month'
/>
<Value Type='Calculated'>"
+ month + @"</Value>
</Eq>
</And>
</Where>";
SPListItemCollection totaltiems = mylist.GetItems(myquery);
Label1.Text= "Total Number of Items is "+" "+totaltiems.Count.ToString();
catch (Exception ee)
Label1.Text = ee.Message;
finally
myweb.Dispose();
Calculated Columns
Samar -
Need FM to get the last consumption date and value
Hello Friends,
i am developing a report for non moving material , i have got the relevant fields from MSEG,MKPF, MCHB, MCH1,,, but i need the last consumption date for that non moving material batch and value (total amount ) of that batch...
so i need a Function Modules, to get this values .
Please help me out
Regards
MukeshYou have to join MSEG and MKPF ( where MKPF has the posting date ) , ( day,month,year ) . You can calculate the month.moreover, also see S031,S032,S033
else.
check it at Mseg-lgort, and movement types for the given matnr.
from there u can find the consumtion according to movement types .
for particular period carry mblnr from mkpf and check the movement types which r equal to this mblnr and matnr in mseg.
so u get the all movement types in that period for particular matnr.
consumtion = issues - receipt.
hope this helps u -
Connect by menu's/ submenu's query
Hi,
I am trying to create a query listing all menu's/ submenu's attached to a certain function.
I would like to use the "connect by" statement.
However i cannot get it right.
So far i have made the following query.
select distinct fnd_responsibility_vl.responsibility_name
,fnd_menus_vl.user_menu_name
,submenu.user_menu_name
,fnd_menus_vl.type
,fnd_menus_vl.menu_id
,fnd_menu_entries_vl.grant_flag
,fnd_form_functions_vl.function_name
,fnd_form_functions_vl.user_function_name
,fnd_user_resp_groups_direct.responsibility_id
from apps.fnd_form
,apps.fnd_user
,apps.fnd_menus_vl
,apps.fnd_menus_vl submenu
,apps.fnd_responsibility_vl
,apps.fnd_user_resp_groups_direct
,apps.fnd_form_functions_vl
,apps.fnd_menu_entries_vl
,apps.fnd_menu_entries_vl subm_entries
where fnd_form.application_id = fnd_responsibility_vl.application_id
and fnd_user_resp_groups_direct.responsibility_id = fnd_responsibility_vl.responsibility_id
and fnd_user_resp_groups_direct.responsibility_application_id = fnd_responsibility_vl.application_id
and fnd_user_resp_groups_direct.user_id = fnd_user.user_id
and fnd_form_functions_vl.application_id = fnd_form.application_id
and fnd_form_functions_vl.form_id = fnd_form.form_id
and fnd_menus_vl.menu_id = fnd_responsibility_vl.menu_id
and fnd_menus_vl.menu_id = fnd_menu_entries_vl.menu_id
and fnd_menus_vl.menu_id = subm_entries.menu_id (+)
and submenu.menu_id = subm_entries.sub_menu_id
and fnd_form_functions_vl.function_name ='AP_APXPAWKB'
and fnd_user.end_date is null
and fnd_responsibility_vl.end_date is null
START WITH
fnd_menu_entries_vl.menu_id
CONNECT BY
fnd_menu_entries_vl.menu_id = PRIOR fnd_menu_entries_vl.sub_menu_id
Anyone can help me out on this?Hi,
If you want to START WITH the rows that are not children of other rows, say
START WITH fnd_menu_entries_vl.menu_id NOT IN
SELECT sub_menu_id
FROM fnd_menu_entries_vl
)Depending on your tables, you may be able to do something simpler and faster.
Speaking of faster, Timur is right. You'll proably get better performance if you do a sub-query with the CONNECT BY on fnd_menu_entries_vl, and then join that result set to the other tables. -
Query to get the List of Reports on a Universe
Hi All,
I want to write a query to get all the Web I and Crystal Reports that access a particular universe.
Can anyone suggest me where to start.
This is in BO 3.1 against Oracle databse.There are a few ways to do this:
- The easiest would be to use a Relationship Query from the CMC. To do this, go to the Universes section on the CMC, right click on the relevant universe, select tools >> Check Relationships.
- Use Query Builder. You will need more than one query to pull the information you need. You could try something like the below (for Webi)
SELECT SI_NAME, SI_WEBI, SI_DATACONNECTION FROM CI_APPOBJECTS
WHERE SI_KIND = 'universe' and SI_NAME = 'Universe Name'
This will give you a list of Webi Reports by SI_ID.
You'll need another query to list Webi report names:
SELECT SI_NAME FROM CI_INFOOBJECTS WHERE SI_ID IN (SI_ID from query above)
- This is trivial via Auditing / the Activity universe. This of course will only return reports that have already run.
Best.
Srinivas -
Dear Gurus, Can i have SQL query to get Ar cash receipt appled lines details in R12
Dear Gurus, Can i have SQL query to get Ar cash receipt appled lines details in R12
I need to get ar and ap details from GL through xla.For ex: Reference1,reference2,reference3,reference4,reference 5, in 11i these column values are displayed in gl_je_lines where as in R12 we need to join xla tables with gl_sl_link_id and gl_sl_link_table
Can someone provide query to get subledger details particularly ar and ap?.How are the AP & GL Journal Tables linked? [ID 1188714.1]
R12 Mapping Between Subledger Tables, SLA and GL Tables [ID 871622.1]
eTRM
http://etrm.oracle.com/
Thanks,
Hussein -
Query to get number of invoice created by user between from and to date
Dear All
I need Query to get number of invoice created by user on day and his orgainization between from and to date.
thanksselect count(*) from ap_invoices_all where created_by = :p_User_id
and trunc(creation_date) between :p_from_date and :P_to_date;
Thanks/SRK -
Need to create report query to get latest open and last closed period for given application
Hi All,
I need to create a report query to get below result displayed in report output.
1) - Application name
2) - Ledger name
-o/ -Operating Unit
3) - Last Closed Period
4) - Current Open Period
5) - Date Closed – Last Closed Period
6) - Date Open – Current Open Period
I tr I tried to create the query below is the same. Please let me know if it looks fine.
SELECT *
FROM (SELECT fav.application_name ,
hou.name Operating_Unit_Name,
gl.name Ledger_name,
gl.latest_opened_period_name,
gps.period_name Period_Name,
DECODE(gps.closing_status, 'O', 'Open', 'C', 'Closed') status,
gps.last_update_date Last_status_modified_date
FROM gl_period_statuses gps,
gl_sets_of_books gsob,
fnd_application_vl fav,
hr_operating_units hou,
gl_ledgers gl
WHERE gps.period_name = gps.period_name
AND gps.closing_status ='C'
AND fav.application_short_name =
NVL('&p_application_short_name', fav.application_short_name)
AND gps.application_id = fav.application_id
AND gsob.set_of_books_id = gps.set_of_books_id
AND hou.set_of_books_id = gps.set_of_books_id
AND gl.ledger_id = gsob.set_of_books_id
AND hou.organization_id=NVL('&p_operating_unit',hou.organization_id)
AND gl.ledger_id=NVL('&p_ledger_id',gl.ledger_id)
ORDER BY gps.last_update_date desc )WHERE ROWNUM = 1
UNION ALL
SELECT *
FROM (SELECT fav.application_name Application_Name,
hou.name Operating_Unit_Name,
gl.name Ledger_name,
gl.latest_opened_period_name,
gps.period_name Period_Name,
DECODE(gps.closing_status, 'O', 'Open', 'C', 'Closed') status,
gps.last_update_date Last_status_modified_date
FROM gl_period_statuses gps,
gl_sets_of_books gsob,
fnd_application_vl fav,
hr_operating_units hou,
gl_ledgers gl
WHERE gps.period_name = gps.period_name
AND gps.closing_status = 'O'
AND fav.application_short_name =
NVL('&p_application_short_name', fav.application_short_name)
AND gps.application_id = fav.application_id
AND gsob.set_of_books_id = gps.set_of_books_id
AND hou.set_of_books_id = gps.set_of_books_id
AND gl.ledger_id = gsob.set_of_books_id
AND hou.organization_id=NVL('&p_operating_unit',hou.organization_id)
AND gl.ledger_id=NVL('&p_ledger_id',gl.ledger_id)
ORDER BY gps.last_update_date desc)
WHERE ROWNUM = 1It is within the table I believe (I'm not a DBA or a developer) since I created a BLOB column and then used the file browse feature to allow users to attach a resume to the table in order to be able to perform a search of the attached documents.
I'm just having a hard time pointing the link in the search results report to the document in the blob column.
The information on that page is great if you're trying to create a link to the document on the initial report.
But I created a query using Oracle Text to run a report that does a boolean search of the attached word documents in the table.
When it displays the search results, it doesn't create a link to the document and I can't figure out how to do it.
Here's a link the the instructions I used to create the initial search report with Oracle Text, mind you I only created the index and query, I didn't add in all the link data since they're using documents on websites and I'm using documents in a table.
http://www.oracle.com/technology/products/database/application_express/pdf/apex_text_application_v1.6.pdf
If you can help me with this I'd really appreciate it.
Thanks again.
Greg
Edited by: gjones77 on Dec 2, 2008 8:14 AM -
Need a sql query to get multiple dates in rows
Hi All,
i need a query to get dates for last 7 days and each dates should be in one row...
but select sysdate from dual..gives one row...
Expexcted Output
Dates:
01-oct-2013
30-sep-2013
29-sep-2013
28-sep-2013
27-sep-2013
26-sep-2013Hi,
Do you mean that you want all 7 dates together on 1 row?
Here's one way:
SELECT LISTAGG ( TO_CHAR ( SYSDATE + 1 - LEVEL
, 'DD-Mon-YYYY'
) WITHIN GROUP (ORDER BY LEVEL) AS txt
FROM dual
CONNECT BY LEVEL <= 7
This is an example of String Aggregation, that is, taking a column on multiple rows, and concatenating all the values (however many htere happen to be) into 1 big string column 1 row.
Like everything else, exactly how to do it depends on your Oracle version.
For more on String Aggregation, including differetn techniques for different versions, see http://www.oracle-base.com/articles/10g/StringAggregationTechniques.php
Message was edited by: FrankKulash
Sorry, I mis-read the question. -
Query for getting Responsibility, Menu and submenus
Hi,
I need one query for getting Responsibilites, menus, submenus agian submenus like that..
Pls share the query any body have.
Thanks in advance,
Hanimi.See user487104's post in Re: How to check a function is accessible under responsibility? .
He has given a script to build the output. -
Need Store DB tables to query to get the latest scanned price at register
Need Store DB tables to query to get the latest scanned price at register.
Please provide a sample sql script that will help me do this. I need to have this informatino for several items at a time.
Thanks,
Edited by: user10133807 on Jan 13, 2012 9:22 AM
Edited by: user10133807 on Jan 13, 2012 9:23 AMHi,
You can find multiple items saled price at the register by running below quary
select distinct DC_DY_BSN,ID_ITM_POS,MO_PRN_PRC from TR_LTM_SLS_RTN;
Thanks,
MG
Maybe you are looking for
-
How to install The Soundblaster Audigy SE in Windows 7 RC?
:How to install The Soundblaster Audigy SE in Windows 7 RC?Y Two days ago I bought a Soundblaster Audigy SE-retail soundcard. I have a dual boot PC with Windows XP-SP3 and Windows 7 RC. The installation of the soundcard?in Windows XP was easy, no pro
-
Can't Open PDF Package In Adobe Acrobat Reader 9.3
Yesterday, I created a PDF Package of about 30 documents. When I attempt to open the package using Adobe Acrobat Reader 9.3, I get the Data Execution Prevention pop-up message saying that the file cannot be opened. Does anyone have any thoughts on wh
-
Not All Items Appearing In Dropdown List
Hi, You have a newbie here. I am trying to populate a dropdown list in a JSP with the following code, but not all the records are being displayed (approximately 4900 records are displayed). The Submit button that follows this Select tag is not being
-
Music player!! Help!
Hello, as the topic says.. Im looking for an other music player for my mac in wich I can have all my songs in a list (like winamp or iTunes) and you may ask "why whould I want an other music player if I've got iTunes?" ok the answer is that I've got
-
Increase the screen resolution
Hi All Is it possible to increase the screen resolution in BDC? My Max screen resolution is 1280 X 800 and my BDC screen operates at this resolution I want to increase it to 1400 X 1080 Is there a way i can pass these values? Thanks in advance