Search Results c_error_code_p
Overview
PA_PAXTRTRX_XMLP_PKG is an Oracle Applications (APPS) PL/SQL package that backs the Oracle Projects concurrent program responsible for generating the Transaction Interface (Transaction Transfer) report. The suffix XMLP indicates that the package supplies the data and layout logic for an XML Publisher (BI Publisher) based report, while the abbreviation PAXTRTRX reflects its role over the PA_TRANSACTION_INTERFACE tables. The package reads transaction interface staging records — transaction sources, batches, and cross-reference/interface identifiers — and returns report values such as company name, "no data found" messaging, and error status through its public functions and package-level variables.
The variable C_ERROR_CODE_P, which the user searched for, is one of the package's public functions. It is a getter that returns the value of the internal package variable C_ERROR_CODE (declared NUMBER) to the XML Publisher report or to a calling PL/SQL block. Collectively the package exposes report-ready values and a small error-handling mechanism so the concurrent request can be flagged as failed or warning when the underlying data extraction encounters a problem, rather than silently producing an empty report.
Key Procedures and Functions
- GET_COVER_PAGE_VALUES — populates the cover-page elements of the report (report title, parameters, and run-time context) before the report body is rendered.
- BEFOREREPORT — the standard Oracle Reports/XML Publisher before-report trigger; performs initialization such as deriving the concurrent request context and preparing global values.
- GET_COMPANY_NAME — resolves and returns the operating company/legal entity name used in the report header, drawing on implementation setup data.
- AFTERREPORT — the after-report trigger; used for cleanup and final status assignment once report output has been produced.
- C_COMPANY_NAME_HEADER_P — accessor returning the header company name variable
C_COMPANY_NAME_HEADER. - C_NO_DATA_FOUND_P — accessor returning the "no data found" message
C_NO_DATA_FOUND, allowing the report to emit a friendly message when the query returns no interface transactions. - C_DUMMY_DATA_P — accessor returning
C_DUMMY_DATA, a control value used to drive the report's dummy/filler rows or formatting logic. - C_ERROR_CODE_P — accessor returning
C_ERROR_CODE, the numeric error status of the report run. This is the documented search target and is typically consumed by error-handling logic after the report completes. - C_ERROR_MSG_P — accessor returning
C_ERROR_MSG, the descriptive message accompanying the error code. - SET_ERROR_STATUS — writes the current error code and message into the package variables, effectively recording the outcome of the run.
- GET_ERROR_STATUS — evaluates the recorded status and returns a BOOLEAN indicating success or failure, which the concurrent program uses to set the request completion status.
Tables Accessed
The package references the following objects through APPS synonyms:
- PA_TRANSACTION_INTERFACE — the primary staging table of transaction interface lines being reported.
- PA_MC_TXN_INTERFACE_ALL — multi-currency transaction interface entries associated with the lines.
- PA_INTERFACE_ID_S — sequence used to obtain interface identifiers.
- PA_TRANSACTION_SOURCES — lookup of transaction source names used to filter and label the report.
- PA_TRANSACTION_XFACE_CONTROL — cross-reference/control data governing interface processing.
- PA_IMPLEMENTATIONS — implementation setup, providing organization/company context such as the header company name.
Usage Notes
PA_PAXTRTRX_XMLP_PKG is invoked by the Oracle Projects Transaction Interface (Transaction Transfer) XML Publisher concurrent program. The report framework calls the before/after report functions to seed and finalize package state, the GET and accessor functions to supply values to the template, and SET_ERROR_STATUS / GET_ERROR_STATUS to communicate success or failure back to the concurrent manager. It is not referenced by any other documented package, so its use is essentially confined to that single report and, in customization scenarios, to custom report templates that call the same PL/SQL accessors — notably C_ERROR_CODE_P — to display error information. No direct form invocation is documented.