Search Results master_item
Overview
JA_CN_CUSTOM_SOURCES is an Oracle E-Business Suite PL/SQL package body owned by the APPS schema that supports the Chinese localized taxation and invoice reporting functionality (the JA_CN product family). Its primary business purpose is to derive and return "customer source" values that are consumed by Chinese localizations for invoice classification, gain/loss categorization, and project-related reporting. The package creates and resolves source attributes used when invoice data must be mapped to a reporting category, particularly where refund associations or category-driven derivation rules apply.
The body is delivered as the source file JACNSCSB.pls and has been maintained under Oracle's standard versioning header scheme. Several hardening fixes were applied between 2009 and 2013, including bug fixes 8402674 and 8478003, which introduced the private Refund_Item function to handle invoices associated with refunds and added runtime instrumentation via FND_LOG. The package body exposes three documented callable units and is referenced by one other package within the application, indicating that it is a shared utility used by higher-level Chinese localization logic rather than being a standalone user-facing process.
Key Procedures and Functions
Three documented program units are exposed by this package body:
- INVOICE_CATEGORY — The principal public procedure. It resolves the appropriate customer source or category value for a given invoice context. It is the entry point most commonly relied upon by external callers and is designed to translate invoice data into the category representation required by Chinese localization reporting.
- INVOICE_GAINLOSS_CATEGORY — Derives the category to which exchange-rate gain or loss on an invoice should be assigned. This supports correct classification of foreign-currency gain/loss amounts in Chinese VAT and invoice reporting.
- GET_PROJECT_NUM — Returns the project number associated with the invoice or invoice line being evaluated. This value is required where Chinese localization reporting must attribute invoiced amounts to a project reference.
- Refund_Item (private) — Although not part of the documented public interface, this function is shown in the source excerpt. It returns a source value when an invoice is associated with a refund, and receives the invoice identifier as its input.
Parameter lists are not reproduced here; callers should consult the package specification for exact signatures.
Tables Accessed
The package reads data from the following tables through APPS synonyms:
- AP_INVOICES_ALL — Provides the invoice header, including invoice type and association, used to determine refund and category logic.
- AP_INVOICE_DISTRIBUTIONS_ALL — Supplies distribution-level detail used when deriving categories at the accounting distribution level.
- AP_INVOICE_LINES_ALL — Source of invoice line attributes, including project and line context.
- AP_INVOICE_PAYMENTS_ALL — Used to establish payment and refund relationships on the invoice.
- MTL_CATEGORY_SETS_TL and MTL_ITEM_CATEGORIES — Employed to resolve item category assignments, including the master item category hierarchy relevant to the searched term "master_item".
- PA_PROJECTS_ALL — Supplies project data supporting GET_PROJECT_NUM.
- PO_LINES_ALL — Provides purchase order line information for invoices originating from procurement documents.
Usage Notes
JA_CN_CUSTOM_SOURCES is not intended for direct end-user invocation. It is typically called from Chinese localization forms, concurrent programs, or other localization packages that need a resolved source or category value for an invoice. Because the package performs no DML on the listed tables, it is safe to call in read-only contexts, though it depends on accurate AP, PO, and inventory category data being present. The FND_LOG instrumentation allows debugging by enabling procedure-level logging. Customizations should call the public routines rather than the private Refund_Item function, which is subject to change without notice.
-
PACKAGE BODY: APPS.JA_CN_CUSTOM_SOURCES
12.2.2
-
PACKAGE BODY: APPS.JA_CN_CUSTOM_SOURCES
12.1.1
-
APPS.JA_CN_CUSTOM_SOURCES SQL Statements
12.1.1
-
APPS.JA_CN_CUSTOM_SOURCES SQL Statements
12.2.2
-
Lookup Type: JMF_GTA_ITEM_NAME_SOURCE
12.1.1
product: JMF - Supply Chain Localizations , meaning: Item Name Source , description: Defined for Item Name Source parameter on Golden Tax Item Export concurrent program ,
-
Lookup Type: ICX_CAT_SOURCE_TYPE
12.1.1
product: ICX - Oracle iProcurement , meaning: Lookup for source document types , description: Lookup for source document types ,
-
Lookup Type: JMF_GTA_ITEM_NAME_SOURCE
12.2.2
product: JMF - Supply Chain Localizations , meaning: JMF_GTA_ITEM_NAME_SOURCE , description: OBSOLETE ,
-
Lookup Type: ICX_CAT_SOURCE_TYPE
12.2.2
product: ICX - Oracle iProcurement , meaning: Lookup for source document types , description: Lookup for source document types ,
-
Lookup Type: AR_GTA_ITEM_NAME_SOURCE
12.2.2
product: AR - Receivables , meaning: Item Name Source , description: Defined for Item Name Source parameter on Golden Tax Item Export concurrent program ,
-
VIEW: APPS.WSHBV_DELIVERY_DETAILS
12.2.2
-
APPS.ICX_CAT_POPULATE_MI_PVT SQL Statements
12.1.1
-
APPS.ICX_CAT_POPULATE_MI_PVT SQL Statements
12.2.2
-
VIEW: APPS.WSHBV_DELIVERY_DETAILS
12.1.1
-
View: OEFV_SHIPMENT_LINES
12.2.2
product: OE - Order Entry , implementation_dba_data: Not implemented in this database ,
-
View: OEFV_SHIPMENT_LINES
12.1.1
product: OE - Order Entry , implementation_dba_data: Not implemented in this database ,
-
View: WSHBV_DELIVERY_DETAILS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:WSH.WSHBV_DELIVERY_DETAILS, object_name:WSHBV_DELIVERY_DETAILS, status:VALID, product: WSH - Shipping Execution , implementation_dba_data: APPS.WSHBV_DELIVERY_DETAILS ,
-
APPS.ICX_CAT_POPULATE_CTXSTRING_PVT SQL Statements
12.2.2
-
APPS.ICX_CAT_POPULATE_CTXSTRING_PVT SQL Statements
12.1.1
-
VIEW: APPS.WSHFV_DELIVERY_DETAILS
12.1.1
-
VIEW: APPS.WSHFV_DELIVERY_DETAILS
12.2.2
-
View: WSHBV_DELIVERY_DETAILS
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:WSH.WSHBV_DELIVERY_DETAILS, object_name:WSHBV_DELIVERY_DETAILS, status:VALID, product: WSH - Shipping Execution , implementation_dba_data: APPS.WSHBV_DELIVERY_DETAILS ,
-
PACKAGE BODY: APPS.ICX_CAT_POPULATE_MI_PVT
12.1.1
-
PACKAGE BODY: APPS.ICX_CAT_POPULATE_MI_PVT
12.2.2
-
TABLE: ICX.ICX_CAT_FAV_LIST_LINES_TLP
12.2.2
owner:ICX, object_type:TABLE, object_name:ICX_CAT_FAV_LIST_LINES_TLP, status:VALID,
-
APPS.ICX_ITEM_DIAG_PVT SQL Statements
12.2.2
-
TABLE: ICX.ICX_CAT_FAV_LIST_LINES_TLP
12.1.1
owner:ICX, object_type:TABLE, object_name:ICX_CAT_FAV_LIST_LINES_TLP, status:VALID,
-
View: WSHFV_DELIVERY_DETAILS
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:WSH.WSHFV_DELIVERY_DETAILS, object_name:WSHFV_DELIVERY_DETAILS, status:VALID, product: WSH - Shipping Execution , description: Full BIS Business View for Delivery Details. , implementation_dba_data: APPS.WSHFV_DELIVERY_DETAILS ,
-
View: WSHFV_DELIVERY_DETAILS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:WSH.WSHFV_DELIVERY_DETAILS, object_name:WSHFV_DELIVERY_DETAILS, status:VALID, product: WSH - Shipping Execution , description: Full BIS Business View for Delivery Details. , implementation_dba_data: APPS.WSHFV_DELIVERY_DETAILS ,
-
TABLE: ICX.ICX_CAT_ITEMS_CTX_HDRS_TLP
12.2.2
owner:ICX, object_type:TABLE, object_name:ICX_CAT_ITEMS_CTX_HDRS_TLP, status:VALID,
-
TABLE: ICX.ICX_CAT_ITEMS_CTX_HDRS_TLP
12.1.1
owner:ICX, object_type:TABLE, object_name:ICX_CAT_ITEMS_CTX_HDRS_TLP, status:VALID,
-
PACKAGE BODY: APPS.ICX_CAT_POPULATE_CTXSTRING_PVT
12.1.1
-
APPS.ICX_CAT_POPULATE_CATG_PVT SQL Statements
12.2.2
-
APPS.ICX_CAT_POPULATE_CATG_PVT SQL Statements
12.1.1
-
PACKAGE: APPS.ICX_CAT_UTIL_PVT
12.2.2
-
PACKAGE BODY: APPS.ICX_CAT_POPULATE_CTXSTRING_PVT
12.2.2
-
PACKAGE: APPS.ICX_CAT_UTIL_PVT
12.1.1
-
PACKAGE: APPS.JMF_GTA_TXT_OPERATOR_PROC
12.1.1
-
PACKAGE: APPS.AR_GTA_TXT_OPERATOR_PROC
12.2.2
-
APPS.ICX_CAT_POPULATE_ITEM_PVT SQL Statements
12.1.1
-
APPS.ICX_CAT_POPULATE_ITEM_PVT SQL Statements
12.2.2
-
PACKAGE BODY: APPS.ICX_ITEM_DIAG_PVT
12.2.2
-
APPS.JA_CN_CUSTOM_SOURCES dependencies on MTL_ITEM_CATEGORIES
12.2.2
-
APPS.JA_CN_CUSTOM_SOURCES dependencies on MTL_ITEM_CATEGORIES
12.1.1
-
APPS.JA_CN_CUSTOM_SOURCES dependencies on MTL_CATEGORIES_B_KFV
12.2.2
-
APPS.JA_CN_CUSTOM_SOURCES dependencies on MTL_CATEGORIES_B_KFV
12.1.1
-
PACKAGE: APPS.MSD_DEM_UPLOAD_FORECAST
12.2.2
-
PACKAGE BODY: APPS.ICX_ITEM_DIAG_GRP
12.2.2
-
APPS.JA_CN_CUSTOM_SOURCES dependencies on FND_LOG
12.1.1
-
PACKAGE BODY: APPS.ICX_CAT_BUILD_CTX_SQL_PVT
12.2.2
-
APPS.JA_CN_CUSTOM_SOURCES dependencies on FND_LOG
12.2.2