Search Results hr_loc_bus
Overview
HR_LOC_BUS is the business-layer PL/SQL package in the Oracle EBS Applications (APPS) schema responsible for enforcing the validation rules that govern location records used across Oracle Human Resources and Oracle Payroll. Location data is foundational in EBS: locations drive assignments, payroll taxation, workers' compensation, and organization hierarchies. HR_LOC_BUS sits beneath the HR_LOCATIONS table's validation infrastructure, exposing business rules that are invoked by the table's insert, update, and delete triggers (HR_LOC_INS, HR_LOC_UPD, HR_LOC_DEL, HR_LOCATION_BK2) as well as by the base HR_LOC_BUS package itself.
The package is classified as an OTHER API, meaning it is not a formally published, supported public API in the sense of an open interface, but rather an internal business rule layer. In EBS 12.1.1 and 12.2.2 the object is reported as VALID, and its dependency graph confirms tight coupling to base tables HR_LOCATIONS and the shadow table HR_LOC_SHD (used by the DateTrack / row-versioning mechanism), plus the SYS.STANDARD package.
Key Procedures and Functions
- RETURN_LEGISLATION_CODE — Returns the legislation code associated with a location, allowing downstream validation and business logic to branch according to the legal jurisdiction (for example, US versus non-US rules) under which a location operates.
- INSERT_VALIDATE — Encapsulates the business rules that must be satisfied when a new location row is created. It is invoked from the insert trigger path (HR_LOC_INS) so that invalid data is rejected before it is committed.
- UPDATE_VALIDATE — Applies the equivalent set of validation rules when an existing location record is modified, typically via the update trigger (HR_LOC_UPD) and DateTrack-aware update logic.
- DELETE_VALIDATE — Enforces referential and business constraints that must hold before a location can be removed, invoked through HR_LOC_DEL.
These four documented routines collectively form the validation contract for the HR_LOCATIONS entity. Actual parameter lists are not reproduced here; consumers should treat the routines as internal and not build custom interfaces against them.
Tables Accessed
Via APPS synonyms, HR_LOC_BUS references a broad set of HRMS and Payroll tables, reflecting the many downstream relationships that depend on valid locations:
- HR_LOCATIONS_ALL and HR_LOCATION_EXTRA_INFO — the primary location entity and its descriptive flexfield / extra attribute storage.
- HR_ALL_ORGANIZATION_UNITS and HR_ALL_POSITIONS_F — organizations and positions linked to locations, used to determine whether a location may be changed or deleted.
- PER_ALL_ASSIGNMENTS_F, PER_ALL_PEOPLE_F, PER_ALL_VACANCIES — employee, assignment, and vacancy references that restrict deletion of active locations.
- PAY_ELEMENT_LINKS_F, PAY_WC_FUNDS, PER_US_INVAL_LOCATIONS — payroll element links, workers' compensation funds, and the US invalid-location list that drive legislation-specific validation.
- PER_EVENTS, PER_SALARY_SURVEY_MAPPINGS — event and salary-survey mapping dependencies.
- DBMS_SQL — dynamic SQL used internally for flexible validation logic.
Usage Notes
HR_LOC_BUS is not intended for direct invocation by end users or custom applications. It is called automatically by the DML triggers on HR_LOCATIONS and by HR_LOC_BUS itself (self-referencing dependency), and it is referenced by HR_LOCATION_BK2, HR_LOC_DEL, HR_LOC_INS, and HR_LOC_UPD. The practical implication is that location maintenance performed through the standard Locations form or through the supported HR_LOCATIONS API will transparently exercise these validations. Customizations that insert into or update HR_LOCATIONS directly, bypassing the triggers, risk creating data that violates the business rules this package enforces. In both 12.1.1 and 12.2.2 the package retains the same validation responsibilities, and any user-visible error messages raised during location maintenance frequently originate from the routines described above.
-
PACKAGE: APPS.HR_LOC_BUS
12.1.1
owner:APPS, object_type:PACKAGE, object_name:HR_LOC_BUS, status:VALID,
-
PACKAGE BODY: APPS.HR_LOC_BUS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:HR_LOC_BUS, status:VALID,
-
PACKAGE: APPS.HR_LOC_SHD
12.2.2
owner:APPS, object_type:PACKAGE, object_name:HR_LOC_SHD, status:VALID,
-
PACKAGE: APPS.HR_LOC_BUS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:HR_LOC_BUS, status:VALID,
-
PACKAGE: APPS.HR_LOC_SHD
12.1.1
owner:APPS, object_type:PACKAGE, object_name:HR_LOC_SHD, status:VALID,
-
PACKAGE BODY: APPS.HR_LOC_BUS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:HR_LOC_BUS, status:VALID,
-
SYNONYM: APPS.PER_US_INVAL_LOCATIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PER_US_INVAL_LOCATIONS, status:VALID,
-
PACKAGE: APPS.OE_LOCATION
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OE_LOCATION, status:VALID,
-
PACKAGE: APPS.QA_LOCATION
12.1.1
owner:APPS, object_type:PACKAGE, object_name:QA_LOCATION, status:VALID,
-
PACKAGE: APPS.INV_LOCATION
12.2.2
owner:APPS, object_type:PACKAGE, object_name:INV_LOCATION, status:VALID,
-
PACKAGE BODY: APPS.HR_LOC_DEL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:HR_LOC_DEL, status:VALID,
-
PACKAGE: APPS.QA_LOCATION
12.2.2
owner:APPS, object_type:PACKAGE, object_name:QA_LOCATION, status:VALID,
-
SYNONYM: APPS.PAY_WC_FUNDS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PAY_WC_FUNDS, status:VALID,
-
PACKAGE: APPS.OE_LOCATION
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OE_LOCATION, status:VALID,
-
PACKAGE BODY: APPS.HR_LOC_UPD
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:HR_LOC_UPD, status:VALID,
-
PACKAGE BODY: APPS.HR_LOC_INS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:HR_LOC_INS, status:VALID,
-
SYNONYM: APPS.PER_US_INVAL_LOCATIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PER_US_INVAL_LOCATIONS, status:VALID,
-
PACKAGE: APPS.INV_LOCATION
12.1.1
owner:APPS, object_type:PACKAGE, object_name:INV_LOCATION, status:VALID,
-
PACKAGE BODY: APPS.HR_LOC_DEL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:HR_LOC_DEL, status:VALID,
-
PACKAGE BODY: APPS.HR_LOC_UPD
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:HR_LOC_UPD, status:VALID,
-
PACKAGE: APPS.PO_LOCATIONS_S
12.1.1
owner:APPS, object_type:PACKAGE, object_name:PO_LOCATIONS_S, status:VALID,
-
SYNONYM: APPS.PER_SALARY_SURVEY_MAPPINGS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PER_SALARY_SURVEY_MAPPINGS, status:VALID,
-
SYNONYM: APPS.PAY_WC_FUNDS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PAY_WC_FUNDS, status:VALID,
-
SYNONYM: APPS.PER_SALARY_SURVEY_MAPPINGS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PER_SALARY_SURVEY_MAPPINGS, status:VALID,
-
PACKAGE BODY: APPS.HR_LOC_INS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:HR_LOC_INS, status:VALID,
-
PACKAGE: APPS.PO_LOCATIONS_S
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PO_LOCATIONS_S, status:VALID,
-
PACKAGE BODY: APPS.HR_LOCATION_BK2
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:HR_LOCATION_BK2, status:VALID,
-
PACKAGE BODY: APPS.HR_LOCATION_BK2
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:HR_LOCATION_BK2, status:VALID,
-
VIEW: APPS.ZX_INPUT_CLASSIFICATIONS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:FND.ZX_INPUT_CLASSIFICATIONS_V, object_name:ZX_INPUT_CLASSIFICATIONS_V, status:VALID,
-
PACKAGE: APPS.HR_LOC_BUS
12.2.2
-
SYNONYM: APPS.PER_EVENTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PER_EVENTS, status:VALID,
-
PACKAGE: APPS.PER_PQH_SHR
12.1.1
-
PACKAGE: APPS.PER_PQH_SHR
12.2.2
-
PACKAGE: APPS.HR_LOC_BUS
12.1.1
-
SYNONYM: APPS.HR_LOCATION_EXTRA_INFO
12.1.1
owner:APPS, object_type:SYNONYM, object_name:HR_LOCATION_EXTRA_INFO, status:VALID,
-
SYNONYM: APPS.PER_EVENTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PER_EVENTS, status:VALID,
-
SYNONYM: APPS.PER_ALL_VACANCIES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:PER_ALL_VACANCIES, status:VALID,
-
SYNONYM: APPS.PER_ALL_VACANCIES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PER_ALL_VACANCIES, status:VALID,
-
VIEW: APPS.FND_TIMEZONES_VL
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:FND.FND_TIMEZONES_VL, object_name:FND_TIMEZONES_VL, status:VALID,
-
SYNONYM: APPS.HR_LOCATION_EXTRA_INFO
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HR_LOCATION_EXTRA_INFO, status:VALID,
-
VIEW: APPS.FND_TIMEZONES_VL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:FND.FND_TIMEZONES_VL, object_name:FND_TIMEZONES_VL, status:VALID,
-
VIEW: APPS.FND_DESCR_FLEX_CONTEXTS_VL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:FND.FND_DESCR_FLEX_CONTEXTS_VL, object_name:FND_DESCR_FLEX_CONTEXTS_VL, status:VALID,
-
VIEW: APPS.FND_DESCR_FLEX_CONTEXTS_VL
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:FND.FND_DESCR_FLEX_CONTEXTS_VL, object_name:FND_DESCR_FLEX_CONTEXTS_VL, status:VALID,
-
SYNONYM: APPS.HR_ALL_POSITIONS_F
12.1.1
owner:APPS, object_type:SYNONYM, object_name:HR_ALL_POSITIONS_F, status:VALID,
-
SYNONYM: APPS.HR_ALL_POSITIONS_F
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HR_ALL_POSITIONS_F, status:VALID,
-
PACKAGE: APPS.HR_DFLEX_UTILITY
12.1.1
owner:APPS, object_type:PACKAGE, object_name:HR_DFLEX_UTILITY, status:VALID,
-
PACKAGE: APPS.HR_DFLEX_UTILITY
12.2.2
owner:APPS, object_type:PACKAGE, object_name:HR_DFLEX_UTILITY, status:VALID,
-
VIEW: APPS.HR_LOCATIONS
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:PER.HR_LOCATIONS, object_name:HR_LOCATIONS, status:VALID,
-
APPS.HR_LOCATION_BK2 dependencies on HR_LOC_BUS
12.2.2
-
APPS.HR_LOC_INS dependencies on HR_LOC_BUS
12.1.1