Contact Us
Index
Version 6.4
Version 6.0 Version 5.14 Version 5.13 Version 5.12 Version 5.11 Version 6.1 Version 6.2 Version 6.3 Version 20.1 Version 20.2 Version 20.3 Version 21.2 Version 22.1 Version 22.3 Version 22.4 Version 23.1 Version 23.2 Version 23.3 Version 23.4 Version 24.1 Version 24.2 Version 24.3 Version 24.4 Version 25.2
Contact Us
Wands for Oracle 6.4 – Home
Wands
Logging On
Wands Launcher
Edge (Chromium) Plugin
Antivirus Software
New Release Notification
User Profile
Responsibility Selection
Excel Not Ready Error
Add-In Load Error
Multiple Instances
License Key
License Key Errors
Insert Wands Function
Combine Text
Last Refreshed By
Last Refreshed Time
Split Text
Tools (Wands)
Snapshot
Upgrade Workbook
Shared Templates Drive
Drive Types
Dropbox
File Server
Oracle E-Business Suite Database
Navigator
Create a File
Delete a File
Edit a File
Open a File
Common Options
Administrator
Custom Drill Columns
Journal Custom Columns
Journal Attachment Custom Columns
Subledger Custom Columns
Subledger SLA Custom Columns
Add a Custom Drilldown Column
System Administrator Options
System Administrator License Key
System Administrator User Permissions
System Administrator User Options
System Administrator Product Options
System Administrator Delimiter Options
System Administrator Configuration Options
System Administrator Server Information
Wands Responsibility Profile Option
Payroll Drilldown Responsibility
Custom Options
Active Data Guard Support
About
Exit
Errors and Troubleshooting
Help and Shortcuts
Excel Error
GL Wand
Ledger and Segment Selector
Quick Start
Report Wizard
Design Layout
Add Columns
Add Rows
Report Wizard Output
Discover
Discover Segment Values
Discover Level
Discover Period Names
Discover Segment Properties
Discover Child Ranges
Expand and Explode
Expand Segment Values
Expand Segment Value Hierarchy
Expand Account Combination
Explode Segment Values
Explode Account Combination
Explode Segment Value Hierarchy
List of Values
List of Values – Create
Insert GL Wand Function
Account Combination Enabled
Account Combination End Date
Account Combination Start Date
Account Type
Daily Rate
Enabled Flag
Functional Currency
Get Average Balance
Get Average Balance Summary
Get Balance
Descriptive Flexfield Criteria
Segment Combination Criteria
Get Balance Options
Get Balance Summary
Multiple Ledgers
Historical Rate
Ledger Name
Ledger Set
Next Segment Value
Parent Flag
Period Average Rate
Period End Date
Period End Rate
Period Name
Period Name By Date
Period Offset
Period Start Date
Period Status
Previous Segment Value
Segment Description
Segment DFF
Segment End Date
Segment Group
Segment Level
Segment Start Date
Calculating
Execute Drilldown
Drill Criteria Sheets
Drill Criteria – Balance
Drill Criteria – Journal Extract
Drill Criteria – Average Balance
Drill Using a Saved Template
Drill to Journal or Subledger
Analyze Balances
View Transaction R12
Support All Ledgers
Customize Drilldown
Edit Template Layout
Save Template Layout
Manage Templates
GL Wand Tools
Other Tools
Manage Criteria Templates
Hide Zeros
Import FSG
Configuration Sheet
Audit Get Balance
GL Wand User Options
GL Wand Drill Only
Wands Intellicast
Reports Wand
Responsibility Selector
Report
Open Existing Report
Create Report
Execute Report
Function
Run Report Order
Insert a Run Report Function
Run Report Filter
Modify a Run Report Function
Drill On Function
Drill to Saved Template
Refresh
Refresh Mode
Refresh Reports Wand Functions
Show
Parameter List
Report Editor
Template Manager
Reports Wand Tools
Clean Template
Show List of Values
Create List of Values
Audit Run Report
Report Usage Statistics
Reports Wand User Options
Administration
Report Definition
Create
Bind Variables
Bind Variable Errors
Custom SQL List of Values
Filters
SQL Errors
Edit
Security
Mass Administration
Import
Import All to Excel
Import Selected to Excel
Process
Process All
Process Single
Upgrade
Upgrade Version 4 Report Definitions
Fixing Duplicate Bind Variables
Upgrade Version 4 Templates
Upgrade Reports Wand Administrator Templates
insights
Generate Report Definitions
Add Columns
Create insights Tables
Search Report Definitions
Advanced insights
Key Flexfield Label Integration
NoetixViews
Import NoetixViews Report Definitions to Excel
Refresh NoetixViews Security Manager
Essays
Search Answers
Create Join Definition
Discoverer Converter
Convert using Discoverer Plus (.xml) Export
Export Workbook .xml From Discover Plus
Using the Discoverer Converter
Assign Reports
Refresh List
PL/SQL Stored Procedures
Reports Wand Database Package
Create a Stored Procedure
Assign a Stored Procedure
Exception Handling
Budget Wand
Ledger Selector
Insert Budget Wand Function
Convert Get Balance
Load Budget
Load Option Selector
Loading Budgets
AutoPost Budget Wand Journals
Creating New Account Combinations
Budget Wand Tools
Budget Wand Requests
Budget Wand Messages
Budget Report Wizard
Budget Wand User Options
Journal Wand
Loading Journals
AutoPost Journal Wand Journals
Journal Wand Ledger Selector
Create Journal Wand Template
Edit Journal Wand Template
Create Journal Wand Template from Drilldown
Populate Journal Wand Template
Account Combinations
Descriptive Flexfields
Journal Attachments
Load Options
Journal Wand Tools
Journal Wand Requests
Journal Wand Messages
Journal Wand User Options
Report Distribution Manager
Create RDM Template
Source Report
Named Ranges
Parameters
Drilldowns
Email
Advanced Options
Edit RDM Template
Execute Report Distribution Manager
Load and Validation
Execution
Scheduler
Create Schedule
Running the Scheduler
RDM User Options
SMTP Email Settings
chat icon - ignore
Live Chat
Chat Offline

