SQL Queries

Query to find list of suppliers who has attachments

Often times you might have to find a list of suppliers who has a specific attachment. For example, if you need to find list of suppliers who has attached with…

Read More

Query to Link PO, AP, GL, ZX, CE, RCV & XLA

   SELECT glimp.je_header_id je_header_id, glimp.je_line_num je_line_num,           xal.accounted_cr accounted_cr, xal.accounted_dr accounted_dr,           xal.entered_cr entered_cr, xal.entered_dr entered_dr,           xah.accounting_date accounting_date,           xal.accounting_class_code acct_line_type,           xal.code_combination_id code_combination_id,              gcc.segment1           || ‘.’…

Read More

Query to Link PO,AP,GL,TAX RATE & XLA

SELECT r.je_header_id je_header_id, r.je_line_num je_line_num,        200 application_id, aeh.ledger_id set_of_books_id, ‘INV’ trx_class,        l8.displayed_field trx_class_name, l1.displayed_field trx_type_name,        i.invoice_type_lookup_code trx_type_c, i.invoice_num invoice_number,        i.invoice_num trx_number_displayed, ael.description comments,        fd.NAME doc_sequence_name,…

Read More

AP Pre Payments Query: AP XLA GL

SELECT glcc.segment1 COMPANY,  glcc.segment2 LOCATION,  glcc.segment3 COST_CENTER,  glcc.segment4 ACCOUNT,  glcc.segment5 PRODUCT_LINE,  glcc.segment6 CHANNEL,  glcc.segment7 PROJECT,  (SELECT flex_value    || ‘ ‘    || fvt.description  FROM apps.ap_invoices_all ap1,    apps.gl_code_combinations glc,    apps.fnd_flex_values fv,    apps.fnd_flex_values_tl…

Read More

AP Distribution Query: AP XLA GL

SELECT glcc.segment1 company, glcc.segment2 LOCATION,       glcc.segment3 cost_center, glcc.segment4 ACCOUNT,       glcc.segment5 product_line, glcc.segment6 channel,       glcc.segment7 project,       (SELECT flex_value || ‘ ‘ || fvt.description          FROM apps.ap_invoices_all ap1,               apps.gl_code_combinations glc,               apps.fnd_flex_values fv,               apps.fnd_flex_values_tl…

Read More

AR Adjustments Query: AR XLA GL

SELECT glcc.segment1 company, glcc.segment2 LOCATION,       glcc.segment3 cost_center, glcc.segment4 ACCOUNT,       glcc.segment5 product_line, glcc.segment6 channel,       glcc.segment7 project,       (SELECT flex_value || ‘ ‘ || fvt.description          FROM apps.gl_code_combinations glc,               apps.fnd_flex_values fv,               apps.fnd_flex_values_tl fvt         WHERE…

Read More

AR Transactions Query: AR XLA GL

SELECT glcc.segment1 company, glcc.segment2 LOCATION,       glcc.segment3 cost_center, glcc.segment4 ACCOUNT,       glcc.segment5 product, glcc.segment6 channel, glcc.segment7 project,       (SELECT flex_value || ‘ ‘ || fvt.description          FROM apps.gl_code_combinations glc,               apps.fnd_flex_values fv,               apps.fnd_flex_values_tl fvt         WHERE…

Read More

AR Receipt Query: AR XLA GL

SELECT glcc.segment1 company, glcc.segment2 LOCATION,       glcc.segment3 cost_center, glcc.segment4 ACCOUNT,       glcc.segment5 product, glcc.segment6 channel, glcc.segment7 project,       (SELECT flex_value || ‘ ‘ || fvt.description          FROM apps.gl_code_combinations glc,               apps.fnd_flex_values fv,               apps.fnd_flex_values_tl fvt         WHERE…

Read More

AR Receipt Distribution Query: AR XLA GL

SELECT glcc.segment1 co, glcc.segment2 loc, glcc.segment3 cc,       glcc.segment4 acct, glcc.segment5 prod, glcc.segment6 chan,       glcc.segment7 proj, ” “CODECOMBO desc”, xal.accounting_date,       gjh.je_source, gjh.je_category CATEGORY, gjb.NAME batch,       gjh.NAME “JOURNAL name”, ” “JE SEQ…

Read More

Trigger Enhancements in Oracle Database 11g Release 1

·         Execution Order of Triggers ·         Compound Triggers ·         Enable and Disable Triggers Execution Order of Triggers Oracle allows more than one trigger to be created for the same timing…

Read More