Search Results rcv_debug_mode
Overview
ASN_DEBUG is a server-side PL/SQL utility package owned by APPS in Oracle E-Business Suite releases 12.1.1 and 12.2.2. Its sole business function is diagnostic: it centralizes the writing of debug and trace messages emitted by the Advanced Shipment Notice (ASN) and Receiving family of programs, most notably the RCV (Receiving) transactions interface processing. The package provides a controlled, level-based logging framework so that developers and support analysts can capture the internal execution path of receiving interface code without modifying the underlying application logic.
The package derives its behavior from two profile options. The variable g_debugging_enabled is initialized from the profile RCV_DEBUG_MODE, and the variable g_inv_debug_enabled is initialized from INV_DEBUG_TRACE. The RCV_DEBUG_MODE profile is therefore the primary switch that determines whether debug output is produced at all, which explains why users searching on that term frequently arrive at this package. Logging output is routed to a file rather than to a database table, and message severity is expressed through FND_LOG levels, with level_error used as the default.
Key Procedures and Functions
The ETRM metadata documents ten named program units within ASN_DEBUG. Their purposes are as follows.
- GET_DEBUGGING_ENABLED — Returns a Boolean indicating whether debug output is currently active, based on the evaluated profile setting.
- SET_MODULE_NAME — Establishes the module identifier that is stamped onto subsequent log records so that output can be attributed to the correct calling program.
- START_PROCEDURE — Marks entry into a named procedure, pushing that procedure onto an internal execution stack.
- STOP_PROCEDURE — Marks exit from a named procedure, optionally popping the procedure from the internal stack.
- PRINT_STACK — Emits the current contents of the internal procedure stack, providing a call-path trace.
- DEBUG_MSG — Writes a single debug line, accepting a message, an optional FND_LOG level, and an optional label.
- DEBUG_MSG_EX — An extended variant of DEBUG_MSG that additionally records the module, procedure name, and line number associated with the message.
- GET_CALLING_MODULE — Resolves and returns the identity of the module that invoked the logging routine.
- IS_DEBUG_ON — A convenience predicate indicating whether debugging is presently enabled.
- PUT_LINE — The core write routine that places a formatted message into the log file; it accepts the line text, a log level, and an inventory debug level.
Several package-level globals support this framework, including g_current_module, g_level, g_procedure_stack, and g_current_procedure.
Tables Accessed
The documented metadata references two objects. RCV_TRANSACTIONS_INTERFACE, accessed through an APPS synonym, is the receiving interface staging table that the surrounding ASN and receiving programs process; ASN_DEBUG participates in instrumenting that processing. DBMS_UTILITY, the Oracle-supplied utility package, is used to resolve the runtime call stack that backs the procedure-stack logging and the GET_CALLING_MODULE logic.
Usage Notes
ASN_DEBUG is not an end-user API. It is invoked internally by receiving and ASN code paths and is referenced by 56 other packages, making it a shared diagnostic dependency. Typical invocation occurs from concurrent programs and interface-processing PL/SQL that handle ASN and RCV_TRANSACTIONS_INTERFACE data, where START_PROCEDURE, DEBUG_MSG_EX, and STOP_PROCEDURE calls bracket significant logic, and PRINT_STACK is used on error. Custom code following the same pattern should call IS_DEBUG_ON or GET_DEBUGGING_ENABLED before emitting output. Enablement is controlled administratively by setting the RCV_DEBUG_MODE profile option; when this is null or disabled, logging calls return without producing file output, so the profile must be set for a meaningful trace to be generated.
-
PACKAGE: APPS.ASN_DEBUG
12.1.1
-
PACKAGE BODY: APPS.RCV_SHIPMENT_HEADER_SV
12.1.1
-
APPS.INV_DIAG_OBJ SQL Statements
12.2.2
-
APPS.INV_DIAG_OBJ SQL Statements
12.1.1
-
PACKAGE BODY: APPS.RCV_ROI_PARALLEL
12.1.1
-
PACKAGE BODY: APPS.RCV_SHIPMENT_LINE_SV
12.1.1
-
PACKAGE BODY: APPS.RCV_GARBAGE_COLLECTOR_SV
12.1.1
-
PACKAGE BODY: APPS.RCV_UTILITIES
12.1.1
-
PACKAGE BODY: APPS.INV_DIAG_OBJ
12.2.2
-
PACKAGE BODY: APPS.RCV_OPSM_DLV_BE_PKG
12.2.2
-
PACKAGE BODY: APPS.INV_DIAG_OBJ
12.1.1
-
PACKAGE BODY: APPS.RCV_DCP_PVT
12.1.1
-
PACKAGE BODY: APPS.RCV_GAPLESS_NUMBERING
12.1.1
-
PACKAGE BODY: APPS.RCV_RMA_HEADERS
12.1.1
-
PACKAGE BODY: APPS.RCV_SHIPMENT_OBJECT_SV
12.1.1
-
APPS.RCV_DCP_PVT dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_OPSM_DLV_BE_PKG dependencies on FND_PROFILE
12.2.2
-
APPS.RCV_ROI_HEADER_COMMON dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_TRANSACTIONS_INTERFACE_SV1 dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_ROI_HEADER dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_HEADERS_INTERFACE_SV dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_DEFAULT_PKG dependencies on FND_PROFILE
12.1.1
-
APPS.PO_CHARGES_GRP dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_TABLE_FUNCTIONS dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_CORE_S dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_ROI_RETURN dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_PROCESSOR_PVT dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_ROI_PREPROCESSOR dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_QUANTITIES_S dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_INT_ORDER_PP_PVT dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_GARBAGE_COLLECTOR_SV dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_RMA_TRANSACTIONS dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_INT_ORG_TRANSFER dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_SHIPMENT_HEADER_SV dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_RMA_HEADERS dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_SHIPMENT_LINE_SV dependencies on FND_PROFILE
12.1.1
-
APPS.ASN_DEBUG dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_GAPLESS_NUMBERING dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_UTILITIES dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_ROI_PARALLEL dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_ROI_TRANSACTION dependencies on RCV_ROI_TRANSACTION
12.1.1
-
APPS.RCV_ROI_HEADER_COMMON dependencies on RCV_SHIPMENT_HEADER_SV
12.1.1
-
APPS.PO_INVOICES_SV2 dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_ROI_PARALLEL dependencies on RCV_ROI_PARALLEL
12.1.1
-
APPS.RCV_GAPLESS_NUMBERING dependencies on RCV_GAPLESS_NUMBERING
12.1.1
-
APPS.RCV_SHIPMENT_OBJECT_SV dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_SHIPMENT_HEADER_SV dependencies on RCV_SHIPMENT_HEADER_SV
12.1.1
-
APPS.RCV_CHARGES_GRP dependencies on FND_PROFILE
12.1.1
-
APPS.RCV_CORE_S dependencies on RCV_CORE_S
12.1.1
-
APPS.ASN_DEBUG dependencies on FND_LOG
12.1.1