Results for “category_based_asl_sourcing”

8 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

PO_AUTOSOURCE_SV is the core automatic sourcing engine in Oracle Purchasing (APPS schema). Its primary documented entry point, AUTOSOURCE, performs automatic document sourcing based on item or item category, supplier or supplier site, and profile option settings. The procedure resolves the correct source document — a blanket purchase agreement, a contract, or an internal/inventory source — for a given purchasing or requisitioning context. The package is central to Approved Supplier List (ASL) sourcing logic, which is the mechanism by which Oracle EBS determines the approved supplier, the negotiated document, and the sourcing attributes that should default onto a purchasing document or requisition line. The user search term "asl_sourcing" maps directly to the documented ASL_SOURCING procedure and to the broader ASL-based logic that this package encapsulates. The package is owned by APPS, is classified as OTHER in the ETRM metadata, and is referenced by eight other packages, indicating it functions as a shared low-level sourcing utility rather than a form-bound API. It supports both the catalog-sourcing path (item or category on an existing document) and the non-catalog requisition path used by iProcurement.

Key Procedures and Functions

The package exposes twenty-two documented procedures and functions. AUTOSOURCE is the top-level driver; it accepts a mode of VENDOR, INVENTORY, BOTH, or DOCUMENT, and a destination document type such as PO, REQ, STANDARD PO, REQ_NONCATALOG, or NULL. Its documented IN OUT parameters allow callers to pass in an item, commodity/category, destination organization, destination subinventory, sourcing date, item revision, and currency, and to receive back matched vendor and vendor site identifiers. Other documented members include:

Tables Accessed

The package reads and writes documented tables through APPS synonyms. ASL data resides in PO_APPROVED_SUPPLIER_LIST, PO_ASL_ATTRIBUTES, PO_ASL_DOCUMENTS, and PO_ASL_STATUS_RULES. Item context is drawn from MTL_SYSTEM_ITEMS, MTL_ITEM_CATEGORIES, and MTL_ITEM_SUB_INVENTORIES. Purchasing context comes from PO_AGENTS, PO_DISTRIBUTIONS_ALL, PO_DOCUMENT_TYPES_ALL_B, and PO_DOCUMENT_TYPES_B. Currency and system defaults are obtained from FND_CURRENCIES, FINANCIALS_SYSTEM_PARAMETERS, and FINANCIALS_SYSTEM_PARAMS_ALL, while FND_NEW_MESSAGES supplies message text. These accesses align with the package's purpose: resolve approved sources, validate item/category status, and return matched document, vendor, and site values.

Usage Notes

PO_AUTOSOURCE_SV is invoked by Oracle Purchasing and iProcurement forms and by concurrent programs that require automatic source determination, and it is called by at least eight other packages in the EBS codebase. Custom code should call AUTOSOURCE rather than the lower-level routines, passing x_mode and x_destination_doc_type appropriate to the calling context, and supplying x_vendor_id and x_vendor_site_id as IN OUT values where vendor site sourcing is required. Because the package performs no explicit locking or DML of its own, callers retain responsibility for transaction control. The shared debugging constants at the top of the body integrate with PO_DEBUG, allowing diagnostic logging to be enabled through standard debug profile options during troubleshooting of ASL sourcing behavior.