Search Results csp_create_parts_req_pkg




Overview

The APPS.CSP_CREATE_PARTS_REQ_PKG package body is a stored PL/SQL program unit in the Oracle E-Business Suite Applications schema. It forms part of the Service (CSP) module and is associated with the Spares Management / Parts Requirement functionality used in field service and depot repair operations. Its principal business role is to create requirement headers and requirement lines — the internal records that capture demand for spare parts — so that downstream planning, sourcing, and replenishment processes can act upon that demand. The package is classified as a non-public, "OTHER" category API, indicating that it is an internal helper rather than a formally published interface, and it is intended to be invoked by Oracle's own service processes or by carefully controlled customizations.

Key Procedures and Functions

The ETRM metadata documents two program units within this package body:

  • CREATE_REQUIREMENT_HEADERS — Creates one or more requirement header records. The header represents the top-level demand document that groups a set of parts to be requisitioned or planned. This procedure establishes the parent context that the corresponding line records attach to.
  • CREATE_REQUIREMENT_LINES — Creates the requirement line records. Each line represents an individual part (item) with its associated quantity and detail, belonging to a requirement header. Together with the header procedure, it provides the complete record structure against which parts demand is tracked.

No parameter lists are exposed in the documented metadata. The procedures follow the conventions of Oracle's CSP public APIs, accepting standard API error-handling parameters (such as p_init_msg_list, x_return_status, x_msg_count, and x_msg_data) and building a multi-row collection of headers and lines rather than requiring one call per row.

Tables Accessed

The dependency metadata for this package lists only DUAL among directly referenced tables (via the APPS synonym). DUAL is the standard Oracle single-row utility table, typically used for SELECT ... INTO validation or function evaluation rather than for persistent data storage. The actual requirement data is not written directly by this package; instead, the documented dependencies show that it delegates persistence to the public APIs CSP_REQUIREMENT_HEADERS_PUB and CSP_REQUIREMENT_LINES_PUB. This layering means the underlying CSP requirement tables are populated through those public APIs, preserving business rules, validation, and auditing logic rather than bypassing them.

Usage Notes

This package is a private, internal wrapper. It is not referenced by any other database object according to the ETRM dependency report, so it is not a shared utility consumed across multiple packages. It is most likely called from within the CSP module's own synchronous logic — for example, from a form-based action, a workflow activity, an order/repair processing routine, or a concurrent program that generates parts requirements from a service order, return, or repair line. It relies on FND_API for its API error-handling framework and on FND_GLOBAL for session context such as user ID, login ID, and responsibility.

When invoked, customization or extension code should call the package only with explicit intent, anticipate return-status and message handling in the FND_API style, and commit or roll back within the caller's transaction boundary. Because the package is marked non-public and has no downstream dependents, Oracle may change its internals without notice; customers should prefer the documented public CSP requirement APIs for any forward-compatible integration.