Search Results opi_edw_cogs_f_c
Overview
OPI_EDW_COGS_F_C is an Oracle Applications (APPS) PL/SQL package that belongs to the Oracle Project Intelligence / Enterprise Data Warehouse (EDW) family of programs concerned with cost of goods sold (COGS) reporting and extraction. The package is responsible for collecting, transforming, and pushing COGS fact data from transactional E-Business Suite sources into the EDW staging and incremental collection tables. Within the 12.1.1 and 12.2.2 releases, it forms part of the extract-load infrastructure that supplies the Oracle Projects and Supply Chain Intelligence warehouse with a consolidated view of material, order, and invoicing costs.
The package header carries the version marker OPIMCOGS.pls 120.1, dated 2005/06/10, indicating it is a long-standing component that has remained stable across the EBS codelines. Its ETRM API classification is "OTHER," meaning it is not an end-user callable business API but an internal data-warehouse driver invoked by the collection framework. The header is also referenced by one other package, which most likely controls the scheduling or orchestration of the COGS load.
Key Procedures and Functions
The documented interface exposes two program units:
- PUSH — An entry-point procedure that drives the COGS extraction cycle. It accepts an error buffer and return code for standard concurrent-program error handling, together with a from-date and to-date range expressed as VARCHAR2. These date parameters define the accounting or transaction window from which COGS records are gathered, enabling incremental, period-based loads rather than full refreshes.
- PUSH_TO_LOCAL — A function that takes a view identifier and a sequence identifier and returns a NUMBER. It supports the local-instance push mechanism, using the EDW_LOCAL_INSTANCE configuration to determine the target warehouse instance. The returned numeric value typically communicates success or failure status back to the controlling process.
The naming convention (PUSH, PUSH_TO_LOCAL) is characteristic of OPI EDW collection packages, which stage data locally before transmitting it to the central warehouse.
Tables Accessed
The package reads and writes an extensive set of transactional and warehouse tables, resolved through APPS synonyms:
- MTL_MATERIAL_TRANSACTIONS, MTL_TRANSACTION_ACCOUNTS, MTL_PARAMETERS — source of material issue and receipt costs that drive the COGS amount.
- OE_ORDER_HEADERS_ALL, OE_ORDER_LINES_ALL — order information used to associate cost with shipped sales orders.
- RA_CUSTOMER_TRX_LINES_ALL — receivables invoice lines that link revenue transactions to their corresponding costs.
- AP_INVOICES_ALL, AP_INVOICE_DISTRIBUTIONS_ALL — payables distributions that capture purchase cost components.
- OPI_EDW_COGS_FSTG, OPI_EDW_COGS_INC, OPI_EDW_COGS_INC_S — the target staging and incremental collection tables where fact records are written and from which they are propagated.
- EDW_LOCAL_INSTANCE — configuration table identifying the local warehouse instance for the PUSH_TO_LOCAL function.
- DUAL — used for simple singleton selections and PL/SQL control.
Usage Notes
OPI_EDW_COGS_F_C is not intended for direct invocation from EBS forms or ad hoc SQL. It is executed by the Oracle EDW collection framework, typically through a concurrent program that supplies the from-date and to-date range. In practice, the package runs on a scheduled basis as part of the broader COGS fact collection cycle, feeding the staging and incremental tables that the warehouse uses to build COGS analysis. Customizing or calling this package outside that framework requires careful attention to the date-range semantics and to the EDW_LOCAL_INSTANCE configuration, since incorrect parameters can result in incomplete or duplicated cost records in the warehouse.
-
PACKAGE: APPS.OPI_EDW_COGS_F_C
12.1.1
-
PACKAGE: APPS.OPI_EDW_COGS_F_C
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OPI_EDW_COGS_F_C, status:VALID,
-
PACKAGE BODY: APPS.OPI_EDW_COGS_F_C
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OPI_EDW_COGS_F_C, status:VALID,
-
SYNONYM: APPS.OPI_EDW_COGS_INC_S
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OPI_EDW_COGS_INC_S, status:VALID,
-
SYNONYM: APPS.OPI_EDW_COGS_FSTG
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OPI_EDW_COGS_FSTG, status:VALID,
-
SYNONYM: APPS.OPI_EDW_COGS_INC
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OPI_EDW_COGS_INC, status:VALID,
-
PACKAGE BODY: APPS.OPI_EDW_COLLECT_MBI_FACTS_F_C
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OPI_EDW_COLLECT_MBI_FACTS_F_C, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.1.1 DBA Data
12.1.1
-
SYNONYM: APPS.MTL_TRANSACTION_ACCOUNTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MTL_TRANSACTION_ACCOUNTS, status:VALID,
-
PACKAGE: APPS.EDW_COLLECTION_UTIL
12.1.1
owner:APPS, object_type:PACKAGE, object_name:EDW_COLLECTION_UTIL, status:VALID,
-
PACKAGE: APPS.EDW_LOG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:EDW_LOG, status:VALID,
-
SYNONYM: APPS.RA_CUSTOMER_TRX_LINES_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:RA_CUSTOMER_TRX_LINES_ALL, status:VALID,
-
SYNONYM: APPS.EDW_LOCAL_INSTANCE
12.1.1
owner:APPS, object_type:SYNONYM, object_name:EDW_LOCAL_INSTANCE, status:VALID,
-
PACKAGE: APPS.FND_STATS
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_STATS, status:VALID,
-
SYNONYM: APPS.AP_INVOICE_DISTRIBUTIONS_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_INVOICE_DISTRIBUTIONS_ALL, status:VALID,
-
VIEW: APPS.OPI_EDW_COGS_FCV
12.1.1
owner:APPS, object_type:VIEW, object_name:OPI_EDW_COGS_FCV, status:VALID,
-
SYNONYM: APPS.MTL_MATERIAL_TRANSACTIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MTL_MATERIAL_TRANSACTIONS, status:VALID,
-
SYNONYM: APPS.AP_INVOICES_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AP_INVOICES_ALL, status:VALID,
-
APPS.OPI_EDW_COGS_F_C dependencies on OPI_EDW_COGS_F_C
12.1.1
-
APPS.OPI_EDW_COLLECT_MBI_FACTS_F_C dependencies on OPI_EDW_COGS_F_C
12.1.1
-
PACKAGE BODY: APPS.OPI_EDW_COGS_F_C
12.1.1
-
SYNONYM: APPS.OE_ORDER_HEADERS_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OE_ORDER_HEADERS_ALL, status:VALID,
-
SYNONYM: APPS.OE_ORDER_LINES_ALL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OE_ORDER_LINES_ALL, status:VALID,
-
PACKAGE: APPS.FND_INSTALLATION
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_INSTALLATION, status:VALID,
-
SYNONYM: APPS.MTL_PARAMETERS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:MTL_PARAMETERS, status:VALID,
-
PACKAGE: APPS.FND_FILE
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_FILE, status:VALID,
-
SYNONYM: PUBLIC.DUAL
12.1.1
owner:PUBLIC, object_type:SYNONYM, object_name:DUAL, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.1.1 DBA Data
12.1.1
-
PACKAGE: APPS.FND_MESSAGE
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_MESSAGE, status:VALID,
-
PACKAGE: SYS.STANDARD
12.1.1
owner:SYS, object_type:PACKAGE, object_name:STANDARD, status:VALID,