Search Results bind_value




Overview

APPS.JTF_RS_INTEGRATION_PUB is a public PL/SQL package body in the Oracle E-Business Suite Resource Manager (JTF_RS) schema family. It provides integration-layer APIs that allow other EBS modules to resolve sales representative groupings and to identify resources qualified to handle a specific service or support request. The package acts as a bridge between the resource management repository (sales reps, groups, and skills) and the applications that must assign or route work to the correct individual or team.

The header identifies the package as a published (PUB) API, meaning it is intended for supported, external invocation by forms, concurrent programs, and custom extensions rather than being called only from internal private code. The source carries a version stamp of 120.2 with a change log entry dated 18-Oct-2005, and the ETRM metadata for 12.2.2 records two documented program units: GET_DEFAULT_SALES_GROUP and GET_RESOURCES_BY_SKILL.

Key Procedures and Functions

  • GET_DEFAULT_SALES_GROUP — A function that returns the default sales group identifier associated with a given sales representative. It accepts a sales representative identifier, an operating unit (org) identifier, and a date, then resolves the applicable group for the effective period. The internal comment explicitly describes the exception behavior: if too many rows are returned or no data is found, the function returns the sentinel value -1 rather than raising an error. Date handling defaults to the truncated current system date when no date is supplied.
  • GET_RESOURCES_BY_SKILL — A procedure that returns resources matching a combination of skill attributes, described in the source as Platform, Product, Component, ProblemCode, and Level. It derives its result set from the resource skills repository, allowing callers to locate qualified resources for a given support scenario. The change log records Bug 4674016 (18-Oct-2005), which replaced literal values in the dynamic WHERE clause with bind variables without altering logic.

Tables Accessed

  • JTF_RS_SRP_GROUPS — Read by GET_DEFAULT_SALES_GROUP to resolve the group membership of a sales representative for a specific org and effective date range (start_date/end_date).
  • JTF_RS_RESOURCE_SKILLS — The primary source for skill-based resource lookup in GET_RESOURCES_BY_SKILL, holding category, subcategory, product, component, subcomponent, platform, and problem code attributes plus the skill level identifier.
  • JTF_RS_RESOURCE_EXTNS — Referenced by the package, and by convention this table supplies the extended resource (sales rep) attributes used to join skill results back to the resources themselves.
  • PLITBLM — The standard Oracle Applications PL/SQL table type used for bind/array processing within the API.

Usage Notes

This package is a public integration API and is referenced by eight other packages in the ETRM metadata. It is typically invoked from Resource Manager forms, from sales and service assignment logic, and from custom code that must determine either the default group for a sales representative or the set of resources qualified to handle a specific problem.

The "bind_value" reference in the source is directly tied to Bug 4674016, in which GET_RESOURCES_BY_SKILL was refactored to bind the skill attributes (platform, product, component, problem code, and level) instead of concatenating literals into a dynamic WHERE clause. This change is significant for Oracle EBS 12.1.1 and 12.2.2 deployments because it improves shared pool efficiency and cursor reuse by allowing a single parsed SQL statement to serve varying input values.

Because GET_DEFAULT_SALES_GROUP suppresses errors and returns -1, callers should test for that sentinel rather than assuming a valid group identifier is always returned. When porting or extending these APIs, developers should retain the bind-variable pattern to preserve the optimization introduced by the documented bug fix.