Wednesday, May 14, 2025
  • Contact
  • Guest Post
  • Privacy Policy
  • Ask Question
  • Fun at work
  • Feedback
  • Blog
  • Login
iavinash
  • Functional Articles
    • Oracle Cloud Absence Management
    • Oracle Compensation Management (CWB)
    • Oracle Cloud Global HR
    • Oracle Learning Cloud
    • Oracle Cloud Talent Management
      • Oracle Cloud Profile Management
      • Oracle Cloud Performance Management
      • Oracle Cloud Goal Management
      • Succession Management and Talent Pool
      • Oracle Cloud Talent Review
      • Oracle Cloud Touchpoints
      • All Talent Management Articles
    • Oracle Time and Labor (OTL)
    • Oracle Recruiting Cloud (ORC)
    • Oracle Cloud HCM
    • Oracle Cloud HCM Common Issues
    • Oracle Cloud HCM Interview Questions
    • Oracle Cloud Approval Workflow
  • Technical Articles
    • Oracle Cloud Fast Formula
    • Oracle Reports and Alerts
    • Oracle Cloud Reusable Queries
  • All Articles
  • Ask Question
  • Subscribe
No Result
View All Result
  • Functional Articles
    • Oracle Cloud Absence Management
    • Oracle Compensation Management (CWB)
    • Oracle Cloud Global HR
    • Oracle Learning Cloud
    • Oracle Cloud Talent Management
      • Oracle Cloud Profile Management
      • Oracle Cloud Performance Management
      • Oracle Cloud Goal Management
      • Succession Management and Talent Pool
      • Oracle Cloud Talent Review
      • Oracle Cloud Touchpoints
      • All Talent Management Articles
    • Oracle Time and Labor (OTL)
    • Oracle Recruiting Cloud (ORC)
    • Oracle Cloud HCM
    • Oracle Cloud HCM Common Issues
    • Oracle Cloud HCM Interview Questions
    • Oracle Cloud Approval Workflow
  • Technical Articles
    • Oracle Cloud Fast Formula
    • Oracle Reports and Alerts
    • Oracle Cloud Reusable Queries
  • All Articles
  • Ask Question
  • Subscribe
No Result
View All Result
iavinash
No Result
View All Result

OTL timecard/timesheet query to fetch submitted/approved hours

Avinash by Avinash
in Oracle Cloud Reusable Queries, Oracle Time and Labor
Reading Time: 2 mins read
A A
OTL timecardtimesheet query to fetch submittedapproved hours
16.3k
VIEWS
Share on LinkedinShare Over Email

RelatedPosts

Oracle Compensatory Time Off Setup with OTL

Configure Compensatory Time Off With Oracle Time and Labor

1.7k
Learn to Configure OTL

Learn Oracle Time and Labor (OTL) Cloud With Payroll

5.1k

OTL Query

Here is the query to get time submitted by any resource (employee as well as contractor). This will help you if you want to quickly want to check what is the time entered by any resource and what is the status of that time card (approved, submitted or anything else). If you want to run for a single person just change the employee number at the end of the query.

Just remember if you would run this for all resources, it will take very long time to run so its advisable to run it for small chunk of resources.