Subledger SLA Custom Columns

Building a Custom Drilldown Column Query

When a custom column is added to a GL Wand drilldown, the SQL statement for the custom column is merged into the GL Wand SLA query when it is executed.

The GL Wand SLA query allows customers to use any of the following columns to join their custom column SQL statements to:

  • l.code_combination_id
  • h.ae_header_id
  • e.event_id
  • h.application_id
  • et.event_class_code
  • et.entity_code
  • l.ae_line_num
  • e.event_number
  • te.transaction_number
  • te.source_id_char_1
  • te.source_id_char_2
  • te.source_id_char_3
  • te.source_id_char_4
  • te.source_id_int_1
  • te.source_id_int_2
  • te.source_id_int_3
  • te.source_id_int_4
  • h.ledger_id
  • te.legal_entity_id
  • et.event_type_code
  • te.security_id_int_1
  • te.security_id_int_2
  • te.security_id_int_3
  • te.security_id_char_1
  • te.security_id_char_2
  • te.security_id_char_3
  • te.valuation_method
  • xlas.drilldown_procedure_name
  • ir.je_header_id
  • ir.je_line_num
  • l.source_table
  • l.source_id

From these tables:

  • xla_ae_headers h
  • xla_ae_lines l
  • xla_events e
  • xla_transaction_entities te
  • xla_event_types_tl et
  • xla_subledgers xlas
  • gl_import_references ir

Below we have set out an example to add two accounts receivable columns to the drilldown report. They are AR Adjustment Transaction Type and AR Adjustment Comment.

Extract Bind Variable Example Values

