Results for “je_es_modelo_190”

6 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

The view JE_ES_MODELO_190 belongs to the JE – European Localizations product family and is documented as the reporting view supporting the Spanish Withholding Tax Extract for Modelo 190. Modelo 190 is the annual informative return that Spanish withholding agents must file with the Agencia Tributaria (AEAT) to declare income tax withholdings applied to payments made to vendors, professionals, and other recipients during a fiscal year. In Oracle EBS 12.1.1 and 12.2.2, this view consolidates withholding-relevant data drawn from payables, payment, and withholding tax processing so that the Spanish localization extract program can produce the official declaration in the AEAT-prescribed format.

Because JE_ES_MODELO_190 is a view rather than a table, it exposes no independent storage of its own. Its role is to present a single, query-ready projection of Modelo 190 attributes — including vendor identification, remuneration classification, withholding amounts, and personal/family deduction data — for downstream extraction and reporting. The ETRM metadata notes that the object is not implemented in the reference database, meaning the view is delivered conditionally with the Spanish localization and may not exist in a non-Spanish or unlicensed environment.

Underlying Base Objects

The documented view text defines JE_ES_MODELO_190 as a filtered projection over the base table JE_ES_MODELO_190_ALL:

  • SELECT ... FROM JE_ES_MODELO_190_ALL WHERE NVL(ORG_ID, NVL(TO_NUMBER(DECODE(SUBSTRB(USERENV('CLIENT_INFO'), 1, 1), ' ', NULL, SUBSTRB(USERENV('CLIENT_INFO'), 1, 10))), -99)) = NVL(TO_NUMBER(DECODE(SUBSTRB(USERENV('CLIENT_INFO'), 1, 1), ' ', NULL, SUBSTRB(USERENV('CLIENT_INFO'), 1, 10))), -99)

The view therefore relies on the standard Oracle multi-org security pattern: it filters rows from the _ALL table by the organization identifier resolved from USERENV('CLIENT_INFO'), comparing it to the current operating unit context returned by the same mechanism. The ETRM metadata records no documented referenced base objects beyond this relationship, though the column names (for example INVOICE_ID, INVOICE_PAYMENT_ID, VENDOR_NIF) indicate the parent table is itself a consolidation of AP invoices, payments, suppliers, and withholding tax lines.

Key Columns

Common Use Cases and Queries

The primary use case is the preparation and review of the Modelo 190 filing. A typical query retrieves all withholding lines for a given operating unit and fiscal year:

  • SELECT VENDOR_NIF, VENDOR_NAME, YEAR_DUE, CONTRACT_TYPE, SUM(WITHHOLDING_TAX_AMOUNT) FROM JE_ES_MODELO_190 WHERE ORG_ID = :p_org_id AND YEAR_DUE = :p_year GROUP BY VENDOR_NIF, VENDOR_NAME, YEAR_DUE, CONTRACT_TYPE;
  • Detail drill-down: SELECT INVOICE_NUM, INVOICE_DATE, NET_AMOUNT, TAX_RATE, WITHHOLDING_TAX_AMOUNT FROM JE_ES_MODELO_190 WHERE VENDOR_NIF = :p_nif ORDER BY INVOICE_DATE;
  • In-kind reconciliation: SELECT VENDOR_NIF, WITHHOLDABLE_AMT_IN_KIND, WITHHELD_AMT_IN_KIND FROM JE_ES_MODELO_190 WHERE WITHHOLDABLE_AMT_IN_KIND IS NOT NULL;
  • Extract linkage by concurrent request: SELECT COUNT(*), SUM(WITHHOLDING_TAX_AMOUNT) FROM JE_ES_MODELO_190 WHERE CONC_REQ_ID = :p_req_id;

Because the view enforces operating-unit security through USERENV('CLIENT_INFO'), queries executed in a multi-org session automatically return only the current organization's rows, which is essential for controlled reporting to AEAT. All results depend on the Spanish localization being installed and on the underlying JE_ES_MODELO_190_ALL table having been populated by the extract process.