Search Results validate_picklist_header




Overview

CSP_PICKLIST_HEADER_PVT is a private PL/SQL package in the Oracle EBS Applications (APPS) schema that encapsulates the business logic for maintaining picklist header records within the Oracle Warehouse Management (WMS) and shipping execution flow. The package belongs to the CSP module family and is classified as a Private (PVT) API, meaning it is intended for internal consumption by other CSP packages, public APIs, and Oracle forms rather than for direct invocation by external or customer-developed code. Its primary responsibility is to centralize the create, update, delete, and validation operations that govern the lifecycle of a picklist header, ensuring consistent enforcement of business rules, referential integrity, and multiorganization data security.

The header of the package body confirms the standard Oracle API design conventions: the package name constant G_PKG_NAME is set to 'CSP_PICKLIST_HEADER_PVT', the source file is cspvtphb.pls, and global identifiers G_USER_ID and G_LOGIN_ID are initialized from FND_GLOBAL. This confirms that the package participates in the standard EBS API framework, including message list handling via FND_MSG_PUB and call-compatibility checking through FND_API.Compatible_API_Call.

Key Procedures and Functions

The package exposes eleven documented procedures and functions, all centered on the picklist header entity. The core transactional procedures are CREATE_PICKLIST_HEADER, UPDATE_PICKLIST_HEADER, and DELETE_PICKLIST_HEADER. These implement the standard API pattern: they accept an API version number, an initialization flag for the message list, a commit flag, a validation level, and a picklist header record structure, and they return the primary key (picklist header ID) along with the standard return status, message count, and message data outputs.

The validation routines provide granular, field-level checks that are also callable independently of the transactional procedures. VALIDATE_PICKLIST_HEADER performs record-level validation across the full header structure, while VALIDATE_PICK_HEADER_REC validates the incoming record type itself. More targeted validators include VALIDATE_PICKLIST_HEADER_ID, which confirms the existence and validity of a header identifier; VALIDATE_ORGANIZATION_ID, which verifies that the organization reference is valid and accessible; VALIDATE_PICKLIST_NUMBER, which checks the picklist number for uniqueness and format; VALIDATE_PICKLIST_STATUS, which confirms the status code is a recognized value; VALIDATE_DATE_CREATED, which validates the creation date; and VALIDATE_DATE_CONFIRMED, which validates the confirmation date. Together these enforce the business rules that protect header data integrity.

Tables Accessed

The metadata documentation does not enumerate the specific tables referenced through APPS synonyms. Based on the package's function, the procedures operate against the picklist header base table and its associated validation lookup sources, such as organization and status reference tables. All access is performed through APPS synonyms, consistent with EBS coding standards, and the package respects the organization security model through the VALIDATE_ORGANIZATION_ID routine.

Usage Notes

As a PVT package, CSP_PICKLIST_HEADER_PVT is not intended for direct invocation by end users or external integrations. It is referenced by one other package, which most likely serves as the public wrapper or orchestrating API for picklist processing. Typical invocation paths include shipping and warehouse management forms, concurrent programs that generate or confirm picklists, and other CSP packages that need to maintain header data. Custom code should call the corresponding public API rather than this private package to preserve upgrade safety and to ensure that all validation and message-handling conventions are applied. The package is documented for both Oracle EBS 12.1.1 and 12.2.2, and its API versioning mechanism allows it to remain backward compatible across patch levels.