25:
26: BEGIN
27: --
28: /* Initialize table/record variables */
29: l_custom_rec := BIS_PMV_PARAMETERS_PUB.Initialize_Query_Type;
30: x_custom_output := BIS_QUERY_ATTRIBUTES_TBL();
31:
32: /* Get security clause for Manager based security */
33: l_security_clause := hri_oltp_pmv_util_pkg.get_security_clause('MGR');
100: x_custom_sql := l_sqltext;
101:
102: l_custom_rec.attribute_name := ':TIME_PERIOD_TYPE';
103: l_custom_rec.attribute_value := l_parameter_rec.page_period_type;
104: l_custom_Rec.attribute_type := bis_pmv_parameters_pub.bind_type;
105: l_custom_rec.attribute_data_type := bis_pmv_parameters_pub.varchar2_bind;
106: x_custom_output.extend;
107: x_custom_output(1) := l_custom_rec;
108:
101:
102: l_custom_rec.attribute_name := ':TIME_PERIOD_TYPE';
103: l_custom_rec.attribute_value := l_parameter_rec.page_period_type;
104: l_custom_Rec.attribute_type := bis_pmv_parameters_pub.bind_type;
105: l_custom_rec.attribute_data_type := bis_pmv_parameters_pub.varchar2_bind;
106: x_custom_output.extend;
107: x_custom_output(1) := l_custom_rec;
108:
109: l_custom_rec.attribute_name := ':TIME_COMPARISON_TYPE';
107: x_custom_output(1) := l_custom_rec;
108:
109: l_custom_rec.attribute_name := ':TIME_COMPARISON_TYPE';
110: l_custom_rec.attribute_value := l_parameter_rec.time_comparison_type;
111: l_custom_Rec.attribute_type := bis_pmv_parameters_pub.bind_type;
112: l_custom_rec.attribute_data_type := bis_pmv_parameters_pub.varchar2_bind;
113: x_custom_output.extend;
114: x_custom_output(2) := l_custom_rec;
115:
108:
109: l_custom_rec.attribute_name := ':TIME_COMPARISON_TYPE';
110: l_custom_rec.attribute_value := l_parameter_rec.time_comparison_type;
111: l_custom_Rec.attribute_type := bis_pmv_parameters_pub.bind_type;
112: l_custom_rec.attribute_data_type := bis_pmv_parameters_pub.varchar2_bind;
113: x_custom_output.extend;
114: x_custom_output(2) := l_custom_rec;
115:
116: l_custom_rec.attribute_name := ':TIME_PERIOD_NUMBER';
114: x_custom_output(2) := l_custom_rec;
115:
116: l_custom_rec.attribute_name := ':TIME_PERIOD_NUMBER';
117: l_custom_rec.attribute_value := l_previous_periods;
118: l_custom_Rec.attribute_type := bis_pmv_parameters_pub.bind_type;
119: l_custom_rec.attribute_data_type := bis_pmv_parameters_pub.numeric_bind;
120: x_custom_output.extend;
121: x_custom_output(3) := l_custom_rec;
122:
115:
116: l_custom_rec.attribute_name := ':TIME_PERIOD_NUMBER';
117: l_custom_rec.attribute_value := l_previous_periods;
118: l_custom_Rec.attribute_type := bis_pmv_parameters_pub.bind_type;
119: l_custom_rec.attribute_data_type := bis_pmv_parameters_pub.numeric_bind;
120: x_custom_output.extend;
121: x_custom_output(3) := l_custom_rec;
122:
123: l_custom_rec.attribute_name := ':ANL_FACTOR';
121: x_custom_output(3) := l_custom_rec;
122:
123: l_custom_rec.attribute_name := ':ANL_FACTOR';
124: l_custom_rec.attribute_value := l_anl_factor;
125: l_custom_Rec.attribute_type := bis_pmv_parameters_pub.bind_type;
126: l_custom_rec.attribute_data_type := bis_pmv_parameters_pub.numeric_bind;
127: x_custom_output.extend;
128: x_custom_output(4) := l_custom_rec;
129:
122:
123: l_custom_rec.attribute_name := ':ANL_FACTOR';
124: l_custom_rec.attribute_value := l_anl_factor;
125: l_custom_Rec.attribute_type := bis_pmv_parameters_pub.bind_type;
126: l_custom_rec.attribute_data_type := bis_pmv_parameters_pub.numeric_bind;
127: x_custom_output.extend;
128: x_custom_output(4) := l_custom_rec;
129:
130: END GET_SQL2 ;