Query to end date all reponsibilities of a user
Hi,
One of the user in our 11i has around 120 responsibilities. I wanted to end date them at a time. If you do have a query, pl post here.
I agree with Kevin, try to avoid updating FND tables and use APIs instead.
Note: 394784.1 - Is there a Stardard API Which Can be Used to Disable or End Date a Responsibility?
https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=394784.1
Similar Messages
-
Actual end date is not update after closing a change
Hi,
We are using SCSM 2012, now I want to make report on which changes have been closed in the last month. In som way all the changes that have been closed in SCSM do not have an actual end date, all the changes that I have imported from our old tool does. It
looks like SCSM does not update this field by itself, but I can't find a field in the change managment module in which I can provide the actual end date.
How does SCSM 2012 copes with this?
Kind regards, Marco JansenHi Greg,
We are actually testing this now, as MS is not planning to solve this issue on a short term. The use of the last modified date is casuing u a lot of trouble now as we have had an change on our change form casuingthe last modified for all change to be set
to the date of the change. That was the end of my closing data.
We are now getting the WA in place from Netviaconsulting, but that is not a complete solution. Not all change reach a state of complete before they are closed. Sometime you will close a change that is cancelled ,rejected or failed. this means that when
triggering on an update of the record every update will set the actual enddate. Besides when setting the actual enddate on the status closed, the date is update every time the worflow runs.
We just want the actual enddate to be filled when a change comes to the status closed from any other status, but this sets the actual enddate on every status change of the change. in some strange way ewe cannot figure this out.
If anybody has the correct configuration for this workflow it would be very useful. Most prefereably MicroSoft in this case. -
User not disabled after end date (9i)
Hi All,
The Disable after end date schedule task disabled 7 users but did not disable 1 user.
Any know issue around this.
Thanks
DonHi Gyanprakash,
i can not try disable manually, its in production. The log for disable user is commented in log.properties. Can not change that .
Just need to analyze, why this user was left out.
Regards
Don -
Expire OIM User based on End Date
This is a query on expiring an OIM User based on end date.
Does OIM need any configuration for it to expire the user based upon end date?
The start date seems to work well as expected but the end date doesn't.
Even after the end date has arrived the OIM User is not being expired.He is still able
to login into OIM without any issues.
Thank youTheres a scheduler task that has to be run to check the date and deactivate the users.
-
OIM 11g Modify User Profile for Updating End Date
Hi Gurus!
We have an OIM implementation where users may request the creation of other users by means of a Create User request template. In this template we set the End Date to be 3 months after the request date.
In order for the requester to extend the period of a user's OIM user account (along with its provisioned resources) we customized a Modify User Profile by displaying the End Date field and automatically populate it again to 3 months after the request date. Also we developed a custom event handler to enable the user when it is disabled and the End Date is updated to a future date.
This Modify User Profile is working great when the user is still enabled (the End Date is still in the future), however, when the End Date has passed (and the user is Disabled) the requester is not able to see the user when selecting the Modify User Profile request template.
Is there a way to allow requesters to also see disabled users in the Modify User Profile request template?
Thank you in advance.
Regards,Hi Kevin,
thanks for your reply!
But, in this case, when the user is already disabled due to his End Date, how can a requester, through the Self Service TAB, enable it?
The Enable User request template does not work since when trying to enable the user, OIM sees the End Date is already passed and the DataSet validation throws an exception.
The only way I saw was providing a Modify User Profile Request template to change the End Date and developing a custom event handler to enable the user upon the extension of the End Date...
How can, in this situation, a requester enable the user and extend its End Date?
Thank you!
Regards, -
Javascript for calculating End Date
I have two date fields "Start_Date" and "End_Date". User selects the start date. Then the form takes that date and adds 365 days. puts the result in the "End_Date" field. I have attempted a couple of scripts and none have worked. So I attempted to first just get the selected date in the "Start_Date" field to show in the "End_Date" field. When I select a date like, "May 28,2008" the output reads "Object44194500". Using the following script in the "Start_date" field
----- form1.Order_Page.Product_Table.Row4.Subscription_Start::change: - (JavaScript, client) -------
xfa.resolveNode("form1.Order_Page.Product_Table.Row5.Subscription_End").rawValue = this;
What am I doing wrong. How do it get it show currently while at the same time adding 365 days. So if the user select May 28, 2008 the output in the "End_Date" field is May 27, 2009??? Thanks
- a frustrated new developer of LiveCycle Designer 8.0...I was able to find an answer on the LiveCycle Google Group. Here is what I was given. (for some reason I only got the FormCalc version to work).
-----------Begin Code--------------
if(EndDate.rawValue != null && StartDate.rawValue != null)
if(EndDate.rawValue < StartDate.rawValue)
xfa.host.messageBox("Please check your End date. It cannot be before
the Start date!", "Date Checker", 3);
this.rawValue = null;
// to set focus to the End Date field so that the user can type his
new value..
xfa.host.setFocus(this.somExpression);
Alternatively.. this must work if it is formcalc...
if(EndDate.rawValue <>null and StartDate.rawValue <> null)then
if(EndDate.rawValue < StartDate.rawValue) then
xfa.host.messageBox("Please check your End date. It cannot be before
the Start date!", "Date Checker", 3)
$.rawValue = ""
// to set focus to the End Date field so that the user can type his
new value..
xfa.host.setFocus(this.somExpression)
endif
endif
-------------End Code ---------------- -
Generate all Months between start and end dates using Parameter
Hi,
I have a query in which i have two dates that is Start Date and End Date and now i have to populates all the Months between the date range:
Start Date : APR-12
End Date: JUL-12
Now taking these two values i want the recors as displayed below
APR-12
MAY-12
JUN-12
JUL-12
So how can write my SQL query to finish this task
ThanksSounds easy with single pair of Months:
with data(st_dt, end_dt) as
select to_date('JAN-2012', 'MON-YYYY'), to_date('SEP-2012', 'MON-YYYY') from dual
select add_months(st_dt, level - 1 ) mons
from data
connect by level <= months_between(end_dt,st_dt) + 1;
MONS
01-JAN-12
01-FEB-12
01-MAR-12
01-APR-12
01-MAY-12
01-JUN-12
01-JUL-12
01-AUG-12
01-SEP-12
9 rows selected Please ensure to read {message:id=9360002} and post the question correctly with all the mentioned points in the thread. It facilitates the people to understand the problem clearly and provide a solution that is compatible with your Oracle Version. -
Generate all the quarters between start and end dates
Hello all,
I have a query in which i have two dates that is Start Date and End Date and now i have to populates all the quarters date between the date range:
For eg:
Start Date : 1-Apr-2011
End Date: 1-Jul-2012
Now taking these two values i want the recors as displayed below
Apr 2011
Jul 2011
Oct 2011
Jan 2012
Apr 2012
Jul 2012
So how can write my PL/SQL query to accomplish this task
Thanks in advance958964 wrote:
Hello all,
I have a query in which i have two dates that is Start Date and End Date and now i have to populates all the quarters date between the date range:
For eg:
Start Date : 1-Apr-2011
End Date: 1-Jul-2012
Now taking these two values i want the recors as displayed below
Apr 2011
Jul 2011
Oct 2011
Jan 2012
Apr 2012
Jul 2012
So how can write my PL/SQL query to accomplish this task
Thanks in advanceHow do I ask a question on the forums?
SQL and PL/SQL FAQ
solution can be done in SQL only; no PL/SQL. -
Need help in query to display dates as start, end dates
Hi,
I am trying the following output from the below table structure, data
StartDAte Endate Reason duration
12-02-09 12:00:00 12-02-09 13:10:20 planned activity 1:10:20
01-04-09 08:30:34 01-04-09 15:00:20 planned activity 6:30:34
12-04-09 17:10:45 12-04-09 17:11:04 unplanned activity 0.10
23-05-09 22:00:11 23:05-09 22:15:09 planned activity 0.15
Mdate Reason omode host
12-02-09 12:00:00 planned activity st 366
12-02-09 13:10:20 planned activity ed 366
01-04-09 08:30:34 planned activity st 366
01-04-09 15:00:20 planned activity ed 366
12-04-09 17:10:45 unplanned activity st 366
12-04-09 17:11:04 unplanned activity ed 366
23-05-09 22:00:11 planned activity st 366
23:05-09 22:15:09 planned activity ed 366
i tried with individual query but not able to get the output in combined way of start, end dates together with calculation of time difference, i tried using case options but not successful in resolve it.
select to_char(mdate,'dd-mm-yyyyy hh24:mi:ss')startdate, reason
from date_md where omode like 'st'
order by o_char(mdate,'dd-mm-yyyyy hh24:mi:ss')startdate;
select to_char(mdate,'dd-mm-yyyyy hh24:mi:ss')enddate, reason
from date_md where omode like 'ed'
order by o_char(mdate,'dd-mm-yyyyy hh24:mi:ss')enddate;
any suggestions on type of query should be used is welcomed.Or maybe
SQL> WITH t AS (SELECT TO_DATE ('12-02-09 12:00:00',
'DD-MM-YY HH24:MI:SS')
event_date,
'planned activity' activity,
'st' start_end,
366 HOST
FROM DUAL
UNION ALL
SELECT TO_DATE ('12-02-09 13:10:20',
'DD-MM-YY HH24:MI:SS'),
'planned activity',
'ed',
366
FROM DUAL
UNION ALL
SELECT TO_DATE ('01-04-09 08:30:34',
'DD-MM-YY HH24:MI:SS'),
'planned activity',
'st',
366
FROM DUAL
UNION ALL
SELECT TO_DATE ('01-04-09 15:00:20',
'DD-MM-YY HH24:MI:SS'),
'planned activity',
'ed',
366
FROM DUAL
UNION ALL
SELECT TO_DATE ('12-04-09 17:10:45',
'DD-MM-YY HH24:MI:SS'),
'unplanned activity',
'st',
366
FROM DUAL
UNION ALL
SELECT TO_DATE ('12-04-09 17:11:04',
'DD-MM-YY HH24:MI:SS'),
'unplanned activity',
'ed',
366
FROM DUAL
UNION ALL
SELECT TO_DATE ('23-05-09 22:00:11',
'DD-MM-YY HH24:MI:SS'),
'planned activity',
'st',
366
FROM DUAL
UNION ALL
SELECT TO_DATE ('23-05-09 22:15:09',
'DD-MM-YY HH24:MI:SS'),
'planned activity',
'ed',
366
FROM DUAL)
SELECT MIN (event_date) startdate,
MAX (event_date) enddate,
MAX (activity) reason,
NUMTODSINTERVAL (MAX (event_date) - MIN (event_date),
'day')
duration
FROM t
GROUP BY TRUNC (event_date)
STARTDATE ENDDATE REASON DURATION
23.05.2009 22:00:11 23.05.2009 22:15:09 planned activity +00 00:14:57.999999
12.02.2009 12:00:00 12.02.2009 13:10:20 planned activity +00 01:10:19.999999
01.04.2009 08:30:34 01.04.2009 15:00:20 planned activity +00 06:29:45.999999
12.04.2009 17:10:45 12.04.2009 17:11:04 unplanned activity +00 00:00:18.999999
4 rows selected. -
Getting data in a query on last date of all previous months
Dear Experts,
I need your help with a query.
I am trying to create a query which when run should pick the number of Open Sales Order on the last date of all the previous months from the start of company.
I could create the query for fetching the required data on last day of the previous month, say today is 25th June 2014, so my query only fetches data for May 31st 2014 but I need data for all previous month, May 31st 2014, April 30th 2014, March 31st 2014 & so on.
Please advise how to achieve this is SQL query.
Thanks & regards,
NitinHi,
Try this:
Select *
from(
SELECT T0.[DocNum] as #,t0.cardcode as C, t0.docdate
FROM ORDR T0
WHERE T0.[DocStatus] = 'o' and T0.[DocDate] = CONVERT(VARCHAR(10), DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,getdate())-1,0)),10) OR T0.[DocDate] = CONVERT(VARCHAR(10), DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,getdate())-2,0)),10) or T0.[DocDate] = CONVERT(VARCHAR(10), DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,getdate())-3,0)),10) or T0.[DocDate] = CONVERT(VARCHAR(10), DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,getdate())-4,0)),10) or T0.[DocDate] = CONVERT(VARCHAR(10), DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,getdate())-5,0)),10) or T0.[DocDate] = CONVERT(VARCHAR(10), DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,getdate())-6,0)),10) or T0.[DocDate] = CONVERT(VARCHAR(10), DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,getdate())-7,0)),10)
group by t0.cardcode,docdate,T0.[DocNum]) S
pivot
(count(#) for c in([cvt01],[cvt02],[cvt03],[cvt04],[cvt05],[cvt06],[cvt07],[cvt08],[cvt12])) P
Note: Replace Cvt01,02...with your customer code.
Thanks & Regards,
Nagarajan -
How to query opening balance for all customer or Vendor for an speci. date
Hi,
How to query opening balance for all customer or Vendor for an specific date?
Example:
put any date and query will show all customer/ Vendor that date opening/current balance.
Regards,
MizanHi mizan700 ,
Try this
SELECT T0.[DocNum] As 'Doc No.', T0.[CardCode] As 'Customer Code',
T0.[CardName] As 'Customer Name',(T0.[DocTotal]-T0.[PaidSys]) As 'O/S Balance'
FROM OINV T0 INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode
INNER JOIN OCRG T2 on T1.GroupCode = T2.GroupCode
INNER JOIN INV1 T3 ON T0.DocEntry = T3.DocEntry
WHERE T0.[DocStatus] ='O'
AND
(T0.[DocDate] >='[%0]' AND T0.[DocDate] <='[%1]')
Regards:
Balaji.S -
How to calculate first date and end date of this year in Query
Hi Expert
I want to calculate following dates with inputted date in query.
I have no knowledge on ABAP and I just can create a query with simple logic.
Could you teach me how to calculate following date?
(If inputted date is April 12 2009)
- First date of this year (Ex January 1 2009)
- End date of this year (Ex December 31 2009)
- First date of last year (Ex January 1 2008)
- End date of last year (Ex December 31 2008)
- First date of this month (Ex April 1 2009)
Thank you!
TakeHR_JP_MONTH_BEGIN_END_DATE use this FM to get the begin and end date of the Date you are passing. eg when u give input as 04/12/2009, it will return
04/01/2009 as begin date
04/30/2009 as end date
pass the Year in this FM HR_E_GET_FISC_YEAR_DATES, you will get the Fiscal year Begin and End Dates
Abh -
Query to find the start and end date of current quarter
I want a query to give me the start date and end date of current quarter
I don't want to use TRUNC and ROUND as the 16th day roundoff logic is not required.
Thanks in advance.Hi ,
I'm quite sure that the year quarters are static.....
So , you can save them as records of a table , such as:
QRTY START_DAY END DAY
============================
1 1/1 30/3
2 1/4 30/6
3 1/7 30/9
4 1/10 31/12
The sysdate(day of the current quarter) must be between a start_day and appropriate end_day of the quarters, concatenated with the sysyear (year of the sysdate).
So , if the above table is called Quarters ...
then
select start_day , end_day
from quarters
where to_date(sysdate,'dd/mm/rrrr') between (to_date(trim((start_day||'/'||to_char(sysdate,'rrrr'))),'dd/mm/rrrr'))
and (to_date(trim((end_day||'/'||to_char(sysdate,'rrrr'))),'dd/mm/rrrr'));
[b]Result
START_DAY END_DAY
1/10 31/12
Regards,
Simon
Message was edited by:
sgalaxy
Message was edited by:
sgalaxy -
Camel Query : Calender list : Get Items agains given date that must be greater than and eqaul to start date and greater less than or equal to end date ?
A Snap of Employee holiday list
Case : Anne juul Sondergaar is on leave from 05-06-2014 to 07-06-2014
I need a query to check wheither Anne juul is on leave at 06-06-2014 ????
I am using this query that return nothing
SPQueryquery =
newSPQuery();
query.Query =
@"<Where>
<And>
<And>
<Leq>
<FieldRef Name='Til' />
<Value Type='DateTime'>"
+ WorkingStartDate.ToString("yyyy-MM-dd")
+ @"</Value>
</Leq>
<Geq>
<FieldRef Name='Fra' />
<Value Type='DateTime'>"
+ WorkingStartDate.ToString("yyyy-MM-dd")
+ @"</Value>
</Geq>
</And>
<Eq>
<FieldRef Name='Medarbejdere' />
<Value Type='Lookup'>"
+ EmployeeName.Trim() +
@"</Value>
</Eq>
</And>
</Where>"
query.ViewFields =
" <FieldRef Name='ID' />";
Ahsan RanjhaHello,
Download CAML query builder from below location and use it to build your query:
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/f7b36ebc-6142-404a-8b04-9c87de272871/where-can-i-download-the-u2u-caml-query-builder-for-sharepoint-2010may-i-know-the-exact-link?forum=sharepointgeneralprevious
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
Get the starting date and end date of all weeks of a given month and year
hey Guys so far I have this.. but I am having difficulty limiting it by month. I am using Oracle 11 release 1
Select year, week, next_day( to_date( '04-jan-' || year, 'dd-mon-yyyy' ) + (week-2)*7, 'sun' ) as weekStartDate,
next_day( to_date( '04-jan-' || year, 'dd-mon-yyyy' ) + (week-2)*7, 'sun' ) +6 as weekEndDate
from (Select '2012' year, rownum week from all_objects where rownum<=5)
Thanks in advance
Edited by: Aj05 on Jan 12, 2012 7:42 AMFirst you need to define week starting day. If, for example it is Monday:
TRUNC(TRUNC(&dt,'YYYY') -1,'IW')is first Monday of the year. Then:
SELECT TRUNC(TRUNC(&dt,'YYYY') -1,'IW') + (LEVEL - 1) * 7 week_start_date
FROM DUAL
CONNECT BY LEVEL <= 53
/will give start dates of all weeks within &dt year. And:
WITH t AS (
SELECT TRUNC(TRUNC(&dt,'YYYY') -1,'IW') + (LEVEL - 1) * 7 week_start_date
FROM DUAL
CONNECT BY LEVEL <= 53
SELECT week_start_date,
week_start_date + 6 week_end_date
FROM t
WHERE week_start_date > TRUNC(&dt,'MM')
AND week_start_date < ADD_MONTHS(TRUNC(&dt,'MM'),1)
/will give you week start/end dates within &dt year and month. For example:
SQL> DEFINE dt="DATE '2012-03-17'"
SQL> WITH t AS (
2 SELECT TRUNC(TRUNC(&dt,'YYYY') -1,'IW') + (LEVEL - 1) * 7 week_start_date
3 FROM DUAL
4 CONNECT BY LEVEL <= 53
5 )
6 SELECT week_start_date,
7 week_start_date + 6 week_end_date
8 FROM t
9 WHERE week_start_date > TRUNC(&dt,'MM')
10 AND week_start_date < ADD_MONTHS(TRUNC(&dt,'MM'),1)
11 /
old 2: SELECT TRUNC(TRUNC(&dt,'YYYY') -1,'IW') + (LEVEL - 1) * 7 week_start_date
new 2: SELECT TRUNC(TRUNC(DATE '2012-03-17','YYYY') -1,'IW') + (LEVEL - 1) * 7 week_start_date
old 9: WHERE week_start_date > TRUNC(&dt,'MM')
new 9: WHERE week_start_date > TRUNC(DATE '2012-03-17','MM')
old 10: AND week_start_date < ADD_MONTHS(TRUNC(&dt,'MM'),1)
new 10: AND week_start_date < ADD_MONTHS(TRUNC(DATE '2012-03-17','MM'),1)
WEEK_STAR WEEK_END_
05-MAR-12 11-MAR-12
12-MAR-12 18-MAR-12
19-MAR-12 25-MAR-12
26-MAR-12 01-APR-12
SQL> SY.
Maybe you are looking for
-
Need help in figuring out how to set up an IMAP Yahoo account
Hello, I am trying to help my dad (who is 80 years old) in setting up his iMac and iPhone 4S with his email. His email address ends in "sbcglobal.net", however, he is able to check his sbcglobal email through Safari by going to Yahoo Mail. I don't kn
-
"End of File" error 4 when trying to use Advanced TDMS Palette to create a circular file buffer
I'm using the Advanced TDMS palette to create an on-disk circular buffer. I was able to successfully implement the buffer for a single channel of data. However, when I try to write multiple channels of data, I continuously get "End of File Encountere
-
I bought an iPhone 5s in Canada with my company Koodo but now I want to use it in Mexico..How do I get it to work? How do I unlock it so I can use it in Mexico??
-
How do I know if my app has actually been submitted?
A team member helped design our app, and says that it was submitted through her personal developer account. It's been over 6 weeks since submission and we've seen zero communication. Can someone please explain the approval process to me so that I kno
-
Is it possible to use dataguard between 64 bit oracle and 32 bit oracle
primary db 64 bit oracle (10g r2) standby db 32 bit oracle (10g r2) is it possible to crate such a data protection solution with data guard that works thanks for your reply