Search Results delete_service_area
Overview
BEN_SERVICE_AREA_API is the public PL/SQL API for maintaining service area definitions within the Oracle EBS Benefits module (schema APPS). A service area represents a geographic or organizational grouping that determines eligibility for a benefit plan or program. In releases 12.1.1 and 12.2.2, this package exposes the canonical create, update, and delete operations that any client — including the Benefits forms, concurrent processes, and custom extensions — should use to manipulate service area data. The package body delegates its work to the underlying business logic layer, principally the BEN_SERVICE_AREA_BK1, BEN_SERVICE_AREA_BK2, and BEN_SERVICE_AREA_BK3 packages, which encapsulate the insert, update, and delete business rules respectively. It also relies on the individual DML routines BEN_SVA_INS, BEN_SVA_UPD, and BEN_SVA_DEL, the shadow (history) routine BEN_SVA_SHD, the row-level locking helper LCK, and the HR_API and HR_UTILITY utility packages for date-effective and Object Version Number handling. The object is reported as VALID.
Key Procedures and Functions
The ETRM metadata documents four procedures/functions in this package. No parameter lists are published in the metadata, so only their purpose is described.
- CREATE_SERVICE_AREA — Inserts a new service area record. It validates the supplied definition and writes to the BEN_SVC_AREA_F table through the business-layer insert routines, populating who-columns and date-effective attributes.
- UPDATE_SERVICE_AREA — Modifies an existing service area. It performs the update via the business-layer routines, maintains row history with the shadow routine, and refreshes the Object Version Number for concurrency control.
- DELETE_SERVICE_AREA — Removes a service area. Depending on whether the record is physical or date-effective, the deletion logic invokes the corresponding business-layer and DML delete routines to remove or terminate the row.
- LCK — A locking function that returns a lock/unlock indicator. It is used internally by the DML routines to manage concurrent modifications and prevent lost updates on the service area record.
Tables Accessed
The primary table referenced through APPS synonyms is BEN_SVC_AREA_F, the service area fact table. All create, update, and delete activity ultimately reads from and writes to this table. In addition, because it is a date-effective, business-group-enabled entity, the package implicitly touches the standard date-track and history structures maintained by the business layer and the shadow routine (BEN_SVA_SHD). The who-columns and Object Version Number fields are managed through HR_API and HR_UTILITY calls rather than direct SQL.
Usage Notes
This package is the supported interface for service area maintenance and is normally invoked by the Benefits Service Area form (form function across the Benefits setup menu) and by the corresponding business-layer packages. The ETRM metadata records that the package is referenced by two other packages, indicating it is called from elsewhere in the Benefits code stack. Custom code should call CREATE_SERVICE_AREA, UPDATE_SERVICE_AREA, and DELETE_SERVICE_AREA rather than performing direct DML on BEN_SVC_AREA_F, so that validation, row history, WHO-column population, and concurrency locking are consistently applied. Note that APPS.BEN_SERVICE_AREA_API is not referenced by any database object, so it is a top-level API entry point rather than a dependency of another schema object. Callers must supply a valid business group and effective date range, and should commit or roll back their own transaction after the API call completes.
-
APPS.BEN_SERVICE_AREA_API SQL Statements
12.1.1
-
APPS.BEN_SERVICE_AREA_API SQL Statements
12.2.2
-
PACKAGE BODY: APPS.BEN_SERVICE_AREA_API
12.1.1
-
PACKAGE BODY: APPS.BEN_SERVICE_AREA_API
12.2.2
-
PACKAGE: APPS.BEN_SERVICE_AREA_API
12.2.2
-
PACKAGE: APPS.BEN_SERVICE_AREA_API
12.1.1
-
APPS.BEN_SERVICE_AREA_API dependencies on BEN_SERVICE_AREA_BK3
12.2.2
-
APPS.BEN_SERVICE_AREA_API dependencies on BEN_SERVICE_AREA_BK3
12.1.1
-
APPS.BEN_SERVICE_AREA_API dependencies on BEN_SVA_DEL
12.2.2
-
APPS.BEN_SERVICE_AREA_API dependencies on BEN_SVA_DEL
12.1.1
-
APPS.BEN_SERVICE_AREA_API dependencies on HR_UTILITY
12.1.1
-
APPS.BEN_SERVICE_AREA_API dependencies on HR_UTILITY
12.2.2
-
APPS.BEN_SERVICE_AREA_API dependencies on HR_API
12.1.1
-
APPS.BEN_SERVICE_AREA_API dependencies on HR_API
12.2.2