Search Results ap_web_init_prompts_array




Overview

AP_WEB_DISC_PKG is a PL/SQL package in the APPS schema that supports the Oracle E-Business Suite Internet Expenses (OIE) module, internally referred to as Oracle Web Expenses. Its principal business role is to validate and manage expense report distribution lines and the descriptive flexfield (DFF) prompts that are presented to users during expense report entry. The package bridges the Web Expenses user interface with the underlying Oracle Payables data model, ensuring that distribution lines entered by employees conform to validation rules before they are committed to the application tables.

The package is classified as an OTHER API within the ETRM repository, indicating that it is not a formally published public API but rather an internal utility package supporting the Web Expenses framework. It is VALID in both Oracle EBS 12.1.1 and 12.2.2 and is referenced by five other packages, including AP_WEB_CREDIT_CARD_WF, AP_WEB_EXPENSE_WF, AP_WEB_INACTIVE_EMP_WF_PKG, AP_WEB_OA_DISC_PKG, and AP_WEB_DFLEX_PKG, which confirms its role as a shared service within the expense workflow stack.

Key Procedures and Functions

The ETRM metadata documents seven procedures and functions within this package:

  • PARSEEXPREPORT — Parses expense report data, likely interpreting distribution or accounting information supplied by the caller into a form suitable for downstream validation and processing.
  • DISCVALIDATEEXPLINES — Validates expense report distribution lines, ensuring that the coded accounting distributions attached to an expense report satisfy the applicable validation rules before submission.
  • AP_WEB_INIT_PROMPTS_ARRAY — Initializes the internal array structure used to hold descriptive flexfield prompt values during a Web Expenses session.
  • INVERSERATES — Computes inverse currency conversion rates, supporting multi-currency expense entry where a rate must be expressed in the opposite direction.
  • VALIDATEFOREIGNCURRENCIES — Validates foreign currency usage on expense reports, checking that the currencies and associated rates are valid and permitted for the given expense.
  • GETAKREGIONPROMPTSCURSOR — Returns a cursor over the prompts defined for an Oracle Application Framework (OA Framework) region, driving the dynamic rendering of flexfield prompts in the Web Expenses UI.
  • GETPROMPTS — Retrieves prompt definitions for the descriptive flexfields used during expense entry.

Tables Accessed

Through APPS synonyms, the package references the following tables and objects:

  • AP_EXPENSE_REPORT_LINES — The core table holding individual expense report lines; the package reads this data to validate distributions and compute foreign currency handling.
  • AP_SYSTEM_PARAMETERS — Provides system-level Payables configuration such as functional currency and accounting settings used during validation.
  • GMS_AWARDS — Stores grant award information, enabling validation of award-related distributions for organizations using Oracle Grants Management.
  • HTP — The HTML toolkit package used to generate markup output in the Web Expenses interface.
  • PLITBLM — The PL/SQL table and list management package used for in-memory array handling.

Usage Notes

AP_WEB_DISC_PKG is invoked indirectly by the Internet Expenses workflow and OA Framework pages rather than being called directly by end users or typical customizations. It is utilized during expense report entry and submission, when distribution lines, descriptive flexfields, and foreign currency values must be validated and rendered. Because it is referenced by the credit card, expense, inactive employee, and OA descriptive flexfield workflow packages, it forms part of the shared validation layer for Web Expenses processing. Developers extending Expense functionality should treat it as an internal, non-public API and avoid direct dependency, since its signature and behavior are governed by the standard application code. Customizations needing equivalent behavior should generally call supported public APIs rather than this package.