To execute the main SQL query we need to provide it with two bind variables, JE_HEADER_ID and JE_LINE_NUM. These values can be retrieved in a number of ways for an example transaction. You can query them using a SQL statement in a utility like Toad or SQL Developer, you can extract them from the Oracle Forms etc. We also have a way of retrieving a set of test values directly from the GL Wand journal drilldown report. This method will be explained below.

Drill down to the journal report using data that is applicable for the custom drilldown column that you are adding e.g. if you are adding a column for Receivables adjustments, then drill on journals from accounts receivable.

Now that we have a journal drilldown report, select the row you would like to use for testing your custom drilldown column. Select the “Drill to Subledger” column (1) and then open the Excel parameters for the function by clicking the fx button in the formula bar (2). In the function arguments window take a note of parameter P3 and P4. P3 is the JE_HEADER_ID and P4 is the JE_LINE_NUM.

Activate the R12 Security Feature

In order to activate the multi-org security in Oracle R12, run the following command using the appropriate application short name:

BEGIN
mo_global.init (p_appl_short_name => 'AR');
END;

Test the Default SLA Query

We have provided a simplified version of the main GL Wand SLA Query here – main_sla_query. Download it in order to test your custom drilldown column SQL. First run this SQL statement using the bind variables retrieved in the previous step and confirm the query returns at least one row.

Create Custom Column SQL Statement

For our example, we worked out that for an Accounts Receivable adjustment the adjustment_id is stored in source_id_int_1 and a join to AR_ADJUSTMENTS_V will provide us with access to the Comments and Transaction Type column.

The main SLA query is aliased qrslt. This is used below to ensure the correct columns are being referenced.

This resulted in the following custom drilldown column SQL to retrieve the two fields:

Transaction Type
/* Transaction Type Column */
(CASE
WHEN (EVENT_CLASS_CODE = 'ADJUSTMENT' AND ENTITY_CODE = 'ADJUSTMENTS') THEN
(SELECT TRX_TYPE
FROM AR_ADJUSTMENTS_V
WHERE ADJUSTMENT_ID = qrslt.source_id_int_1
AND EVENT_CLASS_CODE = qrslt.event_class_code
AND ENTITY_CODE = qrslt.entity_code
)
ELSE
NULL
END) AR_ADJ_TRX_TYPE

Comments
/* Comments Column */
(CASE
WHEN (EVENT_CLASS_CODE = 'ADJUSTMENT' AND ENTITY_CODE = 'ADJUSTMENTS') THEN
(SELECT COMMENTS
FROM AR_ADJUSTMENTS_V
WHERE ADJUSTMENT_ID = qrslt.source_id_int_1
AND EVENT_CLASS_CODE = qrslt.event_class_code
AND ENTITY_CODE = qrslt.entity_code
)
ELSE
NULL
END) AR_ADJ_COMMENTS

This third example shows how to join to a column that is not selected in the main SLA query. In this example, we want to get the Period Year of the period in which the invoice was posted. The Period is in the xla_ae_headers table, but the Period is not selected in the main SLA query (see list of fields selected above).

In order to do this, we include the xla_ae_headers table in the inline select clause:

Period Year
(SELECT period_year
FROM gl_periods a, xla_ae_headers h1
WHERE period_set_name = 'Accounting'
AND a.period_name = h1.period_name
AND h1.ae_header_id = qrslt.ae_header_id
AND h1.application_id = qrslt.application_id) period_year

Note how xla_ae_headers (h1) is joined to the xla_ae_headers (qrslt) columns in the main query.

Test Custom Column SLA Query

Once you have a valid custom drilldown column SQL statement, merge it into the main GL Wand SLA Query in order to test it and confirm that it will process correctly inside GL Wand. In this example we bind to the GL Wand SLA query using the source_id_int_1, event_class_code and entity_code columns. Download our account receivable adjustment example here – custom_column_sla_query.

Once you have confirmed that the query returns the correct records, along with the additional columns that you are after, you can proceed to add the custom drilldown column and test it from GL Wand. Follow the instructions which can be found here – Add a Custom Drilldown Column.