Monday, December 30, 2024

Query to get Oracle Workflow Deferred Activities

SELECT COUNT(1)
      ,wias.item_type
  FROM apps.wf_items wi
      ,apps.wf_item_activity_statuses wias
  ,apps.wf_process_activities wpa
 WHERE wi.item_type = wias.item_type
   AND wi.item_key = wias.item_key
   AND wi.end_date IS NULL
   AND wias.end_date IS NULL
   AND wias.activity_status = 'DEFERRED'
   --AND wias.item_type = 'REQAPPRV'
   AND wias.item_type = wi.item_type
   AND wpa.instance_id(+) = wias.process_activity
GROUP BY wias.item_type

No comments:

Post a Comment

Query to get Parent and Child Accounts in Oracle APPS R12

SELECT ffv1.flex_value parent_account       ,ffvt1.description parent_account_desc   ,ffv2.flex_value child_account   ,ffvt2.description...