Sunteți pe pagina 1din 29

Oracle Time & Labor Setup

Project # AKT
S.No Contents
1 Time OTL: Define Recurring Periods

2 OTL: Define Approval Periods

3 OTL: Define Retrieval Rules

4 OTL: Define Retrieval Rule Groups

Classification: Birlasoft Internal


5 OTL: Define Time Categories

Classification: Birlasoft Internal


6 OTL: Time Entry Rules

Classification: Birlasoft Internal


7 OTL: Define Time Entry Rule Groups
8 OTL: Define Approval Style

9 OTL: Define Earning Group

Classification: Birlasoft Internal


10 OTL: Element Time Information

11 OTL: Define Holiday Calendar

12 OTL: Define Shifts


13 OTL: Define Work Plans
14 OTL: Define Rotation Plans
15 OTL: Define Hour Deduction Policy
16 OTL: Define Earning Policy
17 OTL: Define Shift Differential

Classification: Birlasoft Internal


18 OTL: Define Premium Eligibility Policy
19 OTL: Define Alternate Name Definitions

20 OTL: Define Application Sets

21 OTL: Define Preferences

Classification: Birlasoft Internal


General Menager # Murali Krishna S
Manager # Firosewajith Khan
Developer # Satyanarayana Chi

Navigation
US OTL Application Developer --> Recurring Peridos

US OTL Application Developer --> Approval --> Define Approval Periods

US OTL Application Developer --> Deposit /Retrieval Processes: Define Retrieval Rules

US OTL Application Developer --> Deposit/Retrieval Processes: Define Retrieval Rule Groups

Classification: Birlasoft Internal


US OTL Application Developer -->Time Categories

Classification: Birlasoft Internal


US OTL Application Developer -->Time Entry Rules > Define Time Entry Rules

Classification: Birlasoft Internal


US OTL Application Developer -->Time Entry Rules > Define Time Entry Rule Groups
US OTL Application Developer --> Approval > Approval Style

US OTL Application Developer --> OTL Time Accounting > Table Setup and Maintenance > Earning Group

Classification: Birlasoft Internal


US OTL Application Developer --> OTL Time Accounting > Element Time Information

US OTL Application Developer --> OTL Time Accounting > Table Setup and Maintenance > Holiday Calendar

US OTL Application Developer --> OTL Time Accounting > Table Setup and Maintenance > Shifts
US OTL Application Developer --> OTL Time Accounting > Table Setup and Maintenance > Work Plan
US OTL Application Developer --> OTL Time Accounting > Table Setup and Maintenance > Rotation Plan
US OTL Application Developer --> OTL Time Accounting > Policies > Hour Deduction
US OTL Application Developer --> OTL Time Accounting > Policies > Earning
US OTL Application Developer --> OTL Time Accounting > Policies > Shift Differential

Classification: Birlasoft Internal


US OTL Application Developer --> OTL Time Accounting > Policies > Premium Eligibility Policy
US OTL Application Developer --> Alternate Names > Alternate Name Definitions

US OTL Application Developer --> Application Sets

US OTL Application Developer --> Preferences --> Eligibility Criteria

Classification: Birlasoft Internal


Query
SELECT NAME,PERIOD_TYPE,DURATION_IN_DAYS,START_DATE FROM HXC_RECURRING_PERIODS;

SELECT b.name,A.TIME_RECIPIENT_NAME "Application",A.recurring_period_name "Recurring Period"


FROM hxc_approval_period_comps_v A, HXC_APPROVAL_PERIOD_SETS B
WHERE A.APPROVAL_PERIOD_SET_ID= b.approval_period_set_id;

SELECT HRR.NAME "RETRIEVAL RULE NAME",HRP.NAME "RETRIEVAL PROCESS NAME", HTR.NAME


"APPLICATION",HRRC.STATUS FROM HXC_RETRIEVAL_RULE_COMPS HRRC, HXC_RETRIEVAL_PROCESSES HRP,
HXC_RETRIEVAL_RULES HRR, HXC_TIME_RECIPIENTS HTR WHERE HRRC.RETRIEVAL_RULE_ID = HRR.RETRIEVAL_RULE_ID
AND HRRC.TIME_RECIPIENT_ID = HRP.TIME_RECIPIENT_ID
AND HRRC.TIME_RECIPIENT_ID = HTR.TIME_RECIPIENT_ID;

