Search Results pay_in_term_rprt_gen_pkg




Overview

The APPS.PAY_IN_TERM_RPRT_GEN_PKG package is a PL/SQL utility within the Oracle E-Business Suite payroll module responsible for generating the XML representation of termination report data. The package name itself indicates its role: "PAY" for Payroll, "IN_TERM" for the Indian termination reporting feature set, and "RPRT_GEN" for report generation. Its primary business function is to transform structured payroll and assignment-related data into well-formed XML fragments that can be consumed by downstream reporting engines, such as Oracle XML Publisher (BI Publisher), for the production of statutory and HR termination reports.

The package header (source header pyintrpt.pkh 120.0.12010000.2) defines custom collection and record types that are central to its operation. The XMLRec record holds a name/value pair, and the tXMLTable collection type is a table of these records indexed by binary integer. A package-level global, gXMLTable, is declared for use across the packaged procedures. This design allows the package to accumulate and emit tag/value pairs dynamically, which is well-suited to the variable layouts encountered in termination and payroll reporting.

Key Procedures and Functions

The package exposes five documented program units, all of which support the XML construction pipeline:

  • MULTICOLUMNAR — A public procedure that creates XML output for a multiple-column layout, driven by a type indicator, the XML data table, and a count.
  • TWOCOLUMNAR — A public procedure that creates XML output for a two-column layout, likewise parameterized by type, data, and count.
  • GETTAG — A public function that returns a formatted tag string built from a supplied tag name and tag value. This is the atomic building block used by the columnar procedures.
  • GET_TEMPLATE — Retrieves the report template definition used to shape the XML structure for termination reporting.
  • CREATE_XML — The central entry point for assembling the complete XML document from the accumulated tag/value data. This is the function most frequently referenced by callers, including custom extensions that need to render termination report XML programmatically.

Tables Accessed

The package reads from a broad set of payroll and HR tables via APPS synonyms, reflecting the composite nature of termination reporting data. Assignment and organizational context are drawn from HR_ORGANIZATION_INFORMATION and HR_SOFT_CODING_KEYFLEX. Payroll processing state is gathered from PAY_ACTION_INTERLOCKS and PAY_ASSIGNMENT_ACTIONS. The balance-related tables — PAY_BALANCE_DIMENSIONS, PAY_BALANCE_FEEDS_F, PAY_BALANCE_TYPES, PAY_DEFINED_BALANCES — supply computed balance figures. Element and entry detail is obtained from PAY_ELEMENT_CLASSIFICATIONS, PAY_ELEMENT_ENTRIES_F, PAY_ELEMENT_ENTRY_VALUES_F, PAY_ELEMENT_LINKS_F, PAY_ELEMENT_TYPES_F, and PAY_INPUT_VALUES_F. External account references come from PAY_EXTERNAL_ACCOUNTS. These tables are read to populate the name/value pairs emitted as XML.

Usage Notes

This package is classified as OTHER in ETRM and is referenced by zero other packages, indicating that it is typically invoked directly — either from a concurrent program, a report generator, or custom PL/SQL code that requires termination report XML. Developers extending termination reporting should call CREATE_XML after loading the required source data, or reuse GETTAG, TWOCOLUMNAR, and MULTICOLUMNAR to assemble custom XML layouts. Because it operates as a report-generation utility rather than a business API, no validation or write-back to payroll tables is performed; it should be treated as a read-only XML producer.