Dec 13, 2012

Query to find Concurrent Program related information

The following query takes the concurrent program name (for example, "Active Users") and returns its related information (i.e. Reports, Created By, etc.).

Note: Mr. Rajkumar Reddy had pointed out that I could use the "lookup" as opposed to my previous hard-coded "decode" for finding the Execution Method (or program type), which is very efficient. I thank Mr. Raj for sharing this.

--------------------------------------------------------------------------
-- Query to find Concurrent Program related information
--------------------------------------------------------------------------
SELECT cpv.user_concurrent_program_name "Concurrent Program Name",
       cpv.concurrent_program_name      "Program Short Name",
       efv.application_name             "Application",
       cpv.enabled_flag                 "Enabled Flag",
       cpv.output_file_type             "Output Format",
       fu.user_name                     "Created By (userid)",
       (SELECT meaning
          FROM fnd_lookup_values_vl flv
         WHERE UPPER (flv.lookup_type) = 'CP_EXECUTION_METHOD_CODE'
           AND flv.Lookup_code = efv.execution_method_code
       )                                "Execution Method",
       efv.executable_name              "Executable Name",
       efv.execution_file_name          "Execution Filename"
  FROM fnd_executables_form_v      efv,
       fnd_concurrent_programs_vl  cpv,
       fnd_user                    fu
 WHERE efv.executable_id  = cpv.executable_id
   AND efv.application_id = cpv.application_id
   AND cpv.created_by     = fu.user_id
   AND cpv.user_concurrent_program_name = 'Active Users' -- // change it
 ORDER BY cpv.user_concurrent_program_name;


Oracle Applications Modules


Taken from Oracle eBusiness Suite Electronic Technical Reference Manual (eTRM), following are the application modules in Oracle R12.