SELECT HEG.NAME, rr.name "RETRIEVAL RULE NAME" , rp.name "RETRIEVAL PROCESS NAME" FROM
hxc_retrieval_processes rp , hxc_retrieval_rules rr , hxc_entity_group_comps egc,HXC_ENTITY_GROUPS HEG
WHERE egc.entity_type = 'RETRIEVAL_RULES' AND rr.retrieval_rule_id = egc.entity_id AND EGC.ENTITY_GROUP_ID =
HEG.ENTITY_GROUP_ID AND rp.retrieval_process_id = rr.retrieval_process_id;

Classification: Birlasoft Internal


hxc_bld_blk_info_type_usages bbitu,
hxc_bld_blk_info_types bbit,
hxc_mapping_components mpc
WHERE bbit.bld_blk_info_type_id = mpc.bld_blk_info_type_id
AND bbitu.bld_blk_info_type_id = bbit.bld_blk_info_type_id
AND dfcu.application_id = 809
AND dfcu.descriptive_flex_context_code = bbit.bld_blk_info_type
AND dfcu.descriptive_flexfield_name = 'OTC Information Types'
AND ( (dfcu.application_column_name = mpc.segment
AND mpc.segment <> 'ATTRIBUTE_CATEGORY')
OR (mpc.segment = 'ATTRIBUTE_CATEGORY'
AND( (dfcu.application_column_name =
(SELECT dfcu2.application_column_name
FROM fnd_descr_flex_column_usages dfcu2
WHERE dfcu2.application_id = dfcu.application_id
AND dfcu2.descriptive_flexfield_name = dfcu.descriptive_flexfield_name
AND dfcu2.descriptive_flex_context_code = dfcu.descriptive_flex_context_code
AND rownum =1
))
OR (NOT EXISTS
(SELECT dfcu2.application_column_name
FROM fnd_descr_flex_column_usages dfcu2
WHERE dfcu2.application_id = dfcu.application_id
AND dfcu2.descriptive_flexfield_name = dfcu.descriptive_flexfield_name
AND dfcu2.descriptive_flex_context_code = dfcu.descriptive_flex_context_code
)) ) ) )) mpc,
hxc_time_Category_comps tcc,
hxc_time_Categories htc,
fnd_lookup_values lk
WHERE --tcc.type = 'MC'
mpc.mapping_component_id = tcc.component_type_id
and tcc.time_category_id = htc.time_category_id
AND lk.lookup_type = 'HXC_TIME_CATEGORY_IS_NULL'
AND lk.lookup_code = tcc.is_null
AND lk.security_group_id = 0
AND lk.view_application_id = 3
AND lk.language = userenv('LANG');
-- and htc.TIME_CATEGORY_NAME = 'CA Hour Category';

Classification: Birlasoft Internal


ter.ATTRIBUTE1,
ter.ATTRIBUTE2,
ter.ATTRIBUTE3,
ter.ATTRIBUTE4,
ter.ATTRIBUTE5,
ter.ATTRIBUTE6,
ter.ATTRIBUTE7,
ter.ATTRIBUTE8,
ter.ATTRIBUTE9,
ter.ATTRIBUTE10,
ter.ATTRIBUTE11,
ter.ATTRIBUTE12,
ter.ATTRIBUTE13,
ter.ATTRIBUTE14,
ter.ATTRIBUTE15,
ter.ATTRIBUTE16,
ter.ATTRIBUTE17,
ter.ATTRIBUTE18,
ter.ATTRIBUTE19,
ter.ATTRIBUTE20,
ter.ATTRIBUTE21,
ter.ATTRIBUTE22,
ter.ATTRIBUTE23,
ter.ATTRIBUTE24,
ter.ATTRIBUTE25,
ter.ATTRIBUTE26,
ter.ATTRIBUTE27,
ter.ATTRIBUTE28,
ter.ATTRIBUTE29,
ter.ATTRIBUTE30
FROM hxc_mappings map,
ff_formulas_f ff,
hxc_time_entry_rules ter
WHERE ff.formula_id(+) = ter.formula_id
AND ter.start_date BETWEEN ff.effective_start_date(+) AND ff.effective_end_date(+)
AND map.mapping_id(+) = ter.mapping_id)
WHERE (business_group_id is null or business_group_id = '202') and (legislation_code is null or legislation_code = 'US')
order by name, start_date

