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
- ORG_ID / CONC_REQ_ID — Operating unit that owns the withholding record, and the concurrent request identifier that generated the extract.
- VENDOR_NIF / VENDOR_NAME — Spanish tax identification number and legal name of the withholdee, mandatory keys for the AEAT return.
- REMUN_TYPE / SUB_REMUN_TYPE — Remuneration classification, mapping the payment to the Modelo 190 income-type codes.
- CONTRACT_TYPE — Identifies the nature of the engagement or contract associated with the withholding, distinguishing periodic, professional, or similar categories required in the declaration.
- INVOICE_ID, INVOICE_NUM, INV_DOC_SEQ_NUM, INVOICE_DATE, GL_DATE — Invoice and accounting context for each withholdable item.
- NET_AMOUNT, EARNED_AMOUNTS, WITHHOLDING_TAX_AMOUNT — Base amount paid, accrued earnings, and tax withheld.
- WITHHOLDABLE_AMT_IN_KIND, WITHHELD_AMT_IN_KIND, WITHHELD_PYMT_AMT_IN_KIND — In-kind remuneration and withholding amounts for non-cash payments.
- TAX_RATE, TAX_NAME, YEAR_DUE — Applicable withholding rate, tax name, and fiscal year of the return.
- NUM_CHILDREN, DISABLED, FAMILY_SITUATION, DESCENDANT_* and DISABLE_DESC_* columns — Personal and family deduction factors used to compute the withholding adjustment.
- DEDUCTIONS, EXPENSES, SPOUSE_MAINTENANCE_AMT, CHILDREN_MAINTENANCE_AMT — Deductible amounts and maintenance payments reported in the annual return.
- SIGN — Sign indicator for the amount, accommodating rectifications.
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.
-
View: JE_ES_MODELO_190 12.1.1
View for Spanish Withholding Tax Extract (Modelo 190)
Not implemented in this database·Explore JE module →
-
View: JE_ES_MODELO_190 12.2.2
View for Spanish Withholding Tax Extract (Modelo 190)
Not implemented in this database·Explore JE module →
-
12.2.2 FND Design Data 12.2.2
-
12.1.1 FND Design Data 12.1.1
-
PACKAGE BODY: APPS.AD_MORG 12.1.1
-
PACKAGE BODY: APPS.AD_MORG 12.2.2