Search Results hr_wrk_sch_pkg
Overview
The APPS.HR_WRK_SCH_PKG package is a PL/SQL API belonging to the Oracle E-Business Suite Human Resources (HR) module. It exposes functionality associated with the Absences and Availability feature set, allowing downstream products and external calling code to interrogate work schedules, availability windows, and calendar logic for a person assignment. In the Oracle EBS layered architecture, the package acts as a programmatic interface that isolates consumers from the underlying schedule and availability tables, providing a stable contract for schedule-related queries. It is classified in the ETRM repository under the API classification OTHER, indicating that it is a general-purpose server-side package rather than a purely declarative open interface or a public write API.
The package is documented in releases 12.1.1 and 12.2.2. Its header carries a version marker of 120.1.12010000.1, confirming it is a long-standing, low-revision artifact that has remained stable across the 12.x line. Ten other packages reference it, which suggests it is a dependency of higher-level absence, accrual, or scheduling logic rather than a consumer of other public APIs.
Key Procedures and Functions
The documented interface contains two public program units.
- GET_PER_ASG_SCHEDULE — A procedure intended for invocation by downstream products that require the Absences Availability functionality. Its purpose is to retrieve availability data—working versus non-working time, schedule source, and exception handling—for a specified person assignment across a date range. It returns a schedule in an availability varray along with a schedule source indicator, a return status, and a return message for error handling.
- GET_WORKING_DAY — A function that returns a
DATE. As described in the package header, it retrieves the next or previous working day after a leave of absence. The direction is controlled by a previous/next flag that defaults to'N'. Because it is a function, it can be embedded directly in SQL and PL/SQL expressions, making it convenient for consumers such as absence entry forms that need to default a return-to-work date.
The header documentation explicitly states that both units are provided so that downstream products may reuse the Absences Availability engine rather than re-implementing schedule logic.
Tables Accessed
The package reads from a defined set of tables through APPS synonyms. The CAC_SR_ family (CAC_SR_PUBLISH_SCHEDULES, CAC_SR_SCHDL_OBJECTS, and CAC_SR_SCHEDULES_B) supplies published schedule definitions and their associated objects, forming the calendar basis against which working days are evaluated. PER_ALL_ASSIGNMENTS_F identifies the person assignment and its effective dating context. PER_SCH_INHERIT_HIER supports schedule inheritance through the organization or assignment hierarchy, allowing a valid schedule to be resolved when one is not explicitly assigned. DUAL is used for simple expression evaluation, and PLITBLM provides the PL/SQL table and varray infrastructure used to pass schedule data back to callers. Because the package is a read-oriented availability engine, these accesses are predominantly queries rather than inserts or updates.
Usage Notes
HR_WRK_SCH_PKG is typically invoked from custom PL/SQL, Oracle Forms personalizations, or concurrent program logic that must determine whether a given day counts as a working day, or that must display availability for an assignment. The most common entry point is GET_WORKING_DAY, reflecting its simplicity and its suitability for direct use inside SQL statements. Typical scenarios include absence return-date defaulting, validation of leave requests that cross non-working periods, and integration logic in payroll or time-and-labor flows that must respect the HR schedule calendar.
Because the package is classified as OTHER rather than a fully public API, consumers should treat the documented signature as stable but avoid assuming undocumented behavior. Callers should always check the return status and message from GET_PER_ASG_SCHEDULE, and should pass valid, effective-dated assignment identifiers to ensure correct schedule resolution.
-
PACKAGE: APPS.HR_WRK_SCH_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:HR_WRK_SCH_PKG, status:VALID,
-
PACKAGE: APPS.HR_WRK_SCH_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:HR_WRK_SCH_PKG, status:VALID,
-
PACKAGE BODY: APPS.HR_WRK_SCH_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:HR_WRK_SCH_PKG, status:VALID,
-
TYPE: APPS.CAC_AVLBLTY_TIME_VARRAY
12.1.1
owner:APPS, object_type:TYPE, object_name:CAC_AVLBLTY_TIME_VARRAY, status:VALID,
-
PACKAGE BODY: APPS.HR_WRK_SCH_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:HR_WRK_SCH_PKG, status:VALID,
-
TYPE: APPS.CAC_AVLBLTY_TIME_VARRAY
12.2.2
owner:APPS, object_type:TYPE, object_name:CAC_AVLBLTY_TIME_VARRAY, status:VALID,
-
PACKAGE BODY: APPS.HR_LOC_WORK_SCHEDULE
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:HR_LOC_WORK_SCHEDULE, status:VALID,
-
PACKAGE: APPS.HR_WRK_SCH_PKG
12.1.1
-
PACKAGE: APPS.HR_WRK_SCH_PKG
12.2.2
-
SYNONYM: APPS.CAC_SR_SCHDL_OBJECTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CAC_SR_SCHDL_OBJECTS, status:VALID,
-
SYNONYM: APPS.CAC_SR_SCHDL_OBJECTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CAC_SR_SCHDL_OBJECTS, status:VALID,
-
SYNONYM: APPS.PER_SCH_INHERIT_HIER
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PER_SCH_INHERIT_HIER, status:VALID,
-
SYNONYM: APPS.CAC_SR_SCHEDULES_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CAC_SR_SCHEDULES_B, status:VALID,
-
SYNONYM: APPS.CAC_SR_PUBLISH_SCHEDULES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:CAC_SR_PUBLISH_SCHEDULES, status:VALID,
-
SYNONYM: APPS.CAC_SR_PUBLISH_SCHEDULES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CAC_SR_PUBLISH_SCHEDULES, status:VALID,
-
PACKAGE: APPS.CAC_AVLBLTY_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:CAC_AVLBLTY_PUB, status:VALID,
-
PACKAGE: APPS.CAC_AVLBLTY_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:CAC_AVLBLTY_PUB, status:VALID,
-
PACKAGE BODY: APPS.HR_LOC_WORK_SCHEDULE
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:HR_LOC_WORK_SCHEDULE, status:VALID,
-
PACKAGE BODY: APPS.PAY_CORE_FF_UDFS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PAY_CORE_FF_UDFS, status:VALID,
-
PACKAGE BODY: APPS.HR_CAL_ABS_DUR_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:HR_CAL_ABS_DUR_PKG, status:VALID,
-
SYNONYM: APPS.PER_SCH_INHERIT_HIER
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PER_SCH_INHERIT_HIER, status:VALID,
-
PACKAGE BODY: APPS.PAY_FI_GENERAL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PAY_FI_GENERAL, status:VALID,
-
PACKAGE BODY: APPS.PAY_CORE_FF_UDFS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PAY_CORE_FF_UDFS, status:VALID,
-
TYPE: APPS.CAC_AVLBLTY_TIME
12.2.2
owner:APPS, object_type:TYPE, object_name:CAC_AVLBLTY_TIME, status:VALID,
-
SYNONYM: APPS.CAC_SR_SCHEDULES_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CAC_SR_SCHEDULES_B, status:VALID,
-
PACKAGE BODY: APPS.HR_LOA_SS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:HR_LOA_SS, status:VALID,
-
TYPE: APPS.CAC_AVLBLTY_TIME
12.1.1
owner:APPS, object_type:TYPE, object_name:CAC_AVLBLTY_TIME, status:VALID,
-
PACKAGE BODY: APPS.HR_CAL_ABS_DUR_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:HR_CAL_ABS_DUR_PKG, status:VALID,
-
PACKAGE BODY: APPS.PAY_NO_EERR_CONTINUOUS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PAY_NO_EERR_CONTINUOUS, status:VALID,
-
PACKAGE BODY: APPS.PAY_NO_EERR_STATUS_CONTROL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PAY_NO_EERR_STATUS_CONTROL, status:VALID,
-
PACKAGE BODY: APPS.PER_ABS_BUS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PER_ABS_BUS, status:VALID,
-
PACKAGE BODY: APPS.HR_LOA_SS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:HR_LOA_SS, status:VALID,
-
PACKAGE BODY: APPS.PAY_FI_GENERAL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PAY_FI_GENERAL, status:VALID,
-
PACKAGE BODY: APPS.PSP_GENERAL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSP_GENERAL, status:VALID,
-
PACKAGE BODY: APPS.PAY_NO_EERR_STATUS_CONTROL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PAY_NO_EERR_STATUS_CONTROL, status:VALID,
-
PACKAGE BODY: APPS.PAY_NO_EERR_CONTINUOUS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PAY_NO_EERR_CONTINUOUS, status:VALID,
-
PACKAGE BODY: APPS.PER_ABS_BUS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PER_ABS_BUS, status:VALID,
-
PACKAGE BODY: APPS.HR_PERSON_ABSENCE_API
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:HR_PERSON_ABSENCE_API, status:VALID,
-
PACKAGE BODY: APPS.PSP_GENERAL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PSP_GENERAL, status:VALID,
-
APPS.PER_ABS_BUS dependencies on HR_WRK_SCH_PKG
12.2.2
-
APPS.HR_PERSON_ABSENCE_API dependencies on HR_WRK_SCH_PKG
12.2.2
-
APPS.PAY_CORE_FF_UDFS dependencies on HR_WRK_SCH_PKG
12.2.2
-
APPS.HR_CAL_ABS_DUR_PKG dependencies on HR_WRK_SCH_PKG
12.1.1
-
APPS.PAY_NO_EERR_STATUS_CONTROL dependencies on HR_WRK_SCH_PKG
12.1.1
-
APPS.PAY_NO_EERR_STATUS_CONTROL dependencies on HR_WRK_SCH_PKG
12.2.2
-
APPS.HR_LOC_WORK_SCHEDULE dependencies on HR_WRK_SCH_PKG
12.2.2
-
APPS.HR_LOA_SS dependencies on HR_WRK_SCH_PKG
12.1.1
-
APPS.PAY_FI_GENERAL dependencies on HR_WRK_SCH_PKG
12.2.2
-
APPS.PAY_NO_EERR_CONTINUOUS dependencies on HR_WRK_SCH_PKG
12.2.2
-
APPS.HR_WRK_SCH_PKG dependencies on HR_WRK_SCH_PKG
12.2.2