Tracking Date in HRMS Payroll in Oracle
-
Upload
avishek-bose -
Category
Documents
-
view
217 -
download
0
Transcript of Tracking Date in HRMS Payroll in Oracle
-
7/30/2019 Tracking Date in HRMS Payroll in Oracle
1/3
Tracking Date in HRMS Payroll in Oracle
Inthisarticle,Iwillexplainhowthedate-trackingworksinOracleHRMS.What is DateTracking in OracleHRMS?Let'stakeanexample.AnemployeeemailstotheirHRMSdepartmentthatherSurnamewillchangeafter
2weeks,asshegetsmarriedafter2weeks.Todaybeing10December,HRMSteamwillDate-Trackto24-Dec-2006andqueryonherrecord.
NextherrecordwillbechangedtoreflecttheSurnameapplicablefrom24-Dec-Onwards.
How does Date-Tracking actually happens?AssoonasyoulogontoascreenwhichisbasedonDatesensitiveinformation,
Oraclewillpromptyouwithtwooptions
1.ChangetheEffectiveDateofthecurrentloggedonSESSION
2.RetaintheSYSDATEasCurrentEffectivedate
Inreality,arecordgetscreated/updatedinatablecalledfnd_sessions .
IfyouclickonYES,thenyouwillgetanopportunitytochangetheCurrentSessionDate
OK, the Date Selected by user for date-track is stored in fnd_sessions with their sessionid. But how about application data?Whenyouattempttomodifyadate-tracksensitivedatasuchasPersonSurname,OracleHRMSpromptsyouforeithera
CorrectModeorUpdateMode.
-
7/30/2019 Tracking Date in HRMS Payroll in Oracle
2/3
Letssaytherecord,beforemakingthechangetherecordwas
PersonFirstName:Aish
PersonFirstName:Rai
effective_start_date:10-JAN-2003--whenthepersonjoinedorganization
effective_end_date:31-12-4712--FromHr_Api.g_eot[endoftime,wellnotliterally]
IftherecordismodifiedinCorrectionmode,thenthisrecordwillbemodifiedas
PersonFirstName:Aish
PersonFirstName:Bachan
effective_start_date:10-JAN-2003--whenthepersonjoinedorganizationeffective_end_date:31-12-4712--FromHr_Api.g_eot[endoftime,wellnotliterally]
IftherecordismodifiedinUPDATEmode,thenthisrecordwillbemodifiedas
Theexistingrecordwillbeenddated
PersonFirstName:Aish
PersonFirstName:Rai
effective_start_date:10-JAN-2003--whenthepersonjoinedorganization
effective_end_date:23-Dec-2006--adaypriortodate-trackdate
Anewrecordwillbecreated
PersonFirstName:Aish
PersonFirstName:bachan
effective_start_date:24-DEC2006--whenthepersonjoinedorganizationeffective_end_date:31-12-4712--FromHr_Api.g_eot
Does this mean, when modifying in UPDATE mode existing record is end-dated and a new record is created? Yes,indeed.
What are the other scenarios for the usage of Date-tracking?1.Hiringanemployeeinfuturedate.
2.Makingsalarychangeswhichareeffectiveaftersay2months.
On a SQL*Plus session, I get nothing when I do select * from per_people_v?AlmostalltheHRMSviewsonwhichscreensareHRMSbased,theyhaveajointofnd_sessionstable.
Whenuserchangestheirdate-trackvalue,itgetsreflectedinfnd_sessionstable.
UsetheSQLbelowtocreateadefaultrecordforyourSQL*Plussession/
INSERTINTOfnd_sessions
(session_id
,effective_date)
(SELECTuserenv('sessionid')
,SYSDATE
FROMdual
-
7/30/2019 Tracking Date in HRMS Payroll in Oracle
3/3
WHERENOTEXISTS(SELECT'c'
FROMfnd_sessionss1
WHEREuserenv('sessionid')=s1.session_id));
What if I forget to change the date-tracked date when enteting the screen?YoucanclickonCalendariconasbelow.