Wednesday, 29 March 2023

Oracle EBS - SQL Query to get GL Batch Workflow Notification Item Key & Item Type

 --Get the Batch ID for Specific Batch---

select * from apps.gl_je_batches
where
name like '%FA-31-MSI-HT-MAR-23-02 Spreadsheet A 4791187 254572724%'
;

--Get the Item Key & Item Type for the specific GL Bach--
SELECT WF_PROCESS.PROCESS_NAME,
WF_IT_ACT_STATUS.*
FROM apps.WF_ITEM_ACTIVITY_STATUSES WF_IT_ACT_STATUS,
apps.WF_PROCESS_ACTIVITIES WF_PROCESS
WHERE 1=1
AND ITEM_KEY LIKE '%4662825%'-- Pass the Bactch ID Here
AND WF_IT_ACT_STATUS.ITEM_TYPE = 'GLBATCH'
AND WF_PROCESS.INSTANCE_ID = WF_IT_ACT_STATUS.PROCESS_ACTIVITY
ORDER BY BEGIN_DATE, END_DATE
;

Tuesday, 14 February 2023

Oracle EBS - Oracle Alert Details Query

SELECT alr.application_id,

       alr.alert_id,

       alr.alert_name,

       alr.start_date_active,

       alr.description,

       alr.sql_statement_text

  FROM alr.alr_alerts alr

 WHERE 1=1

 --  AND alr.created_by <> 1      -- show only custom alerts

   AND alr.enabled_flag = 'Y';