SELECT nvl(ppf.employee_number,ppf.npw_number) "Person Number",
 ppf.full_name,
 htbb1.start_time week_start_date,
 htbb1.stop_time week_end_date,
 hts.submission_date submitted_date,
 day.start_time day,
 detail.measure hours,
 ppa.project_number,
 pt.task_number,
 hta.attribute3 "Type",
 hts.approval_status
 FROM apps.per_all_people_f ppf,
 apps.hxc_time_building_blocks htbb1,
 apps.hxc_time_building_blocks DAY,
 apps.hxc_time_building_blocks detail,
 apps.hxc_base_pa_online_projects_v ppa,
 apps.hxc_base_pa_online_tasks_v pt,
 apps.hxc_time_attribute_usages htau,
 apps.hxc_time_attribute_usages htau1,
 apps.hxc_time_attributes hta,
 apps.hxc_bld_blk_info_types hbbit,
 apps.hxc_time_attributes hta1,
 apps.hxc_timecard_summary hts
 WHERE 1 = 1
 AND htbb1.resource_id = ppf.person_id
 AND htbb1.SCOPE = 'TIMECARD'
 AND TRUNC (SYSDATE) BETWEEN ppf.effective_start_date
 AND NVL (ppf.effective_end_date,
 TRUNC (SYSDATE))
 AND DAY.parent_building_block_id = htbb1.time_building_block_id
 AND DAY.parent_building_block_ovn = htbb1.object_version_number
 AND DAY.SCOPE = 'DAY'
 AND DAY.date_to = TO_DATE ('31/12/4712', 'DD/MM/YYYY')
 AND detail.date_to = TO_DATE ('31/12/4712', 'DD/MM/YYYY')
 AND detail.SCOPE = 'DETAIL'
 AND detail.parent_building_block_id = DAY.time_building_block_id
 AND detail.parent_building_block_ovn = DAY.object_version_number
 AND hta.attribute1 = ppa.project_id
 AND hta.attribute2 = pt.task_id
 AND ppa.project_id = pt.project_id
 AND htau.time_building_block_id = detail.time_building_block_id
 AND htau.time_building_block_ovn = detail.object_version_number
 AND htau1.time_building_block_id = detail.time_building_block_id
 AND htau1.time_building_block_ovn = detail.object_version_number
 AND htau.time_attribute_id = hta.time_attribute_id
 AND hta.bld_blk_info_type_id = hbbit.bld_blk_info_type_id
 AND hbbit.bld_blk_info_type = 'PROJECTS'
 AND htau1.time_attribute_id = hta1.time_attribute_id
 AND hta1.attribute_category = 'SECURITY'
 AND hts.timecard_id = htbb1.time_building_block_id
 AND NVL (hts.timecard_ovn, htbb1.object_version_number) = htbb1.object_version_number
 and nvl(ppf.employee_number, ppf.npw_number) = '127856' -- Change your employee number here of comment this line for all resources
ORDER BY day.start_time DESC, htbb1.start_time DESC

Few other reusable queries if you are interested in
[su_feed url=”https://iavinash.com//category/reusable-queries/feed/” limit=”5″]

Tags: otlReusable Query
ShareSendSendScan

Don't Stop, Continue to Gain Knowledge

Oracle Compensatory Time Off Setup with OTL
Oracle Time and Labor

Configure Compensatory Time Off With Oracle Time and Labor

by Avinash
1.7k
Learn to Configure OTL
Oracle Time and Labor

Learn Oracle Time and Labor (OTL) Cloud With Payroll

by Avinash
5.1k
Next Post
How to replace oracle fusion logo-min

How to replace oracle fusion logo with custom logo?

The Training Partner You Can Trust!!

Oracle Fusion HCM Training

Trending Posts

  • All
  • Oracle Cloud HCM Functional
List of Scheduled Processes in Oracle Recruiting Cloud

List of Scheduled Processes in Oracle Recruiting Cloud

222
Configure and Manage Recruiting Agencies

Learn to Configure and Manage Recruiting Agencies in Oracle Recruiting Cloud

150
Learn to Request Additional Information or Documents from Candidates

Learn to Request Additional Information or Documents from Candidates

96
Guide to Configuring Enterprise Recruiting and Candidate Experience Information

Guide to Configuring Enterprise Recruiting and Candidate Experience Information

90

Access Premium Contents

Enhance your learning with our premium articles. Subscribe now to access exclusive content and stay ahead in your career!

Categories

Global Search

No Result
View All Result

© 2024 iavinash.com : Learn Oracle Fusion Cloud HCM Online.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Functional Articles
    • Oracle Cloud Absence Management
    • Oracle Compensation Management (CWB)
    • Oracle Cloud Global HR
    • Oracle Learning Cloud
    • Oracle Cloud Talent Management
      • Oracle Cloud Profile Management
      • Oracle Cloud Performance Management
      • Oracle Cloud Goal Management
      • Succession Management and Talent Pool
      • Oracle Cloud Talent Review
      • Oracle Cloud Touchpoints
      • All Talent Management Articles
    • Oracle Time and Labor (OTL)
    • Oracle Recruiting Cloud (ORC)
    • Oracle Cloud HCM
    • Oracle Cloud HCM Common Issues
    • Oracle Cloud HCM Interview Questions
    • Oracle Cloud Approval Workflow
  • Technical Articles
    • Oracle Cloud Fast Formula
    • Oracle Reports and Alerts
    • Oracle Cloud Reusable Queries
  • All Articles
  • Ask Question
  • Subscribe

© 2024 iavinash.com : Learn Oracle Fusion Cloud HCM Online.

This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.
Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?