-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathDIS Migration identify missing EulConditions.sql
More file actions
66 lines (65 loc) · 2.71 KB
/
DIS Migration identify missing EulConditions.sql
File metadata and controls
66 lines (65 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*************************************************************************/
/* */
/* (c) 2010-2024 Enginatics GmbH */
/* www.enginatics.com */
/* */
/*************************************************************************/
-- Report Name: DIS Migration identify missing EulConditions
-- Description: This report identifies the missing EUL conditions defined at the folder level.
-- Excel Examle Output: https://www.enginatics.com/example/dis-migration-identify-missing-eulconditions/
-- Library Link: https://www.enginatics.com/reports/dis-migration-identify-missing-eulconditions/
-- Run Report: https://demo.enginatics.com/
select distinct
xrtv.report_name,
document.documentid doc_id,
document.documentname doc_name,
sheet.sheetname sheet_name,
conditions.conditionsname condition
from
(select x.doc_id, x.xml from xxen_discoverer_workbook_xmls x where 1=1) t,
fnd_user fu,
xmltable('EndUserLayerExport/Document'
passing t.xml
columns
sheet xmltype path 'Workbook/Sheet',
documentname varchar2(100) path '@Name',
documentdk varchar2(240) path '@DeveloperKey',
documentid number path '@Id',
documentowner varchar2(64) path 'ElementRef[@Type="EulUser"]/UniqueIdent/@Username'
) document,
xmltable('Sheet'
passing document.sheet
columns
sheetname varchar2(240) path '@Name',
sheetdk varchar2(240) path '@DeveloperKey',
viewitem xmltype path 'View') sheet,
xmltable('View'
passing sheet.viewitem
columns
viewitemdk varchar2(240) path '@DeveloperKey',
viewitemtype varchar2(8) path '@Type',
viewdistinct varchar2(5) path '@Distinct',
backendqueryrequests xmltype path 'BackendQueryRequests') viewitem,
xmltable('BackendQueryRequests'
passing viewitem.backendqueryrequests
columns
backendqueryrequestsdk varchar2(240) path '@DeveloperKey',
query xmltype path 'Query') backendqueryrequests,
xmltable('Query'
passing backendqueryrequests.query
columns
querydk varchar2(240) path '@DeveloperKey',
isdistinct varchar2(5) path '@IsDistinct',
conditions xmltype path 'Conditions') query,
xmltable('Conditions'
passing query.conditions
columns
conditionstype varchar2(30) path 'ElementRef/@Type',
conditionsdk varchar2(240) path 'ElementRef/UniqueIdent[@ConstraintName="FIL1"]/@DeveloperKey',
conditionsname varchar2(240) path 'ElementRef/UniqueIdent[@ConstraintName="FIL2"]/@Name'
) conditions,
xxen_report_templates_v xrtv
where
document.documentid=t.doc_id and
conditions.conditionstype='EulCondition' and
xrtv.template_name=trim(substrb(document.documentname||case when sheet.sheetname not like 'Sheet %' then ': '||sheet.sheetname end,1,240))