1: package body pay_seed_utl AS
2: /* $Header: pyseedutl.pkb 120.1.12020000.2 2012/11/16 10:28:24 asnell ship $ */
3: -- PLOG logging message cover for hr_utility --
4: procedure PLOG ( p_message IN varchar2 ) is
5: -- output a message to the process log file
6: begin
7: IF hr_utility.debug_enabled then
3: -- PLOG logging message cover for hr_utility --
4: procedure PLOG ( p_message IN varchar2 ) is
5: -- output a message to the process log file
6: begin
7: IF hr_utility.debug_enabled then
8: hr_utility.trace('pyseedutl '||p_message);
9: END IF;
10: end plog;
11:
4: procedure PLOG ( p_message IN varchar2 ) is
5: -- output a message to the process log file
6: begin
7: IF hr_utility.debug_enabled then
8: hr_utility.trace('pyseedutl '||p_message);
9: END IF;
10: end plog;
11:
12:
94: FETCH c_element_name_id INTO l_creator_id;
95: IF c_element_name_id%NOTFOUND THEN --{
96: CLOSE c_element_name_id;
97: plog(' ERROR ELEMENT_NAME:'||p_creator_name1||' not found ');
98: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
99: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
100: hr_utility.set_message_token('STEP','FindElementName');
101: hr_utility.raise_error;
102: END IF; --}
95: IF c_element_name_id%NOTFOUND THEN --{
96: CLOSE c_element_name_id;
97: plog(' ERROR ELEMENT_NAME:'||p_creator_name1||' not found ');
98: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
99: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
100: hr_utility.set_message_token('STEP','FindElementName');
101: hr_utility.raise_error;
102: END IF; --}
103: CLOSE c_element_name_id;
96: CLOSE c_element_name_id;
97: plog(' ERROR ELEMENT_NAME:'||p_creator_name1||' not found ');
98: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
99: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
100: hr_utility.set_message_token('STEP','FindElementName');
101: hr_utility.raise_error;
102: END IF; --}
103: CLOSE c_element_name_id;
104: END IF; --}
97: plog(' ERROR ELEMENT_NAME:'||p_creator_name1||' not found ');
98: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
99: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
100: hr_utility.set_message_token('STEP','FindElementName');
101: hr_utility.raise_error;
102: END IF; --}
103: CLOSE c_element_name_id;
104: END IF; --}
105:
108: FETCH c_input_name_id INTO l_creator_id;
109: IF c_input_name_id%NOTFOUND THEN --{
110: CLOSE c_input_name_id;
111: plog(' ERROR Element Input:'||p_creator_name1||'.'||p_creator_name2||' not found ');
112: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
113: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
114: hr_utility.set_message_token('STEP','FindElementInput');
115: hr_utility.raise_error;
116: END IF; --}
109: IF c_input_name_id%NOTFOUND THEN --{
110: CLOSE c_input_name_id;
111: plog(' ERROR Element Input:'||p_creator_name1||'.'||p_creator_name2||' not found ');
112: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
113: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
114: hr_utility.set_message_token('STEP','FindElementInput');
115: hr_utility.raise_error;
116: END IF; --}
117: CLOSE c_input_name_id;
110: CLOSE c_input_name_id;
111: plog(' ERROR Element Input:'||p_creator_name1||'.'||p_creator_name2||' not found ');
112: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
113: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
114: hr_utility.set_message_token('STEP','FindElementInput');
115: hr_utility.raise_error;
116: END IF; --}
117: CLOSE c_input_name_id;
118: END IF; --}
111: plog(' ERROR Element Input:'||p_creator_name1||'.'||p_creator_name2||' not found ');
112: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
113: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
114: hr_utility.set_message_token('STEP','FindElementInput');
115: hr_utility.raise_error;
116: END IF; --}
117: CLOSE c_input_name_id;
118: END IF; --}
119:
122: FETCH c_defined_balance_id INTO l_creator_id;
123: IF c_defined_balance_id%NOTFOUND THEN --{
124: CLOSE c_defined_balance_id;
125: plog(' ERROR Balance Dimension :'||p_creator_name1||'.'||p_creator_name2||' not found ');
126: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
127: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
128: hr_utility.set_message_token('STEP','FindDefinedBalance');
129: hr_utility.raise_error;
130: END IF; --}
123: IF c_defined_balance_id%NOTFOUND THEN --{
124: CLOSE c_defined_balance_id;
125: plog(' ERROR Balance Dimension :'||p_creator_name1||'.'||p_creator_name2||' not found ');
126: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
127: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
128: hr_utility.set_message_token('STEP','FindDefinedBalance');
129: hr_utility.raise_error;
130: END IF; --}
131: CLOSE c_defined_balance_id;
124: CLOSE c_defined_balance_id;
125: plog(' ERROR Balance Dimension :'||p_creator_name1||'.'||p_creator_name2||' not found ');
126: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
127: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
128: hr_utility.set_message_token('STEP','FindDefinedBalance');
129: hr_utility.raise_error;
130: END IF; --}
131: CLOSE c_defined_balance_id;
132: END IF; --}
125: plog(' ERROR Balance Dimension :'||p_creator_name1||'.'||p_creator_name2||' not found ');
126: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
127: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
128: hr_utility.set_message_token('STEP','FindDefinedBalance');
129: hr_utility.raise_error;
130: END IF; --}
131: CLOSE c_defined_balance_id;
132: END IF; --}
133:
136: FETCH c_defined_balance_id INTO l_creator_id;
137: IF c_defined_balance_id%NOTFOUND THEN --{
138: CLOSE c_defined_balance_id;
139: plog(' ERROR Balance Dimension :'||p_creator_name1||'.'||p_creator_name2||' not found ');
140: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
141: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
142: hr_utility.set_message_token('STEP','FindBalanceDimension');
143: hr_utility.raise_error;
144: END IF; --}
137: IF c_defined_balance_id%NOTFOUND THEN --{
138: CLOSE c_defined_balance_id;
139: plog(' ERROR Balance Dimension :'||p_creator_name1||'.'||p_creator_name2||' not found ');
140: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
141: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
142: hr_utility.set_message_token('STEP','FindBalanceDimension');
143: hr_utility.raise_error;
144: END IF; --}
145: CLOSE c_defined_balance_id;
138: CLOSE c_defined_balance_id;
139: plog(' ERROR Balance Dimension :'||p_creator_name1||'.'||p_creator_name2||' not found ');
140: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
141: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
142: hr_utility.set_message_token('STEP','FindBalanceDimension');
143: hr_utility.raise_error;
144: END IF; --}
145: CLOSE c_defined_balance_id;
146: END IF; --}
139: plog(' ERROR Balance Dimension :'||p_creator_name1||'.'||p_creator_name2||' not found ');
140: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
141: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
142: hr_utility.set_message_token('STEP','FindBalanceDimension');
143: hr_utility.raise_error;
144: END IF; --}
145: CLOSE c_defined_balance_id;
146: END IF; --}
147:
150: FETCH c_absence_type_id INTO l_creator_id;
151: IF c_absence_type_id%NOTFOUND THEN --{
152: CLOSE c_absence_type_id;
153: plog(' ERROR Absence Type:'||p_creator_name1||' not found ');
154: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
155: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
156: hr_utility.set_message_token('STEP','FindAbsenceType');
157: hr_utility.raise_error;
158: END IF; --}
151: IF c_absence_type_id%NOTFOUND THEN --{
152: CLOSE c_absence_type_id;
153: plog(' ERROR Absence Type:'||p_creator_name1||' not found ');
154: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
155: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
156: hr_utility.set_message_token('STEP','FindAbsenceType');
157: hr_utility.raise_error;
158: END IF; --}
159: CLOSE c_absence_type_id;
152: CLOSE c_absence_type_id;
153: plog(' ERROR Absence Type:'||p_creator_name1||' not found ');
154: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
155: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
156: hr_utility.set_message_token('STEP','FindAbsenceType');
157: hr_utility.raise_error;
158: END IF; --}
159: CLOSE c_absence_type_id;
160: END IF; --}
153: plog(' ERROR Absence Type:'||p_creator_name1||' not found ');
154: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
155: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
156: hr_utility.set_message_token('STEP','FindAbsenceType');
157: hr_utility.raise_error;
158: END IF; --}
159: CLOSE c_absence_type_id;
160: END IF; --}
161:
164: FETCH c_grade_name_id INTO l_creator_id;
165: IF c_grade_name_id%NOTFOUND THEN --{
166: CLOSE c_grade_name_id;
167: plog(' ERROR Grade:'||p_creator_name1||' not found ');
168: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
169: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
170: hr_utility.set_message_token('STEP','FindGrade ');
171: hr_utility.raise_error;
172: END IF; --}
165: IF c_grade_name_id%NOTFOUND THEN --{
166: CLOSE c_grade_name_id;
167: plog(' ERROR Grade:'||p_creator_name1||' not found ');
168: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
169: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
170: hr_utility.set_message_token('STEP','FindGrade ');
171: hr_utility.raise_error;
172: END IF; --}
173: CLOSE c_grade_name_id;
166: CLOSE c_grade_name_id;
167: plog(' ERROR Grade:'||p_creator_name1||' not found ');
168: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
169: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
170: hr_utility.set_message_token('STEP','FindGrade ');
171: hr_utility.raise_error;
172: END IF; --}
173: CLOSE c_grade_name_id;
174: END IF; --}
167: plog(' ERROR Grade:'||p_creator_name1||' not found ');
168: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
169: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
170: hr_utility.set_message_token('STEP','FindGrade ');
171: hr_utility.raise_error;
172: END IF; --}
173: CLOSE c_grade_name_id;
174: END IF; --}
175:
178: FETCH c_global_name_id INTO l_creator_id;
179: IF c_global_name_id%NOTFOUND THEN --{
180: CLOSE c_global_name_id;
181: plog(' ERROR Global Name:'||p_creator_name1||' not found ');
182: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
183: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
184: hr_utility.set_message_token('STEP','FindFFGlobal');
185: hr_utility.raise_error;
186: END IF; --}
179: IF c_global_name_id%NOTFOUND THEN --{
180: CLOSE c_global_name_id;
181: plog(' ERROR Global Name:'||p_creator_name1||' not found ');
182: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
183: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
184: hr_utility.set_message_token('STEP','FindFFGlobal');
185: hr_utility.raise_error;
186: END IF; --}
187: CLOSE c_global_name_id;
180: CLOSE c_global_name_id;
181: plog(' ERROR Global Name:'||p_creator_name1||' not found ');
182: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
183: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
184: hr_utility.set_message_token('STEP','FindFFGlobal');
185: hr_utility.raise_error;
186: END IF; --}
187: CLOSE c_global_name_id;
188: END IF; --}
181: plog(' ERROR Global Name:'||p_creator_name1||' not found ');
182: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
183: hr_utility.set_message_token('PROCEDURE','USER_ENTITY_CREATOR_ID');
184: hr_utility.set_message_token('STEP','FindFFGlobal');
185: hr_utility.raise_error;
186: END IF; --}
187: CLOSE c_global_name_id;
188: END IF; --}
189:
326: FETCH c_element_name_id INTO l_parameter_value;
327: IF c_element_name_id%NOTFOUND THEN --{
328: CLOSE c_element_name_id;
329: plog(' ERROR ELEMENT_NAME:'||p_value_name1||' not found ');
330: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
331: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
332: hr_utility.set_message_token('STEP','FindElementName');
333: hr_utility.raise_error;
334: END IF; --}
327: IF c_element_name_id%NOTFOUND THEN --{
328: CLOSE c_element_name_id;
329: plog(' ERROR ELEMENT_NAME:'||p_value_name1||' not found ');
330: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
331: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
332: hr_utility.set_message_token('STEP','FindElementName');
333: hr_utility.raise_error;
334: END IF; --}
335: CLOSE c_element_name_id;
328: CLOSE c_element_name_id;
329: plog(' ERROR ELEMENT_NAME:'||p_value_name1||' not found ');
330: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
331: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
332: hr_utility.set_message_token('STEP','FindElementName');
333: hr_utility.raise_error;
334: END IF; --}
335: CLOSE c_element_name_id;
336: END IF; --}
329: plog(' ERROR ELEMENT_NAME:'||p_value_name1||' not found ');
330: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
331: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
332: hr_utility.set_message_token('STEP','FindElementName');
333: hr_utility.raise_error;
334: END IF; --}
335: CLOSE c_element_name_id;
336: END IF; --}
337:
340: FETCH c_input_name_id INTO l_parameter_value;
341: IF c_input_name_id%NOTFOUND THEN --{
342: CLOSE c_input_name_id;
343: plog(' ERROR Element Input:'||p_value_name1||'.'||p_value_name2||' not found ');
344: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
345: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
346: hr_utility.set_message_token('STEP','FindElementInput');
347: hr_utility.raise_error;
348: END IF; --}
341: IF c_input_name_id%NOTFOUND THEN --{
342: CLOSE c_input_name_id;
343: plog(' ERROR Element Input:'||p_value_name1||'.'||p_value_name2||' not found ');
344: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
345: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
346: hr_utility.set_message_token('STEP','FindElementInput');
347: hr_utility.raise_error;
348: END IF; --}
349: CLOSE c_input_name_id;
342: CLOSE c_input_name_id;
343: plog(' ERROR Element Input:'||p_value_name1||'.'||p_value_name2||' not found ');
344: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
345: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
346: hr_utility.set_message_token('STEP','FindElementInput');
347: hr_utility.raise_error;
348: END IF; --}
349: CLOSE c_input_name_id;
350: END IF; --}
343: plog(' ERROR Element Input:'||p_value_name1||'.'||p_value_name2||' not found ');
344: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
345: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
346: hr_utility.set_message_token('STEP','FindElementInput');
347: hr_utility.raise_error;
348: END IF; --}
349: CLOSE c_input_name_id;
350: END IF; --}
351:
354: FETCH c_defined_balance_id INTO l_parameter_value;
355: IF c_defined_balance_id%NOTFOUND THEN --{
356: CLOSE c_defined_balance_id;
357: plog(' ERROR Balance Dimension :'||p_value_name1||'.'||p_value_name2||' not found ');
358: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
359: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
360: hr_utility.set_message_token('STEP','FindDefinedBalance');
361: hr_utility.raise_error;
362: END IF; --}
355: IF c_defined_balance_id%NOTFOUND THEN --{
356: CLOSE c_defined_balance_id;
357: plog(' ERROR Balance Dimension :'||p_value_name1||'.'||p_value_name2||' not found ');
358: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
359: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
360: hr_utility.set_message_token('STEP','FindDefinedBalance');
361: hr_utility.raise_error;
362: END IF; --}
363: CLOSE c_defined_balance_id;
356: CLOSE c_defined_balance_id;
357: plog(' ERROR Balance Dimension :'||p_value_name1||'.'||p_value_name2||' not found ');
358: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
359: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
360: hr_utility.set_message_token('STEP','FindDefinedBalance');
361: hr_utility.raise_error;
362: END IF; --}
363: CLOSE c_defined_balance_id;
364: END IF; --}
357: plog(' ERROR Balance Dimension :'||p_value_name1||'.'||p_value_name2||' not found ');
358: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
359: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
360: hr_utility.set_message_token('STEP','FindDefinedBalance');
361: hr_utility.raise_error;
362: END IF; --}
363: CLOSE c_defined_balance_id;
364: END IF; --}
365:
368: FETCH c_absence_type_id INTO l_parameter_value;
369: IF c_absence_type_id%NOTFOUND THEN --{
370: CLOSE c_absence_type_id;
371: plog(' ERROR Absence Type:'||p_value_name1||' not found ');
372: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
373: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
374: hr_utility.set_message_token('STEP','FindAbsenceType');
375: hr_utility.raise_error;
376: END IF; --}
369: IF c_absence_type_id%NOTFOUND THEN --{
370: CLOSE c_absence_type_id;
371: plog(' ERROR Absence Type:'||p_value_name1||' not found ');
372: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
373: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
374: hr_utility.set_message_token('STEP','FindAbsenceType');
375: hr_utility.raise_error;
376: END IF; --}
377: CLOSE c_absence_type_id;
370: CLOSE c_absence_type_id;
371: plog(' ERROR Absence Type:'||p_value_name1||' not found ');
372: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
373: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
374: hr_utility.set_message_token('STEP','FindAbsenceType');
375: hr_utility.raise_error;
376: END IF; --}
377: CLOSE c_absence_type_id;
378: END IF; --}
371: plog(' ERROR Absence Type:'||p_value_name1||' not found ');
372: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
373: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
374: hr_utility.set_message_token('STEP','FindAbsenceType');
375: hr_utility.raise_error;
376: END IF; --}
377: CLOSE c_absence_type_id;
378: END IF; --}
379:
382: FETCH c_grade_name_id INTO l_parameter_value;
383: IF c_grade_name_id%NOTFOUND THEN --{
384: CLOSE c_grade_name_id;
385: plog(' ERROR Grade:'||p_value_name1||' not found ');
386: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
387: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
388: hr_utility.set_message_token('STEP','FindGrade ');
389: hr_utility.raise_error;
390: END IF; --}
383: IF c_grade_name_id%NOTFOUND THEN --{
384: CLOSE c_grade_name_id;
385: plog(' ERROR Grade:'||p_value_name1||' not found ');
386: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
387: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
388: hr_utility.set_message_token('STEP','FindGrade ');
389: hr_utility.raise_error;
390: END IF; --}
391: CLOSE c_grade_name_id;
384: CLOSE c_grade_name_id;
385: plog(' ERROR Grade:'||p_value_name1||' not found ');
386: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
387: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
388: hr_utility.set_message_token('STEP','FindGrade ');
389: hr_utility.raise_error;
390: END IF; --}
391: CLOSE c_grade_name_id;
392: END IF; --}
385: plog(' ERROR Grade:'||p_value_name1||' not found ');
386: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
387: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
388: hr_utility.set_message_token('STEP','FindGrade ');
389: hr_utility.raise_error;
390: END IF; --}
391: CLOSE c_grade_name_id;
392: END IF; --}
393:
396: FETCH c_dimension_name_id INTO l_parameter_value;
397: IF c_dimension_name_id%NOTFOUND THEN --{
398: CLOSE c_dimension_name_id;
399: plog(' ERROR dimension:'||p_value_name1||' not found ');
400: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
401: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
402: hr_utility.set_message_token('STEP','FindDimension ');
403: hr_utility.raise_error;
404: END IF; --}
397: IF c_dimension_name_id%NOTFOUND THEN --{
398: CLOSE c_dimension_name_id;
399: plog(' ERROR dimension:'||p_value_name1||' not found ');
400: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
401: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
402: hr_utility.set_message_token('STEP','FindDimension ');
403: hr_utility.raise_error;
404: END IF; --}
405: CLOSE c_dimension_name_id;
398: CLOSE c_dimension_name_id;
399: plog(' ERROR dimension:'||p_value_name1||' not found ');
400: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
401: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
402: hr_utility.set_message_token('STEP','FindDimension ');
403: hr_utility.raise_error;
404: END IF; --}
405: CLOSE c_dimension_name_id;
406: END IF; --}
399: plog(' ERROR dimension:'||p_value_name1||' not found ');
400: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
401: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
402: hr_utility.set_message_token('STEP','FindDimension ');
403: hr_utility.raise_error;
404: END IF; --}
405: CLOSE c_dimension_name_id;
406: END IF; --}
407:
410: FETCH c_balance_name_id INTO l_parameter_value;
411: IF c_balance_name_id%NOTFOUND THEN --{
412: CLOSE c_balance_name_id;
413: plog(' ERROR balance:'||p_value_name1||' not found ');
414: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
415: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
416: hr_utility.set_message_token('STEP','FindBalance ');
417: hr_utility.raise_error;
418: END IF; --}
411: IF c_balance_name_id%NOTFOUND THEN --{
412: CLOSE c_balance_name_id;
413: plog(' ERROR balance:'||p_value_name1||' not found ');
414: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
415: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
416: hr_utility.set_message_token('STEP','FindBalance ');
417: hr_utility.raise_error;
418: END IF; --}
419: CLOSE c_balance_name_id;
412: CLOSE c_balance_name_id;
413: plog(' ERROR balance:'||p_value_name1||' not found ');
414: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
415: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
416: hr_utility.set_message_token('STEP','FindBalance ');
417: hr_utility.raise_error;
418: END IF; --}
419: CLOSE c_balance_name_id;
420: END IF; --}
413: plog(' ERROR balance:'||p_value_name1||' not found ');
414: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
415: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
416: hr_utility.set_message_token('STEP','FindBalance ');
417: hr_utility.raise_error;
418: END IF; --}
419: CLOSE c_balance_name_id;
420: END IF; --}
421:
424: FETCH c_payment_name_id INTO l_parameter_value;
425: IF c_payment_name_id%NOTFOUND THEN --{
426: CLOSE c_payment_name_id;
427: plog(' ERROR payment type:'||p_value_name1||' not found ');
428: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
429: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
430: hr_utility.set_message_token('STEP','FindPaymentType ');
431: hr_utility.raise_error;
432: END IF; --}
425: IF c_payment_name_id%NOTFOUND THEN --{
426: CLOSE c_payment_name_id;
427: plog(' ERROR payment type:'||p_value_name1||' not found ');
428: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
429: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
430: hr_utility.set_message_token('STEP','FindPaymentType ');
431: hr_utility.raise_error;
432: END IF; --}
433: CLOSE c_payment_name_id;
426: CLOSE c_payment_name_id;
427: plog(' ERROR payment type:'||p_value_name1||' not found ');
428: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
429: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
430: hr_utility.set_message_token('STEP','FindPaymentType ');
431: hr_utility.raise_error;
432: END IF; --}
433: CLOSE c_payment_name_id;
434: END IF; --}
427: plog(' ERROR payment type:'||p_value_name1||' not found ');
428: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
429: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
430: hr_utility.set_message_token('STEP','FindPaymentType ');
431: hr_utility.raise_error;
432: END IF; --}
433: CLOSE c_payment_name_id;
434: END IF; --}
435:
438: FETCH c_user_entity_name_id INTO l_parameter_value;
439: IF c_user_entity_name_id%NOTFOUND THEN --{
440: CLOSE c_user_entity_name_id;
441: plog(' ERROR user_entity:'||p_value_name1||' not found ');
442: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
443: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
444: hr_utility.set_message_token('STEP','FindUserEntity ');
445: hr_utility.raise_error;
446: END IF; --}
439: IF c_user_entity_name_id%NOTFOUND THEN --{
440: CLOSE c_user_entity_name_id;
441: plog(' ERROR user_entity:'||p_value_name1||' not found ');
442: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
443: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
444: hr_utility.set_message_token('STEP','FindUserEntity ');
445: hr_utility.raise_error;
446: END IF; --}
447: CLOSE c_user_entity_name_id;
440: CLOSE c_user_entity_name_id;
441: plog(' ERROR user_entity:'||p_value_name1||' not found ');
442: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
443: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
444: hr_utility.set_message_token('STEP','FindUserEntity ');
445: hr_utility.raise_error;
446: END IF; --}
447: CLOSE c_user_entity_name_id;
448: END IF; --}
441: plog(' ERROR user_entity:'||p_value_name1||' not found ');
442: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
443: hr_utility.set_message_token('PROCEDURE','PARAMETER_VALUE');
444: hr_utility.set_message_token('STEP','FindUserEntity ');
445: hr_utility.raise_error;
446: END IF; --}
447: CLOSE c_user_entity_name_id;
448: END IF; --}
449:
471: OPEN csr_balance_name(p_balance_type_id);
472: FETCH csr_balance_name INTO l_return;
473: IF csr_balance_name%NOTFOUND THEN
474: l_return := NULL;
475: hr_utility.trace('PAY_SEED_UTILS.ID_TO_NAME. p_balance_type_id:'||p_balance_type_id||' not found');
476: END IF;
477: close csr_balance_name;
478: return l_return;
479: end lookup_balance_name;
493: OPEN csr_balance_id(p_balance_name, p_legislation_code);
494: FETCH csr_balance_id INTO l_return;
495: IF csr_balance_id%NOTFOUND THEN
496: l_return := 'BalNotFound';
497: hr_utility.trace('PAY_SEED_UTILS.NAME_TO_ID. p_balance_name:'||p_balance_name||' not found');
498: IF nvl(p_ignore_missing_balance,'N') <> 'Y' then
499: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
500: hr_utility.set_message_token('PROCEDURE','BALANCE_NAME');
501: hr_utility.set_message_token('STEP','Find balance:'||p_balance_name);
495: IF csr_balance_id%NOTFOUND THEN
496: l_return := 'BalNotFound';
497: hr_utility.trace('PAY_SEED_UTILS.NAME_TO_ID. p_balance_name:'||p_balance_name||' not found');
498: IF nvl(p_ignore_missing_balance,'N') <> 'Y' then
499: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
500: hr_utility.set_message_token('PROCEDURE','BALANCE_NAME');
501: hr_utility.set_message_token('STEP','Find balance:'||p_balance_name);
502: hr_utility.raise_error;
503: END IF;
496: l_return := 'BalNotFound';
497: hr_utility.trace('PAY_SEED_UTILS.NAME_TO_ID. p_balance_name:'||p_balance_name||' not found');
498: IF nvl(p_ignore_missing_balance,'N') <> 'Y' then
499: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
500: hr_utility.set_message_token('PROCEDURE','BALANCE_NAME');
501: hr_utility.set_message_token('STEP','Find balance:'||p_balance_name);
502: hr_utility.raise_error;
503: END IF;
504: END IF;
497: hr_utility.trace('PAY_SEED_UTILS.NAME_TO_ID. p_balance_name:'||p_balance_name||' not found');
498: IF nvl(p_ignore_missing_balance,'N') <> 'Y' then
499: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
500: hr_utility.set_message_token('PROCEDURE','BALANCE_NAME');
501: hr_utility.set_message_token('STEP','Find balance:'||p_balance_name);
502: hr_utility.raise_error;
503: END IF;
504: END IF;
505: close csr_balance_id;
498: IF nvl(p_ignore_missing_balance,'N') <> 'Y' then
499: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
500: hr_utility.set_message_token('PROCEDURE','BALANCE_NAME');
501: hr_utility.set_message_token('STEP','Find balance:'||p_balance_name);
502: hr_utility.raise_error;
503: END IF;
504: END IF;
505: close csr_balance_id;
506: return l_return;