Search Results apply_mth




Overview

APPS.PAY_JP_GEPPEN_SANTEI_MT_V is a Japanese payroll reporting view within Oracle E-Business Suite 12.1.1 and 12.2.2. Its name combines "GEPPEN" (monthly payroll variation/adjustment) and "SANTEI" (determination or assessment), indicating it exposes data used to reconcile monthly payroll adjustments against the statutory determination amounts for health insurance (HI) and welfare pension (WP) contributions. The view joins payroll action, assignment action, element entry, run result, and element definition data to produce a horizontally structured dataset suitable for statutory reporting, balance verification, and downstream interface files consumed by Japanese social insurance processing.

The view carries a prominent hint block — ORDERED NO_MERGE(HRV) plus explicit index directives — reflecting an intentionally tuned execution plan for large payroll volumes. This design suggests the view is used operationally rather than for ad hoc low-volume querying.

Underlying Base Objects

The documented base objects are:

The inner derived query (aliased HRV) seeds the input-value IDs by matching element set names 'GEP' and 'SAN' and decodes the SI_TYPE from the input value name: HI_LOCATION=1, WP_LOCATION=2, WPF_LOCATION=4.

Key Columns

  • assignment_action_id — primary linkage to the assignment action.
  • assignment_id, person_id — zero-added (+0) to prevent synonym-based predicate pushdown issues.
  • business_group_id — legislative/business group scoping.
  • date_earned, effective_date — payroll action dates used as the "as of" parameters for balance lookups.
  • Decode of effective_date vs. element_set_id — returns 'G' for GEPPEN and 'S' for SANTEI, establishing the record classification.
  • pay_jp_balance_pkg.get_entry_value_number(...) — the SI organization numeric value.
  • Two substrb(...) columns over get_entry_value_char for HI_NUM and WP_NUM, truncated to 10 bytes.
  • sum(hrv.si_type) — aggregated SI type indicator.

The apply_type the user searched for maps to the HI/WP "comp apply type" input values (IV_ID_HI_COMP_APPLY_TYP, IV_ID_WP_COMP_APPLY_TYP) resolved through the HRV inner query, used to distinguish which month/type the adjustment applies to.

Common Use Cases and Queries

Typical uses include verifying monthly GEPPEN adjustments against SANTEI determinations, generating interface data for social insurance submissions, and auditing contribution calculations per assignment.

SELECT assignment_id,
       person_id,
       date_earned,
       apply_type_indicator,
       si_organization_value
FROM   apps.pay_jp_geppen_santei_mt_v
WHERE  business_group_id = :p_bg_id
AND    date_earned BETWEEN :p_start AND :p_end
ORDER  BY date_earned, assignment_id;

Filtering by the G/S classification supports split reporting: WHERE decode(...) = 'G' isolates GEPPEN records, while 'S' isolates SANTEI. Because the view invokes PL/SQL package functions per row, performance is best when constrained by business_group_id, date_earned, and assignment_id to limit function invocations.