Classification: Birlasoft Internal


ter.ATTRIBUTE5,
ter.ATTRIBUTE6,
ter.ATTRIBUTE7,
ter.ATTRIBUTE8,
ter.ATTRIBUTE9,
ter.ATTRIBUTE10,
ter.ATTRIBUTE11,
ter.ATTRIBUTE12,
ter.ATTRIBUTE13,
ter.ATTRIBUTE14,
ter.ATTRIBUTE15,
ter.ATTRIBUTE16,
ter.ATTRIBUTE17,
ter.ATTRIBUTE18,
ter.ATTRIBUTE19,
ter.ATTRIBUTE20,
ter.ATTRIBUTE21,
ter.ATTRIBUTE22,
ter.ATTRIBUTE23,
ter.ATTRIBUTE24,
ter.ATTRIBUTE25,
ter.ATTRIBUTE26,
ter.ATTRIBUTE27,
ter.ATTRIBUTE28,
ter.ATTRIBUTE29,
ter.ATTRIBUTE30
FROM hxc_mappings map,
ff_formulas_f ff,
hxc_time_entry_rules ter
WHERE ff.formula_id(+) = ter.formula_id
AND ter.start_date BETWEEN ff.effective_start_date(+) AND ff.effective_end_date(+)
AND map.mapping_id(+) = ter.mapping_id) ter ,
hxc_entity_group_comps egc
WHERE egc.entity_type = 'TIME_ENTRY_RULES'
AND ter.time_entry_rule_id = egc.entity_id
AND lk.lookup_type = 'HXC_TIME_ENTRY_RULE_OUTCOME'
AND lk.lookup_code = egc.attribute1)
ORDER BY TIME_ENTRY_RULE_GROUP_ID DESC

SELECT
HEGT.NAME,HEGT.DESCRIPTION,HEGT.EFFECTIVE_START_DATE,HEGT.EFFECTIVE_END_DATE,HPET.ELEMENT_NAME
FROM HXT_EARN_GROUP_TYPES HEGT,HXT_EARN_GROUPS HEG,pay_element_types_f_tl HPET
WHERE HEGT.ID = heg.egt_id
AND heg.element_type_id = hpet.element_type_id
ORDER BY HEGT.NAME;

Classification: Birlasoft Internal


SELECT DISTINCT
pett.element_name ,
aei.effective_start_date ,
aei.effective_end_date ,
fcl1.meaning earning_category_name ,
aei.absence_type ,
aei.absence_points ,
aei.premium_type ,
aei.premium_amount ,
aei.processing_order ,
aei.expenditure_type
FROM (SELECT EXPENDITURE_TYPE , DESCRIPTION FROM PA_EXPENDITURE_TYPES) pxtv,
hr_lookups fcl3,
hr_lookups fcl2,
hr_lookups fcl1,
pay_element_types_f_tl pett,
pay_element_types_f pet,
hxt_add_elem_info_f aei,
fnd_sessions fss
WHERE --fss.session_id = USERENV('SESSIONID')
fss.effective_date BETWEEN aei.effective_start_date AND aei.effective_end_date
AND aei.element_type_id = pet.element_type_id
AND pett.element_type_id(+) = pet.element_type_id
AND DECODE(pett.element_type_id,NULL,'1',pett.language) = DECODE(pett.element_type_id,NULL,'1',userenv('LANG'))
AND fss.effective_date BETWEEN pet.effective_start_date AND pet.effective_end_date
AND aei.earning_category = fcl1.lookup_code
AND fcl1.application_id = 808
AND fcl1.lookup_type = 'HXT_EARNING_CATEGORY'
AND fcl1.enabled_flag = 'Y'
AND aei.absence_type = fcl2.lookup_code(+)
AND fcl2.application_id(+) = 808
AND fcl2.lookup_type(+) = 'HXT_ABSENCE_TYPES'
AND fcl2.enabled_flag(+) = 'Y'
AND aei.premium_type = fcl3.lookup_code(+)
AND fcl3.application_id(+) = 808
AND fcl3.lookup_type(+) = 'HXT_PREMIUM_TYPE'
AND fcl3.enabled_flag(+) = 'Y'
AND aei.expenditure_type = pxtv.expenditure_type(+);

