Search Results return_process_status
Overview
RRS_SITE_UDA_BULKLOAD_INTF is an Oracle EBS 12.1.1 / 12.2.2 PL/SQL package owned by the APPS schema and defined with AUTHID DEFINER. It belongs to the Oracle Retail / Trade Management (RRS) product family and provides the integration layer for bulk loading site-level user-defined attributes (UDAs) into the RRS staging and interface tables. The package header (RRSIMPUS.pls, version 120.1) exposes a small, focused API surface: procedures for initializing and terminating a debug/logging session, a diagnostic message writer, a bulk load driver for user attribute data, and a security predicate builder used to restrict data access by site or party. The package is classified as OTHER in the ETRM API registry and is referenced by one other package.
Key Procedures and Functions
- OPEN_DEBUG_SESSION — Initializes a debug/logging session used by the other procedures in the package to emit diagnostic output. It is the outer entry point normally called before a bulk load or troubleshooting run.
- OPEN_DEBUG_SESSION_INTERNAL — The internal worker behind OPEN_DEBUG_SESSION. This is the object surfaced by the user's search term "open_debug_session_internal", indicating callers were tracing debug-session setup logic rather than the wrapper.
- DEVELOPER_DEBUG — Writes a developer-supplied message to the debug channel established by OPEN_DEBUG_SESSION. Used for ad hoc tracing during development and support.
- CLOSE_DEBUG_SESSION — Tears down the debug session and flushes any pending log output.
- WRITE_CONCLOG — Writes a message to the concurrent-manager log, typically used by the concurrent program that drives the interface load.
- LOAD_USERATTR_DATA — The principal bulk load driver. It accepts a batch identifier, a data set identifier, and an optional purge flag, and returns an error buffer and return code via OUT NOCOPY parameters. It moves staged user attribute rows from the RRS interface tables into the application tables.
- GET_SITE_SECURITY_PREDICATE — Builds a SQL security predicate fragment for a given object name, party identifier, privilege name, and table alias. The generated predicate is returned as an OUT NOCOPY string and is intended for use in dynamic SQL WHERE clauses to enforce row-level site security.
- RETURN_PROCESS_STATUS — Declared in the documented metadata as a function. The source header shows it commented out with the note "commented by Sushil. We don't need this.", so it is not active in the shipped version.
Tables Accessed
- FND_USER — Read for concurrent program and session context, including the invoking user associated with a batch run.
- MTL_INTERFACE_ERRORS and RRS_INTERFACE_ERRORS — Error repositories. Failed rows from LOAD_USERATTR_DATA are written here for review and correction.
- RRS_LOCATION_UA_INTF, RRS_SITE_UA_INTF, RRS_TRADEAREA_UA_INTF — The staging/interface tables for location, site, and trade area user attributes. These are the sources read by the bulk load.
- PLITBLM — The PL/SQL integer table with a BULK COLLECT-friendly type, used for array-based processing during the load.
- V$PARAMETER — Read for database parameter inspection, most likely to determine NLS or initialization settings affecting the load.
Usage Notes
RRS_SITE_UDA_BULKLOAD_INTF is normally invoked from the concurrent manager through a concurrent program wrapper, which calls OPEN_DEBUG_SESSION, then LOAD_USERATTR_DATA with the batch and data set identifiers, and finally CLOSE_DEBUG_SESSION. The ERRBUF and RETCODE OUT parameters follow the standard EBS concurrent program signature convention, so the program can report success or failure back to the request log. WRITE_CONCLOG and DEVELOPER_DEBUG are diagnostic aids intended for support and development; they should not be relied on for application logic. GET_SITE_SECURITY_PREDICATE is reusable by custom code that needs the same row-level site security rules as the standard RRS load. Because the package is defined AUTHID DEFINER, execute grants must be limited to trusted accounts; direct ad hoc invocation in SQL*Plus is possible for support purposes but is not the intended production path.