Search Results validate_lsc_quota_total




Overview

OE_VALIDATE_LINE_SCREDIT is a server-side PL/SQL validation package within the Oracle Order Management (OM) module of Oracle E-Business Suite. Its responsibility is to enforce business rules against line-level sales credit records — the rows that allocate sales credit percentages and quota amounts to salespersons, sales groups, and other credit recipients associated with an order line. The package is declared AUTHID CURRENT_USER, meaning it executes with the privileges of the calling schema rather than its owner. The supplied source header identifies it as script OEXLLSCS.pls (version 120.0), and it is classified in ETRM as an OTHER API rather than a published public API, indicating it is an internal validation worker invoked by the higher-level Order Management public APIs rather than a documented interface for direct customer use.

Key Procedures and Functions

The documented package exposes four procedures:

  • VALIDATE_LSC_QUOTA_TOTAL — Validates the quota total for a line sales credit record. It accepts an output return status and an input line identifier, and is the specific routine a user searching for "validate_lsc_quota_total" would be tracing. It confirms that the quota amount assigned across sales credits on the line is internally consistent and acceptable before the record is committed.
  • ENTITY — Performs entity-level validation on a new LSC record, comparing the incoming Line_Scredit_Rec_Type structure against the existing (old) record. Entity-level checks typically cover mandatory attributes and uniqueness of the credit assignment.
  • ATTRIBUTES — Performs attribute-level validation, taking the Line_Scredit_Rec_Type as an IN OUT NOCOPY parameter so that defaults and derived values can be written back to the record. The source comments record that the parameter was renamed to fix Bug 3006018.
  • ENTITY_DELETE — Validates whether an existing line sales credit record may be deleted, protecting referential and business integrity before removal.

All four procedures return a standard x_return_status OUT parameter, consistent with the OE_Order_PUB error-handling convention (success, expected error, unexpected error).

Tables Accessed

The package referenced through APPS synonyms:

  • OE_SALES_CREDITS — Stores the actual sales credit rows for order lines, including the salesperson, credit type, percentage, and quota amount. The package reads and validates these records.
  • OE_SALES_CREDIT_TYPES — Defines the credit type codes (for example, quota-bearing versus non-quota-bearing). Validation of the quota total depends on this definition to determine which credit types contribute to quota.

Usage Notes

This package is not intended for direct invocation. It is called during the Order Management line processing flow — principally from the Order Management public APIs and their validation layers — whenever a sales credit record is inserted, updated, or deleted on an order line. In the Oracle EBS 12.1.1 and 12.2.2 releases the same validation surface is reached through the Batch and Online order entry paths, so a custom extension that manipulates sales credits should route through the public OE_Order_PUB APIs rather than calling OE_VALIDATE_LINE_SCREDIT directly. ETRM records that the package is referenced by two other packages, confirming its role as a shared internal validation component. Because it is an undocumented (OTHER) API, customizations that depend on it should be reviewed during upgrade testing, as internal validation signatures are not covered by Oracle's public API compatibility guarantee.