SELECT HHC.NAME "Holiday Calender Name",HHC.DESCRIPTION,HPET.ELEMENT_NAME "Earning Type",HOU.NAME


"Organization",hhc.effective_start_date "Effective Date From",hhc.effective_end_date "Effective Date To",HHDV.NAME
"Holidays Name",
HHDV.HOLIDAY_DATE "Holiday Date",HHDV.HOURS
FROM HXT_HOLIDAY_CALENDARS HHC,pay_element_types_f_tl HPET,HXT_HOLIDAY_DAYS_VL
HHDV,HR_OPERATING_UNITS HOU WHERE HHC.ELEMENT_TYPE_ID = HPET.ELEMENT_TYPE_ID
AND HHC.ID = HHDV.HCL_ID
AND HHC.ORGANIZATION_ID = HOU.ORGANIZATION_ID (+);

SELECT
NAME,DESCRIPTION,EARLY_START,LATE_STOP,STANDARD_START,STANDARD_STOP,HOURS,EFFECTIVE_START_DATE,EFFECT
IVE_END_DATE FROM HXT_SHIFTS WHERE effective_start_date <= nvl(to_date('15-04-2015','DD-MM-YYYY'), sysdate) and
nvl(to_date('15-04-2015','DD-MM-YYYY'), sysdate) <= nvl(effective_end_date, to_date('31-12-4712','DD-MM-YYYY'))
order by CODE

Classification: Birlasoft Internal


SELECT
heg.NAME "Application Sets Name",
tr.name "Applications Name"
FROM hxc_entity_groups heg,
hxc_time_recipients tr ,
hxc_entity_group_comps egc
WHERE egc.ENTITY_GROUP_ID = heg.ENTITY_GROUP_ID
AND tr.time_recipient_id = egc.entity_id
and heg.entity_type = 'TIME_RECIPIENTS';
AND ppl.language = USERENV('LANG')
AND ppt.business_group_id = hrr.business_group_id
UNION
SELECT hrr.ROWID row_id,
hrr.resource_rule_id,
hrr.NAME,
hrr.business_group_id,
hrr.legislation_code,
hrr.eligibility_criteria_type,
hrl.meaning,
hrr.eligibility_criteria_id,
hll.meaning,
hrr.pref_hierarchy_id,
hph.NAME,
hrr.rule_evaluation_order,
hrr.resource_type,
hrr.start_date,
DECODE ( hrr.end_date, hr_general.end_of_time, TO_DATE (NULL), hrr.end_date ),
hrr.object_version_number,
hrr.created_by,
hrr.creation_date,
hrr.last_updated_by,
hrr.last_update_date,
hrr.last_update_login
FROM hr_lookups hll,
hxc_pref_hierarchies hph,
hr_standard_lookups hrl,
hxc_resource_rules hrr
WHERE hrl.lookup_type = 'HXC_ELIG_CRITERIA_TYPE'
AND hrl.lookup_code = hrr.eligibility_criteria_type
AND hrl.application_id = 809
AND hrr.pref_hierarchy_id = hph.pref_hierarchy_id
AND hrr.eligibility_criteria_id = hll.lookup_code
AND ( ( hrr.eligibility_criteria_type = 'EMP_CATEGORY'
AND hll.lookup_type = 'EMPLOYEE_CATG' )
OR ( hrr.eligibility_criteria_type = 'ASGN_CATEGORY'
AND ( hll.lookup_type = 'EMP_CAT'
OR hll.lookup_type = 'CWK_ASG_CATEGORY' ) ) ) ;

Classification: Birlasoft Internal


Results Comments
Tested Completed

Tested Completed

Tested Completed

Tested Completed

Classification: Birlasoft Internal


Tested Completed

Classification: Birlasoft Internal


Tested Completed

Classification: Birlasoft Internal


Tested Completed

Classification: Birlasoft Internal


Tested Completed

Classification: Birlasoft Internal


Tested Completed

Tested Completed

Classification: Birlasoft Internal


Classification: Birlasoft Internal
Classification: Birlasoft Internal
Classification: Birlasoft Internal
Page processing
Manually submit the Work Space

Classification: Birlasoft Internal


ubmit the Work Space

Classification: Birlasoft Internal

S-ar putea să vă placă și