AD  - Applications DBA
AHL - Complex Maintenance Repair and Overhaul
AK  - Common Modules-AK
ALR - Alert
AME - Approvals Management
AMS - Marketing
AMV - Marketing Encyclopedia System
AMW - Internal Controls Manager
AN  - Sales Analysis
AP  - Payables
AR  - Receivables
AS  - Sales Foundation
ASF - Sales Online
ASG - CRM Gateway for Mobile Devices
ASL - Sales Offline
ASN - Sales
ASO - Order Capture
ASP - Oracle Sales for Handhelds
AST - TeleSales
AU  - Application Utilities
AX  - Global Accounting Engine
AZ  - Application Implementation
BEN - Advanced Benefits
BIE - eCommerce Intelligence
BIL - Sales Intelligence
BIM - Marketing Intelligence
BIN - Communications Intelligence
BIS - Applications BIS
BIV - Service Intelligence
BIX - Interaction Center Intelligence
BIY - Systems Intelligence
BLC - Utility Billing
BNE - Web Applications Desktop Integrator
BOM - Bills of Material
BSC - Balanced Scorecard
CCT - Telephony Manager
CDR - Oracle Clinical Data Repository
CE - Cash Management
CHV - Supplier Scheduling
CLA - APAC Consulting Localizations
CLE - EMEA Consulting Localizations
CLJ - Japan Consulting Localizations
CLL - LAD Consulting Localizations
CLN - Supply Chain Trading Connector for RosettaNet
CN  - Incentive Compensation
CRP - Capacity
CS  - Service
CSC - Customer Care
CSD - Depot Repair
CSE - Asset Tracking
CSF - Field Service
CSI - Install Base
CSL - Field Service/Laptop
CSM - Field Service/Palm
CSN - Call Center
CSP - Spares Management
CSR - Scheduler
CST - Cost Management
CTB - Clinical Transaction Base
CUA - Capital Resource Logistics - Assets
CUC - Revenue Accounting
CUF - Capital Resource Logistics - Financials
CUG - Citizen Interaction Center
CUI - Network Logistics - Inventory
CUP - Network Logistics - Purchasing
CUR - Mass Market Receivables for Comms
CUS - Network Logistics
CZ  - Configurator
DDD - CADView-3D
DDR - Demand Signal Repository
DNA - Development
DOM - Document Managment and Collaboration
DPP - Oracle Price Protection
DT  - DateTrack
EAM - Enterprise Asset Management
EC  - e-Commerce Gateway
ECX - XML Gateway
EDR - E-Records
EGO - Advanced Product Catalog
EMS - Environment Management System
ENG - Engineering
ENI - Product Intelligence
EVM - Value Based Management
FEM - Enterprise Performance Foundation
FF  - FastFormula
FII - Financial Intelligence
FLM - Flow Manufacturing
FND - Application Object Library
FPA - Project Portfolio Analysis
FRM - Report Manager
FTE - Transportation Execution
FTP - Transfer Pricing
FUN - Financials Common Modules
FV  - Federal Financials
GCS - Financial Consolidation Hub
GHR - US Federal Human Resources
GL  - General Ledger
GMA - Process Manufacturing Systems
GMD - Process Manufacturing Product Development
GME - Process Manufacturing Process Execution
GMF - Process Manufacturing Financials
GMI - Process Manufacturing Inventory
GML - Process Manufacturing Logistics
GMO - Manufacturing Execution System for Process Manufacturing
GMP - Process Manufacturing Process Planning
GMS - Grants Accounting
GMW - Process Manufacturing Portal
GNI - Genealogy Intelligence
GR  - Process Manufacturing Regulatory Management
HCA - Healthcare
HCC - iHCConnect
HCN - iHCIntegrate
HCP - Healthcare Intelligence
HCT - Healthcare Terminology Server
HRI - Human Resources Intelligence
HXC - Time and Labor Engine
HXT - Time and Labor
IA  - iAssets
IAM - Digital Asset Management
IBC - Content Manager
IBE - iStore
IBP - Bill Presentment & Payment
IBT - iAuction
IBU - iSupport
IBW - Oracle Web Analytics
IBY - Payments
ICX - Oracle iProcurement
IEB - Interaction Blending
IEC - Advanced Outbound Telephony
IEM - Email Center
IEO - Interaction Center Technology
IEP - Predictive
IES - Scripting
IET - Call Center Connectors
IEU - Universal Work Queue
IEV - IVR Integrator
IEX - Collections
IGC - Contract Commitment
IGF - Financial Aid
IGI - Public Sector Financials International
IGS - Student System
IGW - Grants Proposal
IMC - Customers Online
INL - Oracle Landed Cost Management
INV - Inventory
IPA - Capital Resource Logistics - Projects
IPM - Oracle Imaging Process Management
IRC - iRecruitment
ISC - Supply Chain Intelligence
ISX - iSettlement
ITA - Information Technology Audit
ITG - Internet Procurement Enterprise Connector
IZU - Oracle E-Business Suite Diagnostics
JA  - Asia/Pacific Localizations
JE  - European Localizations
JG  - Regional Localizations
JL  - Latin America Localizations
JMF - Supply Chain Localizations
JTF - CRM Foundation
JTM - Mobile Application Foundation
JTS - CRM Self Service Administration
LNS - Loans
MFG - Manufacturing
MIA - Mobile Applications for Inventory Management
MIV - Media Interactive
MQA - Mobile Quality Applications
MRP - Master Scheduling/MRP
MSC - Advanced Supply Chain Planning
MSD - Demand Planning
MSO - Constraint Based Optimization
MSR - Inventory Optimization
MST - Transportation Planning
MTH - Oracle Manufacturing Operations Center
MWA - Mobile Applications
OAM - Oracle Applications Manager
ODQ - Data Query
OE  - Order Entry
OFA - Assets
OKC - Contracts Core
OKE - Project Contracts
OKI - Contracts Intelligence
OKL - Leasing and Finance Management
OKS - Service Contracts
OKT - Royalty Management
OKX - Contracts Integration
ONT - Order Management
OPI - Operations Intelligence
OTA - Learning Management
OUC - University Curriculum
OZF - Trade Management
PA  - Projects
PAY - Payroll
PBR - Budgeting and Planning
PER - Human Resources
PFT - Oracle Profitability Manager
PJI - Project Intelligence
PJM - Project Manufacturing
PMI - Process Manufacturing Intelligence
PN  - Property Manager
PO  - Purchasing
POA - Purchasing Intelligence
POM - Exchange
PON - Sourcing
POS - iSupplier Portal
PQH - Public Sector HR
PQP - Public Sector Payroll
PRP - Proposals
PSA - Public Sector Financials
PSB - Public Sector Budgeting
PSP - Labor Distribution
PSR - Public Sector Receivables
PTX - Patch Tracking System
PV  - Partner Management
QA  - Quality
QOT - Quoting
QP  - Advanced Pricing
QPR - Oracle Deal Management
QRM - Risk Management
RG  - Application Report Generator
RLM - Release Management
RMG - Risk Manager
RRC - Retail Core
RRS - Site Management
SHT - Applications Shared Technology
SSP - SSP
SYSADMIN - System Administration
VEA - Automotive
WIP - Work in Process
WMA - Manufacturing Mobile Applications
WMS - Warehouse Management
WPS - Manufacturing Scheduling
WSH - Shipping Execution
WSM - Shop Floor Management
XDO - XML Publisher
XDP - Provisioning
XLA - Subledger Accounting
XLE - Legal Entity Configurator
XNA - Service Assurance for Communications
XNB - Oracle Telecommunications Billing Integrator
XNP - Number Portability
XNT - TeleBusiness for Telecom/Utilities
XTR - Treasury
ZFA - Financial Analyzer
ZPB - Enterprise Planning and Budgeting
ZSA - Sales Analyzer
ZX  - E-Business Tax

