Search Results ben_lvg_rsn_rt
Overview
BEN_LVG_RSN_RT is a reporting view in the APPS schema belonging to the Oracle Advanced Benefits (BEN) module. Its name follows the standard EBS convention in which the _RT suffix identifies a row-level runtime (or "row type") view that resolves the current effective-dated version of a base table record. In this case the view surfaces leave-of-absence reason records, as reflected by the LVG_RSN token (Leave Reason). The view is marked VALID in the ETRM repository and is documented for both Oracle EBS 12.1.1 and 12.2.2.
Unlike a physical table, this view presents no data of its own. Its role is to expose a filtered, session-aware slice of the leave reason data so that forms, concurrent programs, and integration queries receive only records that are effective as of the current application session date. This date-sensitive filtering is central to the behaviour of Advanced Benefits, where eligibility, rates, and reason codes are all maintained with effective start and end dates.
Underlying Base Objects
The view is defined exclusively over one base object, BEN_LVG_RSN_RT_F (aliased internally as LRN), with a second reference to the FND_SESSIONS synonym used to resolve the effective date. No joins to other business tables are performed; the view is a straightforward projection with an effective-date predicate.
- BEN_LVG_RSN_RT_F — the "_F" table holds the full effective-dated history of leave reason rows. All descriptive and descriptive-flex columns originate here.
- FND_SESSIONS — the Oracle Applications session table, queried for
EFFECTIVE_DATEusingUSERENV('SESSIONID'). This supplies the "as of" date that drives the view's temporal filter.
The defining predicate is:
LRN.EFFECTIVE_START_DATE <= (session effective date) AND LRN.EFFECTIVE_END_DATE >= (session effective date)
Because the comparison is made against the live session effective date rather than SYSDATE, the view automatically honours any date a user has set in the application session (for example, a past or future effective date entered on the navigator), which is the expected behaviour for effective-dated HRMS and Benefits objects.
Key Columns
- ROWID — the physical row identifier of the underlying
_Frecord, retained for locking or direct DML reference. - LVG_RSN_RT_ID — the primary key of the leave reason rate record.
- EFFECTIVE_START_DATE / EFFECTIVE_END_DATE — the date range within which the record is active; the columns used by the view's predicate.
- LVG_RSN_CD — the leave reason code, the principal business key.
- VRBL_RT_PRFL_ID — foreign key to the variable rate profile associated with the leave reason.
- EXCLD_FLAG — indicates whether the record is excluded from processing.
- BUSINESS_GROUP_ID — the operating unit / business group that owns the record, enabling multi-tenant filtering.
- OBJECT_VERSION_NUMBER — used for optimistic locking by the OAF/Forms layer.
- ORDR_NUM — sequencing value controlling display and processing order.
- LRN_ATTRIBUTE_CATEGORY and LRN_ATTRIBUTE1 through LRN_ATTRIBUTE30 — the descriptive flexfield (DFF) segment columns.
- LAST_UPDATE_DATE, LAST_UPDATED_BY, LAST_UPDATE_LOGIN, CREATED_BY, CREATION_DATE — standard WHO audit columns.
Common Use Cases and Queries
The view is typically used to report or validate leave reason configuration for a given business group as of a chosen effective date. Because the effective date is taken from FND_SESSIONS, the value returned depends on the session in which the query executes; standalone SQL*Plus sessions may require setting the session context first.
A representative query returning the currently effective leave reasons for a business group is:
SELECT lvg_rsn_rt_id, lvg_rsn_cd, vrbl_rt_prfl_id, ordr_num, effective_start_date, effective_end_dateFROM apps.ben_lvg_rsn_rtWHERE business_group_id = :p_business_group_idORDER BY ordr_num;
To review the complete history of a single leave reason, developers query the base table BEN_LVG_RSN_RT_F directly, since the view intentionally suppresses non-current rows. The view is also useful during data migration or interface validation, where an integration must confirm that a leave reason code is active before loading dependent benefit eligibility or rate records.
In summary, BEN_LVG_RSN_RT is a read-only, session-aware runtime view over the leave reason rate table. It is safe for reporting and integration reads but must not be used for DML; updates belong to the underlying BEN_LVG_RSN_RT_F table through the standard Benefits APIs.
-
View: BEN_LVG_RSN_RT
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:BEN.BEN_LVG_RSN_RT, object_name:BEN_LVG_RSN_RT, status:VALID, product: BEN - Advanced Benefits , implementation_dba_data: APPS.BEN_LVG_RSN_RT ,
-
View: BEN_LVG_RSN_RT
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:BEN.BEN_LVG_RSN_RT, object_name:BEN_LVG_RSN_RT, status:VALID, product: BEN - Advanced Benefits , implementation_dba_data: APPS.BEN_LVG_RSN_RT ,
-
SYNONYM: PUBLIC.BEN_LVG_RSN_RT
12.1.1
owner:PUBLIC, object_type:SYNONYM, object_name:BEN_LVG_RSN_RT, status:VALID,
-
SYNONYM: APPS.BEN_LVG_RSN_RT_F
12.2.2
owner:APPS, object_type:SYNONYM, object_name:BEN_LVG_RSN_RT_F, status:VALID,
-
SYNONYM: APPS.BEN_LVG_RSN_RT_F
12.1.1
owner:APPS, object_type:SYNONYM, object_name:BEN_LVG_RSN_RT_F, status:VALID,
-
VIEW: APPS.BEN_LVG_RSN_RT
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:BEN.BEN_LVG_RSN_RT, object_name:BEN_LVG_RSN_RT, status:VALID,
-
VIEW: APPS.BEN_LVG_RSN_RT
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:BEN.BEN_LVG_RSN_RT, object_name:BEN_LVG_RSN_RT, status:VALID,
-
12.2.2 FND Design Data
12.2.2
-
12.1.1 FND Design Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.1.1 DBA Data
12.1.1
-
SYNONYM: APPS.FND_SESSIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:FND_SESSIONS, status:VALID,
-
SYNONYM: APPS.FND_SESSIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_SESSIONS, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
eTRM - BEN Tables and Views
12.1.1
description: Start and End periods. ,
-
eTRM - BEN Tables and Views
12.2.2
description: Start and End periods. ,
-
eTRM - BEN Tables and Views
12.1.1
description: Start and End periods. ,
-
eTRM - BEN Tables and Views
12.2.2
description: Start and End periods. ,