Results for “po_autosource_sv”
50+ 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:
- ASL_SOURCING, ITEM_BASED_ASL_SOURCING, CATEGORY_BASED_ASL_SOURCING — perform ASL lookup by item or by category, the two documented ASL sourcing strategies.
- GET_ASL_INFO, GET_ALL_ITEM_ASL, GET_SERVICES_ASL_LIST — retrieve ASL records, including all item ASLs and service-item ASL lists.
- GET_DOCUMENT_FROM_ASL, GET_LATEST_DOCUMENT, BLANKET_DOCUMENT_SOURCING, DOCUMENT_SOURCING — resolve and return the source document from ASL data and blanket agreements.
- REQIMPORT_SOURCING — supports requisition import sourcing.
- GET_SITE_ID_IF_ITEM_ON_DOC_OK — returns a supplier site when an item is valid on a document.
- GET_SOURCE_INFO, HAS_SOURCE_CHANGED, SHOULD_RETURN_CONTRACT, GET_LINE_AMOUNT, PROCESS_REQ_QTY — supporting logic for source comparison, contract return decisions, line amount derivation, and requisition quantity processing.
- VMI_ENABLED, GET_VMIORCONSIGNENABLED_INFO — report whether VMI or consignment is enabled for the sourcing context.
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.
-
TYPE: APPS.PO_TBL_VARCHAR15 12.1.1
-
TYPE: APPS.PO_TBL_VARCHAR15 12.2.2
-
TYPE: APPS.PO_TBL_VARCHAR25 12.1.1
-
TYPE: APPS.PO_TBL_VARCHAR25 12.2.2
-
TYPE: APPS.PO_TBL_DATE 12.1.1
-
SYNONYM: APPS.PO_AGENTS 12.1.1
-
SYNONYM: APPS.PO_AGENTS 12.2.2
-
TYPE: APPS.PO_TBL_DATE 12.2.2