-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathFND Rollup Groups.sql
More file actions
32 lines (31 loc) · 1.37 KB
/
FND Rollup Groups.sql
File metadata and controls
32 lines (31 loc) · 1.37 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
/*************************************************************************/
/* */
/* (c) 2010-2024 Enginatics GmbH */
/* www.enginatics.com */
/* */
/*************************************************************************/
-- Report Name: FND Rollup Groups
-- Description: Flex value sets with rollup groups (FND Flex Hierarchies)
-- Excel Examle Output: https://www.enginatics.com/example/fnd-rollup-groups/
-- Library Link: https://www.enginatics.com/reports/fnd-rollup-groups/
-- Run Report: https://demo.enginatics.com/
select
ffvs.flex_value_set_name,
ffhv.hierarchy_code,
ffhv.hierarchy_name,
ffhv.description,
xxen_util.zero_to_null((select count(*) from fnd_flex_values ffv where ffhv.hierarchy_id=ffv.structured_hierarchy_level)) usage_count,
xxen_util.user_name(ffhv.created_by) created_by,
xxen_util.client_time(ffhv.creation_date) creation_date,
xxen_util.user_name(ffhv.last_updated_by) last_updated_by,
xxen_util.client_time(ffhv.last_update_date) last_update_date,
ffhv.hierarchy_id
from
fnd_flex_value_sets ffvs,
fnd_flex_hierarchies_vl ffhv
where
1=1 and
ffvs.flex_value_set_id=ffhv.flex_value_set_id
order by
ffvs.flex_value_set_name,
ffhv.hierarchy_name