Search Results ccc_id




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:

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.