Dec 12, 2012

Query to find GL to AR Receiving Transactions


The following query finds GL to AR Receiving Transactions. This query is written by Mr. Anil Patil and can also be found in this link:

http://oracle.anilrpatil.com/2009/12/12/drilldown-from-gl-to-receiving-transactions-2/

I have reposted this for sharing purpose only.

-------------------------------------------------------------------------------
-- Query to find GL to AR Receiving Transactions
-------------------------------------------------------------------------------
SELECT
       b.NAME                        je_batch_name,
       b.description                 je_batch_description,
       b.running_total_accounted_dr  je_batch_total_dr,
       b.running_total_accounted_cr  je_batch_total_cr,
       b.status                      je_batch_status,
       b.default_effective_date      je_batch_effective_date,
       b.default_period_name         je_batch_period_name,
       b.creation_date               je_batch_creation_date,
       u.user_name                   je_batch_created_by,
       h.je_category                 je_header_category,
       h.je_source                   je_header_source,
       h.period_name                 je_header_period_name,
       h.NAME                        je_header_journal_name,
       h.status                      je_header_journal_status,
       h.creation_date               je_header_created_date,
       u1.user_name                  je_header_created_by,
       h.description                 je_header_description,
       h.running_total_accounted_dr  je_header_total_acctd_dr,
       h.running_total_accounted_cr  je_header_total_acctd_cr,
       l.je_line_num                 je_lines_line_number,
       l.ledger_id                   je_lines_ledger_id,
       glcc.concatenated_segments    je_lines_ACCOUNT,
       l.entered_dr                  je_lines_entered_dr,
       l.entered_cr                  je_lines_entered_cr,
       l.accounted_dr                je_lines_accounted_dr,
       l.accounted_cr                je_lines_accounted_cr,
       l.description                 je_lines_description,
       glcc1.concatenated_segments   xla_lines_account,
       xlal.accounting_class_code    xla_lines_acct_class_code,
       xlal.accounted_dr             xla_lines_accounted_dr,
       xlal.accounted_cr             xla_lines_accounted_cr,
       xlal.description              xla_lines_description,
       xlal.accounting_date          xla_lines_accounting_date,
       xlate.entity_code             xla_trx_entity_code,
       xlate.source_id_int_1         xla_trx_source_id_int_1,
       xlate.source_id_int_2         xla_trx_source_id_int_2,
       xlate.source_id_int_3         xla_trx_source_id_int_3,
       xlate.security_id_int_1       xla_trx_security_id_int_1,
       xlate.security_id_int_2       xla_trx_security_id_int_2,
       xlate.transaction_number      xla_trx_transaction_number,
       rcvt.transaction_type         rcv_trx_transaction_type,
       rcvt.transaction_date         rcv_trx_transaction_date,
       rcvt.quantity                 rcv_trx_quantity,
       rcvt.shipment_header_id       rcv_trx_shipment_header_id,
       rcvt.shipment_line_id         rcv_trx_shipment_line_id,
       rcvt.destination_type_code    rcv_trx_destination_type_code,
       rcvt.po_header_id             rcv_trx_po_header_id,
       rcvt.po_line_id               rcv_trx_po_line_id,
       rcvt.po_line_location_id      rcv_trx_po_line_location_id,
       rcvt.po_distribution_id       rcv_trx_po_distribution_id,
       rcvt.vendor_id                rcv_trx_vendor_id,
       rcvt.vendor_site_id           rcv_trx_vendor_site_id
  FROM
       gl_je_batches                 b,
       gl_je_headers                 h,
       gl_je_lines                   l,
       fnd_user                      u,
       fnd_user                      u1,
       gl_code_combinations_kfv      glcc,
       gl_code_combinations_kfv      glcc1,
       gl_import_references          gir,
       xla_ae_lines                  xlal,
       xla_ae_headers                xlah,
       xla_events                    xlae,
       xla.xla_transaction_entities  xlate,
       rcv_transactions              rcvt
 WHERE
       1=1
   AND b.created_by              =  u.user_id
   AND h.created_by              =  u1.user_id
   AND b.je_batch_id             =  h.je_batch_id
   AND h.je_header_id            =  l.je_header_id
   AND l.code_combination_id     =  glcc.code_combination_id
   AND l.je_header_id            =  gir.je_header_id
   AND l.je_line_num             =  gir.je_line_num
   AND gir.gl_sl_link_table      =  xlal.gl_sl_link_table
   AND gir.gl_sl_link_id         =  xlal.gl_sl_link_id
   AND xlal.application_id       =  xlah.application_id
   AND xlal.ae_header_id         =  xlah.ae_header_id
   AND xlal.code_combination_id  =  glcc1.code_combination_id
   AND xlah.application_id       =  xlae.application_id
   AND xlah.event_id             =  xlae.event_id
   AND xlae.application_id       =  xlate.application_id
   AND xlae.entity_id            =  xlate.entity_id
   AND xlate.source_id_int_1     =  rcvt.transaction_id
   AND h.je_category             =  'Receiving'
   AND b.default_period_name     =  'DEC-12'
 ORDER BY h.je_category;

