Results for “delete_accommodation”
20 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
PQH_ACCOMMODATIONS_SWI is a PL/SQL package in the APPS schema that functions as a self-service wrapper layer for the Accommodations business object within Oracle E-Business Suite. It is part of the Public Sector/HR (PQH) module family and is declared with AUTHID CURRENT_USER, meaning that its procedures execute with the privileges of the invoking user rather than the definer, which is the standard pattern for self-service APIs in EBS.
The package provides a thin, self-service-facing interface over the underlying application programming interface, PQH_ACCOMMODATIONS_API. Where the base API encapsulates the core business logic and validation for accommodation records, this SWI (Server Web Interface) package exposes that logic to self-service callers — typically Oracle Self-Service HR (SSHR) pages or other lightweight web entry points — by delegating each operation to the corresponding API entry point. The header comment block explicitly documents this relationship, stating that create_accommodation is the "self-service wrapper procedure to the following API: pqh_accommodations_api.create_accommodation." Accommodation records in this context represent physical facilities (for example, lodging or housing units) used by public-sector and HR-related operations, with attributes covering name, description, type, style, address, telephone contacts, and floor details.
Key Procedures and Functions
The package exposes three documented procedures, each mirroring a corresponding operation in the base accommodations API:
- CREATE_ACCOMMODATION — Creates a new accommodation record. It accepts the full set of descriptive attributes maintained by the business object, including accommodation name, business group, location, description, type, style, structured address elements (address lines, town or city, country, postal code, and region fields), up to three telephone numbers, and floor number and floor area. A validation flag controls whether the operation is performed in validation-only mode or committed, and a return status parameter communicates success or failure to the caller.
- DELETE_ACCOMMODATION — Removes an existing accommodation record. As with the creation routine, it follows the standard EBS API convention of supporting a validation-only mode before the destructive operation is committed.
- UPDATE_ACCOMMODATION — Modifies the attributes of an existing accommodation record, applying the same validation and status-return conventions as the create and delete procedures.
All three procedures are documented as internal development use only, and each returns a status value indicating success or failure of the requested operation.
Tables Accessed
The ETRM metadata does not enumerate the specific tables referenced through APPS synonyms for this package. Because the wrapper delegates all logic to PQH_ACCOMMODATIONS_API, the actual inserts, updates, and deletes against the underlying accommodation tables — including the base accommodation entity table and its associated address and telephone detail tables — are performed by that API rather than by the SWI layer itself. The SWI package should therefore be understood as carrying no direct SQL of its own; it serves purely as a pass-through entry point.
Usage Notes
This package is typically invoked from Oracle Self-Service HR pages or comparable web-facing self-service flows where an end user creates, changes, or removes accommodation records without direct access to the base API. It may also be called from custom concurrent programs or custom PL/SQL code that requires self-service-style accommodation maintenance. As it is classified for internal development use only and is not documented as being referenced by any other package, it should not be treated as a general-purpose public API. Callers are expected to derive and supply all required IN parameters — most importantly a valid effective date and business group — before invocation, and to inspect the returned status to determine whether the operation succeeded.