-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathFND Descriptive Flexfields.sql
More file actions
71 lines (70 loc) · 2.98 KB
/
FND Descriptive Flexfields.sql
File metadata and controls
71 lines (70 loc) · 2.98 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
67
68
69
70
71
/*************************************************************************/
/* */
/* (c) 2010-2024 Enginatics GmbH */
/* www.enginatics.com */
/* */
/*************************************************************************/
-- Report Name: FND Descriptive Flexfields
-- Description: Descriptive flexfields table, context, column and validation information
-- Excel Examle Output: https://www.enginatics.com/example/fnd-descriptive-flexfields/
-- Library Link: https://www.enginatics.com/reports/fnd-descriptive-flexfields/
-- Run Report: https://demo.enginatics.com/
select
fav.application_name application,
fdfv.descriptive_flexfield_name flexfield_name,
fdfv.title,
fdfv.application_table_name table_name,
fdfcv.descriptive_flex_context_code context_code,
fdfcv.descriptive_flex_context_name context_name,
fdfcv.description context_description,
xxen_util.yes(fdfcv.enabled_flag) context_enabled,
fdfcuv.column_seq_num seq_num,
fdfcuv.form_left_prompt window_prompt,
fdfcuv.application_column_name table_column,
ffvs.flex_value_set_name value_set_name,
xxen_util.yes(fdfcuv.enabled_flag) enabled,
xxen_util.yes(fdfcuv.display_flag) displayed,
xxen_util.yes(fdfcuv.required_flag) required,
xxen_util.yes(fdfcuv.security_enabled_flag) security_enabled,
xxen_util.meaning(ffvs.format_type,'FIELD_TYPE',0) format_type,
xxen_util.meaning(ffvs.validation_type,'SEG_VAL_TYPES',0) validation_type,
ffvt.application_table_name validation_table,
ffvt.id_column_name,
ffvt.id_column_size,
ffvt.id_column_type,
ffvt.value_column_name,
ffvt.value_column_size,
ffvt.value_column_type,
ffvt.meaning_column_name,
ffvt.meaning_column_size,
ffvt.meaning_column_type,
&additional_where_clause where_clause,
&lov_query
xxen_util.user_name(fdfcuv.created_by) created_by,
xxen_util.client_time(fdfcuv.creation_date) creation_date,
xxen_util.user_name(fdfcuv.last_updated_by) last_updated_by,
xxen_util.client_time(fdfcuv.last_update_date) last_update_date,
fdfv.application_id
from
fnd_application_vl fav,
fnd_descriptive_flexs_vl fdfv,
fnd_descr_flex_contexts_vl fdfcv,
fnd_descr_flex_col_usage_vl fdfcuv,
fnd_flex_value_sets ffvs,
fnd_flex_validation_tables ffvt
where
1=1 and
fdfv.descriptive_flexfield_name not like '$SRS$.%' and
fav.application_id=fdfv.application_id and
fdfv.application_id=fdfcv.application_id(+) and
fdfv.descriptive_flexfield_name=fdfcv.descriptive_flexfield_name(+) and
fdfcv.application_id=fdfcuv.application_id(+) and
fdfcv.descriptive_flexfield_name=fdfcuv.descriptive_flexfield_name(+) and
fdfcv.descriptive_flex_context_code=fdfcuv.descriptive_flex_context_code(+) and
fdfcuv.flex_value_set_id=ffvs.flex_value_set_id(+) and
decode(ffvs.validation_type,'F',ffvs.flex_value_set_id)=ffvt.flex_value_set_id(+)
order by
fav.application_name,
fdfv.title,
fdfcv.descriptive_flex_context_name,
fdfcuv.column_seq_num