Search Results cn_webservice_pub
Overview
APPS.CN_WEBSERVICE_PUB is a public PL/SQL package body within the Oracle E-Business Suite Incentive Compensation (CN) module. Its primary purpose is to expose commission-related data to external web service consumers, returning aggregated and transactional information for sales representatives through a controlled, packaged interface. The package is classified as PUBLIC (API classification PUB), meaning its procedures are intended to be invoked by external clients, web service wrappers, or custom integrations rather than being restricted to internal module use.
The package body declares several global variables, including g_pkg_name, g_format_mask, g_currency_code, g_currency_symb, g_precision, g_ext_precision, and g_min_acct_unit. The variable g_precision holds the currency precision value retrieved at runtime through FND_CURRENCY.get_info. It directly controls the construction of the number format mask (g_format_mask), which is dynamically extended with '9' placeholders to match the reporting currency's decimal precision. This ensures that monetary values returned via the web service are formatted consistently with the ledger's currency definition.
Key Procedures and Functions
The package exposes five documented procedures that together provide a web service-facing view of sales representative performance and commission activity:
- RECENT_TRANS_FOR_SALESREP — Returns recent transactions associated with a given sales representative. It resolves the sales representative's identity through FND_USER, JTF_RS_DEFRESOURCES_V, and JTF_RS_SALESREPS, and typically returns a collection of recent transaction records.
- TOP_CUSTOMER_FOR_SALESREP — Returns the top customer or customers attributed to a sales representative, drawing on commission line data to rank customer performance.
- TOP_PRODUCT_FOR_SALESREP — Returns the top product or products for a sales representative, based on commission line aggregation.
- TOP_ESCALTED_TASK_SALESREP — Returns escalated tasks associated with a sales representative, reading from the JTF task tables (JTF_TASKS_B, JTF_TASK_ASSIGNMENTS, JTF_TASK_REFERENCES_B).
- TEST_WEBSERVICE — A diagnostic procedure used to verify that the web service endpoint is reachable and functioning correctly.
Collectively, these procedures rely on a common currency-information initialization step (get_currency_info), which populates g_precision and related globals so that monetary formatting is consistent across all returned results.
Tables Accessed
The package reads from the following documented tables (via APPS synonyms):
- CN_COMMISSION_LINES and CN_COMMISSION_HEADERS — source of commission transaction and header data used for customer and product ranking.
- CN_REPOSITORIES — used to resolve the current period and set of books for the Incentive Compensation repository.
- FND_CURRENCIES — provides the currency symbol, while
FND_CURRENCY.get_infosuppliesg_precision, extended precision, and minimum accounting unit. - FND_USER — resolves the sales representative's user_id from the login/user name supplied by the caller.
- JTF_RS_SALESREPS — maps the resource to the sales representative and operating unit.
- HZ_CUST_ACCOUNTS, HZ_PARTIES, HZ_PARTY_SITES, and HZ_LOCATIONS — provide customer and address detail for customer-facing results.
- JTF_TASKS_B, JTF_TASK_ASSIGNMENTS, and JTF_TASK_REFERENCES_B — provide escalated task information.
No direct DML is implied by the documented metadata; the package is predominantly a read-only reporting interface.
Usage Notes
CN_WEBSERVICE_PUB is invoked by web service consumers and integration layers requiring sales representative commission summaries. It is not referenced by any other documented package in the ETRM metadata (referenced by 0 other packages), indicating that it is a top-level API entry point. Typical invocations occur from web service wrappers, custom PL/SQL integrations, or middleware that calls the procedures and consumes the returned collections. Because the procedures depend on runtime currency initialization, callers should ensure the Incentive Compensation repository and set of books are properly configured so that g_precision and g_format_mask are populated before monetary values are formatted or returned.
-
PACKAGE BODY: APPS.CN_WEBSERVICE_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:CN_WEBSERVICE_PUB, status:VALID,
-
PACKAGE: APPS.CN_WEBSERVICE_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:CN_WEBSERVICE_PUB, status:VALID,
-
SYNONYM: APPS.CN_COMMISSION_LINES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_COMMISSION_LINES, status:VALID,
-
SYNONYM: APPS.CN_COMMISSION_HEADERS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_COMMISSION_HEADERS, status:VALID,
-
PACKAGE: APPS.CSF_RESOURCE_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:CSF_RESOURCE_PUB, status:VALID,
-
SYNONYM: APPS.JTF_TASK_REFERENCES_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:JTF_TASK_REFERENCES_B, status:VALID,
-
PACKAGE: APPS.CN_WEBSERVICE_PUB
12.2.2
-
SYNONYM: APPS.CN_REPOSITORIES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:CN_REPOSITORIES, status:VALID,
-
SYNONYM: APPS.JTF_TASK_ASSIGNMENTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:JTF_TASK_ASSIGNMENTS, status:VALID,
-
SYNONYM: APPS.JTF_RS_SALESREPS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:JTF_RS_SALESREPS, status:VALID,
-
VIEW: APPS.JTF_RS_DEFRESOURCES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:FND.JTF_RS_DEFRESOURCES_V JTF.JTF_RS_DEFRESOURCES_V, object_name:JTF_RS_DEFRESOURCES_V, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
VIEW: APPS.JTF_TASK_PRIORITIES_VL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:JTF.JTF_TASK_PRIORITIES_VL, object_name:JTF_TASK_PRIORITIES_VL, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
PACKAGE BODY: APPS.CN_WEBSERVICE_PUB
12.2.2
-
VIEW: APPS.CN_PERIODS
12.2.2
owner:APPS, object_type:VIEW, object_name:CN_PERIODS, status:VALID,
-
VIEW: APPS.CN_SALESREPS
12.2.2
owner:APPS, object_type:VIEW, object_name:CN_SALESREPS, status:VALID,
-
VIEW: APPS.JTF_TASK_STATUSES_VL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:JTF.JTF_TASK_STATUSES_VL, object_name:JTF_TASK_STATUSES_VL, status:VALID,
-
SYNONYM: APPS.JTF_TASKS_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:JTF_TASKS_B, status:VALID,
-
APPS.CN_WEBSERVICE_PUB dependencies on CN_WEBSERVICE_PUB
12.2.2
-
VIEW: APPS.JTF_TASKS_VL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:JTF.JTF_TASKS_VL, object_name:JTF_TASKS_VL, status:VALID,
-
PACKAGE: APPS.FND_CURRENCY
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_CURRENCY, status:VALID,
-
SYNONYM: APPS.HZ_LOCATIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_LOCATIONS, status:VALID,
-
SYNONYM: APPS.HZ_PARTY_SITES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_PARTY_SITES, status:VALID,
-
SYNONYM: APPS.FND_CURRENCIES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_CURRENCIES, status:VALID,
-
SYNONYM: APPS.HZ_CUST_ACCOUNTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_CUST_ACCOUNTS, status:VALID,
-
PACKAGE: APPS.MO_GLOBAL
12.2.2
owner:APPS, object_type:PACKAGE, object_name:MO_GLOBAL, status:VALID,
-
VIEW: APPS.GL_SETS_OF_BOOKS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLGL.GL_SETS_OF_BOOKS, object_name:GL_SETS_OF_BOOKS, status:VALID,
-
SYNONYM: APPS.FND_USER
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_USER, status:VALID,
-
SYNONYM: APPS.HZ_PARTIES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_PARTIES, status:VALID,
-
PACKAGE: APPS.FND_PROFILE
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_PROFILE, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
eTRM - JTF Tables and Views
12.2.2
description: Interface table to store data that needs to be displayed in Excel ,
-
12.2.2 DBA Data
12.2.2
-
eTRM - FND Tables and Views
12.2.2
description: No longer used ,
-
eTRM - FND Tables and Views
12.2.2
description: No longer used ,
-
eTRM - JTF Tables and Views
12.2.2
description: Interface table to store data that needs to be displayed in Excel ,