Query to find GL Period-wise Transaction Summary


Query to find GL Period-wise Transaction Summary.


-------------------------------------------------------------------------------
-- Query to find GL Period-wise Transaction Summary
-------------------------------------------------------------------------------
SELECT
       b.name                        batch_name,
       b.description                 batch_description,
       b.running_total_accounted_dr  batch_total_dr,
       b.running_total_accounted_cr  batch_total_cr,
       b.status                      batch_status,
       b.default_effective_date      effective_date,
       b.default_period_name         batch_period_name,
       b.creation_date,
       u.user_name                   batch_created_by,
       h.je_category,
       h.je_source,
       h.period_name                 je_period_name,
       h.name                        journal_name,
       h.status                      journal_status,
       h.creation_date               je_created_date,
       u1.user_name                  je_created_by,
       h.description                 je_description,
       h.running_total_accounted_dr  je_total_dr,
       h.running_total_accounted_cr  je_total_cr,
       l.je_line_num                 line_number,
       l.ledger_id,
       glcc.concatenated_segments    account,
       l.entered_dr,
       l.entered_cr,
       l.accounted_dr,
       l.accounted_cr,
       xlal.unrounded_accounted_dr   xla_unrounded_accounted_dr,
       xlal.unrounded_accounted_cr   xla_unrounded_accounted_cr,
       l.description,
       xlal.code_combination_id,
       xlal.accounting_class_code,
       xlal.accounted_dr             xlal_accounted_dr,
       xlal.accounted_cr             xlal_accounted_cr,
       xlal.description              xlal_description,
       xlal.accounting_date          xlal_accounting_date,
       xlate.entity_code             xlate_entity_code,
       xlate.source_id_int_1         xlate_source_id_int_1,
       xlate.source_id_int_2         xlate_source_id_int_2,
       xlate.source_id_int_3         xlate_source_id_int_3,
       xlate.security_id_int_1       xlate_security_id_int_1,
       xlate.security_id_int_2       xlate_security_id_int_2,
       xlate.transaction_number      xlate_transaction_number
  FROM
       gl_je_batches                 b,
       gl_je_headers                 h,
       gl_je_lines                   l,
       fnd_user                      u,
       fnd_user                      u1,
       gl_code_combinations_kfv      glcc,
       gl_import_references          gir,
       xla_ae_lines                  xlal,
       xla_ae_headers                xlah,
       xla_events                    xlae,
       xla.xla_transaction_entities  xlate
 WHERE 
       1=1
   AND b.created_by              =  u.user_id
   AND h.created_by              =  u1.user_id
   AND b.je_batch_id             =  h.je_batch_id
   AND h.je_header_id            =  l.je_header_id
   AND xlal.code_combination_id  =  glcc.code_combination_id
   AND l.je_header_id            =  gir.je_header_id
   AND l.je_line_num             =  gir.je_line_num
   AND gir.gl_sl_link_table      =  xlal.gl_sl_link_table
   AND gir.gl_sl_link_id         =  xlal.gl_sl_link_id
   AND xlal.ae_header_id         =  xlah.ae_header_id
   AND xlah.event_id             =  xlae.event_id
   AND xlae.entity_id            =  xlate.entity_id
   AND xlae.application_id       =  xlate.application_id
      -- AND XLATE.SOURCE_ID_INT_1 = RCVT.TRANSACTION_ID
   AND h.je_source               =  'Receivables'
   AND h.period_name             =  'NOV-12' --'&PERIOD_NAME'