Search Results interface_line_entity_code




Overview

The APPS.ZX_VALIDATE_API_PKG package body is a core component of the Oracle E-Business Tax (EBTax) engine in Oracle EBS 12.1.1 and 12.2.2. Its principal business function is to default and validate tax attributes for transaction lines before tax calculation and record creation occur. The package acts as a gatekeeper within the tax determination pipeline: it applies configured defaults for tax regime, tax, tax status, tax rate, jurisdiction, and related attributes, then validates the resulting combination against the tax configuration data maintained in the EBTax repository. When validation fails, the package raises or records descriptive errors such as regime not existing, tax not being live, tax rate not being active, or jurisdiction code not being effective, allowing the calling process to reject or correct the transaction before tax is computed.

The user search term "interface_line_entity_code" is directly relevant to this package's operational context. This attribute identifies the entity type of a line within the tax interface data structures (for example, transaction line versus tax line versus adjustment line) and is a key discriminator that the validation and defaulting logic uses to interpret incoming interface records correctly.

Key Procedures and Functions

  • DEFAULT_AND_VALIDATE_TAX_ATTR: The primary entry point that combines defaulting and validation in a single invocation. It applies applicable defaults to the supplied tax attributes and then performs the full validation set, surfacing errors when configuration is missing or ineffective.
  • DEFAULT_TAX_ATTR: Populates tax attributes with configured default values sourced from country defaults, first-party organization setup, party tax profiles, and fiscal classification mappings. It establishes the baseline tax regime, tax, status, rate, and jurisdiction before validation.
  • VALIDATE_TAX_ATTR: Verifies that the defaulted or user-supplied attributes are valid and currently effective. It checks regime existence and effectiveness, tax existence and live/effective status, tax status and rate effectiveness, rate code validity, rate percentage correctness, jurisdiction code existence and effectiveness, and required control flags and references.
  • POP_DEF_TAX_CLASSIF_CODE: Populates default tax classification codes, typically deriving them from event class mappings and fiscal classification setup, ensuring the transaction line carries the classification required for accurate tax determination.

Tables Accessed

The package operates on interface and global temporary tables including ZX_IMPORT_TAX_LINES_GT, ZX_TRANSACTION_LINES_GT, and ZX_TRX_HEADERS_GT, which carry the inbound transaction data during tax processing. Configuration and reference data are read from FND_TERRITORIES, XLE_ENTITY_PROFILES, XLE_ETB_PROFILES, ZX_EVNT_CLS_MAPPINGS, ZX_FC_CODES_B, ZX_FC_COUNTRY_DEFAULTS, ZX_FC_TYPES_B, ZX_JURISDICTIONS_B, ZX_PARTY_TAX_PROFILE, and ZX_RATES_B. Persisted tax results and detail factors are accessed through ZX_LINES and ZX_LINES_DET_FACTORS. These tables supply the defaulting rules and the reference data against which validation is performed.

Usage Notes

ZX_VALIDATE_API_PKG is invoked by the EBTax tax determination and validation call stack, typically triggered during transaction entry, during the Tax Validation and Calculation processes, and from interface/concurrent programs that process tax lines. It is referenced by one other package, indicating its role as a shared internal utility rather than a directly user-facing form API. Custom code should call the documented procedures rather than manipulating the underlying tables directly, since the package enforces the ordering of defaulting and validation and centralizes error reporting for tax attribute integrity.