opm gl query 2 summary

Upload: anchauhan

Post on 17-Oct-2015

10 views

Category:

Documents


2 download

DESCRIPTION

u

TRANSCRIPT

  • 5/27/2018 Opm Gl Query 2 Summary

    1/2

    SELECTperiod_name, gl_trans, acct_stat, event_type_code, event_desc, item_type, acct_class, co,loc, cc, acct, bl, futr, acct_desc, SUM (debit) dr, SUM (credit) crFROM (SELECT xah.period_name, xah.accounting_date, xah.gl_transfer_status_code gl_trans,xah.accounting_entry_status_code acct_stat, xah.event_type_code,NVL(xet.description, xet.NAME) event_desc, gxah.transaction_id,xal.accounting_class_code acct_class, micv.category_concat_segs item_type,NVL (xah.description, xal.description) narration, gcc.segment1 co,gcc.segment2 loc, gcc.segment3 cc, gcc.segment4 acct, gcc.segment5 bl,

    gcc.segment6 futr, ffvv.description acct_desc,NVL(xal.accounted_dr, xal.entered_dr) debit,NVL(xal.accounted_cr, xal.entered_cr) creditFROM xla_ae_headers xah,xla_ae_lines xal,gmf_xla_extract_headers gxah,xla_event_types_tl xet,gl_code_combinations gcc,fnd_flex_values_vl ffvv,fnd_flex_value_sets ffvs,mtl_system_items_b msib,mtl_item_categories_v micvWHERE xah.ae_header_id = xal.ae_header_id

    AND xah.event_id = gxah.event_idAND xah.event_type_code = xet.event_type_codeAND xah.application_id = xet.application_idAND xal.code_combination_id = gcc.code_combination_idAND gcc.segment4 = ffvv.flex_valueAND ffvv.flex_value_set_id = ffvs.flex_value_set_id--AND ffvs.flex_value_set_name = 'BPIL_ACCOUNT'AND gxah.inventory_item_id = msib.inventory_item_idAND msib.organization_id = micv.organization_idAND msib.inventory_item_id = micv.inventory_item_idAND msib.organization_id = 8032AND micv.category_set_name = 'General Ledger Class'AND micv.category_concat_segs IN ('RM', 'PKG')

    --AND gxah.reference_no 4AND xah.application_id = 555)GROUP BYperiod_name, gl_trans, acct_stat,event_type_code, event_desc, item_type, acct_class, co, loc, cc, acct, bl, futr, acct_desc

  • 5/27/2018 Opm Gl Query 2 Summary

    2/2