Results for “application_code”

2 results




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

Overview

ZX_P2P_CALC_TXN_INPUT_V is a PL/SQL-based view owned by the APPS schema in Oracle E-Business Tax (ZX). It was introduced to support the Procure-to-Pay (P2P) tax calculation flow, exposing the pre-processed transaction payload that feeds the E-Business Tax calculation engine. The view consolidates transactional header, line, party, and pre-processing option data into a single denormalized result set that the tax engine consumes when computing taxes on purchasing documents such as purchase orders, receipts, and invoices.

Because the view is a database object rather than a public API, it is not intended for direct end-user querying. Its role is to act as an integration surface between the source P2P documents and the ZX tax determination and calculation services. It is referenced internally by packages such as ZX_TPI_SERVICES_PKG and is materialized through global temporary tables populated during the tax calculation call sequence.

Underlying Base Objects

The view is defined over the following documented base objects:

The view itself performs no DML; it projects and decodes columns from these objects, most notably transforming LINE_LEVEL_ACTION values based on the partner and processing flags described in the inline DECODE logic.

Key Columns

The presence of INCLUSIVE_TAX_OVERRIDE_FLAG in the decode chain is directly relevant to users investigating the override_tax search term: the flag controls whether an inclusive tax override forces a LINE_LEVEL_ACTION of UPDATE for partner-processed lines.

Common Use Cases and Queries

Typical use is diagnostic — tracing why a purchasing document did or did not create or update a tax line during P2P tax calculation. A representative query might look for transactions where the inclusive override flag drove an UPDATE action:

  • Select TRX_NUMBER, TRX_LINE_ID, LINE_LEVEL_ACTION from ZX_P2P_CALC_TXN_INPUT_V where TRX_ID = :p_trx_id to review the pre-processed state of a single transaction.
  • Filter on TAX_EVENT_TYPE_CODE and ALLOW_TAX_CALCULATION_FLAG to confirm tax calculation eligibility.
  • Join back to ZX_LINES to compare the input action with the resulting tax line disposition, particularly for override scenarios involving INCLUSIVE_TAX_OVERRIDE_FLAG and PARTNER_PROCESSING_FLAG.

Because it depends on global temporary tables populated at runtime by ZX_TPI_SERVICES_PKG, meaningful results are only obtainable within an active tax calculation session or after the pre-processing step has executed.