Search Results generate_time
Overview
The APPS.HXT_TIMECARD_INFO package body is a server-side PL/SQL component within the Oracle E-Business Suite Time and Labor (OTL/ETRM) module. It supplies the core data-retrieval and time-conversion logic required to translate raw timecard entries into the canonical date/time and labor-costing structures that Oracle Time and Labor expects. The package resolves an employee's active primary assignment and its associated rotation plan and earning policy, then uses that context to derive work plans, rotation plans, and work days. It is classified as an OTHER API in the ETRM 12.2.2 documentation set and is a dependent object referenced by one other package, which indicates it is intended for internal consumption by the Time and Labor framework rather than direct end-user invocation.
Key Procedures and Functions
Although the source excerpt only exposes GENERATE_TIME, the documented package metadata confirms four public procedures/functions:
- GENERATE_TIME — The principal entry point. It accepts a resource (person) identifier and a start/stop time range and returns self-service application attributes. Internally it drives the assignment cursor
g_asg_curto identify the active primary assignment, rotation plan, earning policy, and holiday calendar ID for the specified resource. - GEN_WORK_PLAN — Derives the work plan applicable to a resource over a given period, drawing on the weekly work schedule and shift definitions.
- GEN_ROT_PLAN — Generates the rotation plan for a resource, based on the rotation schedule and rotation plan referenced in the assignment's time attributes.
- GET_WORK_DAY — Returns the effective work day information for a resource and date, reconciling shift data, weekly work schedules, and holiday calendars.
Supporting internal declarations visible in the body include get_holiday_info, convert_time, and convert_timecard_time, which normalize inbound numeric times into DATE values.
Tables Accessed
The package reads from the following tables (via APPS synonyms) to assemble assignment and time attribute context:
- PER_ASSIGNMENT_STATUS_TYPES — filtered to
per_system_status = 'ACTIVE_ASSIGN'to guarantee only active assignments qualify. - HXT_EARNING_POLICIES and HXT_EARNING_RULES — supply earning policy and rule definitions used in time-to-cost derivation.
- HXT_ADD_ELEM_INFO_F — provides additional element information linked to the assignment's earning policy.
- HXT_ROTATION_SCHEDULES and HXT_HOLIDAY_CALENDARS/HXT_HOLIDAY_DAYS — support
GEN_ROT_PLANandGET_WORK_DAY, including holiday detection viaget_holiday_info. - HXT_SHIFTS, HXT_WORK_SHIFTS, and HXT_WEEKLY_WORK_SCHEDULES — define shift and weekly schedule patterns used to build work plans.
- PLITBLM — the standard PL/SQL index-by table used for bulk collection handling.
The assignment cursor additionally joins HXT_PER_AEI_DDF_V (an AEI descriptive flexfield view) and PER_ASSIGNMENTS_F, though these are referenced through the view and base table rather than listed as direct synonyms.
Usage Notes
HXT_TIMECARD_INFO is not a self-service API; it is invoked programmatically by the Time and Labor timecard processing and self-service flows. Its most likely callers are the OTL self-service timecard pages, the time collection/retrieval concurrent programs, and downstream payroll or costing routines that require normalized work plan, rotation plan, and work day data. Because GENERATE_TIME only recognizes active primary assignments (per Bug 2397763), resources without a currently effective primary assignment will return no data. Customizations should not call this package directly unless adhering to the documented signatures; parameter details must be obtained from the application's dictionary rather than inferred. Debug output is controlled through HR_UTILITY.DEBUG_ENABLED, so enabling HR utility debugging will surface diagnostic messages during execution. All iteration over resource time data should be validated against the effective dating of both the assignment and its associated AEI attributes, as the cursor enforces date-range overlap checks on both.
-
PACKAGE BODY: APPS.HXT_TIMECARD_INFO
12.2.2
-
PACKAGE BODY: APPS.HXT_TIMECARD_INFO
12.1.1
-
PACKAGE: APPS.HXT_TIME_GEN
12.1.1
-
PACKAGE: APPS.HXT_TIME_GEN
12.2.2
-
PACKAGE: APPS.HXT_TIMECARD_INFO
12.2.2
-
PACKAGE: APPS.HXT_TIMECARD_INFO
12.1.1
-
APPS.HXT_TIMECARD_INFO dependencies on HR_UTILITY
12.2.2
-
APPS.HXT_TIMECARD_INFO dependencies on HXC_TIMECARD_MESSAGE_HELPER
12.1.1
-
APPS.HXT_TIMECARD_INFO dependencies on HR_UTILITY
12.1.1
-
APPS.HXT_TIMECARD_INFO dependencies on HXC_TIMECARD_MESSAGE_HELPER
12.2.2
-
APPS.HXT_TIMECARD_INFO dependencies on FND_MESSAGE
12.2.2
-
APPS.HXT_TIMECARD_INFO dependencies on HXC_SELF_SERVICE_TIME_DEPOSIT
12.1.1
-
APPS.HXT_TIMECARD_INFO dependencies on HXC_SELF_SERVICE_TIME_DEPOSIT
12.2.2
-
APPS.HXT_TIMECARD_INFO dependencies on FND_MESSAGE
12.1.1
-
APPS.HXT_TIMECARD_INFO dependencies on HXC_SELF_SERVICE_TIME_DEPOSIT
12.1.1
-
APPS.HXT_TIMECARD_INFO dependencies on HXC_SELF_SERVICE_TIME_DEPOSIT
12.2.2
-
PACKAGE BODY: APPS.HXT_TIME_GEN
12.1.1
-
PACKAGE BODY: APPS.HXT_TIME_GEN
12.2.2