Search Results jg_zz_vat_rep_status




Overview

JG_ZZ_VAT_REP_STATUS is a table in the JG (Regional Localizations) product schema of Oracle E-Business Suite, valid in both 12.1.1 and 12.2.2. It stores the reporting status of a Tax Registration Number (TRN) by tax calendar period and by source, effectively acting as the control record that tracks where a given VAT reporting entity stands within the reporting lifecycle for a specific period. The lifecycle stages captured are selection, allocation, final reporting, and archival, each represented by a dedicated status flag, process identifier, and process date. The table therefore serves as the transactional backbone that links a reporting entity, its reporting period, and the concurrent programs that processed it.

From a Data Vault modeling perspective, the mined foreign-key structure suggests a satellite-leaning classification. The table carries descriptive state (status flags, process dates, amounts) keyed by a reporting entity and period combination, and it is referenced by downstream detail-fact style tables. This is a heuristic suggestion rather than a documented Oracle position, but it is useful when designing integration or warehouse extraction patterns.

Key Information Stored

The primary key is the surrogate identifier REPORTING_STATUS_ID, enforced by constraint JG_ZZ_VAT_REP_STATUS_PK. Two unique indexes document the business-key candidates: JG_ZZ_VAT_REP_STATUS_U1 on REPORTING_STATUS_ID, and JG_ZZ_VAT_REP_STATUS_U2 on the composite VAT_REPORTING_ENTITY_ID, TAX_CALENDAR_PERIOD, and SOURCE. The composite unique index is the more meaningful natural key, since it defines the grain as one row per reporting entity, period, and source.

Among the 33 documented columns, the most significant are:

Standard WHO columns (CREATED_BY, CREATION_DATE, LAST_UPDATE_DATE, LAST_UPDATED_BY, LAST_UPDATE_LOGIN) are also present.

Common Use Cases and Queries

The table is typically queried to determine whether a reporting entity's VAT submission for a given period has completed each lifecycle stage. A common pattern joins the entity and calendar columns to filter incomplete reporting cycles:

  • Identifying periods where FINAL_REPORTING_STATUS_FLAG is not set, to drive follow-up processing.
  • Auditing the timing of each stage by comparing the four process-date columns.
  • Tracing a specific run back to the concurrent request using REQUEST_ID joined to FND_CONCURRENT_REQUESTS.
  • Reconciling downstream report and transaction detail rows against their parent status record via REPORTING_STATUS_ID.

Sample query skeleton:

SELECT s.taX_registration_number,
       s.tax_calendar_period,
       s.source,
       s.final_reporting_status_flag
FROM   jg.jg_zz_vat_rep_status s
WHERE  s.vat_reporting_entity_id = :entity_id
AND    s.tax_calendar_year = :year

Related Objects

The foreign keys documented in the ETRM metadata establish the following primary relationships:

  • JG_ZZ_VAT_REP_ENTITIES — joined on VAT_REPORTING_ENTITY_ID to obtain entity and registration details.
  • FND_CONCURRENT_REQUESTS — joined on REQUEST_ID to trace the program run that created the status record.
  • FND_LOGINS — joined on PROGRAM_LOGIN_ID to identify the login session of the program.
  • JG_ZZ_VAT_FINAL_REPORTS — references this table on REPORTING_STATUS_ID, holding the finalized report output.
  • JG_ZZ_VAT_TRX_DETAILS — references this table on REPORTING_STATUS_ID, holding the transaction-level detail associated with the status record.

Together these objects form the VAT reporting chain: entity definition, status control, transaction detail, and final report output, all anchored by the reporting status identifier.