Search Results rax_code
Overview
The view ZOKL_CSE_K_REFUNDS_V is a reporting and integration object within the Oracle Lease and Finance Management (OKL) module of Oracle E-Business Suite, available in releases 12.1.1 and 12.2.2. Its documented purpose is to expose data stored in the refunds base table OKL_CSE_K_REFUNDS_B, augmented with language-dependent descriptive text. The view is defined as a join between the base table alias CCFB and a translation alias CCFT, filtered by the session language through the standard USERENV('LANG') construct. This design follows Oracle's established MLS (Multi-Lingual Support) pattern, in which the _B table stores language-independent transactional data and the _TL counterpart supplies translated columns such as COMMENTS.
Functionally, the view presents refund records associated with lease and finance contracts, including refund amounts, due dates, approval details, and descriptive flexfield attributes. Reporting layers, concurrent programs, and integration interfaces that must display refund information in the user's language query this view rather than the underlying tables directly, ensuring translated text is returned consistently.
Underlying Base Objects
The ETRM metadata records no separately documented referenced base objects, but the embedded view text clearly defines the join. The view is defined over two objects:
- ZOKL_CSE_K_REFUNDS_B (alias CCFB) — the language-independent refund entity table, supplying all transactional and identifier columns.
- ZOKL_CSE_K_REFUNDS_TL (alias CCFT) — the translation table, supplying language-dependent columns, notably COMMENTS and the SFWT_FLAG value shown in the projection.
The two are joined on CCFB.ID = CCFT.ID, with the additional restriction CCFT.LANGUAGE = USERENV('LANG') so that only the row matching the current session language is returned. The metadata notes the view is "Not implemented in this database," meaning it may be absent in a given environment even though it is documented for the product line. The "K" naming convention is characteristic of OKL contract-service and integration objects; the synonym or stub extending the base name indicates the view is intended for read access rather than DML.
Key Columns
The projection exposes the full column set of the base table plus the translated COMMENTS column. The most significant columns are:
- ROW_ID — the ROWID of the base row, supporting row-level addressing in forms and APIs.
- ID — primary identifier of the refund record; the join key to the translation table.
- OBJECT_VERSION_NUMBER — optimistic locking column used by the framework to detect concurrent updates.
- CCC_ID — the contract or credit-card component identifier that links the refund to its parent business object; this is the column referenced by searches for "ccc_id."
- XRS_CODE and RAX_CODE — reference and cross-reference codes identifying the refund classification.
- SEQUENCE_NUMBER — ordering of refund lines within the parent entity.
- REFUND_AMOUNT and REFUND_DUE_DATE — the monetary value and scheduled due date of the refund.
- REFUND_APPROVER_ID and APPROVAL_DATE — approval tracking information.
- COMMENTS — language-dependent free text sourced from the translation table.
- ORG_ID — the operating unit, enforcing Multi-Org security partitioning.
- ATTRIBUTE_CATEGORY through ATTRIBUTE15 — descriptive flexfield segments available for client-specific extensions.
- REQUEST_ID, PROGRAM_APPLICATION_ID, PROGRAM_ID, PROGRAM_UPDATE_DATE — the standard WHO concurrent program audit columns.
- CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN — standard audit trail columns.
Common Use Cases and Queries
Typical usage centers on retrieving refund details for a specific contract component, validating approval status, and reporting refund amounts by operating unit. The following query returns approved refunds for a given CCC_ID:
SELECT id, ccc_id, refund_amount, refund_due_date, approval_date, comments FROM zokl_cse_k_refunds_v WHERE ccc_id = :p_ccc_id AND org_id = :p_org_id ORDER BY sequence_number;
A second common pattern aggregates refund amounts per contract component for financial reporting:
SELECT ccc_id, COUNT(*) refund_count, SUM(refund_amount) total_refund FROM zokl_cse_k_refunds_v WHERE org_id = :p_org_id GROUP BY ccc_id;
A third pattern lists pending refunds where approval is outstanding:
SELECT id, ccc_id, refund_due_date, refund_approver_id FROM zokl_cse_k_refunds_v WHERE approval_date IS NULL AND refund_due_date BETWEEN :p_from AND :p_to;
Because the view restricts COMMENTS by USERENV('LANG'), reports executed under a different language session will return NULL for that column unless a matching _TL row exists. Integrators should therefore expose the language context explicitly and avoid relying on COMMENTS for validation logic.
-
View: ZOKL_CSE_K_REFUNDS_V
12.1.1
product: OKL - Leasing and Finance Management , description: View for table OKL_CSE_K_REFUNDS_B , implementation_dba_data: Not implemented in this database ,
-
View: ZOKL_CSE_K_REFUNDS_V
12.2.2
product: OKL - Lease and Finance Management , description: View for table OKL_CSE_K_REFUNDS_B , implementation_dba_data: Not implemented in this database ,