Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

SELECT 'N' Select_Flag,

'N' Hide_Show,
xgl.name ledger,
xte.ledger_id,
le.name legal_entity,
xte.legal_entity_id,
xlk.meaning Event_Status,
xe.event_status_code,
xe.process_status_code,
xecl.name event_class,
xecl.event_class_code,
xetl.name event_type,
xetl.event_type_code,
xte.transaction_number,
xe.creation_date event_creation_date,
xe.event_id,
'N' retrieve_flag,
NULL Transaction_Id1_Prompt,
NULL Transaction_Id1_value,
NULL Transaction_Id2_Prompt,
NULL Transaction_Id2_value,
NULL Transaction_Id3_Prompt,
NULL Transaction_Id3_value,
NULL Transaction_Id4_Prompt,
NULL Transaction_Id4_value,
NULL Transaction_Id5_Prompt,
NULL Transaction_Id5_value,
NULL Transaction_Id6_Prompt,
NULL Transaction_Id6_value,
NULL Transaction_Id7_Prompt,
NULL Transaction_Id7_value,
NULL Transaction_Id8_Prompt,
NULL Transaction_Id8_value,
NULL Transaction_Id9_Prompt,
NULL Transaction_Id9_value,
NULL Transaction_Id10_Prompt,
NULL Transaction_Id10_value,
xe.event_date event_date,
xe.event_number event_number,
xte.entity_code,
DECODE (
xe.event_status_code,
'U', DECODE (xe.process_status_code,
'E', 'Error',
'I', 'Error',
'NoError'),
'NoError')
error_switch,
xte.SOURCE_ID_INT_1,
xte.SOURCE_ID_INT_2,
xte.SOURCE_ID_INT_3,
xte.SOURCE_ID_INT_4,
xte.SOURCE_ID_CHAR_1,
xte.SOURCE_ID_CHAR_2,
xte.SOURCE_ID_CHAR_3,
xte.SOURCE_ID_CHAR_4,
xte.SECURITY_ID_INT_1,
xte.SECURITY_ID_INT_2,
xte.SECURITY_ID_INT_3,
xte.SECURITY_ID_CHAR_1,

xte.SECURITY_ID_CHAR_2,
xte.SECURITY_ID_CHAR_3,
xte.VALUATION_METHOD,
xlk.lookup_code display_status_code,
xe.application_id,
xe.on_hold_flag,
xlk1.meaning on_hold_status,
xe.transaction_date,
xe.transaction_date transaction_date_from,
xe.transaction_date transaction_date_to
FROM apps.xla_events xe,
apps.xle_entity_profiles le,
apps.xla_transaction_entities xte,
apps.gl_ledgers xgl,
apps.xla_event_classes_tl xecl,
apps.xla_event_types_tl xetl,
apps.xla_lookups xlk,
apps.xla_lookups xlk1
WHERE
xe.entity_id = xte.entity_id
AND xte.application_id = xe.application_id
AND xte.ledger_id = xgl.ledger_id
AND xte.legal_entity_id = le.legal_entity_id(+)
AND xetl.application_id = xe.application_id
AND xetl.event_type_code = xe.event_type_code
AND xetl.language = USERENV ('LANG')
AND xecl.application_id = xetl.application_id
AND xecl.entity_code = xetl.entity_code
AND xecl.event_class_code = xetl.event_class_code
AND xecl.language = USERENV ('LANG')
AND xlk.lookup_type = 'XLA_EVENT_DISPLAY_STATUS'
AND xlk.lookup_code =
DECODE (
xe.event_status_code,
'I', 'I',
'N', 'N',
'P', 'A',
DECODE (xe.process_status_code,
'U', 'U',
'D', 'D',
'R', 'R',
'E'))
AND xlk1.lookup_type = 'XLA_YES_NO'
AND xlk1.lookup_code = xe.on_hold_flag
AND xe.application_id = 707
AND xgl.object_type_code = 'L'
AND xgl.le_ledger_type_code = 'L'
AND xgl.LEDGER_CATEGORY_CODE IN ('NONE', 'PRIMARY', 'PRIMARY')
AND xecl.event_class_code='LOG_INTERCOMPANY'

You might also like