Results for “reqimport_sourcing”
8 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
PO_AUTOSOURCE_SV is an Oracle E-Business Suite PL/SQL package owned by the APPS schema that implements the sourcing engine used throughout Oracle Purchasing. Its central purpose is to determine the correct source — a blanket purchase agreement, a global agreement, a contract, or an approved supplier list (ASL) entry — from which an item or category should be procured. The package evaluates sourcing rules, ASL attributes, document statuses, effective dates, and site assignments to return a recommended supplier and document for a requested item, organization, or requisition line.
In EBS 12.1.1 and 12.2.2, this package underpins the Automatic Sourcing feature configured through the Approved Supplier List and Sourcing Rules windows. It is consumed by purchasing forms, requisition import, and third-party and consignment (VMI) procurement flows, making it a foundational component for consistent supplier selection across the procurement lifecycle.
Key Procedures and Functions
ETRM documents 22 procedures and functions. The principal entries include:
- AUTOSOURCE — the primary driver that performs end-to-end sourcing for an item, returning the applicable document, supplier, and source information.
- GET_ASL_INFO — retrieves approved supplier list details for the given item and organization context.
- VMI_ENABLED — indicates whether vendor-managed inventory or consignment is enabled for a sourcing relationship; complemented by GET_VMIORCONSIGNENABLED_INFO.
- DOCUMENT_SOURCING, BLANKET_DOCUMENT_SOURCING, ASL_SOURCING, ITEM_BASED_ASL_SOURCING, CATEGORY_BASED_ASL_SOURCING — variant entry points that resolve sourcing from documents, blanket agreements, or item- versus category-level ASL definitions.
- REQIMPORT_SOURCING — sourcing logic applied during requisition import processing.
- GET_ALL_ITEM_ASL, GET_DOCUMENT_FROM_ASL, GET_LATEST_DOCUMENT, GET_SERVICES_ASL_LIST — retrieval routines that enumerate ASL entries, resolve the associated document, identify the most recent valid document, and handle services purchasing.
- GET_SITE_ID_IF_ITEM_ON_DOC_OK, GET_SOURCE_INFO, HAS_SOURCE_CHANGED, SHOULD_RETURN_CONTRACT, GET_LINE_AMOUNT, PROCESS_REQ_QTY — supporting functions that validate site/document associations, return source detail, detect source changes, determine contract eligibility, compute line amounts, and process requisition quantities.
Tables Accessed
The package reads and writes against core purchasing and inventory tables accessed through APPS synonyms. MTL_SYSTEM_ITEMS and MTL_ITEM_CATEGORIES supply item and category context, while MTL_ITEM_SUB_INVENTORIES supports subinventory-level sourcing. PO_APPROVED_SUPPLIER_LIST, PO_ASL_ATTRIBUTES, PO_ASL_DOCUMENTS, and PO_ASL_STATUS_RULES provide the ASL definitions, attributes, associated documents, and status rules that drive selection. PO_DOCUMENT_TYPES_ALL_B and PO_DOCUMENT_TYPES_B identify document types, and PO_DISTRIBUTIONS_ALL and PO_AGENTS supply distribution and buyer information. FINANCIALS_SYSTEM_PARAMETERS and FINANCIALS_SYSTEM_PARAMS_ALL hold operating unit configuration, FND_CURRENCIES supports currency conversion, and FND_NEW_MESSAGES stores messages generated during sourcing.
Usage Notes
PO_AUTOSOURCE_SV is invoked implicitly rather than executed directly by end users. It is called from Purchasing forms during requisition and purchase order entry, from the Requisition Import concurrent program through its REQIMPORT_SOURCING path, and from related packages including CTO_AUTO_PROCURE_PK, CTO_MSUTIL_PUB, ICX_CAT_R12_UPGRADE_PVT, INV_PO_THIRD_PARTY_STOCK_MDTR, PO_INTERFACE_S, PO_SHIPMENTS_SV4, and PO_THIRD_PARTY_STOCK_GRP. Because eight packages depend on it, customizations should avoid altering its interface; custom code should call the documented public routines and respect the same ASL and sourcing rule configuration used by standard flows. Care is required when modifying ASL data, as changes propagate directly through this engine into purchasing documents.