172:
173: BEGIN
174:
175: /* Initialize out parameters */
176: l_custom_rec := BIS_PMV_PARAMETERS_PUB.INITIALIZE_QUERY_TYPE;
177: x_custom_output := BIS_QUERY_ATTRIBUTES_TBL();
178:
179: /* Get common parameter values */
180: hri_oltp_pmv_util_param.get_parameters_from_table
448: x_custom_sql := l_SQLText;
449:
450: l_custom_rec.attribute_name := ':HRI_ANL_FACTOR';
451: l_custom_rec.attribute_value := l_calc_anl_factor;
452: l_custom_Rec.attribute_type := bis_pmv_parameters_pub.bind_type;
453: l_custom_rec.attribute_data_type := bis_pmv_parameters_pub.numeric_bind;
454: x_custom_output.extend;
455: x_custom_output(1) := l_custom_rec;
456:
449:
450: l_custom_rec.attribute_name := ':HRI_ANL_FACTOR';
451: l_custom_rec.attribute_value := l_calc_anl_factor;
452: l_custom_Rec.attribute_type := bis_pmv_parameters_pub.bind_type;
453: l_custom_rec.attribute_data_type := bis_pmv_parameters_pub.numeric_bind;
454: x_custom_output.extend;
455: x_custom_output(1) := l_custom_rec;
456:
457: l_custom_rec.attribute_name := ':GLOBAL_CURRENCY';
455: x_custom_output(1) := l_custom_rec;
456:
457: l_custom_rec.attribute_name := ':GLOBAL_CURRENCY';
458: l_custom_rec.attribute_value := l_parameter_rec.currency_code;
459: l_custom_Rec.attribute_type := bis_pmv_parameters_pub.bind_type;
460: l_custom_rec.attribute_data_type := bis_pmv_parameters_pub.varchar2_bind;
461: x_custom_output.extend;
462: x_custom_output(2) := l_custom_rec;
463:
456:
457: l_custom_rec.attribute_name := ':GLOBAL_CURRENCY';
458: l_custom_rec.attribute_value := l_parameter_rec.currency_code;
459: l_custom_Rec.attribute_type := bis_pmv_parameters_pub.bind_type;
460: l_custom_rec.attribute_data_type := bis_pmv_parameters_pub.varchar2_bind;
461: x_custom_output.extend;
462: x_custom_output(2) := l_custom_rec;
463:
464: l_custom_rec.attribute_name := ':GLOBAL_RATE';
462: x_custom_output(2) := l_custom_rec;
463:
464: l_custom_rec.attribute_name := ':GLOBAL_RATE';
465: l_custom_rec.attribute_value := l_parameter_rec.rate_type;
466: l_custom_Rec.attribute_type := bis_pmv_parameters_pub.bind_type;
467: l_custom_rec.attribute_data_type := bis_pmv_parameters_pub.varchar2_bind;
468: x_custom_output.extend;
469: x_custom_output(3) := l_custom_rec;
470:
463:
464: l_custom_rec.attribute_name := ':GLOBAL_RATE';
465: l_custom_rec.attribute_value := l_parameter_rec.rate_type;
466: l_custom_Rec.attribute_type := bis_pmv_parameters_pub.bind_type;
467: l_custom_rec.attribute_data_type := bis_pmv_parameters_pub.varchar2_bind;
468: x_custom_output.extend;
469: x_custom_output(3) := l_custom_rec;
470:
471: l_custom_rec.attribute_name := ':HRI_CURR_TRN_VOL';
469: x_custom_output(3) := l_custom_rec;
470:
471: l_custom_rec.attribute_name := ':HRI_CURR_TRN_VOL';
472: l_custom_rec.attribute_value := l_curr_term_vol;
473: l_custom_Rec.attribute_type := bis_pmv_parameters_pub.bind_type;
474: l_custom_rec.attribute_data_type := bis_pmv_parameters_pub.numeric_bind;
475: x_custom_output.extend;
476: x_custom_output(4) := l_custom_rec;
477:
470:
471: l_custom_rec.attribute_name := ':HRI_CURR_TRN_VOL';
472: l_custom_rec.attribute_value := l_curr_term_vol;
473: l_custom_Rec.attribute_type := bis_pmv_parameters_pub.bind_type;
474: l_custom_rec.attribute_data_type := bis_pmv_parameters_pub.numeric_bind;
475: x_custom_output.extend;
476: x_custom_output(4) := l_custom_rec;
477:
478: l_custom_rec.attribute_name := ':HRI_CURR_TRN_INVOL';
476: x_custom_output(4) := l_custom_rec;
477:
478: l_custom_rec.attribute_name := ':HRI_CURR_TRN_INVOL';
479: l_custom_rec.attribute_value := l_curr_term_invol;
480: l_custom_Rec.attribute_type := bis_pmv_parameters_pub.bind_type;
481: l_custom_rec.attribute_data_type := bis_pmv_parameters_pub.numeric_bind;
482: x_custom_output.extend;
483: x_custom_output(5) := l_custom_rec;
484:
477:
478: l_custom_rec.attribute_name := ':HRI_CURR_TRN_INVOL';
479: l_custom_rec.attribute_value := l_curr_term_invol;
480: l_custom_Rec.attribute_type := bis_pmv_parameters_pub.bind_type;
481: l_custom_rec.attribute_data_type := bis_pmv_parameters_pub.numeric_bind;
482: x_custom_output.extend;
483: x_custom_output(5) := l_custom_rec;
484:
485: l_custom_rec.attribute_name := ':HRI_COMP_TRN_VOL';
483: x_custom_output(5) := l_custom_rec;
484:
485: l_custom_rec.attribute_name := ':HRI_COMP_TRN_VOL';
486: l_custom_rec.attribute_value := l_comp_term_vol;
487: l_custom_Rec.attribute_type := bis_pmv_parameters_pub.bind_type;
488: l_custom_rec.attribute_data_type := bis_pmv_parameters_pub.numeric_bind;
489: x_custom_output.extend;
490: x_custom_output(6) := l_custom_rec;
491:
484:
485: l_custom_rec.attribute_name := ':HRI_COMP_TRN_VOL';
486: l_custom_rec.attribute_value := l_comp_term_vol;
487: l_custom_Rec.attribute_type := bis_pmv_parameters_pub.bind_type;
488: l_custom_rec.attribute_data_type := bis_pmv_parameters_pub.numeric_bind;
489: x_custom_output.extend;
490: x_custom_output(6) := l_custom_rec;
491:
492: l_custom_rec.attribute_name := ':HRI_COMP_TRN_INVOL';
490: x_custom_output(6) := l_custom_rec;
491:
492: l_custom_rec.attribute_name := ':HRI_COMP_TRN_INVOL';
493: l_custom_rec.attribute_value := l_comp_term_invol;
494: l_custom_Rec.attribute_type := bis_pmv_parameters_pub.bind_type;
495: l_custom_rec.attribute_data_type := bis_pmv_parameters_pub.numeric_bind;
496: x_custom_output.extend;
497: x_custom_output(7) := l_custom_rec;
498:
491:
492: l_custom_rec.attribute_name := ':HRI_COMP_TRN_INVOL';
493: l_custom_rec.attribute_value := l_comp_term_invol;
494: l_custom_Rec.attribute_type := bis_pmv_parameters_pub.bind_type;
495: l_custom_rec.attribute_data_type := bis_pmv_parameters_pub.numeric_bind;
496: x_custom_output.extend;
497: x_custom_output(7) := l_custom_rec;
498:
499: END get_sql_pvt;