86: p_Second_NOAC_Lookup_code = '002'
87: or
88: p_Second_NOAC_Lookup_code is null
89: ) then
90: hr_utility.set_message(8301, 'GHR_37201_ALL_PROCEDURE_FAIL');
91: hr_utility.raise_error;
92: end if;
93:
94:
87: or
88: p_Second_NOAC_Lookup_code is null
89: ) then
90: hr_utility.set_message(8301, 'GHR_37201_ALL_PROCEDURE_FAIL');
91: hr_utility.raise_error;
92: end if;
93:
94:
95: if (p_First_NOAC_Lookup_Code <> '001'
97: p_First_NOAC_Lookup_Code <> '002'
98: ) and
99: p_Second_NOAC_Lookup_code is not null
100: then
101: hr_utility.set_message(8301, 'GHR_37202_ALL_PROCEDURE_FAIL');
102: hr_utility.raise_error;
103: end if;
104:
105: -- 370.02.2
98: ) and
99: p_Second_NOAC_Lookup_code is not null
100: then
101: hr_utility.set_message(8301, 'GHR_37202_ALL_PROCEDURE_FAIL');
102: hr_utility.raise_error;
103: end if;
104:
105: -- 370.02.2
106:
116: ----------------------------------------------------------------------------------------------------------
117:
118: if p_First_NOAC_Lookup_Code not in ('001','817') and
119: p_Cur_Appt_Auth_1 is null then
120: hr_utility.set_message(8301, 'GHR_37272_ALL_PROCEDURE_FAIL');
121: hr_utility.raise_error;
122: end if;
123: if p_First_NOAC_Lookup_Code <>'001' and
124: p_Employee_Date_of_Birth is null then
117:
118: if p_First_NOAC_Lookup_Code not in ('001','817') and
119: p_Cur_Appt_Auth_1 is null then
120: hr_utility.set_message(8301, 'GHR_37272_ALL_PROCEDURE_FAIL');
121: hr_utility.raise_error;
122: end if;
123: if p_First_NOAC_Lookup_Code <>'001' and
124: p_Employee_Date_of_Birth is null then
125: hr_utility.set_message(8301, 'GHR_37273_ALL_PROCEDURE_FAIL');
121: hr_utility.raise_error;
122: end if;
123: if p_First_NOAC_Lookup_Code <>'001' and
124: p_Employee_Date_of_Birth is null then
125: hr_utility.set_message(8301, 'GHR_37273_ALL_PROCEDURE_FAIL');
126: hr_utility.raise_error;
127: end if;
128: if p_First_NOAC_Lookup_Code not in ('001','817') and
129: p_Duty_Station_Lookup_Code is null then
122: end if;
123: if p_First_NOAC_Lookup_Code <>'001' and
124: p_Employee_Date_of_Birth is null then
125: hr_utility.set_message(8301, 'GHR_37273_ALL_PROCEDURE_FAIL');
126: hr_utility.raise_error;
127: end if;
128: if p_First_NOAC_Lookup_Code not in ('001','817') and
129: p_Duty_Station_Lookup_Code is null then
130: hr_utility.set_message(8301, 'GHR_37274_ALL_PROCEDURE_FAIL');
126: hr_utility.raise_error;
127: end if;
128: if p_First_NOAC_Lookup_Code not in ('001','817') and
129: p_Duty_Station_Lookup_Code is null then
130: hr_utility.set_message(8301, 'GHR_37274_ALL_PROCEDURE_FAIL');
131: hr_utility.raise_error;
132: end if;
133: if p_First_NOAC_Lookup_Code <>'001' and
134: ( p_Employee_Last_Name is null ) then
127: end if;
128: if p_First_NOAC_Lookup_Code not in ('001','817') and
129: p_Duty_Station_Lookup_Code is null then
130: hr_utility.set_message(8301, 'GHR_37274_ALL_PROCEDURE_FAIL');
131: hr_utility.raise_error;
132: end if;
133: if p_First_NOAC_Lookup_Code <>'001' and
134: ( p_Employee_Last_Name is null ) then
135: hr_utility.set_message(8301, 'GHR_37288_ALL_PROCEDURE_FAIL');
131: hr_utility.raise_error;
132: end if;
133: if p_First_NOAC_Lookup_Code <>'001' and
134: ( p_Employee_Last_Name is null ) then
135: hr_utility.set_message(8301, 'GHR_37288_ALL_PROCEDURE_FAIL');
136: hr_utility.raise_error;
137: end if;
138: if p_First_NOAC_Lookup_Code not in ('001','817') and
139: p_Handicap is null then
132: end if;
133: if p_First_NOAC_Lookup_Code <>'001' and
134: ( p_Employee_Last_Name is null ) then
135: hr_utility.set_message(8301, 'GHR_37288_ALL_PROCEDURE_FAIL');
136: hr_utility.raise_error;
137: end if;
138: if p_First_NOAC_Lookup_Code not in ('001','817') and
139: p_Handicap is null then
140: hr_utility.set_message(8301, 'GHR_37276_ALL_PROCEDURE_FAIL');
136: hr_utility.raise_error;
137: end if;
138: if p_First_NOAC_Lookup_Code not in ('001','817') and
139: p_Handicap is null then
140: hr_utility.set_message(8301, 'GHR_37276_ALL_PROCEDURE_FAIL');
141: hr_utility.raise_error;
142: end if;
143: if p_First_NOAC_Lookup_Code not in ('001','817') and
144: p_Organ_Component is null then
137: end if;
138: if p_First_NOAC_Lookup_Code not in ('001','817') and
139: p_Handicap is null then
140: hr_utility.set_message(8301, 'GHR_37276_ALL_PROCEDURE_FAIL');
141: hr_utility.raise_error;
142: end if;
143: if p_First_NOAC_Lookup_Code not in ('001','817') and
144: p_Organ_Component is null then
145: hr_utility.set_message(8301, 'GHR_37277_ALL_PROCEDURE_FAIL');
141: hr_utility.raise_error;
142: end if;
143: if p_First_NOAC_Lookup_Code not in ('001','817') and
144: p_Organ_Component is null then
145: hr_utility.set_message(8301, 'GHR_37277_ALL_PROCEDURE_FAIL');
146: hr_utility.raise_error;
147: end if;
148: if p_First_NOAC_Lookup_Code not in ('001','817') and
149: p_Personal_Office_ID is null then
142: end if;
143: if p_First_NOAC_Lookup_Code not in ('001','817') and
144: p_Organ_Component is null then
145: hr_utility.set_message(8301, 'GHR_37277_ALL_PROCEDURE_FAIL');
146: hr_utility.raise_error;
147: end if;
148: if p_First_NOAC_Lookup_Code not in ('001','817') and
149: p_Personal_Office_ID is null then
150: hr_utility.set_message(8301, 'GHR_37278_ALL_PROCEDURE_FAIL');
146: hr_utility.raise_error;
147: end if;
148: if p_First_NOAC_Lookup_Code not in ('001','817') and
149: p_Personal_Office_ID is null then
150: hr_utility.set_message(8301, 'GHR_37278_ALL_PROCEDURE_FAIL');
151: hr_utility.raise_error;
152: end if;
153: if p_First_NOAC_Lookup_Code not in ('001','817') and
154: p_Position_Occ_Code is null then
147: end if;
148: if p_First_NOAC_Lookup_Code not in ('001','817') and
149: p_Personal_Office_ID is null then
150: hr_utility.set_message(8301, 'GHR_37278_ALL_PROCEDURE_FAIL');
151: hr_utility.raise_error;
152: end if;
153: if p_First_NOAC_Lookup_Code not in ('001','817') and
154: p_Position_Occ_Code is null then
155: hr_utility.set_message(8301, 'GHR_37279_ALL_PROCEDURE_FAIL');
151: hr_utility.raise_error;
152: end if;
153: if p_First_NOAC_Lookup_Code not in ('001','817') and
154: p_Position_Occ_Code is null then
155: hr_utility.set_message(8301, 'GHR_37279_ALL_PROCEDURE_FAIL');
156: hr_utility.raise_error;
157: end if;
158: -- Begin Bug# 4567571
159:
152: end if;
153: if p_First_NOAC_Lookup_Code not in ('001','817') and
154: p_Position_Occ_Code is null then
155: hr_utility.set_message(8301, 'GHR_37279_ALL_PROCEDURE_FAIL');
156: hr_utility.raise_error;
157: end if;
158: -- Begin Bug# 4567571
159:
160: --IF p_effective_date < fnd_date.canonical_to_date('2005/10/01') then
160: --IF p_effective_date < fnd_date.canonical_to_date('2005/10/01') then
161: IF p_effective_date < fnd_date.canonical_to_date('2006/01/01') then
162: IF p_First_NOAC_Lookup_Code NOT IN ('001','817') and
163: p_Race_National_Region IS NULL THEN
164: hr_utility.set_message(8301, 'GHR_37280_ALL_PROCEDURE_FAIL');
165: hr_utility.raise_error;
166: END IF;
167: --elsif p_effective_date >= fnd_date.canonical_to_date('2005/10/01') then
168: ELSIF p_effective_date >= fnd_date.canonical_to_date('2006/01/01') THEN
161: IF p_effective_date < fnd_date.canonical_to_date('2006/01/01') then
162: IF p_First_NOAC_Lookup_Code NOT IN ('001','817') and
163: p_Race_National_Region IS NULL THEN
164: hr_utility.set_message(8301, 'GHR_37280_ALL_PROCEDURE_FAIL');
165: hr_utility.raise_error;
166: END IF;
167: --elsif p_effective_date >= fnd_date.canonical_to_date('2005/10/01') then
168: ELSIF p_effective_date >= fnd_date.canonical_to_date('2006/01/01') THEN
169: if p_First_NOAC_Lookup_Code not in ('001','817')
168: ELSIF p_effective_date >= fnd_date.canonical_to_date('2006/01/01') THEN
169: if p_First_NOAC_Lookup_Code not in ('001','817')
170: and p_effective_date < to_date('2006/07/01','yyyy/mm/dd')then
171: IF (p_Race_National_Region is null and p_ethnic_race_info is null) then
172: hr_utility.set_message(8301, 'GHR_38990_ALL_PROCEDURE_FAIL');
173: hr_utility.raise_error;
174: END IF;
175: elsif p_First_NOAC_Lookup_Code not in ('100','001','817') then
176: IF (p_Race_National_Region is null and p_ethnic_race_info is null) then
169: if p_First_NOAC_Lookup_Code not in ('001','817')
170: and p_effective_date < to_date('2006/07/01','yyyy/mm/dd')then
171: IF (p_Race_National_Region is null and p_ethnic_race_info is null) then
172: hr_utility.set_message(8301, 'GHR_38990_ALL_PROCEDURE_FAIL');
173: hr_utility.raise_error;
174: END IF;
175: elsif p_First_NOAC_Lookup_Code not in ('100','001','817') then
176: IF (p_Race_National_Region is null and p_ethnic_race_info is null) then
177: hr_utility.set_message(8301, 'GHR_38990_ALL_PROCEDURE_FAIL');
173: hr_utility.raise_error;
174: END IF;
175: elsif p_First_NOAC_Lookup_Code not in ('100','001','817') then
176: IF (p_Race_National_Region is null and p_ethnic_race_info is null) then
177: hr_utility.set_message(8301, 'GHR_38990_ALL_PROCEDURE_FAIL');
178: hr_utility.raise_error;
179: END IF;
180: end if;
181: end if;
174: END IF;
175: elsif p_First_NOAC_Lookup_Code not in ('100','001','817') then
176: IF (p_Race_National_Region is null and p_ethnic_race_info is null) then
177: hr_utility.set_message(8301, 'GHR_38990_ALL_PROCEDURE_FAIL');
178: hr_utility.raise_error;
179: END IF;
180: end if;
181: end if;
182: -- End Bug# 4567571
181: end if;
182: -- End Bug# 4567571
183: if p_First_NOAC_Lookup_Code not in ('001','817') and
184: p_Retirement_Plan_Code is null then
185: hr_utility.set_message(8301, 'GHR_37281_ALL_PROCEDURE_FAIL');
186: hr_utility.raise_error;
187: end if;
188: if p_First_NOAC_Lookup_Code not in ('001','817') and
189: p_Service_Computation_Date is null then
182: -- End Bug# 4567571
183: if p_First_NOAC_Lookup_Code not in ('001','817') and
184: p_Retirement_Plan_Code is null then
185: hr_utility.set_message(8301, 'GHR_37281_ALL_PROCEDURE_FAIL');
186: hr_utility.raise_error;
187: end if;
188: if p_First_NOAC_Lookup_Code not in ('001','817') and
189: p_Service_Computation_Date is null then
190: hr_utility.set_message(8301, 'GHR_37282_ALL_PROCEDURE_FAIL');
186: hr_utility.raise_error;
187: end if;
188: if p_First_NOAC_Lookup_Code not in ('001','817') and
189: p_Service_Computation_Date is null then
190: hr_utility.set_message(8301, 'GHR_37282_ALL_PROCEDURE_FAIL');
191: hr_utility.raise_error;
192: end if;
193: if p_First_NOAC_Lookup_Code not in ('001','817') and
194: p_Supervisory_Status_Code is null then
187: end if;
188: if p_First_NOAC_Lookup_Code not in ('001','817') and
189: p_Service_Computation_Date is null then
190: hr_utility.set_message(8301, 'GHR_37282_ALL_PROCEDURE_FAIL');
191: hr_utility.raise_error;
192: end if;
193: if p_First_NOAC_Lookup_Code not in ('001','817') and
194: p_Supervisory_Status_Code is null then
195: hr_utility.set_message(8301, 'GHR_37283_ALL_PROCEDURE_FAIL');
191: hr_utility.raise_error;
192: end if;
193: if p_First_NOAC_Lookup_Code not in ('001','817') and
194: p_Supervisory_Status_Code is null then
195: hr_utility.set_message(8301, 'GHR_37283_ALL_PROCEDURE_FAIL');
196: hr_utility.raise_error;
197: end if;
198: if p_First_NOAC_Lookup_Code not in ('001','817') and
199: p_Tenure_Group_Code is null then
192: end if;
193: if p_First_NOAC_Lookup_Code not in ('001','817') and
194: p_Supervisory_Status_Code is null then
195: hr_utility.set_message(8301, 'GHR_37283_ALL_PROCEDURE_FAIL');
196: hr_utility.raise_error;
197: end if;
198: if p_First_NOAC_Lookup_Code not in ('001','817') and
199: p_Tenure_Group_Code is null then
200: hr_utility.set_message(8301, 'GHR_37284_ALL_PROCEDURE_FAIL');
196: hr_utility.raise_error;
197: end if;
198: if p_First_NOAC_Lookup_Code not in ('001','817') and
199: p_Tenure_Group_Code is null then
200: hr_utility.set_message(8301, 'GHR_37284_ALL_PROCEDURE_FAIL');
201: hr_utility.raise_error;
202: end if;
203: if p_First_NOAC_Lookup_Code not in ('001','817') and
204: p_Veterans_Pref_Code is null then
197: end if;
198: if p_First_NOAC_Lookup_Code not in ('001','817') and
199: p_Tenure_Group_Code is null then
200: hr_utility.set_message(8301, 'GHR_37284_ALL_PROCEDURE_FAIL');
201: hr_utility.raise_error;
202: end if;
203: if p_First_NOAC_Lookup_Code not in ('001','817') and
204: p_Veterans_Pref_Code is null then
205: hr_utility.set_message(8301, 'GHR_37285_ALL_PROCEDURE_FAIL');
201: hr_utility.raise_error;
202: end if;
203: if p_First_NOAC_Lookup_Code not in ('001','817') and
204: p_Veterans_Pref_Code is null then
205: hr_utility.set_message(8301, 'GHR_37285_ALL_PROCEDURE_FAIL');
206: hr_utility.raise_error;
207: end if;
208: if p_First_NOAC_Lookup_Code not in ('001','817') and
209: p_Veterans_Status_Code is null then
202: end if;
203: if p_First_NOAC_Lookup_Code not in ('001','817') and
204: p_Veterans_Pref_Code is null then
205: hr_utility.set_message(8301, 'GHR_37285_ALL_PROCEDURE_FAIL');
206: hr_utility.raise_error;
207: end if;
208: if p_First_NOAC_Lookup_Code not in ('001','817') and
209: p_Veterans_Status_Code is null then
210: hr_utility.set_message(8301, 'GHR_37286_ALL_PROCEDURE_FAIL');
206: hr_utility.raise_error;
207: end if;
208: if p_First_NOAC_Lookup_Code not in ('001','817') and
209: p_Veterans_Status_Code is null then
210: hr_utility.set_message(8301, 'GHR_37286_ALL_PROCEDURE_FAIL');
211: hr_utility.raise_error;
212: end if;
213: if p_First_NOAC_Lookup_Code not in ('001','817') and
214: p_sex is null then
207: end if;
208: if p_First_NOAC_Lookup_Code not in ('001','817') and
209: p_Veterans_Status_Code is null then
210: hr_utility.set_message(8301, 'GHR_37286_ALL_PROCEDURE_FAIL');
211: hr_utility.raise_error;
212: end if;
213: if p_First_NOAC_Lookup_Code not in ('001','817') and
214: p_sex is null then
215: hr_utility.set_message(8301, 'GHR_37287_ALL_PROCEDURE_FAIL');
211: hr_utility.raise_error;
212: end if;
213: if p_First_NOAC_Lookup_Code not in ('001','817') and
214: p_sex is null then
215: hr_utility.set_message(8301, 'GHR_37287_ALL_PROCEDURE_FAIL');
216: hr_utility.raise_error;
217: end if;
218: --Begin Bug 11726461
219: IF p_effective_date < fnd_date.canonical_to_date('2011/02/01') then
212: end if;
213: if p_First_NOAC_Lookup_Code not in ('001','817') and
214: p_sex is null then
215: hr_utility.set_message(8301, 'GHR_37287_ALL_PROCEDURE_FAIL');
216: hr_utility.raise_error;
217: end if;
218: --Begin Bug 11726461
219: IF p_effective_date < fnd_date.canonical_to_date('2011/02/01') then
220: --Begin Bug 10189715
220: --Begin Bug 10189715
221: if p_first_noac_lookup_code not in ('001','817') and
222: p_rating_of_record_pattern <> 'Z' and
223: p_rating_of_record_level is null then
224: hr_utility.set_message(8301, 'GHR_38151_ALL_PROCEDURE_FAIL');
225: hr_utility.raise_error;
226: end if;
227: --End Bug 10189715
228: END IF;
221: if p_first_noac_lookup_code not in ('001','817') and
222: p_rating_of_record_pattern <> 'Z' and
223: p_rating_of_record_level is null then
224: hr_utility.set_message(8301, 'GHR_38151_ALL_PROCEDURE_FAIL');
225: hr_utility.raise_error;
226: end if;
227: --End Bug 10189715
228: END IF;
229: --End Bug 11726461
232: -- Update Date By Effective Date Comment
233: -- 8 01/28/99 vravikan 01/10/98 Add nature of action 6__
234: -- 02/24/00 vravikan 1186310 Getting noa_family_code rather
235: -- than using passed family code
236: hr_utility.set_location('passed noa_family_code is ' || p_noa_family_code,1);
237: FOR c_noa_family_code_rec in c_noa_family_code LOOP
238: l_noa_family_code := c_noa_family_code_rec.noa_family_code;
239: hr_utility.set_location('actual noa_family_code is ' || l_noa_family_code,2);
240: exit;
235: -- than using passed family code
236: hr_utility.set_location('passed noa_family_code is ' || p_noa_family_code,1);
237: FOR c_noa_family_code_rec in c_noa_family_code LOOP
238: l_noa_family_code := c_noa_family_code_rec.noa_family_code;
239: hr_utility.set_location('actual noa_family_code is ' || l_noa_family_code,2);
240: exit;
241: END LOOP;
242: if p_effective_date >= fnd_date.canonical_to_date('1998/10/01') then
243: if substr(p_First_NOAC_Lookup_Code,1,1) in ('1','2','5','6','7','8')
252: p_To_Basic_Pay is null or
253: p_To_Step_Or_Rate is null or
254: p_Work_Sche_Code is null )
255: then
256: hr_utility.set_message(8301, 'GHR_37203_ALL_PROCEDURE_FAIL');
257: hr_utility.raise_error;
258: end if;
259: else
260: if substr(p_First_NOAC_Lookup_Code,1,1) in ('1','2','5','7','8')
253: p_To_Step_Or_Rate is null or
254: p_Work_Sche_Code is null )
255: then
256: hr_utility.set_message(8301, 'GHR_37203_ALL_PROCEDURE_FAIL');
257: hr_utility.raise_error;
258: end if;
259: else
260: if substr(p_First_NOAC_Lookup_Code,1,1) in ('1','2','5','7','8')
261: and
269: p_To_Basic_Pay is null or
270: p_To_Step_Or_Rate is null or
271: p_Work_Sche_Code is null )
272: then
273: hr_utility.set_message(8301, 'GHR_37204_ALL_PROCEDURE_FAIL');
274: hr_utility.raise_error;
275: end if;
276: end if;
277:
270: p_To_Step_Or_Rate is null or
271: p_Work_Sche_Code is null )
272: then
273: hr_utility.set_message(8301, 'GHR_37204_ALL_PROCEDURE_FAIL');
274: hr_utility.raise_error;
275: end if;
276: end if;
277:
278:
309: p_Prior_To_Step_Or_Rate is null or
310: p_Prior_Work_Sche_Code is null or
311: p_prior_Duty_Station is nulL
312: ) then
313: hr_utility.set_message(8301, 'GHR_37205_ALL_PROCEDURE_FAIL');
314: hr_utility.set_message_token('NOA_CODE','3--,4--,5--,6--, 7--, or 8--');
315: hr_utility.raise_error;
316: end if;
317: else -- p_effective_date < '2004/06/01'
310: p_Prior_Work_Sche_Code is null or
311: p_prior_Duty_Station is nulL
312: ) then
313: hr_utility.set_message(8301, 'GHR_37205_ALL_PROCEDURE_FAIL');
314: hr_utility.set_message_token('NOA_CODE','3--,4--,5--,6--, 7--, or 8--');
315: hr_utility.raise_error;
316: end if;
317: else -- p_effective_date < '2004/06/01'
318: if substr(p_First_NOAC_Lookup_Code,1,1) in ('3','4','5','6','7','8') and
311: p_prior_Duty_Station is nulL
312: ) then
313: hr_utility.set_message(8301, 'GHR_37205_ALL_PROCEDURE_FAIL');
314: hr_utility.set_message_token('NOA_CODE','3--,4--,5--,6--, 7--, or 8--');
315: hr_utility.raise_error;
316: end if;
317: else -- p_effective_date < '2004/06/01'
318: if substr(p_First_NOAC_Lookup_Code,1,1) in ('3','4','5','6','7','8') and
319: p_First_NOAC_Lookup_Code not in ('815','816','817','825','826','827','840','841','842',
328: p_Prior_To_Step_Or_Rate is null or
329: p_Prior_Work_Sche_Code is null or
330: p_prior_Duty_Station is nulL
331: ) then
332: hr_utility.set_message(8301, 'GHR_37851_ALL_PROCEDURE_FAIL');
333: hr_utility.raise_error;
334: end if;
335: end if; -- p_effective_date < '2004/06/01'
336: end if; --l_session.noa_id_correct is null
329: p_Prior_Work_Sche_Code is null or
330: p_prior_Duty_Station is nulL
331: ) then
332: hr_utility.set_message(8301, 'GHR_37851_ALL_PROCEDURE_FAIL');
333: hr_utility.raise_error;
334: end if;
335: end if; -- p_effective_date < '2004/06/01'
336: end if; --l_session.noa_id_correct is null
337: elsif p_effective_date < fnd_date.canonical_to_date('2007/01/01') then --p_effective_date < '2006/05/01'
349: p_Prior_To_Step_Or_Rate is null or
350: p_Prior_Work_Sche_Code is null or
351: p_prior_Duty_Station is nulL
352: ) then
353: hr_utility.set_message(8301, 'GHR_37200_ALL_PROCEDURE_FAIL');
354: hr_utility.set_message_token('NOA_CODE','815, 816, 817, 825, 826, 827, 840 through 848, 878, 879');
355: hr_utility.raise_error;
356: end if;
357: end if;
350: p_Prior_Work_Sche_Code is null or
351: p_prior_Duty_Station is nulL
352: ) then
353: hr_utility.set_message(8301, 'GHR_37200_ALL_PROCEDURE_FAIL');
354: hr_utility.set_message_token('NOA_CODE','815, 816, 817, 825, 826, 827, 840 through 848, 878, 879');
355: hr_utility.raise_error;
356: end if;
357: end if;
358: else --p_effective_date < '2006/05/01'
351: p_prior_Duty_Station is nulL
352: ) then
353: hr_utility.set_message(8301, 'GHR_37200_ALL_PROCEDURE_FAIL');
354: hr_utility.set_message_token('NOA_CODE','815, 816, 817, 825, 826, 827, 840 through 848, 878, 879');
355: hr_utility.raise_error;
356: end if;
357: end if;
358: else --p_effective_date < '2006/05/01'
359: if l_session.noa_id_correct is null then
370: p_Prior_To_Step_Or_Rate is null or
371: p_Prior_Work_Sche_Code is null or
372: p_prior_Duty_Station is nulL
373: ) then
374: hr_utility.set_message(8301, 'GHR_37200_ALL_PROCEDURE_FAIL');
375: hr_utility.set_message_token('NOA_CODE','815, 816, 817, 825, 826, 827, 840 through 849, 878, 879, 885, 886, 887, 889');
376: hr_utility.raise_error;
377: end if;
378: end if;
371: p_Prior_Work_Sche_Code is null or
372: p_prior_Duty_Station is nulL
373: ) then
374: hr_utility.set_message(8301, 'GHR_37200_ALL_PROCEDURE_FAIL');
375: hr_utility.set_message_token('NOA_CODE','815, 816, 817, 825, 826, 827, 840 through 849, 878, 879, 885, 886, 887, 889');
376: hr_utility.raise_error;
377: end if;
378: end if;
379: end if; --p_effective_date < '2006/05/01'
372: p_prior_Duty_Station is nulL
373: ) then
374: hr_utility.set_message(8301, 'GHR_37200_ALL_PROCEDURE_FAIL');
375: hr_utility.set_message_token('NOA_CODE','815, 816, 817, 825, 826, 827, 840 through 849, 878, 879, 885, 886, 887, 889');
376: hr_utility.raise_error;
377: end if;
378: end if;
379: end if; --p_effective_date < '2006/05/01'
380: else -- p_effective_date >=01/10/1998'
392: p_Prior_To_Step_Or_Rate is null or
393: p_Prior_Work_Sche_Code is null or
394: p_prior_Duty_Station is nulL
395: ) then
396: hr_utility.set_message(8301, 'GHR_37205_ALL_PROCEDURE_FAIL');
397: hr_utility.set_message_token('NOA_CODE','3--,4--,5--, 7--, or 8--');
398: hr_utility.raise_error;
399: end if;
400: end if;
393: p_Prior_Work_Sche_Code is null or
394: p_prior_Duty_Station is nulL
395: ) then
396: hr_utility.set_message(8301, 'GHR_37205_ALL_PROCEDURE_FAIL');
397: hr_utility.set_message_token('NOA_CODE','3--,4--,5--, 7--, or 8--');
398: hr_utility.raise_error;
399: end if;
400: end if;
401: end if;
394: p_prior_Duty_Station is nulL
395: ) then
396: hr_utility.set_message(8301, 'GHR_37205_ALL_PROCEDURE_FAIL');
397: hr_utility.set_message_token('NOA_CODE','3--,4--,5--, 7--, or 8--');
398: hr_utility.raise_error;
399: end if;
400: end if;
401: end if;
402:
409: p_First_Action_NOA_Code2 is null and
410: (p_Retention_Allowance is null and
411: p_Supervisory_Diff is null
412: ) then
413: hr_utility.set_message(8301, 'GHR_37275_ALL_PROCEDURE_FAIL');
414: hr_utility.raise_error;
415: end if;
416: end if;
417:
410: (p_Retention_Allowance is null and
411: p_Supervisory_Diff is null
412: ) then
413: hr_utility.set_message(8301, 'GHR_37275_ALL_PROCEDURE_FAIL');
414: hr_utility.raise_error;
415: end if;
416: end if;
417:
418:
431: p_pay_rate_determinant_code is not null or
432: p_To_Step_Or_Rate is not null
433: ) then
434:
435: hr_utility.set_message(8301, 'GHR_37206_ALL_PROCEDURE_FAIL');
436: hr_utility.raise_error;
437: end if;
438: END IF;
439:
432: p_To_Step_Or_Rate is not null
433: ) then
434:
435: hr_utility.set_message(8301, 'GHR_37206_ALL_PROCEDURE_FAIL');
436: hr_utility.raise_error;
437: end if;
438: END IF;
439:
440:
449: p_Prior_Pay_Rate_Det_Code is not null or
450: p_Prior_To_Step_Or_Rate is not null
451: ) then
452:
453: hr_utility.set_message(8301, 'GHR_37207_ALL_PROCEDURE_FAIL');
454: hr_utility.raise_error;
455: end if;
456: --370.35.2
457: -- 12/08/00 vravikan 01-oct-2000 New Edit
450: p_Prior_To_Step_Or_Rate is not null
451: ) then
452:
453: hr_utility.set_message(8301, 'GHR_37207_ALL_PROCEDURE_FAIL');
454: hr_utility.raise_error;
455: end if;
456: --370.35.2
457: -- 12/08/00 vravikan 01-oct-2000 New Edit
458: -- If nature of action is 600 through 610,
460:
461: IF p_effective_date >= fnd_date.canonical_to_date('2000/10/01') then
462: IF p_First_NOAC_Lookup_Code between '600' and '610' and
463: p_agency_subelement <> 'TD03' then
464: hr_utility.set_message(8301, 'GHR_37664_ALL_PROCEDURE_FAIL');
465: hr_utility.raise_error;
466: END IF;
467: END IF;
468: --370.36.2
461: IF p_effective_date >= fnd_date.canonical_to_date('2000/10/01') then
462: IF p_First_NOAC_Lookup_Code between '600' and '610' and
463: p_agency_subelement <> 'TD03' then
464: hr_utility.set_message(8301, 'GHR_37664_ALL_PROCEDURE_FAIL');
465: hr_utility.raise_error;
466: END IF;
467: END IF;
468: --370.36.2
469: -- 12/08/00 vravikan 01-oct-2000 New Edit
472:
473: IF p_effective_date >= fnd_date.canonical_to_date('2000/10/01') then
474: IF p_First_NOAC_Lookup_Code = '871' and
475: substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') then
476: hr_utility.set_message(8301, 'GHR_37665_ALL_PROCEDURE_FAIL');
477: hr_utility.raise_error;
478: END IF;
479: END IF;
480:
473: IF p_effective_date >= fnd_date.canonical_to_date('2000/10/01') then
474: IF p_First_NOAC_Lookup_Code = '871' and
475: substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') then
476: hr_utility.set_message(8301, 'GHR_37665_ALL_PROCEDURE_FAIL');
477: hr_utility.raise_error;
478: END IF;
479: END IF;
480:
481: -- 370.37.2
482: -- Upd 47 23-Jun-06 Raju From 01-Apr-06 New Edit
483: IF p_effective_date >= fnd_date.canonical_to_date('2006/04/01') THEN
484: IF p_First_NOAC_Lookup_Code IN ('611','612','613') AND
485: substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') THEN
486: hr_utility.set_message(8301, 'GHR_37164_ALL_PROCEDURE_FAIL');
487: hr_utility.raise_error;
488: end if;
489: END IF;
490:
483: IF p_effective_date >= fnd_date.canonical_to_date('2006/04/01') THEN
484: IF p_First_NOAC_Lookup_Code IN ('611','612','613') AND
485: substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') THEN
486: hr_utility.set_message(8301, 'GHR_37164_ALL_PROCEDURE_FAIL');
487: hr_utility.raise_error;
488: end if;
489: END IF;
490:
491:
496: -- Madhuri 19-MAY-2004 Adding new edit
497: --
498:
499: IF ( p_First_NOAC_Lookup_Code = '817' and p_Occupation is null ) THEN
500: hr_utility.set_message(8301, 'GHR_38886_ALL_PROCEDURE_FAIL');
501: hr_utility.raise_error;
502: END IF;
503:
504: end chk_Nature_of_Action;
497: --
498:
499: IF ( p_First_NOAC_Lookup_Code = '817' and p_Occupation is null ) THEN
500: hr_utility.set_message(8301, 'GHR_38886_ALL_PROCEDURE_FAIL');
501: hr_utility.raise_error;
502: END IF;
503:
504: end chk_Nature_of_Action;
505:
523: if ( substr(p_to_pay_plan,1,1) = 'G' or p_to_pay_plan = 'LG' or
524: p_to_pay_plan = 'ST' ) and
525: to_number(p_occ_code) >= 2500 and
526: p_occ_code is not null then
527: hr_utility.set_message(8301, 'GHR_37208_ALL_PROCEDURE_FAIL');
528: hr_utility.set_message_token('PAY_PLAN','LG, or ST');
529:
530: hr_utility.raise_error;
531: end if;
524: p_to_pay_plan = 'ST' ) and
525: to_number(p_occ_code) >= 2500 and
526: p_occ_code is not null then
527: hr_utility.set_message(8301, 'GHR_37208_ALL_PROCEDURE_FAIL');
528: hr_utility.set_message_token('PAY_PLAN','LG, or ST');
529:
530: hr_utility.raise_error;
531: end if;
532: ELSE
526: p_occ_code is not null then
527: hr_utility.set_message(8301, 'GHR_37208_ALL_PROCEDURE_FAIL');
528: hr_utility.set_message_token('PAY_PLAN','LG, or ST');
529:
530: hr_utility.raise_error;
531: end if;
532: ELSE
533: if ( substr(p_to_pay_plan,1,1) = 'G' or
534: p_to_pay_plan = 'ST' ) and
533: if ( substr(p_to_pay_plan,1,1) = 'G' or
534: p_to_pay_plan = 'ST' ) and
535: to_number(p_occ_code) >= 2500 and
536: p_occ_code is not null then
537: hr_utility.set_message(8301, 'GHR_37208_ALL_PROCEDURE_FAIL');
538: hr_utility.set_message_token('PAY_PLAN','or ST');
539: hr_utility.raise_error;
540: end if;
541: END IF;
534: p_to_pay_plan = 'ST' ) and
535: to_number(p_occ_code) >= 2500 and
536: p_occ_code is not null then
537: hr_utility.set_message(8301, 'GHR_37208_ALL_PROCEDURE_FAIL');
538: hr_utility.set_message_token('PAY_PLAN','or ST');
539: hr_utility.raise_error;
540: end if;
541: END IF;
542:
535: to_number(p_occ_code) >= 2500 and
536: p_occ_code is not null then
537: hr_utility.set_message(8301, 'GHR_37208_ALL_PROCEDURE_FAIL');
538: hr_utility.set_message_token('PAY_PLAN','or ST');
539: hr_utility.raise_error;
540: end if;
541: END IF;
542:
543: -- 390.16.1
544: -- U58 Raju 01-jan-2010 Bug 9503972
545: IF p_effective_date < fnd_date.canonical_to_date('2010/01/01') THEN
546: if substr(p_to_pay_plan,1,1) in ('W','X', 'K') and
547: (to_number(p_occ_code) < 2499) then
548: hr_utility.set_message(8301, 'GHR_37209_ALL_PROCEDURE_FAIL');
549: hr_utility.set_message_token('PAY_PLAN','W-, X-, or K-');
550: hr_utility.raise_error;
551: end if;
552: ELSE
545: IF p_effective_date < fnd_date.canonical_to_date('2010/01/01') THEN
546: if substr(p_to_pay_plan,1,1) in ('W','X', 'K') and
547: (to_number(p_occ_code) < 2499) then
548: hr_utility.set_message(8301, 'GHR_37209_ALL_PROCEDURE_FAIL');
549: hr_utility.set_message_token('PAY_PLAN','W-, X-, or K-');
550: hr_utility.raise_error;
551: end if;
552: ELSE
553: if substr(p_to_pay_plan,1,1) in ('W') and
546: if substr(p_to_pay_plan,1,1) in ('W','X', 'K') and
547: (to_number(p_occ_code) < 2499) then
548: hr_utility.set_message(8301, 'GHR_37209_ALL_PROCEDURE_FAIL');
549: hr_utility.set_message_token('PAY_PLAN','W-, X-, or K-');
550: hr_utility.raise_error;
551: end if;
552: ELSE
553: if substr(p_to_pay_plan,1,1) in ('W') and
554: (to_number(p_occ_code) < 2499) then
551: end if;
552: ELSE
553: if substr(p_to_pay_plan,1,1) in ('W') and
554: (to_number(p_occ_code) < 2499) then
555: hr_utility.set_message(8301, 'GHR_37209_ALL_PROCEDURE_FAIL');
556: hr_utility.set_message_token('PAY_PLAN','W-');
557: hr_utility.raise_error;
558: end if;
559: END IF;
552: ELSE
553: if substr(p_to_pay_plan,1,1) in ('W') and
554: (to_number(p_occ_code) < 2499) then
555: hr_utility.set_message(8301, 'GHR_37209_ALL_PROCEDURE_FAIL');
556: hr_utility.set_message_token('PAY_PLAN','W-');
557: hr_utility.raise_error;
558: end if;
559: END IF;
560:
553: if substr(p_to_pay_plan,1,1) in ('W') and
554: (to_number(p_occ_code) < 2499) then
555: hr_utility.set_message(8301, 'GHR_37209_ALL_PROCEDURE_FAIL');
556: hr_utility.set_message_token('PAY_PLAN','W-');
557: hr_utility.raise_error;
558: end if;
559: END IF;
560:
561: -- 390.31.1
559: END IF;
560:
561: -- 390.31.1
562: if (p_occ_code = '0605' and substr(p_agency_sub,1,2) <>'VA') then
563: hr_utility.set_message(8301, 'GHR_37210_ALL_PROCEDURE_FAIL');
564: hr_utility.raise_error;
565: end if;
566:
567: -- 390.43.1
560:
561: -- 390.31.1
562: if (p_occ_code = '0605' and substr(p_agency_sub,1,2) <>'VA') then
563: hr_utility.set_message(8301, 'GHR_37210_ALL_PROCEDURE_FAIL');
564: hr_utility.raise_error;
565: end if;
566:
567: -- 390.43.1
568: --
574: and (
575: substr(p_agency_sub,1,2) <> 'DN'
576: )
577: then
578: hr_utility.set_message(8301, 'GHR_37211_ALL_PROCEDURE_FAIL');
579: hr_utility.raise_error;
580: end if;*/
581:
582: /* Commented as per December 2000 cpdf changes -- vravikan
575: substr(p_agency_sub,1,2) <> 'DN'
576: )
577: then
578: hr_utility.set_message(8301, 'GHR_37211_ALL_PROCEDURE_FAIL');
579: hr_utility.raise_error;
580: end if;*/
581:
582: /* Commented as per December 2000 cpdf changes -- vravikan
583: -- 390.44.1
588: and (
589: substr(p_agency_sub,1,2) not in ('DN', 'IN07')
590: )
591: then
592: hr_utility.set_message(8301, 'GHR_37881_ALL_PROCEDURE_FAIL');
593: hr_utility.raise_error;
594: end if;
595:
596: */
589: substr(p_agency_sub,1,2) not in ('DN', 'IN07')
590: )
591: then
592: hr_utility.set_message(8301, 'GHR_37881_ALL_PROCEDURE_FAIL');
593: hr_utility.raise_error;
594: end if;
595:
596: */
597: -- 390.45.1
604: and (
605: substr(p_agency_sub,1,2) not in ('LP')
606: )
607: then
608: hr_utility.set_message(8301, 'GHR_37678_ALL_PROCEDURE_FAIL');
609: hr_utility.raise_error;
610: end if;
611: end if;
612: end if;
605: substr(p_agency_sub,1,2) not in ('LP')
606: )
607: then
608: hr_utility.set_message(8301, 'GHR_37678_ALL_PROCEDURE_FAIL');
609: hr_utility.raise_error;
610: end if;
611: end if;
612: end if;
613:
621: and (
622: p_agency_sub not in ('CM57')
623: )
624: then
625: hr_utility.set_message(8301, 'GHR_37679_ALL_PROCEDURE_FAIL');
626: hr_utility.raise_error;
627: end if;
628: end if;
629: end if;
622: p_agency_sub not in ('CM57')
623: )
624: then
625: hr_utility.set_message(8301, 'GHR_37679_ALL_PROCEDURE_FAIL');
626: hr_utility.raise_error;
627: end if;
628: end if;
629: end if;
630: -- 390.07.2
634: if ( p_to_pay_plan = 'ST' or p_to_pay_plan ='LG' or
635: substr(p_to_pay_plan,1,1) = 'G') and
636: to_number(p_occ_code) >= 2500 and
637: p_occ_code is not null then
638: hr_utility.set_message(8301, 'GHR_37212_ALL_PROCEDURE_FAIL');
639: hr_utility.set_message_token('PAY_PLAN','ST, or LG');
640: hr_utility.raise_error;
641: end if;
642: ELSE
635: substr(p_to_pay_plan,1,1) = 'G') and
636: to_number(p_occ_code) >= 2500 and
637: p_occ_code is not null then
638: hr_utility.set_message(8301, 'GHR_37212_ALL_PROCEDURE_FAIL');
639: hr_utility.set_message_token('PAY_PLAN','ST, or LG');
640: hr_utility.raise_error;
641: end if;
642: ELSE
643: if ( p_to_pay_plan = 'ST' or
636: to_number(p_occ_code) >= 2500 and
637: p_occ_code is not null then
638: hr_utility.set_message(8301, 'GHR_37212_ALL_PROCEDURE_FAIL');
639: hr_utility.set_message_token('PAY_PLAN','ST, or LG');
640: hr_utility.raise_error;
641: end if;
642: ELSE
643: if ( p_to_pay_plan = 'ST' or
644: substr(p_to_pay_plan,1,1) = 'G') and
643: if ( p_to_pay_plan = 'ST' or
644: substr(p_to_pay_plan,1,1) = 'G') and
645: to_number(p_occ_code) >= 2500 and
646: p_occ_code is not null then
647: hr_utility.set_message(8301, 'GHR_37212_ALL_PROCEDURE_FAIL');
648: hr_utility.set_message_token('PAY_PLAN','or ST');
649: hr_utility.raise_error;
650: end if;
651: END IF;
644: substr(p_to_pay_plan,1,1) = 'G') and
645: to_number(p_occ_code) >= 2500 and
646: p_occ_code is not null then
647: hr_utility.set_message(8301, 'GHR_37212_ALL_PROCEDURE_FAIL');
648: hr_utility.set_message_token('PAY_PLAN','or ST');
649: hr_utility.raise_error;
650: end if;
651: END IF;
652:
645: to_number(p_occ_code) >= 2500 and
646: p_occ_code is not null then
647: hr_utility.set_message(8301, 'GHR_37212_ALL_PROCEDURE_FAIL');
648: hr_utility.set_message_token('PAY_PLAN','or ST');
649: hr_utility.raise_error;
650: end if;
651: END IF;
652:
653: -- 390.13.2
655: IF p_effective_date < fnd_date.canonical_to_date('2010/01/01') THEN
656: if substr(p_to_pay_plan,1,1) in ('W', 'X', 'K') and
657: to_number(p_occ_code) <= 2499 and
658: p_occ_code is not null then
659: hr_utility.set_message(8301, 'GHR_37213_ALL_PROCEDURE_FAIL');
660: hr_utility.set_message_token('PAY_PLAN','W-, X-, or K-');
661: hr_utility.raise_error;
662: end if;
663: ELSE
656: if substr(p_to_pay_plan,1,1) in ('W', 'X', 'K') and
657: to_number(p_occ_code) <= 2499 and
658: p_occ_code is not null then
659: hr_utility.set_message(8301, 'GHR_37213_ALL_PROCEDURE_FAIL');
660: hr_utility.set_message_token('PAY_PLAN','W-, X-, or K-');
661: hr_utility.raise_error;
662: end if;
663: ELSE
664: if substr(p_to_pay_plan,1,1) in ('W') and
657: to_number(p_occ_code) <= 2499 and
658: p_occ_code is not null then
659: hr_utility.set_message(8301, 'GHR_37213_ALL_PROCEDURE_FAIL');
660: hr_utility.set_message_token('PAY_PLAN','W-, X-, or K-');
661: hr_utility.raise_error;
662: end if;
663: ELSE
664: if substr(p_to_pay_plan,1,1) in ('W') and
665: to_number(p_occ_code) <= 2499 and
663: ELSE
664: if substr(p_to_pay_plan,1,1) in ('W') and
665: to_number(p_occ_code) <= 2499 and
666: p_occ_code is not null then
667: hr_utility.set_message(8301, 'GHR_37213_ALL_PROCEDURE_FAIL');
668: hr_utility.set_message_token('PAY_PLAN','W-');
669: hr_utility.raise_error;
670: end if;
671: END IF;
664: if substr(p_to_pay_plan,1,1) in ('W') and
665: to_number(p_occ_code) <= 2499 and
666: p_occ_code is not null then
667: hr_utility.set_message(8301, 'GHR_37213_ALL_PROCEDURE_FAIL');
668: hr_utility.set_message_token('PAY_PLAN','W-');
669: hr_utility.raise_error;
670: end if;
671: END IF;
672:
665: to_number(p_occ_code) <= 2499 and
666: p_occ_code is not null then
667: hr_utility.set_message(8301, 'GHR_37213_ALL_PROCEDURE_FAIL');
668: hr_utility.set_message_token('PAY_PLAN','W-');
669: hr_utility.raise_error;
670: end if;
671: END IF;
672:
673: -- 390.28.2
673: -- 390.28.2
674: if p_occ_code = '0605' and
675: substr(p_agency_sub, 1, 2) <> 'VA'
676: then
677: hr_utility.set_message(8301, 'GHR_37214_ALL_PROCEDURE_FAIL');
678: hr_utility.raise_error;
679: end if;
680:
681: /* Commented as per December 2000 cpdf changes -- vravikan
674: if p_occ_code = '0605' and
675: substr(p_agency_sub, 1, 2) <> 'VA'
676: then
677: hr_utility.set_message(8301, 'GHR_37214_ALL_PROCEDURE_FAIL');
678: hr_utility.raise_error;
679: end if;
680:
681: /* Commented as per December 2000 cpdf changes -- vravikan
682: -- 390.34.2
688: )
689: and
690: p_duty_station_lookup_code is not null
691: then
692: hr_utility.set_message(8301, 'GHR_37215_ALL_PROCEDURE_FAIL');
693: hr_utility.raise_error;
694: end if;
695:
696: */
689: and
690: p_duty_station_lookup_code is not null
691: then
692: hr_utility.set_message(8301, 'GHR_37215_ALL_PROCEDURE_FAIL');
693: hr_utility.raise_error;
694: end if;
695:
696: */
697: -- 390.40.2
704: if p_occ_code in ('2619','2806','2808','2843')
705: and
706: substr(p_agency_sub, 1, 2) <> 'DN'
707: then
708: hr_utility.set_message(8301, 'GHR_37216_ALL_PROCEDURE_FAIL');
709: hr_utility.raise_error;
710: end if;
711: end if;
712:
705: and
706: substr(p_agency_sub, 1, 2) <> 'DN'
707: then
708: hr_utility.set_message(8301, 'GHR_37216_ALL_PROCEDURE_FAIL');
709: hr_utility.raise_error;
710: end if;
711: end if;
712:
713: /* Commented as per December 2000 cpdf changes -- vravikan
718: if p_occ_code in ('2806', '2808')
719: and
720: substr(p_agency_sub, 1, 2) not in ('DN', 'IN07')
721: then
722: hr_utility.set_message(8301, 'GHR_37880_ALL_PROCEDURE_FAIL');
723: hr_utility.raise_error;
724: end if;
725:
726: */
719: and
720: substr(p_agency_sub, 1, 2) not in ('DN', 'IN07')
721: then
722: hr_utility.set_message(8301, 'GHR_37880_ALL_PROCEDURE_FAIL');
723: hr_utility.raise_error;
724: end if;
725:
726: */
727:
772: (p_to_pay_plan = 'SL' and p_pay_basis <>'PA' and p_pay_basis is not null ) or
773: (substr(p_to_pay_plan,1,1) = 'X' and p_pay_basis <> 'PH' and p_pay_basis is not null ) or
774: (p_to_pay_plan = 'ZZ' and p_pay_basis <>'WC' and p_pay_basis is not null )
775: then
776: hr_utility.set_message(8301, 'GHR_37909_ALL_PROCEDURE_FAIL');
777: hr_utility.set_message_token('PRD_LIST','A, B, E, F, U, or V');
778: hr_utility.raise_error;
779: end if;
780: end if;
773: (substr(p_to_pay_plan,1,1) = 'X' and p_pay_basis <> 'PH' and p_pay_basis is not null ) or
774: (p_to_pay_plan = 'ZZ' and p_pay_basis <>'WC' and p_pay_basis is not null )
775: then
776: hr_utility.set_message(8301, 'GHR_37909_ALL_PROCEDURE_FAIL');
777: hr_utility.set_message_token('PRD_LIST','A, B, E, F, U, or V');
778: hr_utility.raise_error;
779: end if;
780: end if;
781: elsif p_effective_date >= to_date('2001/07/01','yyyy/mm/dd') then
774: (p_to_pay_plan = 'ZZ' and p_pay_basis <>'WC' and p_pay_basis is not null )
775: then
776: hr_utility.set_message(8301, 'GHR_37909_ALL_PROCEDURE_FAIL');
777: hr_utility.set_message_token('PRD_LIST','A, B, E, F, U, or V');
778: hr_utility.raise_error;
779: end if;
780: end if;
781: elsif p_effective_date >= to_date('2001/07/01','yyyy/mm/dd') then
782: if p_pay_rate_determinant_code not in ('A','B','E','F','M','U','V') then
792: (p_to_pay_plan = 'SL' and p_pay_basis <>'PA' and p_pay_basis is not null ) or
793: (substr(p_to_pay_plan,1,1) = 'X' and p_pay_basis <> 'PH' and p_pay_basis is not null ) or
794: (p_to_pay_plan = 'ZZ' and p_pay_basis <>'WC' and p_pay_basis is not null )
795: then
796: hr_utility.set_message(8301, 'GHR_37909_ALL_PROCEDURE_FAIL');
797: hr_utility.set_message_token('PRD_LIST','A, B, E, F, M, U, or V');
798: hr_utility.raise_error;
799: end if;
800: end if;
793: (substr(p_to_pay_plan,1,1) = 'X' and p_pay_basis <> 'PH' and p_pay_basis is not null ) or
794: (p_to_pay_plan = 'ZZ' and p_pay_basis <>'WC' and p_pay_basis is not null )
795: then
796: hr_utility.set_message(8301, 'GHR_37909_ALL_PROCEDURE_FAIL');
797: hr_utility.set_message_token('PRD_LIST','A, B, E, F, M, U, or V');
798: hr_utility.raise_error;
799: end if;
800: end if;
801: else
794: (p_to_pay_plan = 'ZZ' and p_pay_basis <>'WC' and p_pay_basis is not null )
795: then
796: hr_utility.set_message(8301, 'GHR_37909_ALL_PROCEDURE_FAIL');
797: hr_utility.set_message_token('PRD_LIST','A, B, E, F, M, U, or V');
798: hr_utility.raise_error;
799: end if;
800: end if;
801: else
802: if p_pay_rate_determinant_code not in ('A','B','E','F','M','U','V') then
813: (p_to_pay_plan = 'TP' and p_pay_basis not in ('FB','PD','SY') and p_pay_basis is not null ) or
814: (substr(p_to_pay_plan,1,1) = 'X' and p_pay_basis <> 'PH' and p_pay_basis is not null ) or
815: (p_to_pay_plan = 'ZZ' and p_pay_basis <>'WC' and p_pay_basis is not null )
816: then
817: hr_utility.set_message(8301, 'GHR_37217_ALL_PROCEDURE_FAIL');
818: hr_utility.raise_error;
819: end if;
820: end if;
821: end if;
814: (substr(p_to_pay_plan,1,1) = 'X' and p_pay_basis <> 'PH' and p_pay_basis is not null ) or
815: (p_to_pay_plan = 'ZZ' and p_pay_basis <>'WC' and p_pay_basis is not null )
816: then
817: hr_utility.set_message(8301, 'GHR_37217_ALL_PROCEDURE_FAIL');
818: hr_utility.raise_error;
819: end if;
820: end if;
821: end if;
822:
837: p_agency_subelement in ('TRAJ','TR35')
838: ) and
839: to_number(p_basic_pay) >max_per_diem
840: then
841: hr_utility.set_message(8301, 'GHR_37219_ALL_PROCEDURE_FAIL');
842: hr_utility.raise_error;
843: end if;*/
844:
845: /*410.07.3 If pay basis is PA, PH, PM, BW, or WC,
838: ) and
839: to_number(p_basic_pay) >max_per_diem
840: then
841: hr_utility.set_message(8301, 'GHR_37219_ALL_PROCEDURE_FAIL');
842: hr_utility.raise_error;
843: end if;*/
844:
845: /*410.07.3 If pay basis is PA, PH, PM, BW, or WC,
846: Then basic pay must not be greater than the maximum
893: close c_fw_pay_plans;
894:
895: if l_basic_pay > max_basic_pay
896: then
897: hr_utility.set_message(8301, 'GHR_37218_ALL_PROCEDURE_FAIL');
898: hr_utility.raise_error;
899: end if;
900: end if;
901: end if;
894:
895: if l_basic_pay > max_basic_pay
896: then
897: hr_utility.set_message(8301, 'GHR_37218_ALL_PROCEDURE_FAIL');
898: hr_utility.raise_error;
899: end if;
900: end if;
901: end if;
902:
943: close c_fw_pay_plans;
944: -- Bug 4089960
945:
946: if ( l_basic_pay NOT BETWEEN min_basic_pay and max_basic_pay ) then
947: hr_utility.set_message(8301, 'GHR_38917_ALL_PROCEDURE_FAIL');
948: hr_utility.raise_error;
949: end if;
950: end if;
951: end if;
944: -- Bug 4089960
945:
946: if ( l_basic_pay NOT BETWEEN min_basic_pay and max_basic_pay ) then
947: hr_utility.set_message(8301, 'GHR_38917_ALL_PROCEDURE_FAIL');
948: hr_utility.raise_error;
949: end if;
950: end if;
951: end if;
952: End if; -- Check for Pay Plan AD
972: l_basic_pay := to_number(p_basic_pay);
973: end if;
974: close c_fw_pay_plans;
975: if ( l_basic_pay NOT BETWEEN min_basic_pay and max_basic_pay ) then
976: hr_utility.set_message(8301, 'GHR_38554_ALL_PROCEDURE_FAIL');
977: hr_utility.set_message_token('PAY_BASIS','BW, PA, PD, PH, or WC');
978: hr_utility.raise_error;
979: end if;
980: end if;
973: end if;
974: close c_fw_pay_plans;
975: if ( l_basic_pay NOT BETWEEN min_basic_pay and max_basic_pay ) then
976: hr_utility.set_message(8301, 'GHR_38554_ALL_PROCEDURE_FAIL');
977: hr_utility.set_message_token('PAY_BASIS','BW, PA, PD, PH, or WC');
978: hr_utility.raise_error;
979: end if;
980: end if;
981: end if;
974: close c_fw_pay_plans;
975: if ( l_basic_pay NOT BETWEEN min_basic_pay and max_basic_pay ) then
976: hr_utility.set_message(8301, 'GHR_38554_ALL_PROCEDURE_FAIL');
977: hr_utility.set_message_token('PAY_BASIS','BW, PA, PD, PH, or WC');
978: hr_utility.raise_error;
979: end if;
980: end if;
981: end if;
982: End if; -- Check for Pay Plan AD
1002: l_basic_pay := to_number(p_basic_pay);
1003: end if;
1004: close c_fw_pay_plans;
1005: if ( l_basic_pay NOT BETWEEN min_basic_pay and max_basic_pay ) then
1006: hr_utility.set_message(8301, 'GHR_38554_ALL_PROCEDURE_FAIL');
1007: hr_utility.set_message_token('PAY_BASIS','BW, PA, PD, PH, PM, or WC');
1008: hr_utility.raise_error;
1009: end if;
1010: end if;
1003: end if;
1004: close c_fw_pay_plans;
1005: if ( l_basic_pay NOT BETWEEN min_basic_pay and max_basic_pay ) then
1006: hr_utility.set_message(8301, 'GHR_38554_ALL_PROCEDURE_FAIL');
1007: hr_utility.set_message_token('PAY_BASIS','BW, PA, PD, PH, PM, or WC');
1008: hr_utility.raise_error;
1009: end if;
1010: end if;
1011: end if;
1004: close c_fw_pay_plans;
1005: if ( l_basic_pay NOT BETWEEN min_basic_pay and max_basic_pay ) then
1006: hr_utility.set_message(8301, 'GHR_38554_ALL_PROCEDURE_FAIL');
1007: hr_utility.set_message_token('PAY_BASIS','BW, PA, PD, PH, PM, or WC');
1008: hr_utility.raise_error;
1009: end if;
1010: end if;
1011: end if;
1012: End if; -- Check for Pay Plan AD
1051: end if;
1052: close c_fw_pay_plans;
1053:
1054: if l_basic_pay > max_basic_pay then
1055: hr_utility.set_message(8301, 'GHR_37220_ALL_PROCEDURE_FAIL');
1056: hr_utility.raise_error;
1057: end if;
1058: end if;
1059: end if; */
1052: close c_fw_pay_plans;
1053:
1054: if l_basic_pay > max_basic_pay then
1055: hr_utility.set_message(8301, 'GHR_37220_ALL_PROCEDURE_FAIL');
1056: hr_utility.raise_error;
1057: end if;
1058: end if;
1059: end if; */
1060:
1086: and p_to_grade_or_level not in
1087: ('01', '02', '03', '04', '05', '06', '07', '08',
1088: '09', '10', '11', '12', '13', '14', '15')
1089: and p_to_grade_or_level is not null then
1090: hr_utility.set_message(8301, 'GHR_37221_ALL_PROCEDURE_FAIL');
1091: hr_utility.set_message_token('PAY_PLAN','CG,MG,WL, or XG');
1092: hr_utility.raise_error;
1093: end if;
1094: ELSIF p_effective_date < fnd_date.canonical_to_date('2010/01/01') THEN
1087: ('01', '02', '03', '04', '05', '06', '07', '08',
1088: '09', '10', '11', '12', '13', '14', '15')
1089: and p_to_grade_or_level is not null then
1090: hr_utility.set_message(8301, 'GHR_37221_ALL_PROCEDURE_FAIL');
1091: hr_utility.set_message_token('PAY_PLAN','CG,MG,WL, or XG');
1092: hr_utility.raise_error;
1093: end if;
1094: ELSIF p_effective_date < fnd_date.canonical_to_date('2010/01/01') THEN
1095: if p_to_pay_plan in ( 'CG','WL','XG' )
1088: '09', '10', '11', '12', '13', '14', '15')
1089: and p_to_grade_or_level is not null then
1090: hr_utility.set_message(8301, 'GHR_37221_ALL_PROCEDURE_FAIL');
1091: hr_utility.set_message_token('PAY_PLAN','CG,MG,WL, or XG');
1092: hr_utility.raise_error;
1093: end if;
1094: ELSIF p_effective_date < fnd_date.canonical_to_date('2010/01/01') THEN
1095: if p_to_pay_plan in ( 'CG','WL','XG' )
1096: and p_to_grade_or_level not in
1096: and p_to_grade_or_level not in
1097: ('01', '02', '03', '04', '05', '06', '07', '08',
1098: '09', '10', '11', '12', '13', '14', '15')
1099: and p_to_grade_or_level is not null then
1100: hr_utility.set_message(8301, 'GHR_37221_ALL_PROCEDURE_FAIL');
1101: hr_utility.set_message_token('PAY_PLAN','CG,WL, or XG');
1102: hr_utility.raise_error;
1103: end if;
1104: else
1097: ('01', '02', '03', '04', '05', '06', '07', '08',
1098: '09', '10', '11', '12', '13', '14', '15')
1099: and p_to_grade_or_level is not null then
1100: hr_utility.set_message(8301, 'GHR_37221_ALL_PROCEDURE_FAIL');
1101: hr_utility.set_message_token('PAY_PLAN','CG,WL, or XG');
1102: hr_utility.raise_error;
1103: end if;
1104: else
1105: if p_to_pay_plan in ( 'WL' )
1098: '09', '10', '11', '12', '13', '14', '15')
1099: and p_to_grade_or_level is not null then
1100: hr_utility.set_message(8301, 'GHR_37221_ALL_PROCEDURE_FAIL');
1101: hr_utility.set_message_token('PAY_PLAN','CG,WL, or XG');
1102: hr_utility.raise_error;
1103: end if;
1104: else
1105: if p_to_pay_plan in ( 'WL' )
1106: and p_to_grade_or_level not in
1106: and p_to_grade_or_level not in
1107: ('01', '02', '03', '04', '05', '06', '07', '08',
1108: '09', '10', '11', '12', '13', '14', '15')
1109: and p_to_grade_or_level is not null then
1110: hr_utility.set_message(8301, 'GHR_37221_ALL_PROCEDURE_FAIL');
1111: hr_utility.set_message_token('PAY_PLAN','WL');
1112: hr_utility.raise_error;
1113: end if;
1114: end if;
1107: ('01', '02', '03', '04', '05', '06', '07', '08',
1108: '09', '10', '11', '12', '13', '14', '15')
1109: and p_to_grade_or_level is not null then
1110: hr_utility.set_message(8301, 'GHR_37221_ALL_PROCEDURE_FAIL');
1111: hr_utility.set_message_token('PAY_PLAN','WL');
1112: hr_utility.raise_error;
1113: end if;
1114: end if;
1115:
1108: '09', '10', '11', '12', '13', '14', '15')
1109: and p_to_grade_or_level is not null then
1110: hr_utility.set_message(8301, 'GHR_37221_ALL_PROCEDURE_FAIL');
1111: hr_utility.set_message_token('PAY_PLAN','WL');
1112: hr_utility.raise_error;
1113: end if;
1114: end if;
1115:
1116: -- 420.04.3
1120: p_to_grade_or_level not in
1121: ('01', '02', '03', '04', '05', '06', '07', '08', '09', '10',
1122: '11', '12', '13', '14', '15', '16', '17', '18', '19') and
1123: p_to_grade_or_level is not null then
1124: hr_utility.set_message(8301, 'GHR_37222_ALL_PROCEDURE_FAIL');
1125: hr_utility.set_message_token('PAY_PLAN','WS, or XH');
1126: hr_utility.raise_error;
1127: end if;
1128: ELSE
1121: ('01', '02', '03', '04', '05', '06', '07', '08', '09', '10',
1122: '11', '12', '13', '14', '15', '16', '17', '18', '19') and
1123: p_to_grade_or_level is not null then
1124: hr_utility.set_message(8301, 'GHR_37222_ALL_PROCEDURE_FAIL');
1125: hr_utility.set_message_token('PAY_PLAN','WS, or XH');
1126: hr_utility.raise_error;
1127: end if;
1128: ELSE
1129: if (p_to_pay_plan = 'WS') and
1122: '11', '12', '13', '14', '15', '16', '17', '18', '19') and
1123: p_to_grade_or_level is not null then
1124: hr_utility.set_message(8301, 'GHR_37222_ALL_PROCEDURE_FAIL');
1125: hr_utility.set_message_token('PAY_PLAN','WS, or XH');
1126: hr_utility.raise_error;
1127: end if;
1128: ELSE
1129: if (p_to_pay_plan = 'WS') and
1130: p_to_grade_or_level not in
1130: p_to_grade_or_level not in
1131: ('01', '02', '03', '04', '05', '06', '07', '08', '09', '10',
1132: '11', '12', '13', '14', '15', '16', '17', '18', '19') and
1133: p_to_grade_or_level is not null then
1134: hr_utility.set_message(8301, 'GHR_37222_ALL_PROCEDURE_FAIL');
1135: hr_utility.set_message_token('PAY_PLAN','WS');
1136: hr_utility.raise_error;
1137: end if;
1138: END IF;
1131: ('01', '02', '03', '04', '05', '06', '07', '08', '09', '10',
1132: '11', '12', '13', '14', '15', '16', '17', '18', '19') and
1133: p_to_grade_or_level is not null then
1134: hr_utility.set_message(8301, 'GHR_37222_ALL_PROCEDURE_FAIL');
1135: hr_utility.set_message_token('PAY_PLAN','WS');
1136: hr_utility.raise_error;
1137: end if;
1138: END IF;
1139:
1132: '11', '12', '13', '14', '15', '16', '17', '18', '19') and
1133: p_to_grade_or_level is not null then
1134: hr_utility.set_message(8301, 'GHR_37222_ALL_PROCEDURE_FAIL');
1135: hr_utility.set_message_token('PAY_PLAN','WS');
1136: hr_utility.raise_error;
1137: end if;
1138: END IF;
1139:
1140: -- 420.07.3
1146: '01', '02', '03', '04', '13', '14')
1147: and
1148: p_to_grade_or_level is not null
1149: then
1150: hr_utility.set_message(8301, 'GHR_37223_ALL_PROCEDURE_FAIL');
1151: hr_utility.raise_error;
1152: end if;
1153: end if;
1154: -- 420.10.3
1147: and
1148: p_to_grade_or_level is not null
1149: then
1150: hr_utility.set_message(8301, 'GHR_37223_ALL_PROCEDURE_FAIL');
1151: hr_utility.raise_error;
1152: end if;
1153: end if;
1154: -- 420.10.3
1155: -- removed pay plan 'CY'
1160: '11', '12', '13', '14', '15', '16', '17')
1161: and
1162: p_to_grade_or_level is not null
1163: then
1164: hr_utility.set_message(8301, 'GHR_37224_ALL_PROCEDURE_FAIL');
1165: hr_utility.raise_error;
1166: end if;
1167: end if;
1168: -- 420.11.3
1161: and
1162: p_to_grade_or_level is not null
1163: then
1164: hr_utility.set_message(8301, 'GHR_37224_ALL_PROCEDURE_FAIL');
1165: hr_utility.raise_error;
1166: end if;
1167: end if;
1168: -- 420.11.3
1169: -- added for the april release as per update 6 manual
1174: '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24')
1175: and
1176: p_to_grade_or_level is not null
1177: then
1178: hr_utility.set_message(8301, 'GHR_37882_ALL_PROCEDURE_FAIL');
1179: hr_utility.raise_error;
1180: end if;
1181: end if;
1182:
1175: and
1176: p_to_grade_or_level is not null
1177: then
1178: hr_utility.set_message(8301, 'GHR_37882_ALL_PROCEDURE_FAIL');
1179: hr_utility.raise_error;
1180: end if;
1181: end if;
1182:
1183: -- 420.13.3
1185: p_to_grade_or_level not in ( '13', '14', '15')
1186: and
1187: p_to_grade_or_level is not null
1188: then
1189: hr_utility.set_message(8301, 'GHR_37225_ALL_PROCEDURE_FAIL');
1190: hr_utility.raise_error;
1191: end if;
1192:
1193: -- 420.16.3
1186: and
1187: p_to_grade_or_level is not null
1188: then
1189: hr_utility.set_message(8301, 'GHR_37225_ALL_PROCEDURE_FAIL');
1190: hr_utility.raise_error;
1191: end if;
1192:
1193: -- 420.16.3
1194: if p_to_pay_plan = 'GS' and
1196: '09', '10', '11', '12', '13', '14', '15')
1197: and
1198: p_to_grade_or_level is not null
1199: then
1200: hr_utility.set_message(8301, 'GHR_37226_ALL_PROCEDURE_FAIL');
1201: hr_utility.raise_error;
1202: end if;
1203:
1204: -- 420.17.3
1197: and
1198: p_to_grade_or_level is not null
1199: then
1200: hr_utility.set_message(8301, 'GHR_37226_ALL_PROCEDURE_FAIL');
1201: hr_utility.raise_error;
1202: end if;
1203:
1204: -- 420.17.3
1205: --
1210: if p_effective_date >= fnd_date.canonical_to_date('1998/03/01') then
1211: if p_to_pay_plan in ('NH', 'NJ') and
1212: p_to_grade_or_level not in ('01', '02', '03', '04') and
1213: p_to_grade_or_level is not null then
1214: hr_utility.set_message(8301, 'GHR_37877_ALL_PROCEDURE_FAIL');
1215: hr_utility.raise_error;
1216: end if;
1217: end if;
1218: end if;
1211: if p_to_pay_plan in ('NH', 'NJ') and
1212: p_to_grade_or_level not in ('01', '02', '03', '04') and
1213: p_to_grade_or_level is not null then
1214: hr_utility.set_message(8301, 'GHR_37877_ALL_PROCEDURE_FAIL');
1215: hr_utility.raise_error;
1216: end if;
1217: end if;
1218: end if;
1219:
1226: if p_effective_date >= fnd_date.canonical_to_date('1998/03/01') then
1227: if p_to_pay_plan = 'NK' and
1228: p_to_grade_or_level not in ('01', '02', '03') and
1229: p_to_grade_or_level is not null then
1230: hr_utility.set_message(8301, 'GHR_37878_ALL_PROCEDURE_FAIL');
1231: hr_utility.raise_error;
1232: end if;
1233: end if;
1234: end if;
1227: if p_to_pay_plan = 'NK' and
1228: p_to_grade_or_level not in ('01', '02', '03') and
1229: p_to_grade_or_level is not null then
1230: hr_utility.set_message(8301, 'GHR_37878_ALL_PROCEDURE_FAIL');
1231: hr_utility.raise_error;
1232: end if;
1233: end if;
1234: end if;
1235:
1246: if p_to_pay_plan = 'FV' and
1247: p_to_grade_or_level not in ('AA','BB','CC','DD','EE','FF','GG','HH','II',
1248: 'JJ','KK','LL','MM') and
1249: p_to_grade_or_level is not null then
1250: hr_utility.set_message(8301, 'GHR_37030_ALL_PROCEDURE_FAIL');
1251: hr_utility.raise_error;
1252: end if;
1253: end if;
1254: end if;
1247: p_to_grade_or_level not in ('AA','BB','CC','DD','EE','FF','GG','HH','II',
1248: 'JJ','KK','LL','MM') and
1249: p_to_grade_or_level is not null then
1250: hr_utility.set_message(8301, 'GHR_37030_ALL_PROCEDURE_FAIL');
1251: hr_utility.raise_error;
1252: end if;
1253: end if;
1254: end if;
1255: -- 420.21.1
1263: if p_effective_date >= fnd_date.canonical_to_date('1998/10/01') then
1264: if p_to_pay_plan = 'JA' and
1265: p_to_grade_or_level not in ('01', '02', '03','04') and
1266: p_to_grade_or_level is not null then
1267: hr_utility.set_message(8301, 'GHR_37056_ALL_PROCEDURE_FAIL');
1268: hr_utility.raise_error;
1269: end if;
1270: end if;
1271: end if;
1264: if p_to_pay_plan = 'JA' and
1265: p_to_grade_or_level not in ('01', '02', '03','04') and
1266: p_to_grade_or_level is not null then
1267: hr_utility.set_message(8301, 'GHR_37056_ALL_PROCEDURE_FAIL');
1268: hr_utility.raise_error;
1269: end if;
1270: end if;
1271: end if;
1272:
1281: if p_effective_date >= fnd_date.canonical_to_date('1998/10/01') then
1282: if p_to_pay_plan = 'EV' and
1283: p_to_grade_or_level not in ('01', '02', '03') and
1284: p_to_grade_or_level is not null then
1285: hr_utility.set_message(8301, 'GHR_37032_ALL_PROCEDURE_FAIL');
1286: hr_utility.raise_error;
1287: end if;
1288: end if;
1289: end if;
1282: if p_to_pay_plan = 'EV' and
1283: p_to_grade_or_level not in ('01', '02', '03') and
1284: p_to_grade_or_level is not null then
1285: hr_utility.set_message(8301, 'GHR_37032_ALL_PROCEDURE_FAIL');
1286: hr_utility.raise_error;
1287: end if;
1288: end if;
1289: end if;
1290:
1294: IF p_effective_date < fnd_date.canonical_to_date('2003/01/01') then --Bug# 5073313
1295: if p_to_pay_plan = 'VM' and
1296: p_to_grade_or_level not in ('11', '12', '13', '14', '15', '96', '97') and
1297: p_to_grade_or_level is not null then
1298: hr_utility.set_message(8301, 'GHR_37227_ALL_PROCEDURE_FAIL');
1299: hr_utility.raise_error;
1300: end if;
1301: END IF;
1302: -- 420.23.3
1295: if p_to_pay_plan = 'VM' and
1296: p_to_grade_or_level not in ('11', '12', '13', '14', '15', '96', '97') and
1297: p_to_grade_or_level is not null then
1298: hr_utility.set_message(8301, 'GHR_37227_ALL_PROCEDURE_FAIL');
1299: hr_utility.raise_error;
1300: end if;
1301: END IF;
1302: -- 420.23.3
1303: -- Update/Change Date By Effective Date Comment
1311: p_to_grade_or_level not in ('01','02','03','04','05','06','07','08')
1312: and
1313: p_to_grade_or_level is not null
1314: then
1315: hr_utility.set_message(8301, 'GHR_37059_ALL_PROCEDURE_FAIL');
1316: hr_utility.raise_error;
1317: end if;
1318: end if;
1319: end if;
1312: and
1313: p_to_grade_or_level is not null
1314: then
1315: hr_utility.set_message(8301, 'GHR_37059_ALL_PROCEDURE_FAIL');
1316: hr_utility.raise_error;
1317: end if;
1318: end if;
1319: end if;
1320:
1326: '09', '11', '12', '13', '14', '15')
1327: and
1328: p_to_grade_or_level is not null
1329: then
1330: hr_utility.set_message(8301, 'GHR_37228_ALL_PROCEDURE_FAIL');
1331: hr_utility.raise_error;
1332: end if;
1333: end if;
1334: -- 420.28.3
1327: and
1328: p_to_grade_or_level is not null
1329: then
1330: hr_utility.set_message(8301, 'GHR_37228_ALL_PROCEDURE_FAIL');
1331: hr_utility.raise_error;
1332: end if;
1333: end if;
1334: -- 420.28.3
1335: if p_to_pay_plan = 'VP' and
1336: p_to_grade_or_level not in ('11', '12', '13', '14', '15')
1337: and
1338: p_to_grade_or_level is not null
1339: then
1340: hr_utility.set_message(8301, 'GHR_37229_ALL_PROCEDURE_FAIL');
1341: hr_utility.raise_error;
1342: end if;
1343:
1344: -- 420.31.3
1337: and
1338: p_to_grade_or_level is not null
1339: then
1340: hr_utility.set_message(8301, 'GHR_37229_ALL_PROCEDURE_FAIL');
1341: hr_utility.raise_error;
1342: end if;
1343:
1344: -- 420.31.3
1345: -- U58 Raju 01-jan-2010 Bug 9503972
1348: p_to_grade_or_level not in
1349: ('01', '02', '03', '04', '05', '06', '07', '08',
1350: '09', '10', '11', '12', '13', '14', '15') and
1351: p_to_grade_or_level is not null then
1352: hr_utility.set_message(8301, 'GHR_37230_ALL_PROCEDURE_FAIL');
1353: hr_utility.set_message_token('PAY_PLAN','WG or XF');
1354: hr_utility.raise_error;
1355: end if;
1356: ELSE
1349: ('01', '02', '03', '04', '05', '06', '07', '08',
1350: '09', '10', '11', '12', '13', '14', '15') and
1351: p_to_grade_or_level is not null then
1352: hr_utility.set_message(8301, 'GHR_37230_ALL_PROCEDURE_FAIL');
1353: hr_utility.set_message_token('PAY_PLAN','WG or XF');
1354: hr_utility.raise_error;
1355: end if;
1356: ELSE
1357: if (p_to_pay_plan = 'WG') and
1350: '09', '10', '11', '12', '13', '14', '15') and
1351: p_to_grade_or_level is not null then
1352: hr_utility.set_message(8301, 'GHR_37230_ALL_PROCEDURE_FAIL');
1353: hr_utility.set_message_token('PAY_PLAN','WG or XF');
1354: hr_utility.raise_error;
1355: end if;
1356: ELSE
1357: if (p_to_pay_plan = 'WG') and
1358: p_to_grade_or_level not in
1358: p_to_grade_or_level not in
1359: ('01', '02', '03', '04', '05', '06', '07', '08',
1360: '09', '10', '11', '12', '13', '14', '15') and
1361: p_to_grade_or_level is not null then
1362: hr_utility.set_message(8301, 'GHR_37230_ALL_PROCEDURE_FAIL');
1363: hr_utility.set_message_token('PAY_PLAN','WG');
1364: hr_utility.raise_error;
1365: end if;
1366: END IF;
1359: ('01', '02', '03', '04', '05', '06', '07', '08',
1360: '09', '10', '11', '12', '13', '14', '15') and
1361: p_to_grade_or_level is not null then
1362: hr_utility.set_message(8301, 'GHR_37230_ALL_PROCEDURE_FAIL');
1363: hr_utility.set_message_token('PAY_PLAN','WG');
1364: hr_utility.raise_error;
1365: end if;
1366: END IF;
1367:
1360: '09', '10', '11', '12', '13', '14', '15') and
1361: p_to_grade_or_level is not null then
1362: hr_utility.set_message(8301, 'GHR_37230_ALL_PROCEDURE_FAIL');
1363: hr_utility.set_message_token('PAY_PLAN','WG');
1364: hr_utility.raise_error;
1365: end if;
1366: END IF;
1367:
1368: -- 420.34.3
1370: p_to_grade_or_level not in ('01', '02', '03', '04', '05')
1371: and
1372: p_to_grade_or_level is not null
1373: then
1374: hr_utility.set_message(8301, 'GHR_37231_ALL_PROCEDURE_FAIL');
1375: hr_utility.raise_error;
1376: end if;
1377:
1378: /* Commenting the edit as per Sept.2000 patch -- refer to doc cpdf_edits_00_sep.doc
1371: and
1372: p_to_grade_or_level is not null
1373: then
1374: hr_utility.set_message(8301, 'GHR_37231_ALL_PROCEDURE_FAIL');
1375: hr_utility.raise_error;
1376: end if;
1377:
1378: /* Commenting the edit as per Sept.2000 patch -- refer to doc cpdf_edits_00_sep.doc
1379: -- 420.37.3
1385: '22', '23', '24', '25')
1386: and
1387: p_to_grade_or_level is not null
1388: then
1389: hr_utility.set_message(8301, 'GHR_37232_ALL_PROCEDURE_FAIL');
1390: hr_utility.raise_error;
1391: end if;
1392: */
1393:
1386: and
1387: p_to_grade_or_level is not null
1388: then
1389: hr_utility.set_message(8301, 'GHR_37232_ALL_PROCEDURE_FAIL');
1390: hr_utility.raise_error;
1391: end if;
1392: */
1393:
1394: -- 420.40.3
1397: if p_to_pay_plan = 'DR' and
1398: p_to_grade_or_level not in ('01', '02', '03', '04') and
1399: p_to_grade_or_level is not null
1400: then
1401: hr_utility.set_message(8301, 'GHR_37271_ALL_PROCEDURE_FAIL');
1402: hr_utility.raise_error;
1403: end if;
1404: end if;
1405:
1398: p_to_grade_or_level not in ('01', '02', '03', '04') and
1399: p_to_grade_or_level is not null
1400: then
1401: hr_utility.set_message(8301, 'GHR_37271_ALL_PROCEDURE_FAIL');
1402: hr_utility.raise_error;
1403: end if;
1404: end if;
1405:
1406: -- 420.41.3
1412: '05', '06')
1413: and
1414: p_to_grade_or_level is not null
1415: then
1416: hr_utility.set_message(8301, 'GHR_37269_ALL_PROCEDURE_FAIL');
1417: hr_utility.raise_error;
1418: end if;
1419: end if;
1420: -- 420.42.3
1413: and
1414: p_to_grade_or_level is not null
1415: then
1416: hr_utility.set_message(8301, 'GHR_37269_ALL_PROCEDURE_FAIL');
1417: hr_utility.raise_error;
1418: end if;
1419: end if;
1420: -- 420.42.3
1421: -- UPD 56 (Bug# 8309414) Terminating the edit eff date 13-Aug-2007
1426: '05')
1427: and
1428: p_to_grade_or_level is not null
1429: then
1430: hr_utility.set_message(8301, 'GHR_37270_ALL_PROCEDURE_FAIL');
1431: hr_utility.raise_error;
1432: end if;
1433: end if;
1434:
1427: and
1428: p_to_grade_or_level is not null
1429: then
1430: hr_utility.set_message(8301, 'GHR_37270_ALL_PROCEDURE_FAIL');
1431: hr_utility.raise_error;
1432: end if;
1433: end if;
1434:
1435: -- 420.44.3
1438: '05', '06', '07', '08')
1439: and
1440: p_to_grade_or_level is not null
1441: then
1442: hr_utility.set_message(8301, 'GHR_37233_ALL_PROCEDURE_FAIL');
1443: hr_utility.raise_error;
1444: end if;
1445:
1446: -- 420.45.3
1439: and
1440: p_to_grade_or_level is not null
1441: then
1442: hr_utility.set_message(8301, 'GHR_37233_ALL_PROCEDURE_FAIL');
1443: hr_utility.raise_error;
1444: end if;
1445:
1446: -- 420.45.3
1447: -- U58 Raju 01-jan-2010 Bug 9503972
1450: p_to_grade_or_level not in ('01', '02', '03', '04', '05',
1451: '06', '07', '08', '09', 'AA',
1452: 'BB', 'CC', 'DD', 'EE') and
1453: p_to_grade_or_level is not null then
1454: hr_utility.set_message(8301, 'GHR_37234_ALL_PROCEDURE_FAIL');
1455: hr_utility.set_message_token('PAY_PLAN',', AA through EE');
1456: hr_utility.raise_error;
1457: end if;
1458: ELSE
1451: '06', '07', '08', '09', 'AA',
1452: 'BB', 'CC', 'DD', 'EE') and
1453: p_to_grade_or_level is not null then
1454: hr_utility.set_message(8301, 'GHR_37234_ALL_PROCEDURE_FAIL');
1455: hr_utility.set_message_token('PAY_PLAN',', AA through EE');
1456: hr_utility.raise_error;
1457: end if;
1458: ELSE
1459: if p_to_pay_plan = 'FP' and
1452: 'BB', 'CC', 'DD', 'EE') and
1453: p_to_grade_or_level is not null then
1454: hr_utility.set_message(8301, 'GHR_37234_ALL_PROCEDURE_FAIL');
1455: hr_utility.set_message_token('PAY_PLAN',', AA through EE');
1456: hr_utility.raise_error;
1457: end if;
1458: ELSE
1459: if p_to_pay_plan = 'FP' and
1460: p_to_grade_or_level not in ('01', '02', '03', '04', '05',
1459: if p_to_pay_plan = 'FP' and
1460: p_to_grade_or_level not in ('01', '02', '03', '04', '05',
1461: '06', '07', '08', '09') and
1462: p_to_grade_or_level is not null then
1463: hr_utility.set_message(8301, 'GHR_37234_ALL_PROCEDURE_FAIL');
1464: hr_utility.set_message_token('PAY_PLAN','');
1465: hr_utility.raise_error;
1466: end if;
1467: END IF;
1460: p_to_grade_or_level not in ('01', '02', '03', '04', '05',
1461: '06', '07', '08', '09') and
1462: p_to_grade_or_level is not null then
1463: hr_utility.set_message(8301, 'GHR_37234_ALL_PROCEDURE_FAIL');
1464: hr_utility.set_message_token('PAY_PLAN','');
1465: hr_utility.raise_error;
1466: end if;
1467: END IF;
1468:
1461: '06', '07', '08', '09') and
1462: p_to_grade_or_level is not null then
1463: hr_utility.set_message(8301, 'GHR_37234_ALL_PROCEDURE_FAIL');
1464: hr_utility.set_message_token('PAY_PLAN','');
1465: hr_utility.raise_error;
1466: end if;
1467: END IF;
1468:
1469: -- 420.47.3
1472: '01', '02', '03')
1473: and
1474: p_to_grade_or_level is not null
1475: then
1476: hr_utility.set_message(8301, 'GHR_37235_ALL_PROCEDURE_FAIL');
1477: hr_utility.raise_error;
1478: end if;
1479:
1480: -- 420.50.3
1473: and
1474: p_to_grade_or_level is not null
1475: then
1476: hr_utility.set_message(8301, 'GHR_37235_ALL_PROCEDURE_FAIL');
1477: hr_utility.raise_error;
1478: end if;
1479:
1480: -- 420.50.3
1481: -- U58 Raju 31-Dec-2009 Bug 9503972 Terminate the Edit
1482: if p_effective_date < fnd_date.canonical_to_date('2009/12/31') then
1483: if p_to_pay_plan = 'AF' and
1484: p_to_grade_or_level not in ('AA', 'BB', 'CC', 'DD', 'EE') and
1485: p_to_grade_or_level is not null then
1486: hr_utility.set_message(8301, 'GHR_37236_ALL_PROCEDURE_FAIL');
1487: hr_utility.raise_error;
1488: end if;
1489: end if;
1490:
1483: if p_to_pay_plan = 'AF' and
1484: p_to_grade_or_level not in ('AA', 'BB', 'CC', 'DD', 'EE') and
1485: p_to_grade_or_level is not null then
1486: hr_utility.set_message(8301, 'GHR_37236_ALL_PROCEDURE_FAIL');
1487: hr_utility.raise_error;
1488: end if;
1489: end if;
1490:
1491: -- 420.51.3
1495: p_to_grade_or_level not in ('13', '14','15')
1496: and
1497: p_to_grade_or_level is not null
1498: then
1499: hr_utility.set_message(8301, 'GHR_37237_ALL_PROCEDURE_FAIL');
1500: hr_utility.raise_error;
1501: end if;
1502: end if;
1503:
1496: and
1497: p_to_grade_or_level is not null
1498: then
1499: hr_utility.set_message(8301, 'GHR_37237_ALL_PROCEDURE_FAIL');
1500: hr_utility.raise_error;
1501: end if;
1502: end if;
1503:
1504: -- 420.52.3
1509: '07', '08', '09', '10','11', '12', '13', '14', '15')
1510: and
1511: p_to_grade_or_level is not null
1512: then
1513: hr_utility.set_message(8301, 'GHR_37238_ALL_PROCEDURE_FAIL');
1514: hr_utility.raise_error;
1515: end if;
1516: end if;
1517:
1510: and
1511: p_to_grade_or_level is not null
1512: then
1513: hr_utility.set_message(8301, 'GHR_37238_ALL_PROCEDURE_FAIL');
1514: hr_utility.raise_error;
1515: end if;
1516: end if;
1517:
1518: -- 420.53.3
1523: '09', '10', '11', '12', '13', '14')
1524: and
1525: p_to_grade_or_level is not null
1526: then
1527: hr_utility.set_message(8301, 'GHR_37239_ALL_PROCEDURE_FAIL');
1528: hr_utility.raise_error;
1529: end if;
1530: end if;
1531:
1524: and
1525: p_to_grade_or_level is not null
1526: then
1527: hr_utility.set_message(8301, 'GHR_37239_ALL_PROCEDURE_FAIL');
1528: hr_utility.raise_error;
1529: end if;
1530: end if;
1531:
1532: -- 420.55.3
1534: p_to_grade_or_level not in ('01', '02', '03')
1535: and
1536: p_to_grade_or_level is not null
1537: then
1538: hr_utility.set_message(8301, 'GHR_37240_ALL_PROCEDURE_FAIL');
1539: hr_utility.raise_error;
1540: end if;
1541:
1542: -- 420.59.2
1535: and
1536: p_to_grade_or_level is not null
1537: then
1538: hr_utility.set_message(8301, 'GHR_37240_ALL_PROCEDURE_FAIL');
1539: hr_utility.raise_error;
1540: end if;
1541:
1542: -- 420.59.2
1543: if (
1552: '08', '09', '10', '11')
1553: and
1554: p_to_grade_or_level is not null
1555: then
1556: hr_utility.set_message(8301, 'GHR_37241_ALL_PROCEDURE_FAIL');
1557: hr_utility.raise_error;
1558: end if;
1559:
1560: -- 420.60.3
1553: and
1554: p_to_grade_or_level is not null
1555: then
1556: hr_utility.set_message(8301, 'GHR_37241_ALL_PROCEDURE_FAIL');
1557: hr_utility.raise_error;
1558: end if;
1559:
1560: -- 420.60.3
1561: -- UPD 56 (Bug# 8309414) Terminating the edit eff date 13-Aug-2007
1564: p_to_grade_or_level <>'00'
1565: and
1566: p_to_grade_or_level is not null
1567: then
1568: hr_utility.set_message(8301, 'GHR_37242_ALL_PROCEDURE_FAIL');
1569: hr_utility.raise_error;
1570: end if;
1571: end if;
1572:
1565: and
1566: p_to_grade_or_level is not null
1567: then
1568: hr_utility.set_message(8301, 'GHR_37242_ALL_PROCEDURE_FAIL');
1569: hr_utility.raise_error;
1570: end if;
1571: end if;
1572:
1573: -- 420.65.3
1576: ('01', '02', '03', '04', '05', '06', '07', '08',
1577: '09', '10', '11', '12', '13', '14', '15', 'SL') or
1578: p_to_grade_or_level is null)
1579: then
1580: hr_utility.set_message(8301, 'GHR_37243_ALL_PROCEDURE_FAIL');
1581: hr_utility.raise_error;
1582: end if;
1583:
1584: -- 420.70.3
1577: '09', '10', '11', '12', '13', '14', '15', 'SL') or
1578: p_to_grade_or_level is null)
1579: then
1580: hr_utility.set_message(8301, 'GHR_37243_ALL_PROCEDURE_FAIL');
1581: hr_utility.raise_error;
1582: end if;
1583:
1584: -- 420.70.3
1585: if p_to_pay_plan = 'GH' and
1585: if p_to_pay_plan = 'GH' and
1586: not (p_to_grade_or_level in ('13', '14', '15') or
1587: p_to_grade_or_level is null)
1588: then
1589: hr_utility.set_message(8301, 'GHR_37244_ALL_PROCEDURE_FAIL');
1590: hr_utility.raise_error;
1591: end if;
1592:
1593: -- 420.73.3
1586: not (p_to_grade_or_level in ('13', '14', '15') or
1587: p_to_grade_or_level is null)
1588: then
1589: hr_utility.set_message(8301, 'GHR_37244_ALL_PROCEDURE_FAIL');
1590: hr_utility.raise_error;
1591: end if;
1592:
1593: -- 420.73.3
1594: -- UPD 56 (Bug# 8309414) Terminating the edit eff date 13-Aug-2007
1597: p_to_grade_or_level not in ('01', '02', '03', '04')
1598: and
1599: p_to_grade_or_level is not null
1600: then
1601: hr_utility.set_message(8301, 'GHR_37245_ALL_PROCEDURE_FAIL');
1602: hr_utility.raise_error;
1603: end if;
1604: end if;
1605:
1598: and
1599: p_to_grade_or_level is not null
1600: then
1601: hr_utility.set_message(8301, 'GHR_37245_ALL_PROCEDURE_FAIL');
1602: hr_utility.raise_error;
1603: end if;
1604: end if;
1605:
1606: --420.74.3
1615: p_to_grade_or_level not in ('01', '02', '03')
1616: and
1617: p_to_grade_or_level is not null
1618: then
1619: hr_utility.set_message(8301, 'GHR_37067_ALL_PROCEDURE_FAIL');
1620: hr_utility.raise_error;
1621: end if;
1622: end if;
1623: end if;
1616: and
1617: p_to_grade_or_level is not null
1618: then
1619: hr_utility.set_message(8301, 'GHR_37067_ALL_PROCEDURE_FAIL');
1620: hr_utility.raise_error;
1621: end if;
1622: end if;
1623: end if;
1624:
1635: p_to_grade_or_level not in ('01', '02', '03','04','05')
1636: and
1637: p_to_grade_or_level is not null
1638: then
1639: hr_utility.set_message(8301, 'GHR_37068_ALL_PROCEDURE_FAIL');
1640: hr_utility.raise_error;
1641: end if;
1642: end if;
1643: end if;
1636: and
1637: p_to_grade_or_level is not null
1638: then
1639: hr_utility.set_message(8301, 'GHR_37068_ALL_PROCEDURE_FAIL');
1640: hr_utility.raise_error;
1641: end if;
1642: end if;
1643: end if;
1644:
1653: p_to_grade_or_level not in ('01', '02', '03','04','05')
1654: and
1655: p_to_grade_or_level is not null
1656: then
1657: hr_utility.set_message(8301, 'GHR_37069_ALL_PROCEDURE_FAIL');
1658: hr_utility.raise_error;
1659: end if;
1660: end if;
1661: end if;
1654: and
1655: p_to_grade_or_level is not null
1656: then
1657: hr_utility.set_message(8301, 'GHR_37069_ALL_PROCEDURE_FAIL');
1658: hr_utility.raise_error;
1659: end if;
1660: end if;
1661: end if;
1662:
1671: p_to_grade_or_level not in ('01', '02')
1672: and
1673: p_to_grade_or_level is not null
1674: then
1675: hr_utility.set_message(8301, 'GHR_37416_ALL_PROCEDURE_FAIL');
1676: hr_utility.raise_error;
1677: end if;
1678: end if;
1679:
1672: and
1673: p_to_grade_or_level is not null
1674: then
1675: hr_utility.set_message(8301, 'GHR_37416_ALL_PROCEDURE_FAIL');
1676: hr_utility.raise_error;
1677: end if;
1678: end if;
1679:
1680: --420.78.3
1688: p_to_grade_or_level not in ('01', '02','03','04','05','06','07','08','09')
1689: and
1690: p_to_grade_or_level is not null
1691: then
1692: hr_utility.set_message(8301, 'GHR_37417_ALL_PROCEDURE_FAIL');
1693: hr_utility.raise_error;
1694: end if;
1695: end if;
1696: end if;
1689: and
1690: p_to_grade_or_level is not null
1691: then
1692: hr_utility.set_message(8301, 'GHR_37417_ALL_PROCEDURE_FAIL');
1693: hr_utility.raise_error;
1694: end if;
1695: end if;
1696: end if;
1697: -- Begin Bug# 5073313
1702: if p_to_pay_plan in ('GL') and
1703: p_to_grade_or_level not in ('03','04','05','06','07','08','09','10') and
1704: p_to_grade_or_level is not null
1705: then
1706: hr_utility.set_message(8301, 'GHR_37426_ALL_PROCEDURE_FAIL');
1707: hr_utility.raise_error;
1708: end if;
1709: end if;
1710: -- End Bug# 5073313
1703: p_to_grade_or_level not in ('03','04','05','06','07','08','09','10') and
1704: p_to_grade_or_level is not null
1705: then
1706: hr_utility.set_message(8301, 'GHR_37426_ALL_PROCEDURE_FAIL');
1707: hr_utility.raise_error;
1708: end if;
1709: end if;
1710: -- End Bug# 5073313
1711: --Begin Bug# 5745356
1713: If p_effective_date >= to_date('2006/10/01', 'yyyy/mm/dd') then
1714: if p_to_pay_plan in ('GL') and
1715: p_to_grade_or_level > '10' and
1716: p_to_grade_or_level is not null then
1717: hr_utility.set_message(8301, 'GHR_37584_ALL_PROCEDURE_FAIL');
1718: hr_utility.raise_error;
1719: end if;
1720: end if;
1721: --End Bug# 5745356
1714: if p_to_pay_plan in ('GL') and
1715: p_to_grade_or_level > '10' and
1716: p_to_grade_or_level is not null then
1717: hr_utility.set_message(8301, 'GHR_37584_ALL_PROCEDURE_FAIL');
1718: hr_utility.raise_error;
1719: end if;
1720: end if;
1721: --End Bug# 5745356
1722:
1891: -- UPD 56 8309414 Raju From 1-apr-08 Remove MG
1892: -- UPD 59 10189715 Raju From 01-Sep-10 Remove Hx except HU
1893: ----------------------------------------------------------------------------------------------------------------
1894: if (p_to_pay_plan = 'AJ' and substr(p_agency_subelement,1,2) <> 'NU' ) then
1895: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1896: hr_utility.set_message_token('PAY_PLAN','AJ');
1897: hr_utility.set_message_token('AGENCY_CODE','NU');
1898: hr_utility.raise_error;
1899: elsif ( p_to_pay_plan = 'CE' and p_agency_subelement <> 'IN06' ) then
1892: -- UPD 59 10189715 Raju From 01-Sep-10 Remove Hx except HU
1893: ----------------------------------------------------------------------------------------------------------------
1894: if (p_to_pay_plan = 'AJ' and substr(p_agency_subelement,1,2) <> 'NU' ) then
1895: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1896: hr_utility.set_message_token('PAY_PLAN','AJ');
1897: hr_utility.set_message_token('AGENCY_CODE','NU');
1898: hr_utility.raise_error;
1899: elsif ( p_to_pay_plan = 'CE' and p_agency_subelement <> 'IN06' ) then
1900: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1893: ----------------------------------------------------------------------------------------------------------------
1894: if (p_to_pay_plan = 'AJ' and substr(p_agency_subelement,1,2) <> 'NU' ) then
1895: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1896: hr_utility.set_message_token('PAY_PLAN','AJ');
1897: hr_utility.set_message_token('AGENCY_CODE','NU');
1898: hr_utility.raise_error;
1899: elsif ( p_to_pay_plan = 'CE' and p_agency_subelement <> 'IN06' ) then
1900: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1901: hr_utility.set_message_token('PAY_PLAN','CE');
1894: if (p_to_pay_plan = 'AJ' and substr(p_agency_subelement,1,2) <> 'NU' ) then
1895: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1896: hr_utility.set_message_token('PAY_PLAN','AJ');
1897: hr_utility.set_message_token('AGENCY_CODE','NU');
1898: hr_utility.raise_error;
1899: elsif ( p_to_pay_plan = 'CE' and p_agency_subelement <> 'IN06' ) then
1900: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1901: hr_utility.set_message_token('PAY_PLAN','CE');
1902: hr_utility.set_message_token('AGENCY_CODE','IN06');
1896: hr_utility.set_message_token('PAY_PLAN','AJ');
1897: hr_utility.set_message_token('AGENCY_CODE','NU');
1898: hr_utility.raise_error;
1899: elsif ( p_to_pay_plan = 'CE' and p_agency_subelement <> 'IN06' ) then
1900: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1901: hr_utility.set_message_token('PAY_PLAN','CE');
1902: hr_utility.set_message_token('AGENCY_CODE','IN06');
1903: hr_utility.raise_error;
1904: elsif ( p_to_pay_plan in ('VE') and
1897: hr_utility.set_message_token('AGENCY_CODE','NU');
1898: hr_utility.raise_error;
1899: elsif ( p_to_pay_plan = 'CE' and p_agency_subelement <> 'IN06' ) then
1900: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1901: hr_utility.set_message_token('PAY_PLAN','CE');
1902: hr_utility.set_message_token('AGENCY_CODE','IN06');
1903: hr_utility.raise_error;
1904: elsif ( p_to_pay_plan in ('VE') and
1905: substr(p_agency_subelement,1,2) <> 'VA' ) then
1898: hr_utility.raise_error;
1899: elsif ( p_to_pay_plan = 'CE' and p_agency_subelement <> 'IN06' ) then
1900: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1901: hr_utility.set_message_token('PAY_PLAN','CE');
1902: hr_utility.set_message_token('AGENCY_CODE','IN06');
1903: hr_utility.raise_error;
1904: elsif ( p_to_pay_plan in ('VE') and
1905: substr(p_agency_subelement,1,2) <> 'VA' ) then
1906: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1899: elsif ( p_to_pay_plan = 'CE' and p_agency_subelement <> 'IN06' ) then
1900: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1901: hr_utility.set_message_token('PAY_PLAN','CE');
1902: hr_utility.set_message_token('AGENCY_CODE','IN06');
1903: hr_utility.raise_error;
1904: elsif ( p_to_pay_plan in ('VE') and
1905: substr(p_agency_subelement,1,2) <> 'VA' ) then
1906: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1907: hr_utility.set_message_token('PAY_PLAN','in VE');
1902: hr_utility.set_message_token('AGENCY_CODE','IN06');
1903: hr_utility.raise_error;
1904: elsif ( p_to_pay_plan in ('VE') and
1905: substr(p_agency_subelement,1,2) <> 'VA' ) then
1906: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1907: hr_utility.set_message_token('PAY_PLAN','in VE');
1908: hr_utility.set_message_token('AGENCY_CODE','VA');
1909: hr_utility.raise_error;
1910: elsif ( p_to_pay_plan = 'NB' and p_agency_subelement <> 'TRAJ' ) then
1903: hr_utility.raise_error;
1904: elsif ( p_to_pay_plan in ('VE') and
1905: substr(p_agency_subelement,1,2) <> 'VA' ) then
1906: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1907: hr_utility.set_message_token('PAY_PLAN','in VE');
1908: hr_utility.set_message_token('AGENCY_CODE','VA');
1909: hr_utility.raise_error;
1910: elsif ( p_to_pay_plan = 'NB' and p_agency_subelement <> 'TRAJ' ) then
1911: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1904: elsif ( p_to_pay_plan in ('VE') and
1905: substr(p_agency_subelement,1,2) <> 'VA' ) then
1906: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1907: hr_utility.set_message_token('PAY_PLAN','in VE');
1908: hr_utility.set_message_token('AGENCY_CODE','VA');
1909: hr_utility.raise_error;
1910: elsif ( p_to_pay_plan = 'NB' and p_agency_subelement <> 'TRAJ' ) then
1911: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1912: hr_utility.set_message_token('PAY_PLAN','NB');
1905: substr(p_agency_subelement,1,2) <> 'VA' ) then
1906: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1907: hr_utility.set_message_token('PAY_PLAN','in VE');
1908: hr_utility.set_message_token('AGENCY_CODE','VA');
1909: hr_utility.raise_error;
1910: elsif ( p_to_pay_plan = 'NB' and p_agency_subelement <> 'TRAJ' ) then
1911: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1912: hr_utility.set_message_token('PAY_PLAN','NB');
1913: hr_utility.set_message_token('AGENCY_CODE','TRAJ');
1907: hr_utility.set_message_token('PAY_PLAN','in VE');
1908: hr_utility.set_message_token('AGENCY_CODE','VA');
1909: hr_utility.raise_error;
1910: elsif ( p_to_pay_plan = 'NB' and p_agency_subelement <> 'TRAJ' ) then
1911: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1912: hr_utility.set_message_token('PAY_PLAN','NB');
1913: hr_utility.set_message_token('AGENCY_CODE','TRAJ');
1914: hr_utility.raise_error;
1915: elsif ( p_to_pay_plan = 'IR' and p_agency_subelement <> 'TR93' ) then
1908: hr_utility.set_message_token('AGENCY_CODE','VA');
1909: hr_utility.raise_error;
1910: elsif ( p_to_pay_plan = 'NB' and p_agency_subelement <> 'TRAJ' ) then
1911: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1912: hr_utility.set_message_token('PAY_PLAN','NB');
1913: hr_utility.set_message_token('AGENCY_CODE','TRAJ');
1914: hr_utility.raise_error;
1915: elsif ( p_to_pay_plan = 'IR' and p_agency_subelement <> 'TR93' ) then
1916: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1909: hr_utility.raise_error;
1910: elsif ( p_to_pay_plan = 'NB' and p_agency_subelement <> 'TRAJ' ) then
1911: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1912: hr_utility.set_message_token('PAY_PLAN','NB');
1913: hr_utility.set_message_token('AGENCY_CODE','TRAJ');
1914: hr_utility.raise_error;
1915: elsif ( p_to_pay_plan = 'IR' and p_agency_subelement <> 'TR93' ) then
1916: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1917: hr_utility.set_message_token('PAY_PLAN','IR');
1910: elsif ( p_to_pay_plan = 'NB' and p_agency_subelement <> 'TRAJ' ) then
1911: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1912: hr_utility.set_message_token('PAY_PLAN','NB');
1913: hr_utility.set_message_token('AGENCY_CODE','TRAJ');
1914: hr_utility.raise_error;
1915: elsif ( p_to_pay_plan = 'IR' and p_agency_subelement <> 'TR93' ) then
1916: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1917: hr_utility.set_message_token('PAY_PLAN','IR');
1918: hr_utility.set_message_token('AGENCY_CODE','TR93');
1912: hr_utility.set_message_token('PAY_PLAN','NB');
1913: hr_utility.set_message_token('AGENCY_CODE','TRAJ');
1914: hr_utility.raise_error;
1915: elsif ( p_to_pay_plan = 'IR' and p_agency_subelement <> 'TR93' ) then
1916: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1917: hr_utility.set_message_token('PAY_PLAN','IR');
1918: hr_utility.set_message_token('AGENCY_CODE','TR93');
1919: hr_utility.raise_error;
1920: elsif ( p_to_pay_plan in ('CB','CF','CH','CI','CJ','CL','CM') and
1913: hr_utility.set_message_token('AGENCY_CODE','TRAJ');
1914: hr_utility.raise_error;
1915: elsif ( p_to_pay_plan = 'IR' and p_agency_subelement <> 'TR93' ) then
1916: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1917: hr_utility.set_message_token('PAY_PLAN','IR');
1918: hr_utility.set_message_token('AGENCY_CODE','TR93');
1919: hr_utility.raise_error;
1920: elsif ( p_to_pay_plan in ('CB','CF','CH','CI','CJ','CL','CM') and
1921: substr(p_agency_subelement,1,2) <> 'FD' ) then
1914: hr_utility.raise_error;
1915: elsif ( p_to_pay_plan = 'IR' and p_agency_subelement <> 'TR93' ) then
1916: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1917: hr_utility.set_message_token('PAY_PLAN','IR');
1918: hr_utility.set_message_token('AGENCY_CODE','TR93');
1919: hr_utility.raise_error;
1920: elsif ( p_to_pay_plan in ('CB','CF','CH','CI','CJ','CL','CM') and
1921: substr(p_agency_subelement,1,2) <> 'FD' ) then
1922: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1915: elsif ( p_to_pay_plan = 'IR' and p_agency_subelement <> 'TR93' ) then
1916: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1917: hr_utility.set_message_token('PAY_PLAN','IR');
1918: hr_utility.set_message_token('AGENCY_CODE','TR93');
1919: hr_utility.raise_error;
1920: elsif ( p_to_pay_plan in ('CB','CF','CH','CI','CJ','CL','CM') and
1921: substr(p_agency_subelement,1,2) <> 'FD' ) then
1922: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1923: hr_utility.set_message_token('PAY_PLAN','in CB,CF,CH,CI,CJ,CL or CM');
1918: hr_utility.set_message_token('AGENCY_CODE','TR93');
1919: hr_utility.raise_error;
1920: elsif ( p_to_pay_plan in ('CB','CF','CH','CI','CJ','CL','CM') and
1921: substr(p_agency_subelement,1,2) <> 'FD' ) then
1922: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1923: hr_utility.set_message_token('PAY_PLAN','in CB,CF,CH,CI,CJ,CL or CM');
1924: hr_utility.set_message_token('AGENCY_CODE','FD');
1925: hr_utility.raise_error;
1926: elsif ( p_to_pay_plan = 'CY' and p_agency_subelement <> 'IN06' ) then
1919: hr_utility.raise_error;
1920: elsif ( p_to_pay_plan in ('CB','CF','CH','CI','CJ','CL','CM') and
1921: substr(p_agency_subelement,1,2) <> 'FD' ) then
1922: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1923: hr_utility.set_message_token('PAY_PLAN','in CB,CF,CH,CI,CJ,CL or CM');
1924: hr_utility.set_message_token('AGENCY_CODE','FD');
1925: hr_utility.raise_error;
1926: elsif ( p_to_pay_plan = 'CY' and p_agency_subelement <> 'IN06' ) then
1927: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1920: elsif ( p_to_pay_plan in ('CB','CF','CH','CI','CJ','CL','CM') and
1921: substr(p_agency_subelement,1,2) <> 'FD' ) then
1922: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1923: hr_utility.set_message_token('PAY_PLAN','in CB,CF,CH,CI,CJ,CL or CM');
1924: hr_utility.set_message_token('AGENCY_CODE','FD');
1925: hr_utility.raise_error;
1926: elsif ( p_to_pay_plan = 'CY' and p_agency_subelement <> 'IN06' ) then
1927: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1928: hr_utility.set_message_token('PAY_PLAN','CY');
1921: substr(p_agency_subelement,1,2) <> 'FD' ) then
1922: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1923: hr_utility.set_message_token('PAY_PLAN','in CB,CF,CH,CI,CJ,CL or CM');
1924: hr_utility.set_message_token('AGENCY_CODE','FD');
1925: hr_utility.raise_error;
1926: elsif ( p_to_pay_plan = 'CY' and p_agency_subelement <> 'IN06' ) then
1927: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1928: hr_utility.set_message_token('PAY_PLAN','CY');
1929: hr_utility.set_message_token('AGENCY_CODE','IN06');
1923: hr_utility.set_message_token('PAY_PLAN','in CB,CF,CH,CI,CJ,CL or CM');
1924: hr_utility.set_message_token('AGENCY_CODE','FD');
1925: hr_utility.raise_error;
1926: elsif ( p_to_pay_plan = 'CY' and p_agency_subelement <> 'IN06' ) then
1927: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1928: hr_utility.set_message_token('PAY_PLAN','CY');
1929: hr_utility.set_message_token('AGENCY_CODE','IN06');
1930: hr_utility.raise_error;
1931: elsif ( p_to_pay_plan in('DB','DE','DJ','DK','DQ') and
1924: hr_utility.set_message_token('AGENCY_CODE','FD');
1925: hr_utility.raise_error;
1926: elsif ( p_to_pay_plan = 'CY' and p_agency_subelement <> 'IN06' ) then
1927: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1928: hr_utility.set_message_token('PAY_PLAN','CY');
1929: hr_utility.set_message_token('AGENCY_CODE','IN06');
1930: hr_utility.raise_error;
1931: elsif ( p_to_pay_plan in('DB','DE','DJ','DK','DQ') and
1932: substr(p_agency_subelement,1,2) not in ('AF','AR','NV','DD') ) then
1925: hr_utility.raise_error;
1926: elsif ( p_to_pay_plan = 'CY' and p_agency_subelement <> 'IN06' ) then
1927: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1928: hr_utility.set_message_token('PAY_PLAN','CY');
1929: hr_utility.set_message_token('AGENCY_CODE','IN06');
1930: hr_utility.raise_error;
1931: elsif ( p_to_pay_plan in('DB','DE','DJ','DK','DQ') and
1932: substr(p_agency_subelement,1,2) not in ('AF','AR','NV','DD') ) then
1933: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1926: elsif ( p_to_pay_plan = 'CY' and p_agency_subelement <> 'IN06' ) then
1927: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1928: hr_utility.set_message_token('PAY_PLAN','CY');
1929: hr_utility.set_message_token('AGENCY_CODE','IN06');
1930: hr_utility.raise_error;
1931: elsif ( p_to_pay_plan in('DB','DE','DJ','DK','DQ') and
1932: substr(p_agency_subelement,1,2) not in ('AF','AR','NV','DD') ) then
1933: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1934: hr_utility.set_message_token('PAY_PLAN','in DB,DE,DJ,DK or DQ');
1929: hr_utility.set_message_token('AGENCY_CODE','IN06');
1930: hr_utility.raise_error;
1931: elsif ( p_to_pay_plan in('DB','DE','DJ','DK','DQ') and
1932: substr(p_agency_subelement,1,2) not in ('AF','AR','NV','DD') ) then
1933: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1934: hr_utility.set_message_token('PAY_PLAN','in DB,DE,DJ,DK or DQ');
1935: hr_utility.set_message_token('AGENCY_CODE','in AF,AR,NV or DD');
1936: hr_utility.raise_error;
1937: elsif ( p_to_pay_plan = 'DR' and substr(p_agency_subelement,1,2) <> 'AF' ) then
1930: hr_utility.raise_error;
1931: elsif ( p_to_pay_plan in('DB','DE','DJ','DK','DQ') and
1932: substr(p_agency_subelement,1,2) not in ('AF','AR','NV','DD') ) then
1933: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1934: hr_utility.set_message_token('PAY_PLAN','in DB,DE,DJ,DK or DQ');
1935: hr_utility.set_message_token('AGENCY_CODE','in AF,AR,NV or DD');
1936: hr_utility.raise_error;
1937: elsif ( p_to_pay_plan = 'DR' and substr(p_agency_subelement,1,2) <> 'AF' ) then
1938: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1931: elsif ( p_to_pay_plan in('DB','DE','DJ','DK','DQ') and
1932: substr(p_agency_subelement,1,2) not in ('AF','AR','NV','DD') ) then
1933: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1934: hr_utility.set_message_token('PAY_PLAN','in DB,DE,DJ,DK or DQ');
1935: hr_utility.set_message_token('AGENCY_CODE','in AF,AR,NV or DD');
1936: hr_utility.raise_error;
1937: elsif ( p_to_pay_plan = 'DR' and substr(p_agency_subelement,1,2) <> 'AF' ) then
1938: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1939: hr_utility.set_message_token('PAY_PLAN','DR');
1932: substr(p_agency_subelement,1,2) not in ('AF','AR','NV','DD') ) then
1933: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1934: hr_utility.set_message_token('PAY_PLAN','in DB,DE,DJ,DK or DQ');
1935: hr_utility.set_message_token('AGENCY_CODE','in AF,AR,NV or DD');
1936: hr_utility.raise_error;
1937: elsif ( p_to_pay_plan = 'DR' and substr(p_agency_subelement,1,2) <> 'AF' ) then
1938: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1939: hr_utility.set_message_token('PAY_PLAN','DR');
1940: hr_utility.set_message_token('AGENCY_CODE','AF');
1934: hr_utility.set_message_token('PAY_PLAN','in DB,DE,DJ,DK or DQ');
1935: hr_utility.set_message_token('AGENCY_CODE','in AF,AR,NV or DD');
1936: hr_utility.raise_error;
1937: elsif ( p_to_pay_plan = 'DR' and substr(p_agency_subelement,1,2) <> 'AF' ) then
1938: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1939: hr_utility.set_message_token('PAY_PLAN','DR');
1940: hr_utility.set_message_token('AGENCY_CODE','AF');
1941: hr_utility.raise_error;
1942: elsif ( p_to_pay_plan in('DV','DZ') and
1935: hr_utility.set_message_token('AGENCY_CODE','in AF,AR,NV or DD');
1936: hr_utility.raise_error;
1937: elsif ( p_to_pay_plan = 'DR' and substr(p_agency_subelement,1,2) <> 'AF' ) then
1938: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1939: hr_utility.set_message_token('PAY_PLAN','DR');
1940: hr_utility.set_message_token('AGENCY_CODE','AF');
1941: hr_utility.raise_error;
1942: elsif ( p_to_pay_plan in('DV','DZ') and
1943: substr(p_agency_subelement,1,2) not in ('AF','AR','NV','DD') ) then
1936: hr_utility.raise_error;
1937: elsif ( p_to_pay_plan = 'DR' and substr(p_agency_subelement,1,2) <> 'AF' ) then
1938: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1939: hr_utility.set_message_token('PAY_PLAN','DR');
1940: hr_utility.set_message_token('AGENCY_CODE','AF');
1941: hr_utility.raise_error;
1942: elsif ( p_to_pay_plan in('DV','DZ') and
1943: substr(p_agency_subelement,1,2) not in ('AF','AR','NV','DD') ) then
1944: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1937: elsif ( p_to_pay_plan = 'DR' and substr(p_agency_subelement,1,2) <> 'AF' ) then
1938: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1939: hr_utility.set_message_token('PAY_PLAN','DR');
1940: hr_utility.set_message_token('AGENCY_CODE','AF');
1941: hr_utility.raise_error;
1942: elsif ( p_to_pay_plan in('DV','DZ') and
1943: substr(p_agency_subelement,1,2) not in ('AF','AR','NV','DD') ) then
1944: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1945: hr_utility.set_message_token('PAY_PLAN','DV,DZ');
1940: hr_utility.set_message_token('AGENCY_CODE','AF');
1941: hr_utility.raise_error;
1942: elsif ( p_to_pay_plan in('DV','DZ') and
1943: substr(p_agency_subelement,1,2) not in ('AF','AR','NV','DD') ) then
1944: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1945: hr_utility.set_message_token('PAY_PLAN','DV,DZ');
1946: hr_utility.set_message_token('AGENCY_CODE','AF,AR,NV or DD');
1947: hr_utility.raise_error;
1948: elsif ( p_to_pay_plan in ('EJ') and substr(p_agency_subelement,1,2) NOT IN('HS','DN') )
1941: hr_utility.raise_error;
1942: elsif ( p_to_pay_plan in('DV','DZ') and
1943: substr(p_agency_subelement,1,2) not in ('AF','AR','NV','DD') ) then
1944: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1945: hr_utility.set_message_token('PAY_PLAN','DV,DZ');
1946: hr_utility.set_message_token('AGENCY_CODE','AF,AR,NV or DD');
1947: hr_utility.raise_error;
1948: elsif ( p_to_pay_plan in ('EJ') and substr(p_agency_subelement,1,2) NOT IN('HS','DN') )
1949: then
1942: elsif ( p_to_pay_plan in('DV','DZ') and
1943: substr(p_agency_subelement,1,2) not in ('AF','AR','NV','DD') ) then
1944: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1945: hr_utility.set_message_token('PAY_PLAN','DV,DZ');
1946: hr_utility.set_message_token('AGENCY_CODE','AF,AR,NV or DD');
1947: hr_utility.raise_error;
1948: elsif ( p_to_pay_plan in ('EJ') and substr(p_agency_subelement,1,2) NOT IN('HS','DN') )
1949: then
1950: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1943: substr(p_agency_subelement,1,2) not in ('AF','AR','NV','DD') ) then
1944: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1945: hr_utility.set_message_token('PAY_PLAN','DV,DZ');
1946: hr_utility.set_message_token('AGENCY_CODE','AF,AR,NV or DD');
1947: hr_utility.raise_error;
1948: elsif ( p_to_pay_plan in ('EJ') and substr(p_agency_subelement,1,2) NOT IN('HS','DN') )
1949: then
1950: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1951: hr_utility.set_message_token('PAY_PLAN','EJ');
1946: hr_utility.set_message_token('AGENCY_CODE','AF,AR,NV or DD');
1947: hr_utility.raise_error;
1948: elsif ( p_to_pay_plan in ('EJ') and substr(p_agency_subelement,1,2) NOT IN('HS','DN') )
1949: then
1950: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1951: hr_utility.set_message_token('PAY_PLAN','EJ');
1952: hr_utility.set_message_token('AGENCY_CODE','DN or HS');
1953: hr_utility.raise_error;
1954: elsif ( p_to_pay_plan in('EK') and
1947: hr_utility.raise_error;
1948: elsif ( p_to_pay_plan in ('EJ') and substr(p_agency_subelement,1,2) NOT IN('HS','DN') )
1949: then
1950: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1951: hr_utility.set_message_token('PAY_PLAN','EJ');
1952: hr_utility.set_message_token('AGENCY_CODE','DN or HS');
1953: hr_utility.raise_error;
1954: elsif ( p_to_pay_plan in('EK') and
1955: substr(p_agency_subelement,1,2) <> 'DN' ) then
1948: elsif ( p_to_pay_plan in ('EJ') and substr(p_agency_subelement,1,2) NOT IN('HS','DN') )
1949: then
1950: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1951: hr_utility.set_message_token('PAY_PLAN','EJ');
1952: hr_utility.set_message_token('AGENCY_CODE','DN or HS');
1953: hr_utility.raise_error;
1954: elsif ( p_to_pay_plan in('EK') and
1955: substr(p_agency_subelement,1,2) <> 'DN' ) then
1956: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1949: then
1950: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1951: hr_utility.set_message_token('PAY_PLAN','EJ');
1952: hr_utility.set_message_token('AGENCY_CODE','DN or HS');
1953: hr_utility.raise_error;
1954: elsif ( p_to_pay_plan in('EK') and
1955: substr(p_agency_subelement,1,2) <> 'DN' ) then
1956: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1957: hr_utility.set_message_token('PAY_PLAN','EK');
1952: hr_utility.set_message_token('AGENCY_CODE','DN or HS');
1953: hr_utility.raise_error;
1954: elsif ( p_to_pay_plan in('EK') and
1955: substr(p_agency_subelement,1,2) <> 'DN' ) then
1956: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1957: hr_utility.set_message_token('PAY_PLAN','EK');
1958: hr_utility.set_message_token('AGENCY_CODE','DN');
1959: hr_utility.raise_error;
1960: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
1953: hr_utility.raise_error;
1954: elsif ( p_to_pay_plan in('EK') and
1955: substr(p_agency_subelement,1,2) <> 'DN' ) then
1956: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1957: hr_utility.set_message_token('PAY_PLAN','EK');
1958: hr_utility.set_message_token('AGENCY_CODE','DN');
1959: hr_utility.raise_error;
1960: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
1961: ( p_to_pay_plan = 'FA' and
1954: elsif ( p_to_pay_plan in('EK') and
1955: substr(p_agency_subelement,1,2) <> 'DN' ) then
1956: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1957: hr_utility.set_message_token('PAY_PLAN','EK');
1958: hr_utility.set_message_token('AGENCY_CODE','DN');
1959: hr_utility.raise_error;
1960: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
1961: ( p_to_pay_plan = 'FA' and
1962: substr(p_agency_subelement,1,2) not in ('AM','ST') ) then
1955: substr(p_agency_subelement,1,2) <> 'DN' ) then
1956: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1957: hr_utility.set_message_token('PAY_PLAN','EK');
1958: hr_utility.set_message_token('AGENCY_CODE','DN');
1959: hr_utility.raise_error;
1960: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
1961: ( p_to_pay_plan = 'FA' and
1962: substr(p_agency_subelement,1,2) not in ('AM','ST') ) then
1963: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1959: hr_utility.raise_error;
1960: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
1961: ( p_to_pay_plan = 'FA' and
1962: substr(p_agency_subelement,1,2) not in ('AM','ST') ) then
1963: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1964: hr_utility.set_message_token('PAY_PLAN','FA');
1965: hr_utility.set_message_token('AGENCY_CODE','AM,ST');
1966: hr_utility.raise_error;
1967: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
1960: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
1961: ( p_to_pay_plan = 'FA' and
1962: substr(p_agency_subelement,1,2) not in ('AM','ST') ) then
1963: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1964: hr_utility.set_message_token('PAY_PLAN','FA');
1965: hr_utility.set_message_token('AGENCY_CODE','AM,ST');
1966: hr_utility.raise_error;
1967: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
1968: ( p_to_pay_plan = 'FA' and
1961: ( p_to_pay_plan = 'FA' and
1962: substr(p_agency_subelement,1,2) not in ('AM','ST') ) then
1963: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1964: hr_utility.set_message_token('PAY_PLAN','FA');
1965: hr_utility.set_message_token('AGENCY_CODE','AM,ST');
1966: hr_utility.raise_error;
1967: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
1968: ( p_to_pay_plan = 'FA' and
1969: substr(p_agency_subelement,1,2) not in ('AM') ) then
1962: substr(p_agency_subelement,1,2) not in ('AM','ST') ) then
1963: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1964: hr_utility.set_message_token('PAY_PLAN','FA');
1965: hr_utility.set_message_token('AGENCY_CODE','AM,ST');
1966: hr_utility.raise_error;
1967: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
1968: ( p_to_pay_plan = 'FA' and
1969: substr(p_agency_subelement,1,2) not in ('AM') ) then
1970: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1966: hr_utility.raise_error;
1967: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
1968: ( p_to_pay_plan = 'FA' and
1969: substr(p_agency_subelement,1,2) not in ('AM') ) then
1970: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1971: hr_utility.set_message_token('PAY_PLAN','FA');
1972: hr_utility.set_message_token('AGENCY_CODE','AM');
1973: hr_utility.raise_error;
1974: elsif ( p_to_pay_plan = 'FB' and p_agency_subelement <> 'TD03' ) then
1967: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
1968: ( p_to_pay_plan = 'FA' and
1969: substr(p_agency_subelement,1,2) not in ('AM') ) then
1970: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1971: hr_utility.set_message_token('PAY_PLAN','FA');
1972: hr_utility.set_message_token('AGENCY_CODE','AM');
1973: hr_utility.raise_error;
1974: elsif ( p_to_pay_plan = 'FB' and p_agency_subelement <> 'TD03' ) then
1975: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1968: ( p_to_pay_plan = 'FA' and
1969: substr(p_agency_subelement,1,2) not in ('AM') ) then
1970: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1971: hr_utility.set_message_token('PAY_PLAN','FA');
1972: hr_utility.set_message_token('AGENCY_CODE','AM');
1973: hr_utility.raise_error;
1974: elsif ( p_to_pay_plan = 'FB' and p_agency_subelement <> 'TD03' ) then
1975: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1976: hr_utility.set_message_token('PAY_PLAN','FB');
1969: substr(p_agency_subelement,1,2) not in ('AM') ) then
1970: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1971: hr_utility.set_message_token('PAY_PLAN','FA');
1972: hr_utility.set_message_token('AGENCY_CODE','AM');
1973: hr_utility.raise_error;
1974: elsif ( p_to_pay_plan = 'FB' and p_agency_subelement <> 'TD03' ) then
1975: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1976: hr_utility.set_message_token('PAY_PLAN','FB');
1977: hr_utility.set_message_token('AGENCY_CODE','TD03');
1971: hr_utility.set_message_token('PAY_PLAN','FA');
1972: hr_utility.set_message_token('AGENCY_CODE','AM');
1973: hr_utility.raise_error;
1974: elsif ( p_to_pay_plan = 'FB' and p_agency_subelement <> 'TD03' ) then
1975: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1976: hr_utility.set_message_token('PAY_PLAN','FB');
1977: hr_utility.set_message_token('AGENCY_CODE','TD03');
1978: hr_utility.raise_error;
1979: elsif ( p_to_pay_plan = 'FD' and
1972: hr_utility.set_message_token('AGENCY_CODE','AM');
1973: hr_utility.raise_error;
1974: elsif ( p_to_pay_plan = 'FB' and p_agency_subelement <> 'TD03' ) then
1975: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1976: hr_utility.set_message_token('PAY_PLAN','FB');
1977: hr_utility.set_message_token('AGENCY_CODE','TD03');
1978: hr_utility.raise_error;
1979: elsif ( p_to_pay_plan = 'FD' and
1980: substr(p_agency_subelement,1,2) not in ('AF','AR','NV','DD') ) then
1973: hr_utility.raise_error;
1974: elsif ( p_to_pay_plan = 'FB' and p_agency_subelement <> 'TD03' ) then
1975: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1976: hr_utility.set_message_token('PAY_PLAN','FB');
1977: hr_utility.set_message_token('AGENCY_CODE','TD03');
1978: hr_utility.raise_error;
1979: elsif ( p_to_pay_plan = 'FD' and
1980: substr(p_agency_subelement,1,2) not in ('AF','AR','NV','DD') ) then
1981: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1974: elsif ( p_to_pay_plan = 'FB' and p_agency_subelement <> 'TD03' ) then
1975: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1976: hr_utility.set_message_token('PAY_PLAN','FB');
1977: hr_utility.set_message_token('AGENCY_CODE','TD03');
1978: hr_utility.raise_error;
1979: elsif ( p_to_pay_plan = 'FD' and
1980: substr(p_agency_subelement,1,2) not in ('AF','AR','NV','DD') ) then
1981: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1982: hr_utility.set_message_token('PAY_PLAN','FD');
1977: hr_utility.set_message_token('AGENCY_CODE','TD03');
1978: hr_utility.raise_error;
1979: elsif ( p_to_pay_plan = 'FD' and
1980: substr(p_agency_subelement,1,2) not in ('AF','AR','NV','DD') ) then
1981: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1982: hr_utility.set_message_token('PAY_PLAN','FD');
1983: hr_utility.set_message_token('AGENCY_CODE','AF,AR,NV or DD');
1984: hr_utility.raise_error;
1985: elsif ( p_to_pay_plan in('FF','FG','FJ','FL','FM') and
1978: hr_utility.raise_error;
1979: elsif ( p_to_pay_plan = 'FD' and
1980: substr(p_agency_subelement,1,2) not in ('AF','AR','NV','DD') ) then
1981: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1982: hr_utility.set_message_token('PAY_PLAN','FD');
1983: hr_utility.set_message_token('AGENCY_CODE','AF,AR,NV or DD');
1984: hr_utility.raise_error;
1985: elsif ( p_to_pay_plan in('FF','FG','FJ','FL','FM') and
1986: p_agency_subelement <> 'TD03' ) then
1979: elsif ( p_to_pay_plan = 'FD' and
1980: substr(p_agency_subelement,1,2) not in ('AF','AR','NV','DD') ) then
1981: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1982: hr_utility.set_message_token('PAY_PLAN','FD');
1983: hr_utility.set_message_token('AGENCY_CODE','AF,AR,NV or DD');
1984: hr_utility.raise_error;
1985: elsif ( p_to_pay_plan in('FF','FG','FJ','FL','FM') and
1986: p_agency_subelement <> 'TD03' ) then
1987: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1980: substr(p_agency_subelement,1,2) not in ('AF','AR','NV','DD') ) then
1981: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1982: hr_utility.set_message_token('PAY_PLAN','FD');
1983: hr_utility.set_message_token('AGENCY_CODE','AF,AR,NV or DD');
1984: hr_utility.raise_error;
1985: elsif ( p_to_pay_plan in('FF','FG','FJ','FL','FM') and
1986: p_agency_subelement <> 'TD03' ) then
1987: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1988: hr_utility.set_message_token('PAY_PLAN','FF,FG,FJ,FL or FM');
1983: hr_utility.set_message_token('AGENCY_CODE','AF,AR,NV or DD');
1984: hr_utility.raise_error;
1985: elsif ( p_to_pay_plan in('FF','FG','FJ','FL','FM') and
1986: p_agency_subelement <> 'TD03' ) then
1987: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1988: hr_utility.set_message_token('PAY_PLAN','FF,FG,FJ,FL or FM');
1989: hr_utility.set_message_token('AGENCY_CODE','TD03');
1990: hr_utility.raise_error;
1991: elsif ( p_to_pay_plan in('FN','FS','FT','FW','FX')
1984: hr_utility.raise_error;
1985: elsif ( p_to_pay_plan in('FF','FG','FJ','FL','FM') and
1986: p_agency_subelement <> 'TD03' ) then
1987: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1988: hr_utility.set_message_token('PAY_PLAN','FF,FG,FJ,FL or FM');
1989: hr_utility.set_message_token('AGENCY_CODE','TD03');
1990: hr_utility.raise_error;
1991: elsif ( p_to_pay_plan in('FN','FS','FT','FW','FX')
1992: and p_agency_subelement <> 'TD03' ) then
1985: elsif ( p_to_pay_plan in('FF','FG','FJ','FL','FM') and
1986: p_agency_subelement <> 'TD03' ) then
1987: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1988: hr_utility.set_message_token('PAY_PLAN','FF,FG,FJ,FL or FM');
1989: hr_utility.set_message_token('AGENCY_CODE','TD03');
1990: hr_utility.raise_error;
1991: elsif ( p_to_pay_plan in('FN','FS','FT','FW','FX')
1992: and p_agency_subelement <> 'TD03' ) then
1993: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1986: p_agency_subelement <> 'TD03' ) then
1987: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1988: hr_utility.set_message_token('PAY_PLAN','FF,FG,FJ,FL or FM');
1989: hr_utility.set_message_token('AGENCY_CODE','TD03');
1990: hr_utility.raise_error;
1991: elsif ( p_to_pay_plan in('FN','FS','FT','FW','FX')
1992: and p_agency_subelement <> 'TD03' ) then
1993: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1994: hr_utility.set_message_token('PAY_PLAN','FN,FS,FT,FW or FX');
1989: hr_utility.set_message_token('AGENCY_CODE','TD03');
1990: hr_utility.raise_error;
1991: elsif ( p_to_pay_plan in('FN','FS','FT','FW','FX')
1992: and p_agency_subelement <> 'TD03' ) then
1993: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1994: hr_utility.set_message_token('PAY_PLAN','FN,FS,FT,FW or FX');
1995: hr_utility.set_message_token('AGENCY_CODE','TD03');
1996: hr_utility.raise_error;
1997: elsif ( p_to_pay_plan = 'GN' and p_agency_subelement <> 'HE38' ) then
1990: hr_utility.raise_error;
1991: elsif ( p_to_pay_plan in('FN','FS','FT','FW','FX')
1992: and p_agency_subelement <> 'TD03' ) then
1993: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1994: hr_utility.set_message_token('PAY_PLAN','FN,FS,FT,FW or FX');
1995: hr_utility.set_message_token('AGENCY_CODE','TD03');
1996: hr_utility.raise_error;
1997: elsif ( p_to_pay_plan = 'GN' and p_agency_subelement <> 'HE38' ) then
1998: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1991: elsif ( p_to_pay_plan in('FN','FS','FT','FW','FX')
1992: and p_agency_subelement <> 'TD03' ) then
1993: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1994: hr_utility.set_message_token('PAY_PLAN','FN,FS,FT,FW or FX');
1995: hr_utility.set_message_token('AGENCY_CODE','TD03');
1996: hr_utility.raise_error;
1997: elsif ( p_to_pay_plan = 'GN' and p_agency_subelement <> 'HE38' ) then
1998: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1999: hr_utility.set_message_token('PAY_PLAN','GN');
1992: and p_agency_subelement <> 'TD03' ) then
1993: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1994: hr_utility.set_message_token('PAY_PLAN','FN,FS,FT,FW or FX');
1995: hr_utility.set_message_token('AGENCY_CODE','TD03');
1996: hr_utility.raise_error;
1997: elsif ( p_to_pay_plan = 'GN' and p_agency_subelement <> 'HE38' ) then
1998: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1999: hr_utility.set_message_token('PAY_PLAN','GN');
2000: hr_utility.set_message_token('AGENCY_CODE','HE38');
1994: hr_utility.set_message_token('PAY_PLAN','FN,FS,FT,FW or FX');
1995: hr_utility.set_message_token('AGENCY_CODE','TD03');
1996: hr_utility.raise_error;
1997: elsif ( p_to_pay_plan = 'GN' and p_agency_subelement <> 'HE38' ) then
1998: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1999: hr_utility.set_message_token('PAY_PLAN','GN');
2000: hr_utility.set_message_token('AGENCY_CODE','HE38');
2001: hr_utility.raise_error;
2002: elsif ( p_to_pay_plan = 'IJ' and substr(p_agency_subelement,1,2) <> 'DJ' ) then
1995: hr_utility.set_message_token('AGENCY_CODE','TD03');
1996: hr_utility.raise_error;
1997: elsif ( p_to_pay_plan = 'GN' and p_agency_subelement <> 'HE38' ) then
1998: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1999: hr_utility.set_message_token('PAY_PLAN','GN');
2000: hr_utility.set_message_token('AGENCY_CODE','HE38');
2001: hr_utility.raise_error;
2002: elsif ( p_to_pay_plan = 'IJ' and substr(p_agency_subelement,1,2) <> 'DJ' ) then
2003: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1996: hr_utility.raise_error;
1997: elsif ( p_to_pay_plan = 'GN' and p_agency_subelement <> 'HE38' ) then
1998: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1999: hr_utility.set_message_token('PAY_PLAN','GN');
2000: hr_utility.set_message_token('AGENCY_CODE','HE38');
2001: hr_utility.raise_error;
2002: elsif ( p_to_pay_plan = 'IJ' and substr(p_agency_subelement,1,2) <> 'DJ' ) then
2003: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2004: hr_utility.set_message_token('PAY_PLAN','IJ');
1997: elsif ( p_to_pay_plan = 'GN' and p_agency_subelement <> 'HE38' ) then
1998: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
1999: hr_utility.set_message_token('PAY_PLAN','GN');
2000: hr_utility.set_message_token('AGENCY_CODE','HE38');
2001: hr_utility.raise_error;
2002: elsif ( p_to_pay_plan = 'IJ' and substr(p_agency_subelement,1,2) <> 'DJ' ) then
2003: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2004: hr_utility.set_message_token('PAY_PLAN','IJ');
2005: hr_utility.set_message_token('AGENCY_CODE','DJ');
1999: hr_utility.set_message_token('PAY_PLAN','GN');
2000: hr_utility.set_message_token('AGENCY_CODE','HE38');
2001: hr_utility.raise_error;
2002: elsif ( p_to_pay_plan = 'IJ' and substr(p_agency_subelement,1,2) <> 'DJ' ) then
2003: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2004: hr_utility.set_message_token('PAY_PLAN','IJ');
2005: hr_utility.set_message_token('AGENCY_CODE','DJ');
2006: hr_utility.raise_error;
2007: elsif ( p_to_pay_plan = 'KA' and substr(p_agency_subelement,1,2) <> 'LP' ) then
2000: hr_utility.set_message_token('AGENCY_CODE','HE38');
2001: hr_utility.raise_error;
2002: elsif ( p_to_pay_plan = 'IJ' and substr(p_agency_subelement,1,2) <> 'DJ' ) then
2003: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2004: hr_utility.set_message_token('PAY_PLAN','IJ');
2005: hr_utility.set_message_token('AGENCY_CODE','DJ');
2006: hr_utility.raise_error;
2007: elsif ( p_to_pay_plan = 'KA' and substr(p_agency_subelement,1,2) <> 'LP' ) then
2008: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2001: hr_utility.raise_error;
2002: elsif ( p_to_pay_plan = 'IJ' and substr(p_agency_subelement,1,2) <> 'DJ' ) then
2003: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2004: hr_utility.set_message_token('PAY_PLAN','IJ');
2005: hr_utility.set_message_token('AGENCY_CODE','DJ');
2006: hr_utility.raise_error;
2007: elsif ( p_to_pay_plan = 'KA' and substr(p_agency_subelement,1,2) <> 'LP' ) then
2008: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2009: hr_utility.set_message_token('PAY_PLAN','KA');
2002: elsif ( p_to_pay_plan = 'IJ' and substr(p_agency_subelement,1,2) <> 'DJ' ) then
2003: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2004: hr_utility.set_message_token('PAY_PLAN','IJ');
2005: hr_utility.set_message_token('AGENCY_CODE','DJ');
2006: hr_utility.raise_error;
2007: elsif ( p_to_pay_plan = 'KA' and substr(p_agency_subelement,1,2) <> 'LP' ) then
2008: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2009: hr_utility.set_message_token('PAY_PLAN','KA');
2010: hr_utility.set_message_token('AGENCY_CODE','LP');
2004: hr_utility.set_message_token('PAY_PLAN','IJ');
2005: hr_utility.set_message_token('AGENCY_CODE','DJ');
2006: hr_utility.raise_error;
2007: elsif ( p_to_pay_plan = 'KA' and substr(p_agency_subelement,1,2) <> 'LP' ) then
2008: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2009: hr_utility.set_message_token('PAY_PLAN','KA');
2010: hr_utility.set_message_token('AGENCY_CODE','LP');
2011: hr_utility.raise_error;
2012: elsif ( p_to_pay_plan in ('KG','KL','KS') and p_agency_subelement<>'TRAI' ) then
2005: hr_utility.set_message_token('AGENCY_CODE','DJ');
2006: hr_utility.raise_error;
2007: elsif ( p_to_pay_plan = 'KA' and substr(p_agency_subelement,1,2) <> 'LP' ) then
2008: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2009: hr_utility.set_message_token('PAY_PLAN','KA');
2010: hr_utility.set_message_token('AGENCY_CODE','LP');
2011: hr_utility.raise_error;
2012: elsif ( p_to_pay_plan in ('KG','KL','KS') and p_agency_subelement<>'TRAI' ) then
2013: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2006: hr_utility.raise_error;
2007: elsif ( p_to_pay_plan = 'KA' and substr(p_agency_subelement,1,2) <> 'LP' ) then
2008: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2009: hr_utility.set_message_token('PAY_PLAN','KA');
2010: hr_utility.set_message_token('AGENCY_CODE','LP');
2011: hr_utility.raise_error;
2012: elsif ( p_to_pay_plan in ('KG','KL','KS') and p_agency_subelement<>'TRAI' ) then
2013: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2014: hr_utility.set_message_token('PAY_PLAN','KG,KL or KS');
2007: elsif ( p_to_pay_plan = 'KA' and substr(p_agency_subelement,1,2) <> 'LP' ) then
2008: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2009: hr_utility.set_message_token('PAY_PLAN','KA');
2010: hr_utility.set_message_token('AGENCY_CODE','LP');
2011: hr_utility.raise_error;
2012: elsif ( p_to_pay_plan in ('KG','KL','KS') and p_agency_subelement<>'TRAI' ) then
2013: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2014: hr_utility.set_message_token('PAY_PLAN','KG,KL or KS');
2015: hr_utility.set_message_token('AGENCY_CODE','TRAI');
2009: hr_utility.set_message_token('PAY_PLAN','KA');
2010: hr_utility.set_message_token('AGENCY_CODE','LP');
2011: hr_utility.raise_error;
2012: elsif ( p_to_pay_plan in ('KG','KL','KS') and p_agency_subelement<>'TRAI' ) then
2013: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2014: hr_utility.set_message_token('PAY_PLAN','KG,KL or KS');
2015: hr_utility.set_message_token('AGENCY_CODE','TRAI');
2016: hr_utility.raise_error;
2017: elsif ( p_to_pay_plan = 'LE' and p_agency_subelement <>'HSAD' ) then
2010: hr_utility.set_message_token('AGENCY_CODE','LP');
2011: hr_utility.raise_error;
2012: elsif ( p_to_pay_plan in ('KG','KL','KS') and p_agency_subelement<>'TRAI' ) then
2013: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2014: hr_utility.set_message_token('PAY_PLAN','KG,KL or KS');
2015: hr_utility.set_message_token('AGENCY_CODE','TRAI');
2016: hr_utility.raise_error;
2017: elsif ( p_to_pay_plan = 'LE' and p_agency_subelement <>'HSAD' ) then
2018: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2011: hr_utility.raise_error;
2012: elsif ( p_to_pay_plan in ('KG','KL','KS') and p_agency_subelement<>'TRAI' ) then
2013: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2014: hr_utility.set_message_token('PAY_PLAN','KG,KL or KS');
2015: hr_utility.set_message_token('AGENCY_CODE','TRAI');
2016: hr_utility.raise_error;
2017: elsif ( p_to_pay_plan = 'LE' and p_agency_subelement <>'HSAD' ) then
2018: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2019: hr_utility.set_message_token('PAY_PLAN','LE');
2012: elsif ( p_to_pay_plan in ('KG','KL','KS') and p_agency_subelement<>'TRAI' ) then
2013: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2014: hr_utility.set_message_token('PAY_PLAN','KG,KL or KS');
2015: hr_utility.set_message_token('AGENCY_CODE','TRAI');
2016: hr_utility.raise_error;
2017: elsif ( p_to_pay_plan = 'LE' and p_agency_subelement <>'HSAD' ) then
2018: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2019: hr_utility.set_message_token('PAY_PLAN','LE');
2020: hr_utility.set_message_token('AGENCY_CODE','HSAD');
2014: hr_utility.set_message_token('PAY_PLAN','KG,KL or KS');
2015: hr_utility.set_message_token('AGENCY_CODE','TRAI');
2016: hr_utility.raise_error;
2017: elsif ( p_to_pay_plan = 'LE' and p_agency_subelement <>'HSAD' ) then
2018: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2019: hr_utility.set_message_token('PAY_PLAN','LE');
2020: hr_utility.set_message_token('AGENCY_CODE','HSAD');
2021: hr_utility.raise_error;
2022: elsif ( p_to_pay_plan = 'LG' and substr(p_agency_subelement,1,2) <> 'FD' ) then
2015: hr_utility.set_message_token('AGENCY_CODE','TRAI');
2016: hr_utility.raise_error;
2017: elsif ( p_to_pay_plan = 'LE' and p_agency_subelement <>'HSAD' ) then
2018: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2019: hr_utility.set_message_token('PAY_PLAN','LE');
2020: hr_utility.set_message_token('AGENCY_CODE','HSAD');
2021: hr_utility.raise_error;
2022: elsif ( p_to_pay_plan = 'LG' and substr(p_agency_subelement,1,2) <> 'FD' ) then
2023: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2016: hr_utility.raise_error;
2017: elsif ( p_to_pay_plan = 'LE' and p_agency_subelement <>'HSAD' ) then
2018: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2019: hr_utility.set_message_token('PAY_PLAN','LE');
2020: hr_utility.set_message_token('AGENCY_CODE','HSAD');
2021: hr_utility.raise_error;
2022: elsif ( p_to_pay_plan = 'LG' and substr(p_agency_subelement,1,2) <> 'FD' ) then
2023: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2024: hr_utility.set_message_token('PAY_PLAN','LG');
2017: elsif ( p_to_pay_plan = 'LE' and p_agency_subelement <>'HSAD' ) then
2018: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2019: hr_utility.set_message_token('PAY_PLAN','LE');
2020: hr_utility.set_message_token('AGENCY_CODE','HSAD');
2021: hr_utility.raise_error;
2022: elsif ( p_to_pay_plan = 'LG' and substr(p_agency_subelement,1,2) <> 'FD' ) then
2023: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2024: hr_utility.set_message_token('PAY_PLAN','LG');
2025: hr_utility.set_message_token('AGENCY_CODE','FD');
2019: hr_utility.set_message_token('PAY_PLAN','LE');
2020: hr_utility.set_message_token('AGENCY_CODE','HSAD');
2021: hr_utility.raise_error;
2022: elsif ( p_to_pay_plan = 'LG' and substr(p_agency_subelement,1,2) <> 'FD' ) then
2023: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2024: hr_utility.set_message_token('PAY_PLAN','LG');
2025: hr_utility.set_message_token('AGENCY_CODE','FD');
2026: hr_utility.raise_error;
2027: elsif ( p_to_pay_plan = 'MA' and substr(p_agency_subelement,1,2) <> 'AG' ) then
2020: hr_utility.set_message_token('AGENCY_CODE','HSAD');
2021: hr_utility.raise_error;
2022: elsif ( p_to_pay_plan = 'LG' and substr(p_agency_subelement,1,2) <> 'FD' ) then
2023: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2024: hr_utility.set_message_token('PAY_PLAN','LG');
2025: hr_utility.set_message_token('AGENCY_CODE','FD');
2026: hr_utility.raise_error;
2027: elsif ( p_to_pay_plan = 'MA' and substr(p_agency_subelement,1,2) <> 'AG' ) then
2028: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2021: hr_utility.raise_error;
2022: elsif ( p_to_pay_plan = 'LG' and substr(p_agency_subelement,1,2) <> 'FD' ) then
2023: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2024: hr_utility.set_message_token('PAY_PLAN','LG');
2025: hr_utility.set_message_token('AGENCY_CODE','FD');
2026: hr_utility.raise_error;
2027: elsif ( p_to_pay_plan = 'MA' and substr(p_agency_subelement,1,2) <> 'AG' ) then
2028: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2029: hr_utility.set_message_token('PAY_PLAN','MA');
2022: elsif ( p_to_pay_plan = 'LG' and substr(p_agency_subelement,1,2) <> 'FD' ) then
2023: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2024: hr_utility.set_message_token('PAY_PLAN','LG');
2025: hr_utility.set_message_token('AGENCY_CODE','FD');
2026: hr_utility.raise_error;
2027: elsif ( p_to_pay_plan = 'MA' and substr(p_agency_subelement,1,2) <> 'AG' ) then
2028: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2029: hr_utility.set_message_token('PAY_PLAN','MA');
2030: hr_utility.set_message_token('AGENCY_CODE','AG');
2024: hr_utility.set_message_token('PAY_PLAN','LG');
2025: hr_utility.set_message_token('AGENCY_CODE','FD');
2026: hr_utility.raise_error;
2027: elsif ( p_to_pay_plan = 'MA' and substr(p_agency_subelement,1,2) <> 'AG' ) then
2028: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2029: hr_utility.set_message_token('PAY_PLAN','MA');
2030: hr_utility.set_message_token('AGENCY_CODE','AG');
2031: hr_utility.raise_error;
2032: elsif ( p_to_pay_plan in ('ND','NG','NT') and
2025: hr_utility.set_message_token('AGENCY_CODE','FD');
2026: hr_utility.raise_error;
2027: elsif ( p_to_pay_plan = 'MA' and substr(p_agency_subelement,1,2) <> 'AG' ) then
2028: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2029: hr_utility.set_message_token('PAY_PLAN','MA');
2030: hr_utility.set_message_token('AGENCY_CODE','AG');
2031: hr_utility.raise_error;
2032: elsif ( p_to_pay_plan in ('ND','NG','NT') and
2033: substr(p_agency_subelement,1,2) <> 'NV' ) then
2026: hr_utility.raise_error;
2027: elsif ( p_to_pay_plan = 'MA' and substr(p_agency_subelement,1,2) <> 'AG' ) then
2028: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2029: hr_utility.set_message_token('PAY_PLAN','MA');
2030: hr_utility.set_message_token('AGENCY_CODE','AG');
2031: hr_utility.raise_error;
2032: elsif ( p_to_pay_plan in ('ND','NG','NT') and
2033: substr(p_agency_subelement,1,2) <> 'NV' ) then
2034: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2027: elsif ( p_to_pay_plan = 'MA' and substr(p_agency_subelement,1,2) <> 'AG' ) then
2028: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2029: hr_utility.set_message_token('PAY_PLAN','MA');
2030: hr_utility.set_message_token('AGENCY_CODE','AG');
2031: hr_utility.raise_error;
2032: elsif ( p_to_pay_plan in ('ND','NG','NT') and
2033: substr(p_agency_subelement,1,2) <> 'NV' ) then
2034: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2035: hr_utility.set_message_token('PAY_PLAN','in ND,NG or NT');
2030: hr_utility.set_message_token('AGENCY_CODE','AG');
2031: hr_utility.raise_error;
2032: elsif ( p_to_pay_plan in ('ND','NG','NT') and
2033: substr(p_agency_subelement,1,2) <> 'NV' ) then
2034: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2035: hr_utility.set_message_token('PAY_PLAN','in ND,NG or NT');
2036: hr_utility.set_message_token('AGENCY_CODE','NV');
2037: hr_utility.raise_error;
2038: elsif ( p_to_pay_plan in('NX','NY') and
2031: hr_utility.raise_error;
2032: elsif ( p_to_pay_plan in ('ND','NG','NT') and
2033: substr(p_agency_subelement,1,2) <> 'NV' ) then
2034: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2035: hr_utility.set_message_token('PAY_PLAN','in ND,NG or NT');
2036: hr_utility.set_message_token('AGENCY_CODE','NV');
2037: hr_utility.raise_error;
2038: elsif ( p_to_pay_plan in('NX','NY') and
2039: substr(p_agency_subelement,1,2) <> 'KS' ) then
2032: elsif ( p_to_pay_plan in ('ND','NG','NT') and
2033: substr(p_agency_subelement,1,2) <> 'NV' ) then
2034: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2035: hr_utility.set_message_token('PAY_PLAN','in ND,NG or NT');
2036: hr_utility.set_message_token('AGENCY_CODE','NV');
2037: hr_utility.raise_error;
2038: elsif ( p_to_pay_plan in('NX','NY') and
2039: substr(p_agency_subelement,1,2) <> 'KS' ) then
2040: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2033: substr(p_agency_subelement,1,2) <> 'NV' ) then
2034: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2035: hr_utility.set_message_token('PAY_PLAN','in ND,NG or NT');
2036: hr_utility.set_message_token('AGENCY_CODE','NV');
2037: hr_utility.raise_error;
2038: elsif ( p_to_pay_plan in('NX','NY') and
2039: substr(p_agency_subelement,1,2) <> 'KS' ) then
2040: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2041: hr_utility.set_message_token('PAY_PLAN','NX,NY');
2036: hr_utility.set_message_token('AGENCY_CODE','NV');
2037: hr_utility.raise_error;
2038: elsif ( p_to_pay_plan in('NX','NY') and
2039: substr(p_agency_subelement,1,2) <> 'KS' ) then
2040: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2041: hr_utility.set_message_token('PAY_PLAN','NX,NY');
2042: hr_utility.set_message_token('AGENCY_CODE','KS');
2043: hr_utility.raise_error;
2044: elsif ( p_to_pay_plan = 'SN' and substr(p_agency_subelement,1,2) <> 'NU' ) then
2037: hr_utility.raise_error;
2038: elsif ( p_to_pay_plan in('NX','NY') and
2039: substr(p_agency_subelement,1,2) <> 'KS' ) then
2040: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2041: hr_utility.set_message_token('PAY_PLAN','NX,NY');
2042: hr_utility.set_message_token('AGENCY_CODE','KS');
2043: hr_utility.raise_error;
2044: elsif ( p_to_pay_plan = 'SN' and substr(p_agency_subelement,1,2) <> 'NU' ) then
2045: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2038: elsif ( p_to_pay_plan in('NX','NY') and
2039: substr(p_agency_subelement,1,2) <> 'KS' ) then
2040: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2041: hr_utility.set_message_token('PAY_PLAN','NX,NY');
2042: hr_utility.set_message_token('AGENCY_CODE','KS');
2043: hr_utility.raise_error;
2044: elsif ( p_to_pay_plan = 'SN' and substr(p_agency_subelement,1,2) <> 'NU' ) then
2045: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2046: hr_utility.set_message_token('PAY_PLAN','SN');
2039: substr(p_agency_subelement,1,2) <> 'KS' ) then
2040: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2041: hr_utility.set_message_token('PAY_PLAN','NX,NY');
2042: hr_utility.set_message_token('AGENCY_CODE','KS');
2043: hr_utility.raise_error;
2044: elsif ( p_to_pay_plan = 'SN' and substr(p_agency_subelement,1,2) <> 'NU' ) then
2045: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2046: hr_utility.set_message_token('PAY_PLAN','SN');
2047: hr_utility.set_message_token('AGENCY_CODE','NU');
2041: hr_utility.set_message_token('PAY_PLAN','NX,NY');
2042: hr_utility.set_message_token('AGENCY_CODE','KS');
2043: hr_utility.raise_error;
2044: elsif ( p_to_pay_plan = 'SN' and substr(p_agency_subelement,1,2) <> 'NU' ) then
2045: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2046: hr_utility.set_message_token('PAY_PLAN','SN');
2047: hr_utility.set_message_token('AGENCY_CODE','NU');
2048: hr_utility.raise_error;
2049: elsif ( p_to_pay_plan = 'SP' and substr(p_agency_subelement,1,2) <> 'IN' ) then
2042: hr_utility.set_message_token('AGENCY_CODE','KS');
2043: hr_utility.raise_error;
2044: elsif ( p_to_pay_plan = 'SN' and substr(p_agency_subelement,1,2) <> 'NU' ) then
2045: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2046: hr_utility.set_message_token('PAY_PLAN','SN');
2047: hr_utility.set_message_token('AGENCY_CODE','NU');
2048: hr_utility.raise_error;
2049: elsif ( p_to_pay_plan = 'SP' and substr(p_agency_subelement,1,2) <> 'IN' ) then
2050: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2043: hr_utility.raise_error;
2044: elsif ( p_to_pay_plan = 'SN' and substr(p_agency_subelement,1,2) <> 'NU' ) then
2045: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2046: hr_utility.set_message_token('PAY_PLAN','SN');
2047: hr_utility.set_message_token('AGENCY_CODE','NU');
2048: hr_utility.raise_error;
2049: elsif ( p_to_pay_plan = 'SP' and substr(p_agency_subelement,1,2) <> 'IN' ) then
2050: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2051: hr_utility.set_message_token('PAY_PLAN','SP');
2044: elsif ( p_to_pay_plan = 'SN' and substr(p_agency_subelement,1,2) <> 'NU' ) then
2045: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2046: hr_utility.set_message_token('PAY_PLAN','SN');
2047: hr_utility.set_message_token('AGENCY_CODE','NU');
2048: hr_utility.raise_error;
2049: elsif ( p_to_pay_plan = 'SP' and substr(p_agency_subelement,1,2) <> 'IN' ) then
2050: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2051: hr_utility.set_message_token('PAY_PLAN','SP');
2052: hr_utility.set_message_token('AGENCY_CODE','IN');
2046: hr_utility.set_message_token('PAY_PLAN','SN');
2047: hr_utility.set_message_token('AGENCY_CODE','NU');
2048: hr_utility.raise_error;
2049: elsif ( p_to_pay_plan = 'SP' and substr(p_agency_subelement,1,2) <> 'IN' ) then
2050: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2051: hr_utility.set_message_token('PAY_PLAN','SP');
2052: hr_utility.set_message_token('AGENCY_CODE','IN');
2053: hr_utility.raise_error;
2054: --Begin Bug 9503972
2047: hr_utility.set_message_token('AGENCY_CODE','NU');
2048: hr_utility.raise_error;
2049: elsif ( p_to_pay_plan = 'SP' and substr(p_agency_subelement,1,2) <> 'IN' ) then
2050: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2051: hr_utility.set_message_token('PAY_PLAN','SP');
2052: hr_utility.set_message_token('AGENCY_CODE','IN');
2053: hr_utility.raise_error;
2054: --Begin Bug 9503972
2055: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2048: hr_utility.raise_error;
2049: elsif ( p_to_pay_plan = 'SP' and substr(p_agency_subelement,1,2) <> 'IN' ) then
2050: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2051: hr_utility.set_message_token('PAY_PLAN','SP');
2052: hr_utility.set_message_token('AGENCY_CODE','IN');
2053: hr_utility.raise_error;
2054: --Begin Bug 9503972
2055: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2056: ( p_to_pay_plan = 'TF' and substr(p_agency_subelement,1,2) NOT IN( 'FY','HF')) then
2049: elsif ( p_to_pay_plan = 'SP' and substr(p_agency_subelement,1,2) <> 'IN' ) then
2050: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2051: hr_utility.set_message_token('PAY_PLAN','SP');
2052: hr_utility.set_message_token('AGENCY_CODE','IN');
2053: hr_utility.raise_error;
2054: --Begin Bug 9503972
2055: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2056: ( p_to_pay_plan = 'TF' and substr(p_agency_subelement,1,2) NOT IN( 'FY','HF')) then
2057: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2053: hr_utility.raise_error;
2054: --Begin Bug 9503972
2055: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2056: ( p_to_pay_plan = 'TF' and substr(p_agency_subelement,1,2) NOT IN( 'FY','HF')) then
2057: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2058: hr_utility.set_message_token('PAY_PLAN','TF');
2059: hr_utility.set_message_token('AGENCY_CODE','FY, HF');
2060: hr_utility.raise_error;
2061: --End Bug 9503972
2054: --Begin Bug 9503972
2055: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2056: ( p_to_pay_plan = 'TF' and substr(p_agency_subelement,1,2) NOT IN( 'FY','HF')) then
2057: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2058: hr_utility.set_message_token('PAY_PLAN','TF');
2059: hr_utility.set_message_token('AGENCY_CODE','FY, HF');
2060: hr_utility.raise_error;
2061: --End Bug 9503972
2062: elsif ( p_to_pay_plan = 'TF' and substr(p_agency_subelement,1,2) <> 'FY' ) then
2055: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2056: ( p_to_pay_plan = 'TF' and substr(p_agency_subelement,1,2) NOT IN( 'FY','HF')) then
2057: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2058: hr_utility.set_message_token('PAY_PLAN','TF');
2059: hr_utility.set_message_token('AGENCY_CODE','FY, HF');
2060: hr_utility.raise_error;
2061: --End Bug 9503972
2062: elsif ( p_to_pay_plan = 'TF' and substr(p_agency_subelement,1,2) <> 'FY' ) then
2063: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2056: ( p_to_pay_plan = 'TF' and substr(p_agency_subelement,1,2) NOT IN( 'FY','HF')) then
2057: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2058: hr_utility.set_message_token('PAY_PLAN','TF');
2059: hr_utility.set_message_token('AGENCY_CODE','FY, HF');
2060: hr_utility.raise_error;
2061: --End Bug 9503972
2062: elsif ( p_to_pay_plan = 'TF' and substr(p_agency_subelement,1,2) <> 'FY' ) then
2063: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2064: hr_utility.set_message_token('PAY_PLAN','TF');
2059: hr_utility.set_message_token('AGENCY_CODE','FY, HF');
2060: hr_utility.raise_error;
2061: --End Bug 9503972
2062: elsif ( p_to_pay_plan = 'TF' and substr(p_agency_subelement,1,2) <> 'FY' ) then
2063: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2064: hr_utility.set_message_token('PAY_PLAN','TF');
2065: hr_utility.set_message_token('AGENCY_CODE','FY');
2066: hr_utility.raise_error;
2067: elsif ( p_to_pay_plan = 'TP' and p_agency_subelement <> 'DD16' ) then
2060: hr_utility.raise_error;
2061: --End Bug 9503972
2062: elsif ( p_to_pay_plan = 'TF' and substr(p_agency_subelement,1,2) <> 'FY' ) then
2063: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2064: hr_utility.set_message_token('PAY_PLAN','TF');
2065: hr_utility.set_message_token('AGENCY_CODE','FY');
2066: hr_utility.raise_error;
2067: elsif ( p_to_pay_plan = 'TP' and p_agency_subelement <> 'DD16' ) then
2068: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2061: --End Bug 9503972
2062: elsif ( p_to_pay_plan = 'TF' and substr(p_agency_subelement,1,2) <> 'FY' ) then
2063: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2064: hr_utility.set_message_token('PAY_PLAN','TF');
2065: hr_utility.set_message_token('AGENCY_CODE','FY');
2066: hr_utility.raise_error;
2067: elsif ( p_to_pay_plan = 'TP' and p_agency_subelement <> 'DD16' ) then
2068: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2069: hr_utility.set_message_token('PAY_PLAN','TP');
2062: elsif ( p_to_pay_plan = 'TF' and substr(p_agency_subelement,1,2) <> 'FY' ) then
2063: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2064: hr_utility.set_message_token('PAY_PLAN','TF');
2065: hr_utility.set_message_token('AGENCY_CODE','FY');
2066: hr_utility.raise_error;
2067: elsif ( p_to_pay_plan = 'TP' and p_agency_subelement <> 'DD16' ) then
2068: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2069: hr_utility.set_message_token('PAY_PLAN','TP');
2070: hr_utility.set_message_token('AGENCY_CODE','DD16');
2064: hr_utility.set_message_token('PAY_PLAN','TF');
2065: hr_utility.set_message_token('AGENCY_CODE','FY');
2066: hr_utility.raise_error;
2067: elsif ( p_to_pay_plan = 'TP' and p_agency_subelement <> 'DD16' ) then
2068: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2069: hr_utility.set_message_token('PAY_PLAN','TP');
2070: hr_utility.set_message_token('AGENCY_CODE','DD16');
2071: hr_utility.raise_error;
2072: elsif ( p_to_pay_plan = 'TR' and p_agency_subelement not in ('TRAI','TRAD')) then
2065: hr_utility.set_message_token('AGENCY_CODE','FY');
2066: hr_utility.raise_error;
2067: elsif ( p_to_pay_plan = 'TP' and p_agency_subelement <> 'DD16' ) then
2068: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2069: hr_utility.set_message_token('PAY_PLAN','TP');
2070: hr_utility.set_message_token('AGENCY_CODE','DD16');
2071: hr_utility.raise_error;
2072: elsif ( p_to_pay_plan = 'TR' and p_agency_subelement not in ('TRAI','TRAD')) then
2073: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2066: hr_utility.raise_error;
2067: elsif ( p_to_pay_plan = 'TP' and p_agency_subelement <> 'DD16' ) then
2068: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2069: hr_utility.set_message_token('PAY_PLAN','TP');
2070: hr_utility.set_message_token('AGENCY_CODE','DD16');
2071: hr_utility.raise_error;
2072: elsif ( p_to_pay_plan = 'TR' and p_agency_subelement not in ('TRAI','TRAD')) then
2073: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2074: hr_utility.set_message_token('PAY_PLAN','TR');
2067: elsif ( p_to_pay_plan = 'TP' and p_agency_subelement <> 'DD16' ) then
2068: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2069: hr_utility.set_message_token('PAY_PLAN','TP');
2070: hr_utility.set_message_token('AGENCY_CODE','DD16');
2071: hr_utility.raise_error;
2072: elsif ( p_to_pay_plan = 'TR' and p_agency_subelement not in ('TRAI','TRAD')) then
2073: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2074: hr_utility.set_message_token('PAY_PLAN','TR');
2075: hr_utility.set_message_token('AGENCY_CODE','TRAI,TRAD');
2069: hr_utility.set_message_token('PAY_PLAN','TP');
2070: hr_utility.set_message_token('AGENCY_CODE','DD16');
2071: hr_utility.raise_error;
2072: elsif ( p_to_pay_plan = 'TR' and p_agency_subelement not in ('TRAI','TRAD')) then
2073: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2074: hr_utility.set_message_token('PAY_PLAN','TR');
2075: hr_utility.set_message_token('AGENCY_CODE','TRAI,TRAD');
2076: hr_utility.raise_error;
2077: --Begin Bug 9503972
2070: hr_utility.set_message_token('AGENCY_CODE','DD16');
2071: hr_utility.raise_error;
2072: elsif ( p_to_pay_plan = 'TR' and p_agency_subelement not in ('TRAI','TRAD')) then
2073: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2074: hr_utility.set_message_token('PAY_PLAN','TR');
2075: hr_utility.set_message_token('AGENCY_CODE','TRAI,TRAD');
2076: hr_utility.raise_error;
2077: --Begin Bug 9503972
2078: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2071: hr_utility.raise_error;
2072: elsif ( p_to_pay_plan = 'TR' and p_agency_subelement not in ('TRAI','TRAD')) then
2073: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2074: hr_utility.set_message_token('PAY_PLAN','TR');
2075: hr_utility.set_message_token('AGENCY_CODE','TRAI,TRAD');
2076: hr_utility.raise_error;
2077: --Begin Bug 9503972
2078: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2079: (p_to_pay_plan = 'TS' and substr(p_agency_subelement,1,2) NOT IN ('FY','HF')) then
2072: elsif ( p_to_pay_plan = 'TR' and p_agency_subelement not in ('TRAI','TRAD')) then
2073: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2074: hr_utility.set_message_token('PAY_PLAN','TR');
2075: hr_utility.set_message_token('AGENCY_CODE','TRAI,TRAD');
2076: hr_utility.raise_error;
2077: --Begin Bug 9503972
2078: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2079: (p_to_pay_plan = 'TS' and substr(p_agency_subelement,1,2) NOT IN ('FY','HF')) then
2080: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2076: hr_utility.raise_error;
2077: --Begin Bug 9503972
2078: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2079: (p_to_pay_plan = 'TS' and substr(p_agency_subelement,1,2) NOT IN ('FY','HF')) then
2080: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2081: hr_utility.set_message_token('PAY_PLAN','TS');
2082: hr_utility.set_message_token('AGENCY_CODE','FY, HF');
2083: hr_utility.raise_error;
2084: --End Bug 9503972
2077: --Begin Bug 9503972
2078: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2079: (p_to_pay_plan = 'TS' and substr(p_agency_subelement,1,2) NOT IN ('FY','HF')) then
2080: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2081: hr_utility.set_message_token('PAY_PLAN','TS');
2082: hr_utility.set_message_token('AGENCY_CODE','FY, HF');
2083: hr_utility.raise_error;
2084: --End Bug 9503972
2085: elsif ( p_to_pay_plan = 'TS' and substr(p_agency_subelement,1,2) <> 'FY' ) then
2078: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2079: (p_to_pay_plan = 'TS' and substr(p_agency_subelement,1,2) NOT IN ('FY','HF')) then
2080: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2081: hr_utility.set_message_token('PAY_PLAN','TS');
2082: hr_utility.set_message_token('AGENCY_CODE','FY, HF');
2083: hr_utility.raise_error;
2084: --End Bug 9503972
2085: elsif ( p_to_pay_plan = 'TS' and substr(p_agency_subelement,1,2) <> 'FY' ) then
2086: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2079: (p_to_pay_plan = 'TS' and substr(p_agency_subelement,1,2) NOT IN ('FY','HF')) then
2080: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2081: hr_utility.set_message_token('PAY_PLAN','TS');
2082: hr_utility.set_message_token('AGENCY_CODE','FY, HF');
2083: hr_utility.raise_error;
2084: --End Bug 9503972
2085: elsif ( p_to_pay_plan = 'TS' and substr(p_agency_subelement,1,2) <> 'FY' ) then
2086: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2087: hr_utility.set_message_token('PAY_PLAN','TS');
2082: hr_utility.set_message_token('AGENCY_CODE','FY, HF');
2083: hr_utility.raise_error;
2084: --End Bug 9503972
2085: elsif ( p_to_pay_plan = 'TS' and substr(p_agency_subelement,1,2) <> 'FY' ) then
2086: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2087: hr_utility.set_message_token('PAY_PLAN','TS');
2088: hr_utility.set_message_token('AGENCY_CODE','FY');
2089: hr_utility.raise_error;
2090: elsif ( p_to_pay_plan in('VC','VM','VN','VP') and
2083: hr_utility.raise_error;
2084: --End Bug 9503972
2085: elsif ( p_to_pay_plan = 'TS' and substr(p_agency_subelement,1,2) <> 'FY' ) then
2086: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2087: hr_utility.set_message_token('PAY_PLAN','TS');
2088: hr_utility.set_message_token('AGENCY_CODE','FY');
2089: hr_utility.raise_error;
2090: elsif ( p_to_pay_plan in('VC','VM','VN','VP') and
2091: substr(p_agency_subelement,1,2) <> 'VA' ) then
2084: --End Bug 9503972
2085: elsif ( p_to_pay_plan = 'TS' and substr(p_agency_subelement,1,2) <> 'FY' ) then
2086: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2087: hr_utility.set_message_token('PAY_PLAN','TS');
2088: hr_utility.set_message_token('AGENCY_CODE','FY');
2089: hr_utility.raise_error;
2090: elsif ( p_to_pay_plan in('VC','VM','VN','VP') and
2091: substr(p_agency_subelement,1,2) <> 'VA' ) then
2092: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2085: elsif ( p_to_pay_plan = 'TS' and substr(p_agency_subelement,1,2) <> 'FY' ) then
2086: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2087: hr_utility.set_message_token('PAY_PLAN','TS');
2088: hr_utility.set_message_token('AGENCY_CODE','FY');
2089: hr_utility.raise_error;
2090: elsif ( p_to_pay_plan in('VC','VM','VN','VP') and
2091: substr(p_agency_subelement,1,2) <> 'VA' ) then
2092: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2093: hr_utility.set_message_token('PAY_PLAN','VC,VM,VN or VP');
2088: hr_utility.set_message_token('AGENCY_CODE','FY');
2089: hr_utility.raise_error;
2090: elsif ( p_to_pay_plan in('VC','VM','VN','VP') and
2091: substr(p_agency_subelement,1,2) <> 'VA' ) then
2092: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2093: hr_utility.set_message_token('PAY_PLAN','VC,VM,VN or VP');
2094: hr_utility.set_message_token('AGENCY_CODE','VA');
2095: hr_utility.raise_error;
2096: elsif ( p_to_pay_plan = 'WA' and substr(p_agency_subelement,1,2) <> 'AR' ) then
2089: hr_utility.raise_error;
2090: elsif ( p_to_pay_plan in('VC','VM','VN','VP') and
2091: substr(p_agency_subelement,1,2) <> 'VA' ) then
2092: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2093: hr_utility.set_message_token('PAY_PLAN','VC,VM,VN or VP');
2094: hr_utility.set_message_token('AGENCY_CODE','VA');
2095: hr_utility.raise_error;
2096: elsif ( p_to_pay_plan = 'WA' and substr(p_agency_subelement,1,2) <> 'AR' ) then
2097: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2090: elsif ( p_to_pay_plan in('VC','VM','VN','VP') and
2091: substr(p_agency_subelement,1,2) <> 'VA' ) then
2092: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2093: hr_utility.set_message_token('PAY_PLAN','VC,VM,VN or VP');
2094: hr_utility.set_message_token('AGENCY_CODE','VA');
2095: hr_utility.raise_error;
2096: elsif ( p_to_pay_plan = 'WA' and substr(p_agency_subelement,1,2) <> 'AR' ) then
2097: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2098: hr_utility.set_message_token('PAY_PLAN','WA');
2091: substr(p_agency_subelement,1,2) <> 'VA' ) then
2092: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2093: hr_utility.set_message_token('PAY_PLAN','VC,VM,VN or VP');
2094: hr_utility.set_message_token('AGENCY_CODE','VA');
2095: hr_utility.raise_error;
2096: elsif ( p_to_pay_plan = 'WA' and substr(p_agency_subelement,1,2) <> 'AR' ) then
2097: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2098: hr_utility.set_message_token('PAY_PLAN','WA');
2099: hr_utility.set_message_token('AGENCY_CODE','AR');
2093: hr_utility.set_message_token('PAY_PLAN','VC,VM,VN or VP');
2094: hr_utility.set_message_token('AGENCY_CODE','VA');
2095: hr_utility.raise_error;
2096: elsif ( p_to_pay_plan = 'WA' and substr(p_agency_subelement,1,2) <> 'AR' ) then
2097: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2098: hr_utility.set_message_token('PAY_PLAN','WA');
2099: hr_utility.set_message_token('AGENCY_CODE','AR');
2100: hr_utility.raise_error;
2101: elsif ( p_to_pay_plan = 'WE' and substr(p_agency_subelement,1,2) <> 'TR' ) then
2094: hr_utility.set_message_token('AGENCY_CODE','VA');
2095: hr_utility.raise_error;
2096: elsif ( p_to_pay_plan = 'WA' and substr(p_agency_subelement,1,2) <> 'AR' ) then
2097: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2098: hr_utility.set_message_token('PAY_PLAN','WA');
2099: hr_utility.set_message_token('AGENCY_CODE','AR');
2100: hr_utility.raise_error;
2101: elsif ( p_to_pay_plan = 'WE' and substr(p_agency_subelement,1,2) <> 'TR' ) then
2102: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2095: hr_utility.raise_error;
2096: elsif ( p_to_pay_plan = 'WA' and substr(p_agency_subelement,1,2) <> 'AR' ) then
2097: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2098: hr_utility.set_message_token('PAY_PLAN','WA');
2099: hr_utility.set_message_token('AGENCY_CODE','AR');
2100: hr_utility.raise_error;
2101: elsif ( p_to_pay_plan = 'WE' and substr(p_agency_subelement,1,2) <> 'TR' ) then
2102: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2103: hr_utility.set_message_token('PAY_PLAN','WE');
2096: elsif ( p_to_pay_plan = 'WA' and substr(p_agency_subelement,1,2) <> 'AR' ) then
2097: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2098: hr_utility.set_message_token('PAY_PLAN','WA');
2099: hr_utility.set_message_token('AGENCY_CODE','AR');
2100: hr_utility.raise_error;
2101: elsif ( p_to_pay_plan = 'WE' and substr(p_agency_subelement,1,2) <> 'TR' ) then
2102: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2103: hr_utility.set_message_token('PAY_PLAN','WE');
2104: hr_utility.set_message_token('AGENCY_CODE','TR');
2098: hr_utility.set_message_token('PAY_PLAN','WA');
2099: hr_utility.set_message_token('AGENCY_CODE','AR');
2100: hr_utility.raise_error;
2101: elsif ( p_to_pay_plan = 'WE' and substr(p_agency_subelement,1,2) <> 'TR' ) then
2102: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2103: hr_utility.set_message_token('PAY_PLAN','WE');
2104: hr_utility.set_message_token('AGENCY_CODE','TR');
2105: hr_utility.raise_error;
2106: elsif ( p_to_pay_plan in('WJ','WK','WO','WY') and
2099: hr_utility.set_message_token('AGENCY_CODE','AR');
2100: hr_utility.raise_error;
2101: elsif ( p_to_pay_plan = 'WE' and substr(p_agency_subelement,1,2) <> 'TR' ) then
2102: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2103: hr_utility.set_message_token('PAY_PLAN','WE');
2104: hr_utility.set_message_token('AGENCY_CODE','TR');
2105: hr_utility.raise_error;
2106: elsif ( p_to_pay_plan in('WJ','WK','WO','WY') and
2107: substr(p_agency_subelement,1,2) <> 'AR' ) then
2100: hr_utility.raise_error;
2101: elsif ( p_to_pay_plan = 'WE' and substr(p_agency_subelement,1,2) <> 'TR' ) then
2102: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2103: hr_utility.set_message_token('PAY_PLAN','WE');
2104: hr_utility.set_message_token('AGENCY_CODE','TR');
2105: hr_utility.raise_error;
2106: elsif ( p_to_pay_plan in('WJ','WK','WO','WY') and
2107: substr(p_agency_subelement,1,2) <> 'AR' ) then
2108: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2101: elsif ( p_to_pay_plan = 'WE' and substr(p_agency_subelement,1,2) <> 'TR' ) then
2102: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2103: hr_utility.set_message_token('PAY_PLAN','WE');
2104: hr_utility.set_message_token('AGENCY_CODE','TR');
2105: hr_utility.raise_error;
2106: elsif ( p_to_pay_plan in('WJ','WK','WO','WY') and
2107: substr(p_agency_subelement,1,2) <> 'AR' ) then
2108: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2109: hr_utility.set_message_token('PAY_PLAN','WJ,WK,WO or WY');
2104: hr_utility.set_message_token('AGENCY_CODE','TR');
2105: hr_utility.raise_error;
2106: elsif ( p_to_pay_plan in('WJ','WK','WO','WY') and
2107: substr(p_agency_subelement,1,2) <> 'AR' ) then
2108: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2109: hr_utility.set_message_token('PAY_PLAN','WJ,WK,WO or WY');
2110: hr_utility.set_message_token('AGENCY_CODE','AR');
2111: hr_utility.raise_error;
2112: elsif ( p_to_pay_plan in('XA','XB','XC') and
2105: hr_utility.raise_error;
2106: elsif ( p_to_pay_plan in('WJ','WK','WO','WY') and
2107: substr(p_agency_subelement,1,2) <> 'AR' ) then
2108: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2109: hr_utility.set_message_token('PAY_PLAN','WJ,WK,WO or WY');
2110: hr_utility.set_message_token('AGENCY_CODE','AR');
2111: hr_utility.raise_error;
2112: elsif ( p_to_pay_plan in('XA','XB','XC') and
2113: substr(p_agency_subelement,1,2) <> 'IN' ) then
2106: elsif ( p_to_pay_plan in('WJ','WK','WO','WY') and
2107: substr(p_agency_subelement,1,2) <> 'AR' ) then
2108: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2109: hr_utility.set_message_token('PAY_PLAN','WJ,WK,WO or WY');
2110: hr_utility.set_message_token('AGENCY_CODE','AR');
2111: hr_utility.raise_error;
2112: elsif ( p_to_pay_plan in('XA','XB','XC') and
2113: substr(p_agency_subelement,1,2) <> 'IN' ) then
2114: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2107: substr(p_agency_subelement,1,2) <> 'AR' ) then
2108: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2109: hr_utility.set_message_token('PAY_PLAN','WJ,WK,WO or WY');
2110: hr_utility.set_message_token('AGENCY_CODE','AR');
2111: hr_utility.raise_error;
2112: elsif ( p_to_pay_plan in('XA','XB','XC') and
2113: substr(p_agency_subelement,1,2) <> 'IN' ) then
2114: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2115: hr_utility.set_message_token('PAY_PLAN','XA,XB or XC');
2110: hr_utility.set_message_token('AGENCY_CODE','AR');
2111: hr_utility.raise_error;
2112: elsif ( p_to_pay_plan in('XA','XB','XC') and
2113: substr(p_agency_subelement,1,2) <> 'IN' ) then
2114: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2115: hr_utility.set_message_token('PAY_PLAN','XA,XB or XC');
2116: hr_utility.set_message_token('AGENCY_CODE','IN');
2117: hr_utility.raise_error;
2118: elsif ( p_to_pay_plan = 'XE' and p_agency_subelement <> 'IN07' ) then
2111: hr_utility.raise_error;
2112: elsif ( p_to_pay_plan in('XA','XB','XC') and
2113: substr(p_agency_subelement,1,2) <> 'IN' ) then
2114: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2115: hr_utility.set_message_token('PAY_PLAN','XA,XB or XC');
2116: hr_utility.set_message_token('AGENCY_CODE','IN');
2117: hr_utility.raise_error;
2118: elsif ( p_to_pay_plan = 'XE' and p_agency_subelement <> 'IN07' ) then
2119: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2112: elsif ( p_to_pay_plan in('XA','XB','XC') and
2113: substr(p_agency_subelement,1,2) <> 'IN' ) then
2114: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2115: hr_utility.set_message_token('PAY_PLAN','XA,XB or XC');
2116: hr_utility.set_message_token('AGENCY_CODE','IN');
2117: hr_utility.raise_error;
2118: elsif ( p_to_pay_plan = 'XE' and p_agency_subelement <> 'IN07' ) then
2119: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2120: hr_utility.set_message_token('PAY_PLAN','XE');
2113: substr(p_agency_subelement,1,2) <> 'IN' ) then
2114: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2115: hr_utility.set_message_token('PAY_PLAN','XA,XB or XC');
2116: hr_utility.set_message_token('AGENCY_CODE','IN');
2117: hr_utility.raise_error;
2118: elsif ( p_to_pay_plan = 'XE' and p_agency_subelement <> 'IN07' ) then
2119: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2120: hr_utility.set_message_token('PAY_PLAN','XE');
2121: hr_utility.set_message_token('AGENCY_CODE','IN07');
2115: hr_utility.set_message_token('PAY_PLAN','XA,XB or XC');
2116: hr_utility.set_message_token('AGENCY_CODE','IN');
2117: hr_utility.raise_error;
2118: elsif ( p_to_pay_plan = 'XE' and p_agency_subelement <> 'IN07' ) then
2119: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2120: hr_utility.set_message_token('PAY_PLAN','XE');
2121: hr_utility.set_message_token('AGENCY_CODE','IN07');
2122: hr_utility.raise_error;
2123: elsif ( p_to_pay_plan in ('CG','EO','EM') and substr(p_agency_subelement,1,2) <> 'FD' ) then
2116: hr_utility.set_message_token('AGENCY_CODE','IN');
2117: hr_utility.raise_error;
2118: elsif ( p_to_pay_plan = 'XE' and p_agency_subelement <> 'IN07' ) then
2119: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2120: hr_utility.set_message_token('PAY_PLAN','XE');
2121: hr_utility.set_message_token('AGENCY_CODE','IN07');
2122: hr_utility.raise_error;
2123: elsif ( p_to_pay_plan in ('CG','EO','EM') and substr(p_agency_subelement,1,2) <> 'FD' ) then
2124: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2117: hr_utility.raise_error;
2118: elsif ( p_to_pay_plan = 'XE' and p_agency_subelement <> 'IN07' ) then
2119: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2120: hr_utility.set_message_token('PAY_PLAN','XE');
2121: hr_utility.set_message_token('AGENCY_CODE','IN07');
2122: hr_utility.raise_error;
2123: elsif ( p_to_pay_plan in ('CG','EO','EM') and substr(p_agency_subelement,1,2) <> 'FD' ) then
2124: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2125: hr_utility.set_message_token('PAY_PLAN','in CG,EO or EM');
2118: elsif ( p_to_pay_plan = 'XE' and p_agency_subelement <> 'IN07' ) then
2119: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2120: hr_utility.set_message_token('PAY_PLAN','XE');
2121: hr_utility.set_message_token('AGENCY_CODE','IN07');
2122: hr_utility.raise_error;
2123: elsif ( p_to_pay_plan in ('CG','EO','EM') and substr(p_agency_subelement,1,2) <> 'FD' ) then
2124: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2125: hr_utility.set_message_token('PAY_PLAN','in CG,EO or EM');
2126: hr_utility.set_message_token('AGENCY_CODE','FD');
2120: hr_utility.set_message_token('PAY_PLAN','XE');
2121: hr_utility.set_message_token('AGENCY_CODE','IN07');
2122: hr_utility.raise_error;
2123: elsif ( p_to_pay_plan in ('CG','EO','EM') and substr(p_agency_subelement,1,2) <> 'FD' ) then
2124: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2125: hr_utility.set_message_token('PAY_PLAN','in CG,EO or EM');
2126: hr_utility.set_message_token('AGENCY_CODE','FD');
2127: hr_utility.raise_error;
2128: --Begin Bug# 8309414 remove pay plan MG eff 17-apr-08
2121: hr_utility.set_message_token('AGENCY_CODE','IN07');
2122: hr_utility.raise_error;
2123: elsif ( p_to_pay_plan in ('CG','EO','EM') and substr(p_agency_subelement,1,2) <> 'FD' ) then
2124: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2125: hr_utility.set_message_token('PAY_PLAN','in CG,EO or EM');
2126: hr_utility.set_message_token('AGENCY_CODE','FD');
2127: hr_utility.raise_error;
2128: --Begin Bug# 8309414 remove pay plan MG eff 17-apr-08
2129: elsif p_effective_date < fnd_date.canonical_to_date('2008/04/17') and
2122: hr_utility.raise_error;
2123: elsif ( p_to_pay_plan in ('CG','EO','EM') and substr(p_agency_subelement,1,2) <> 'FD' ) then
2124: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2125: hr_utility.set_message_token('PAY_PLAN','in CG,EO or EM');
2126: hr_utility.set_message_token('AGENCY_CODE','FD');
2127: hr_utility.raise_error;
2128: --Begin Bug# 8309414 remove pay plan MG eff 17-apr-08
2129: elsif p_effective_date < fnd_date.canonical_to_date('2008/04/17') and
2130: ( p_to_pay_plan in ('MG','MS','MX') and substr(p_agency_subelement,1,2) <> 'HU' ) then
2123: elsif ( p_to_pay_plan in ('CG','EO','EM') and substr(p_agency_subelement,1,2) <> 'FD' ) then
2124: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2125: hr_utility.set_message_token('PAY_PLAN','in CG,EO or EM');
2126: hr_utility.set_message_token('AGENCY_CODE','FD');
2127: hr_utility.raise_error;
2128: --Begin Bug# 8309414 remove pay plan MG eff 17-apr-08
2129: elsif p_effective_date < fnd_date.canonical_to_date('2008/04/17') and
2130: ( p_to_pay_plan in ('MG','MS','MX') and substr(p_agency_subelement,1,2) <> 'HU' ) then
2131: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2127: hr_utility.raise_error;
2128: --Begin Bug# 8309414 remove pay plan MG eff 17-apr-08
2129: elsif p_effective_date < fnd_date.canonical_to_date('2008/04/17') and
2130: ( p_to_pay_plan in ('MG','MS','MX') and substr(p_agency_subelement,1,2) <> 'HU' ) then
2131: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2132: hr_utility.set_message_token('PAY_PLAN','in MG,MS or MX');
2133: hr_utility.set_message_token('AGENCY_CODE','HU');
2134: hr_utility.raise_error;
2135: elsif ( p_to_pay_plan in ('MS','MX') and substr(p_agency_subelement,1,2) <> 'HU' ) then
2128: --Begin Bug# 8309414 remove pay plan MG eff 17-apr-08
2129: elsif p_effective_date < fnd_date.canonical_to_date('2008/04/17') and
2130: ( p_to_pay_plan in ('MG','MS','MX') and substr(p_agency_subelement,1,2) <> 'HU' ) then
2131: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2132: hr_utility.set_message_token('PAY_PLAN','in MG,MS or MX');
2133: hr_utility.set_message_token('AGENCY_CODE','HU');
2134: hr_utility.raise_error;
2135: elsif ( p_to_pay_plan in ('MS','MX') and substr(p_agency_subelement,1,2) <> 'HU' ) then
2136: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2129: elsif p_effective_date < fnd_date.canonical_to_date('2008/04/17') and
2130: ( p_to_pay_plan in ('MG','MS','MX') and substr(p_agency_subelement,1,2) <> 'HU' ) then
2131: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2132: hr_utility.set_message_token('PAY_PLAN','in MG,MS or MX');
2133: hr_utility.set_message_token('AGENCY_CODE','HU');
2134: hr_utility.raise_error;
2135: elsif ( p_to_pay_plan in ('MS','MX') and substr(p_agency_subelement,1,2) <> 'HU' ) then
2136: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2137: hr_utility.set_message_token('PAY_PLAN','in MS or MX');
2130: ( p_to_pay_plan in ('MG','MS','MX') and substr(p_agency_subelement,1,2) <> 'HU' ) then
2131: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2132: hr_utility.set_message_token('PAY_PLAN','in MG,MS or MX');
2133: hr_utility.set_message_token('AGENCY_CODE','HU');
2134: hr_utility.raise_error;
2135: elsif ( p_to_pay_plan in ('MS','MX') and substr(p_agency_subelement,1,2) <> 'HU' ) then
2136: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2137: hr_utility.set_message_token('PAY_PLAN','in MS or MX');
2138: hr_utility.set_message_token('AGENCY_CODE','HU');
2132: hr_utility.set_message_token('PAY_PLAN','in MG,MS or MX');
2133: hr_utility.set_message_token('AGENCY_CODE','HU');
2134: hr_utility.raise_error;
2135: elsif ( p_to_pay_plan in ('MS','MX') and substr(p_agency_subelement,1,2) <> 'HU' ) then
2136: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2137: hr_utility.set_message_token('PAY_PLAN','in MS or MX');
2138: hr_utility.set_message_token('AGENCY_CODE','HU');
2139: hr_utility.raise_error;
2140: --End Bug# 8309414
2133: hr_utility.set_message_token('AGENCY_CODE','HU');
2134: hr_utility.raise_error;
2135: elsif ( p_to_pay_plan in ('MS','MX') and substr(p_agency_subelement,1,2) <> 'HU' ) then
2136: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2137: hr_utility.set_message_token('PAY_PLAN','in MS or MX');
2138: hr_utility.set_message_token('AGENCY_CODE','HU');
2139: hr_utility.raise_error;
2140: --End Bug# 8309414
2141: elsif ( p_to_pay_plan in('ZA','ZP','ZS','ZT') and
2134: hr_utility.raise_error;
2135: elsif ( p_to_pay_plan in ('MS','MX') and substr(p_agency_subelement,1,2) <> 'HU' ) then
2136: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2137: hr_utility.set_message_token('PAY_PLAN','in MS or MX');
2138: hr_utility.set_message_token('AGENCY_CODE','HU');
2139: hr_utility.raise_error;
2140: --End Bug# 8309414
2141: elsif ( p_to_pay_plan in('ZA','ZP','ZS','ZT') and
2142: p_agency_subelement <> 'CM' ) then
2135: elsif ( p_to_pay_plan in ('MS','MX') and substr(p_agency_subelement,1,2) <> 'HU' ) then
2136: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2137: hr_utility.set_message_token('PAY_PLAN','in MS or MX');
2138: hr_utility.set_message_token('AGENCY_CODE','HU');
2139: hr_utility.raise_error;
2140: --End Bug# 8309414
2141: elsif ( p_to_pay_plan in('ZA','ZP','ZS','ZT') and
2142: p_agency_subelement <> 'CM' ) then
2143: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2139: hr_utility.raise_error;
2140: --End Bug# 8309414
2141: elsif ( p_to_pay_plan in('ZA','ZP','ZS','ZT') and
2142: p_agency_subelement <> 'CM' ) then
2143: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2144: hr_utility.set_message_token('PAY_PLAN','in ZA,ZP,ZS or ZT');
2145: hr_utility.set_message_token('AGENCY_CODE','CM');
2146: hr_utility.raise_error;
2147: elsif ( p_to_pay_plan in('DA','DG','DP','DS','DT') and
2140: --End Bug# 8309414
2141: elsif ( p_to_pay_plan in('ZA','ZP','ZS','ZT') and
2142: p_agency_subelement <> 'CM' ) then
2143: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2144: hr_utility.set_message_token('PAY_PLAN','in ZA,ZP,ZS or ZT');
2145: hr_utility.set_message_token('AGENCY_CODE','CM');
2146: hr_utility.raise_error;
2147: elsif ( p_to_pay_plan in('DA','DG','DP','DS','DT') and
2148: substr(p_agency_subelement,1,2) <> 'NV' ) then
2141: elsif ( p_to_pay_plan in('ZA','ZP','ZS','ZT') and
2142: p_agency_subelement <> 'CM' ) then
2143: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2144: hr_utility.set_message_token('PAY_PLAN','in ZA,ZP,ZS or ZT');
2145: hr_utility.set_message_token('AGENCY_CODE','CM');
2146: hr_utility.raise_error;
2147: elsif ( p_to_pay_plan in('DA','DG','DP','DS','DT') and
2148: substr(p_agency_subelement,1,2) <> 'NV' ) then
2149: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2142: p_agency_subelement <> 'CM' ) then
2143: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2144: hr_utility.set_message_token('PAY_PLAN','in ZA,ZP,ZS or ZT');
2145: hr_utility.set_message_token('AGENCY_CODE','CM');
2146: hr_utility.raise_error;
2147: elsif ( p_to_pay_plan in('DA','DG','DP','DS','DT') and
2148: substr(p_agency_subelement,1,2) <> 'NV' ) then
2149: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2150: hr_utility.set_message_token('PAY_PLAN','in DA,DG,DP,DS or DT');
2145: hr_utility.set_message_token('AGENCY_CODE','CM');
2146: hr_utility.raise_error;
2147: elsif ( p_to_pay_plan in('DA','DG','DP','DS','DT') and
2148: substr(p_agency_subelement,1,2) <> 'NV' ) then
2149: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2150: hr_utility.set_message_token('PAY_PLAN','in DA,DG,DP,DS or DT');
2151: hr_utility.set_message_token('AGENCY_CODE','NV');
2152: hr_utility.raise_error;
2153: elsif ( p_to_pay_plan in ('NH','NJ','NK') and
2146: hr_utility.raise_error;
2147: elsif ( p_to_pay_plan in('DA','DG','DP','DS','DT') and
2148: substr(p_agency_subelement,1,2) <> 'NV' ) then
2149: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2150: hr_utility.set_message_token('PAY_PLAN','in DA,DG,DP,DS or DT');
2151: hr_utility.set_message_token('AGENCY_CODE','NV');
2152: hr_utility.raise_error;
2153: elsif ( p_to_pay_plan in ('NH','NJ','NK') and
2154: substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') and
2147: elsif ( p_to_pay_plan in('DA','DG','DP','DS','DT') and
2148: substr(p_agency_subelement,1,2) <> 'NV' ) then
2149: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2150: hr_utility.set_message_token('PAY_PLAN','in DA,DG,DP,DS or DT');
2151: hr_utility.set_message_token('AGENCY_CODE','NV');
2152: hr_utility.raise_error;
2153: elsif ( p_to_pay_plan in ('NH','NJ','NK') and
2154: substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') and
2155: p_effective_date >= fnd_date.canonical_to_date('1998/03/01') ) then
2148: substr(p_agency_subelement,1,2) <> 'NV' ) then
2149: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2150: hr_utility.set_message_token('PAY_PLAN','in DA,DG,DP,DS or DT');
2151: hr_utility.set_message_token('AGENCY_CODE','NV');
2152: hr_utility.raise_error;
2153: elsif ( p_to_pay_plan in ('NH','NJ','NK') and
2154: substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') and
2155: p_effective_date >= fnd_date.canonical_to_date('1998/03/01') ) then
2156: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2152: hr_utility.raise_error;
2153: elsif ( p_to_pay_plan in ('NH','NJ','NK') and
2154: substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') and
2155: p_effective_date >= fnd_date.canonical_to_date('1998/03/01') ) then
2156: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2157: hr_utility.set_message_token('PAY_PLAN','in NH,NJ or NK');
2158: hr_utility.set_message_token('AGENCY_CODE','in AF,AR,DD or NV');
2159: hr_utility.raise_error;
2160: elsif ( p_to_pay_plan in ('AT','EV','FV') and
2153: elsif ( p_to_pay_plan in ('NH','NJ','NK') and
2154: substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') and
2155: p_effective_date >= fnd_date.canonical_to_date('1998/03/01') ) then
2156: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2157: hr_utility.set_message_token('PAY_PLAN','in NH,NJ or NK');
2158: hr_utility.set_message_token('AGENCY_CODE','in AF,AR,DD or NV');
2159: hr_utility.raise_error;
2160: elsif ( p_to_pay_plan in ('AT','EV','FV') and
2161: p_effective_date >= fnd_date.canonical_to_date('1998/10/01') and
2154: substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') and
2155: p_effective_date >= fnd_date.canonical_to_date('1998/03/01') ) then
2156: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2157: hr_utility.set_message_token('PAY_PLAN','in NH,NJ or NK');
2158: hr_utility.set_message_token('AGENCY_CODE','in AF,AR,DD or NV');
2159: hr_utility.raise_error;
2160: elsif ( p_to_pay_plan in ('AT','EV','FV') and
2161: p_effective_date >= fnd_date.canonical_to_date('1998/10/01') and
2162: p_agency_subelement <> 'TD03' ) then
2155: p_effective_date >= fnd_date.canonical_to_date('1998/03/01') ) then
2156: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2157: hr_utility.set_message_token('PAY_PLAN','in NH,NJ or NK');
2158: hr_utility.set_message_token('AGENCY_CODE','in AF,AR,DD or NV');
2159: hr_utility.raise_error;
2160: elsif ( p_to_pay_plan in ('AT','EV','FV') and
2161: p_effective_date >= fnd_date.canonical_to_date('1998/10/01') and
2162: p_agency_subelement <> 'TD03' ) then
2163: hr_utility.set_location('In pay plan AT', 12);
2159: hr_utility.raise_error;
2160: elsif ( p_to_pay_plan in ('AT','EV','FV') and
2161: p_effective_date >= fnd_date.canonical_to_date('1998/10/01') and
2162: p_agency_subelement <> 'TD03' ) then
2163: hr_utility.set_location('In pay plan AT', 12);
2164: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2165: hr_utility.set_message_token('PAY_PLAN','in AT,EV or FV');
2166: hr_utility.set_message_token('AGENCY_CODE','TD03');
2167: hr_utility.raise_error;
2160: elsif ( p_to_pay_plan in ('AT','EV','FV') and
2161: p_effective_date >= fnd_date.canonical_to_date('1998/10/01') and
2162: p_agency_subelement <> 'TD03' ) then
2163: hr_utility.set_location('In pay plan AT', 12);
2164: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2165: hr_utility.set_message_token('PAY_PLAN','in AT,EV or FV');
2166: hr_utility.set_message_token('AGENCY_CODE','TD03');
2167: hr_utility.raise_error;
2168: --
2161: p_effective_date >= fnd_date.canonical_to_date('1998/10/01') and
2162: p_agency_subelement <> 'TD03' ) then
2163: hr_utility.set_location('In pay plan AT', 12);
2164: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2165: hr_utility.set_message_token('PAY_PLAN','in AT,EV or FV');
2166: hr_utility.set_message_token('AGENCY_CODE','TD03');
2167: hr_utility.raise_error;
2168: --
2169: -- Deleting entries for Pay Plans - JA,JB,JC,JD,JE. DATE: 14-SEP-2004 for EOY - I
2162: p_agency_subelement <> 'TD03' ) then
2163: hr_utility.set_location('In pay plan AT', 12);
2164: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2165: hr_utility.set_message_token('PAY_PLAN','in AT,EV or FV');
2166: hr_utility.set_message_token('AGENCY_CODE','TD03');
2167: hr_utility.raise_error;
2168: --
2169: -- Deleting entries for Pay Plans - JA,JB,JC,JD,JE. DATE: 14-SEP-2004 for EOY - I
2170: --
2163: hr_utility.set_location('In pay plan AT', 12);
2164: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2165: hr_utility.set_message_token('PAY_PLAN','in AT,EV or FV');
2166: hr_utility.set_message_token('AGENCY_CODE','TD03');
2167: hr_utility.raise_error;
2168: --
2169: -- Deleting entries for Pay Plans - JA,JB,JC,JD,JE. DATE: 14-SEP-2004 for EOY - I
2170: --
2171: /* elsif ( p_to_pay_plan in ( 'JA','JB','JC','JD','JE') and p_agency_subelement <> 'DJ02' ) then
2168: --
2169: -- Deleting entries for Pay Plans - JA,JB,JC,JD,JE. DATE: 14-SEP-2004 for EOY - I
2170: --
2171: /* elsif ( p_to_pay_plan in ( 'JA','JB','JC','JD','JE') and p_agency_subelement <> 'DJ02' ) then
2172: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2173: hr_utility.set_message_token('PAY_PLAN','in JA,JB,JC,JD or JE');
2174: hr_utility.set_message_token('AGENCY_CODE','DJ02');
2175: hr_utility.raise_error;*/
2176: elsif ( p_to_pay_plan in ( 'EZ') and substr(p_agency_subelement,1,2) <> 'SE' and
2169: -- Deleting entries for Pay Plans - JA,JB,JC,JD,JE. DATE: 14-SEP-2004 for EOY - I
2170: --
2171: /* elsif ( p_to_pay_plan in ( 'JA','JB','JC','JD','JE') and p_agency_subelement <> 'DJ02' ) then
2172: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2173: hr_utility.set_message_token('PAY_PLAN','in JA,JB,JC,JD or JE');
2174: hr_utility.set_message_token('AGENCY_CODE','DJ02');
2175: hr_utility.raise_error;*/
2176: elsif ( p_to_pay_plan in ( 'EZ') and substr(p_agency_subelement,1,2) <> 'SE' and
2177: p_effective_date >= fnd_date.canonical_to_date('19'||'99/03/01') ) then
2170: --
2171: /* elsif ( p_to_pay_plan in ( 'JA','JB','JC','JD','JE') and p_agency_subelement <> 'DJ02' ) then
2172: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2173: hr_utility.set_message_token('PAY_PLAN','in JA,JB,JC,JD or JE');
2174: hr_utility.set_message_token('AGENCY_CODE','DJ02');
2175: hr_utility.raise_error;*/
2176: elsif ( p_to_pay_plan in ( 'EZ') and substr(p_agency_subelement,1,2) <> 'SE' and
2177: p_effective_date >= fnd_date.canonical_to_date('19'||'99/03/01') ) then
2178: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2171: /* elsif ( p_to_pay_plan in ( 'JA','JB','JC','JD','JE') and p_agency_subelement <> 'DJ02' ) then
2172: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2173: hr_utility.set_message_token('PAY_PLAN','in JA,JB,JC,JD or JE');
2174: hr_utility.set_message_token('AGENCY_CODE','DJ02');
2175: hr_utility.raise_error;*/
2176: elsif ( p_to_pay_plan in ( 'EZ') and substr(p_agency_subelement,1,2) <> 'SE' and
2177: p_effective_date >= fnd_date.canonical_to_date('19'||'99/03/01') ) then
2178: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2179: hr_utility.set_message_token('PAY_PLAN','EZ');
2174: hr_utility.set_message_token('AGENCY_CODE','DJ02');
2175: hr_utility.raise_error;*/
2176: elsif ( p_to_pay_plan in ( 'EZ') and substr(p_agency_subelement,1,2) <> 'SE' and
2177: p_effective_date >= fnd_date.canonical_to_date('19'||'99/03/01') ) then
2178: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2179: hr_utility.set_message_token('PAY_PLAN','EZ');
2180: hr_utility.set_message_token('AGENCY_CODE','SE');
2181: hr_utility.raise_error;
2182: elsif ( p_to_pay_plan in ('NC','NO','NP','NR') and substr(p_agency_subelement,1,2) <> 'NV' and
2175: hr_utility.raise_error;*/
2176: elsif ( p_to_pay_plan in ( 'EZ') and substr(p_agency_subelement,1,2) <> 'SE' and
2177: p_effective_date >= fnd_date.canonical_to_date('19'||'99/03/01') ) then
2178: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2179: hr_utility.set_message_token('PAY_PLAN','EZ');
2180: hr_utility.set_message_token('AGENCY_CODE','SE');
2181: hr_utility.raise_error;
2182: elsif ( p_to_pay_plan in ('NC','NO','NP','NR') and substr(p_agency_subelement,1,2) <> 'NV' and
2183: p_effective_date >= fnd_date.canonical_to_date('19'||'99/04/01') )
2176: elsif ( p_to_pay_plan in ( 'EZ') and substr(p_agency_subelement,1,2) <> 'SE' and
2177: p_effective_date >= fnd_date.canonical_to_date('19'||'99/03/01') ) then
2178: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2179: hr_utility.set_message_token('PAY_PLAN','EZ');
2180: hr_utility.set_message_token('AGENCY_CODE','SE');
2181: hr_utility.raise_error;
2182: elsif ( p_to_pay_plan in ('NC','NO','NP','NR') and substr(p_agency_subelement,1,2) <> 'NV' and
2183: p_effective_date >= fnd_date.canonical_to_date('19'||'99/04/01') )
2184: then
2177: p_effective_date >= fnd_date.canonical_to_date('19'||'99/03/01') ) then
2178: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2179: hr_utility.set_message_token('PAY_PLAN','EZ');
2180: hr_utility.set_message_token('AGENCY_CODE','SE');
2181: hr_utility.raise_error;
2182: elsif ( p_to_pay_plan in ('NC','NO','NP','NR') and substr(p_agency_subelement,1,2) <> 'NV' and
2183: p_effective_date >= fnd_date.canonical_to_date('19'||'99/04/01') )
2184: then
2185: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2181: hr_utility.raise_error;
2182: elsif ( p_to_pay_plan in ('NC','NO','NP','NR') and substr(p_agency_subelement,1,2) <> 'NV' and
2183: p_effective_date >= fnd_date.canonical_to_date('19'||'99/04/01') )
2184: then
2185: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2186: hr_utility.set_message_token('PAY_PLAN','in NC,NO,NP or NR');
2187: hr_utility.set_message_token('AGENCY_CODE','NV');
2188: hr_utility.raise_error;
2189: elsif p_to_pay_plan in ('PD') then
2182: elsif ( p_to_pay_plan in ('NC','NO','NP','NR') and substr(p_agency_subelement,1,2) <> 'NV' and
2183: p_effective_date >= fnd_date.canonical_to_date('19'||'99/04/01') )
2184: then
2185: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2186: hr_utility.set_message_token('PAY_PLAN','in NC,NO,NP or NR');
2187: hr_utility.set_message_token('AGENCY_CODE','NV');
2188: hr_utility.raise_error;
2189: elsif p_to_pay_plan in ('PD') then
2190: IF ( p_effective_date >= to_date('1999/10/01','yyyy/mm/dd')
2183: p_effective_date >= fnd_date.canonical_to_date('19'||'99/04/01') )
2184: then
2185: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2186: hr_utility.set_message_token('PAY_PLAN','in NC,NO,NP or NR');
2187: hr_utility.set_message_token('AGENCY_CODE','NV');
2188: hr_utility.raise_error;
2189: elsif p_to_pay_plan in ('PD') then
2190: IF ( p_effective_date >= to_date('1999/10/01','yyyy/mm/dd')
2191: and p_agency_subelement not in('TR40','DJ15','HSAD','HSBD')
2184: then
2185: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2186: hr_utility.set_message_token('PAY_PLAN','in NC,NO,NP or NR');
2187: hr_utility.set_message_token('AGENCY_CODE','NV');
2188: hr_utility.raise_error;
2189: elsif p_to_pay_plan in ('PD') then
2190: IF ( p_effective_date >= to_date('1999/10/01','yyyy/mm/dd')
2191: and p_agency_subelement not in('TR40','DJ15','HSAD','HSBD')
2192: ) then
2189: elsif p_to_pay_plan in ('PD') then
2190: IF ( p_effective_date >= to_date('1999/10/01','yyyy/mm/dd')
2191: and p_agency_subelement not in('TR40','DJ15','HSAD','HSBD')
2192: ) then
2193: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2194: hr_utility.set_message_token('PAY_PLAN','PD');
2195: hr_utility.set_message_token('AGENCY_CODE','in TR40,DJ15,HSAD or HSBD');
2196: hr_utility.raise_error;
2197: Elsif( p_effective_date < to_date('1999/10/01','yyyy/mm/dd')
2190: IF ( p_effective_date >= to_date('1999/10/01','yyyy/mm/dd')
2191: and p_agency_subelement not in('TR40','DJ15','HSAD','HSBD')
2192: ) then
2193: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2194: hr_utility.set_message_token('PAY_PLAN','PD');
2195: hr_utility.set_message_token('AGENCY_CODE','in TR40,DJ15,HSAD or HSBD');
2196: hr_utility.raise_error;
2197: Elsif( p_effective_date < to_date('1999/10/01','yyyy/mm/dd')
2198: and p_agency_subelement not in('DJ15','HSAD','HSBD')
2191: and p_agency_subelement not in('TR40','DJ15','HSAD','HSBD')
2192: ) then
2193: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2194: hr_utility.set_message_token('PAY_PLAN','PD');
2195: hr_utility.set_message_token('AGENCY_CODE','in TR40,DJ15,HSAD or HSBD');
2196: hr_utility.raise_error;
2197: Elsif( p_effective_date < to_date('1999/10/01','yyyy/mm/dd')
2198: and p_agency_subelement not in('DJ15','HSAD','HSBD')
2199: ) then
2192: ) then
2193: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2194: hr_utility.set_message_token('PAY_PLAN','PD');
2195: hr_utility.set_message_token('AGENCY_CODE','in TR40,DJ15,HSAD or HSBD');
2196: hr_utility.raise_error;
2197: Elsif( p_effective_date < to_date('1999/10/01','yyyy/mm/dd')
2198: and p_agency_subelement not in('DJ15','HSAD','HSBD')
2199: ) then
2200: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2196: hr_utility.raise_error;
2197: Elsif( p_effective_date < to_date('1999/10/01','yyyy/mm/dd')
2198: and p_agency_subelement not in('DJ15','HSAD','HSBD')
2199: ) then
2200: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2201: hr_utility.set_message_token('PAY_PLAN','PD');
2202: hr_utility.set_message_token('AGENCY_CODE','in DJ15, HSAD or HSBD');
2203: hr_utility.raise_error;
2204: END IF;
2197: Elsif( p_effective_date < to_date('1999/10/01','yyyy/mm/dd')
2198: and p_agency_subelement not in('DJ15','HSAD','HSBD')
2199: ) then
2200: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2201: hr_utility.set_message_token('PAY_PLAN','PD');
2202: hr_utility.set_message_token('AGENCY_CODE','in DJ15, HSAD or HSBD');
2203: hr_utility.raise_error;
2204: END IF;
2205: elsif ( p_to_pay_plan in ('SK','SO') and substr(p_agency_subelement,1,2) <> 'SE')
2198: and p_agency_subelement not in('DJ15','HSAD','HSBD')
2199: ) then
2200: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2201: hr_utility.set_message_token('PAY_PLAN','PD');
2202: hr_utility.set_message_token('AGENCY_CODE','in DJ15, HSAD or HSBD');
2203: hr_utility.raise_error;
2204: END IF;
2205: elsif ( p_to_pay_plan in ('SK','SO') and substr(p_agency_subelement,1,2) <> 'SE')
2206: then
2199: ) then
2200: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2201: hr_utility.set_message_token('PAY_PLAN','PD');
2202: hr_utility.set_message_token('AGENCY_CODE','in DJ15, HSAD or HSBD');
2203: hr_utility.raise_error;
2204: END IF;
2205: elsif ( p_to_pay_plan in ('SK','SO') and substr(p_agency_subelement,1,2) <> 'SE')
2206: then
2207: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2203: hr_utility.raise_error;
2204: END IF;
2205: elsif ( p_to_pay_plan in ('SK','SO') and substr(p_agency_subelement,1,2) <> 'SE')
2206: then
2207: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2208: hr_utility.set_message_token('PAY_PLAN','in SK or SO');
2209: hr_utility.set_message_token('AGENCY_CODE','SE');
2210: hr_utility.raise_error;
2211: elsif ( p_to_pay_plan in ('SV','SW') and p_agency_subelement <>'HSBC')
2204: END IF;
2205: elsif ( p_to_pay_plan in ('SK','SO') and substr(p_agency_subelement,1,2) <> 'SE')
2206: then
2207: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2208: hr_utility.set_message_token('PAY_PLAN','in SK or SO');
2209: hr_utility.set_message_token('AGENCY_CODE','SE');
2210: hr_utility.raise_error;
2211: elsif ( p_to_pay_plan in ('SV','SW') and p_agency_subelement <>'HSBC')
2212: then
2205: elsif ( p_to_pay_plan in ('SK','SO') and substr(p_agency_subelement,1,2) <> 'SE')
2206: then
2207: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2208: hr_utility.set_message_token('PAY_PLAN','in SK or SO');
2209: hr_utility.set_message_token('AGENCY_CODE','SE');
2210: hr_utility.raise_error;
2211: elsif ( p_to_pay_plan in ('SV','SW') and p_agency_subelement <>'HSBC')
2212: then
2213: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2206: then
2207: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2208: hr_utility.set_message_token('PAY_PLAN','in SK or SO');
2209: hr_utility.set_message_token('AGENCY_CODE','SE');
2210: hr_utility.raise_error;
2211: elsif ( p_to_pay_plan in ('SV','SW') and p_agency_subelement <>'HSBC')
2212: then
2213: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2214: hr_utility.set_message_token('PAY_PLAN','in SV or SW');
2209: hr_utility.set_message_token('AGENCY_CODE','SE');
2210: hr_utility.raise_error;
2211: elsif ( p_to_pay_plan in ('SV','SW') and p_agency_subelement <>'HSBC')
2212: then
2213: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2214: hr_utility.set_message_token('PAY_PLAN','in SV or SW');
2215: hr_utility.set_message_token('AGENCY_CODE','in HSBC');
2216: hr_utility.raise_error;
2217: elsif ( p_to_pay_plan in ('RE','RP') and p_agency_subelement <> 'TR93')
2210: hr_utility.raise_error;
2211: elsif ( p_to_pay_plan in ('SV','SW') and p_agency_subelement <>'HSBC')
2212: then
2213: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2214: hr_utility.set_message_token('PAY_PLAN','in SV or SW');
2215: hr_utility.set_message_token('AGENCY_CODE','in HSBC');
2216: hr_utility.raise_error;
2217: elsif ( p_to_pay_plan in ('RE','RP') and p_agency_subelement <> 'TR93')
2218: then
2211: elsif ( p_to_pay_plan in ('SV','SW') and p_agency_subelement <>'HSBC')
2212: then
2213: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2214: hr_utility.set_message_token('PAY_PLAN','in SV or SW');
2215: hr_utility.set_message_token('AGENCY_CODE','in HSBC');
2216: hr_utility.raise_error;
2217: elsif ( p_to_pay_plan in ('RE','RP') and p_agency_subelement <> 'TR93')
2218: then
2219: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2212: then
2213: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2214: hr_utility.set_message_token('PAY_PLAN','in SV or SW');
2215: hr_utility.set_message_token('AGENCY_CODE','in HSBC');
2216: hr_utility.raise_error;
2217: elsif ( p_to_pay_plan in ('RE','RP') and p_agency_subelement <> 'TR93')
2218: then
2219: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2220: hr_utility.set_message_token('PAY_PLAN','in RE or RP');
2215: hr_utility.set_message_token('AGENCY_CODE','in HSBC');
2216: hr_utility.raise_error;
2217: elsif ( p_to_pay_plan in ('RE','RP') and p_agency_subelement <> 'TR93')
2218: then
2219: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2220: hr_utility.set_message_token('PAY_PLAN','in RE or RP');
2221: hr_utility.set_message_token('AGENCY_CODE','TR93');
2222: hr_utility.raise_error;
2223: elsif ( p_to_pay_plan in ('TG') and p_agency_subelement <> 'TR35')
2216: hr_utility.raise_error;
2217: elsif ( p_to_pay_plan in ('RE','RP') and p_agency_subelement <> 'TR93')
2218: then
2219: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2220: hr_utility.set_message_token('PAY_PLAN','in RE or RP');
2221: hr_utility.set_message_token('AGENCY_CODE','TR93');
2222: hr_utility.raise_error;
2223: elsif ( p_to_pay_plan in ('TG') and p_agency_subelement <> 'TR35')
2224: then
2217: elsif ( p_to_pay_plan in ('RE','RP') and p_agency_subelement <> 'TR93')
2218: then
2219: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2220: hr_utility.set_message_token('PAY_PLAN','in RE or RP');
2221: hr_utility.set_message_token('AGENCY_CODE','TR93');
2222: hr_utility.raise_error;
2223: elsif ( p_to_pay_plan in ('TG') and p_agency_subelement <> 'TR35')
2224: then
2225: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2218: then
2219: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2220: hr_utility.set_message_token('PAY_PLAN','in RE or RP');
2221: hr_utility.set_message_token('AGENCY_CODE','TR93');
2222: hr_utility.raise_error;
2223: elsif ( p_to_pay_plan in ('TG') and p_agency_subelement <> 'TR35')
2224: then
2225: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2226: hr_utility.set_message_token('PAY_PLAN','TG');
2221: hr_utility.set_message_token('AGENCY_CODE','TR93');
2222: hr_utility.raise_error;
2223: elsif ( p_to_pay_plan in ('TG') and p_agency_subelement <> 'TR35')
2224: then
2225: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2226: hr_utility.set_message_token('PAY_PLAN','TG');
2227: hr_utility.set_message_token('AGENCY_CODE','TR35');
2228: hr_utility.raise_error;
2229: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
2222: hr_utility.raise_error;
2223: elsif ( p_to_pay_plan in ('TG') and p_agency_subelement <> 'TR35')
2224: then
2225: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2226: hr_utility.set_message_token('PAY_PLAN','TG');
2227: hr_utility.set_message_token('AGENCY_CODE','TR35');
2228: hr_utility.raise_error;
2229: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
2230: ( p_to_pay_plan in ('AF') and (p_agency_subelement not in ('AG10','CM55')
2223: elsif ( p_to_pay_plan in ('TG') and p_agency_subelement <> 'TR35')
2224: then
2225: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2226: hr_utility.set_message_token('PAY_PLAN','TG');
2227: hr_utility.set_message_token('AGENCY_CODE','TR35');
2228: hr_utility.raise_error;
2229: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
2230: ( p_to_pay_plan in ('AF') and (p_agency_subelement not in ('AG10','CM55')
2231: and substr(p_agency_subelement,1,2) not in ('AM','IB','PU','ST')) )
2224: then
2225: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2226: hr_utility.set_message_token('PAY_PLAN','TG');
2227: hr_utility.set_message_token('AGENCY_CODE','TR35');
2228: hr_utility.raise_error;
2229: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
2230: ( p_to_pay_plan in ('AF') and (p_agency_subelement not in ('AG10','CM55')
2231: and substr(p_agency_subelement,1,2) not in ('AM','IB','PU','ST')) )
2232: then
2229: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
2230: ( p_to_pay_plan in ('AF') and (p_agency_subelement not in ('AG10','CM55')
2231: and substr(p_agency_subelement,1,2) not in ('AM','IB','PU','ST')) )
2232: then
2233: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2234: hr_utility.set_message_token('PAY_PLAN','AF');
2235: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,IB,PU or ST');
2236: hr_utility.raise_error;
2237:
2230: ( p_to_pay_plan in ('AF') and (p_agency_subelement not in ('AG10','CM55')
2231: and substr(p_agency_subelement,1,2) not in ('AM','IB','PU','ST')) )
2232: then
2233: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2234: hr_utility.set_message_token('PAY_PLAN','AF');
2235: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,IB,PU or ST');
2236: hr_utility.raise_error;
2237:
2238: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2231: and substr(p_agency_subelement,1,2) not in ('AM','IB','PU','ST')) )
2232: then
2233: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2234: hr_utility.set_message_token('PAY_PLAN','AF');
2235: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,IB,PU or ST');
2236: hr_utility.raise_error;
2237:
2238: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2239: ( p_to_pay_plan in ('AF') and (p_agency_subelement not in ('AG10','CM55')
2232: then
2233: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2234: hr_utility.set_message_token('PAY_PLAN','AF');
2235: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,IB,PU or ST');
2236: hr_utility.raise_error;
2237:
2238: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2239: ( p_to_pay_plan in ('AF') and (p_agency_subelement not in ('AG10','CM55')
2240: and substr(p_agency_subelement,1,2) not in ('AM','IB','PU')) )
2238: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2239: ( p_to_pay_plan in ('AF') and (p_agency_subelement not in ('AG10','CM55')
2240: and substr(p_agency_subelement,1,2) not in ('AM','IB','PU')) )
2241: then
2242: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2243: hr_utility.set_message_token('PAY_PLAN','AF');
2244: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,IB or PU ');
2245: hr_utility.raise_error;
2246: elsif ( p_to_pay_plan in ('AG') and substr(p_agency_subelement,1,2) <> 'FD' )
2239: ( p_to_pay_plan in ('AF') and (p_agency_subelement not in ('AG10','CM55')
2240: and substr(p_agency_subelement,1,2) not in ('AM','IB','PU')) )
2241: then
2242: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2243: hr_utility.set_message_token('PAY_PLAN','AF');
2244: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,IB or PU ');
2245: hr_utility.raise_error;
2246: elsif ( p_to_pay_plan in ('AG') and substr(p_agency_subelement,1,2) <> 'FD' )
2247: then
2240: and substr(p_agency_subelement,1,2) not in ('AM','IB','PU')) )
2241: then
2242: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2243: hr_utility.set_message_token('PAY_PLAN','AF');
2244: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,IB or PU ');
2245: hr_utility.raise_error;
2246: elsif ( p_to_pay_plan in ('AG') and substr(p_agency_subelement,1,2) <> 'FD' )
2247: then
2248: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2241: then
2242: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2243: hr_utility.set_message_token('PAY_PLAN','AF');
2244: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,IB or PU ');
2245: hr_utility.raise_error;
2246: elsif ( p_to_pay_plan in ('AG') and substr(p_agency_subelement,1,2) <> 'FD' )
2247: then
2248: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2249: hr_utility.set_message_token('PAY_PLAN','AG');
2244: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,IB or PU ');
2245: hr_utility.raise_error;
2246: elsif ( p_to_pay_plan in ('AG') and substr(p_agency_subelement,1,2) <> 'FD' )
2247: then
2248: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2249: hr_utility.set_message_token('PAY_PLAN','AG');
2250: hr_utility.set_message_token('AGENCY_CODE','FD');
2251: hr_utility.raise_error;
2252: elsif ( p_to_pay_plan in ('CU') and substr(p_agency_subelement,1,2) <> 'CU' )
2245: hr_utility.raise_error;
2246: elsif ( p_to_pay_plan in ('AG') and substr(p_agency_subelement,1,2) <> 'FD' )
2247: then
2248: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2249: hr_utility.set_message_token('PAY_PLAN','AG');
2250: hr_utility.set_message_token('AGENCY_CODE','FD');
2251: hr_utility.raise_error;
2252: elsif ( p_to_pay_plan in ('CU') and substr(p_agency_subelement,1,2) <> 'CU' )
2253: then
2246: elsif ( p_to_pay_plan in ('AG') and substr(p_agency_subelement,1,2) <> 'FD' )
2247: then
2248: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2249: hr_utility.set_message_token('PAY_PLAN','AG');
2250: hr_utility.set_message_token('AGENCY_CODE','FD');
2251: hr_utility.raise_error;
2252: elsif ( p_to_pay_plan in ('CU') and substr(p_agency_subelement,1,2) <> 'CU' )
2253: then
2254: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2247: then
2248: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2249: hr_utility.set_message_token('PAY_PLAN','AG');
2250: hr_utility.set_message_token('AGENCY_CODE','FD');
2251: hr_utility.raise_error;
2252: elsif ( p_to_pay_plan in ('CU') and substr(p_agency_subelement,1,2) <> 'CU' )
2253: then
2254: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2255: hr_utility.set_message_token('PAY_PLAN','CU');
2250: hr_utility.set_message_token('AGENCY_CODE','FD');
2251: hr_utility.raise_error;
2252: elsif ( p_to_pay_plan in ('CU') and substr(p_agency_subelement,1,2) <> 'CU' )
2253: then
2254: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2255: hr_utility.set_message_token('PAY_PLAN','CU');
2256: hr_utility.set_message_token('AGENCY_CODE','CU');
2257: hr_utility.raise_error;
2258: --
2251: hr_utility.raise_error;
2252: elsif ( p_to_pay_plan in ('CU') and substr(p_agency_subelement,1,2) <> 'CU' )
2253: then
2254: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2255: hr_utility.set_message_token('PAY_PLAN','CU');
2256: hr_utility.set_message_token('AGENCY_CODE','CU');
2257: hr_utility.raise_error;
2258: --
2259: -- Deleting entries for Pay Plans - DL. DATE: 14-SEP-2004 for EOY - I
2252: elsif ( p_to_pay_plan in ('CU') and substr(p_agency_subelement,1,2) <> 'CU' )
2253: then
2254: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2255: hr_utility.set_message_token('PAY_PLAN','CU');
2256: hr_utility.set_message_token('AGENCY_CODE','CU');
2257: hr_utility.raise_error;
2258: --
2259: -- Deleting entries for Pay Plans - DL. DATE: 14-SEP-2004 for EOY - I
2260: --
2253: then
2254: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2255: hr_utility.set_message_token('PAY_PLAN','CU');
2256: hr_utility.set_message_token('AGENCY_CODE','CU');
2257: hr_utility.raise_error;
2258: --
2259: -- Deleting entries for Pay Plans - DL. DATE: 14-SEP-2004 for EOY - I
2260: --
2261: /*elsif ( p_to_pay_plan in ('DL') and substr(p_agency_subelement,1,2) <> 'VA' )
2259: -- Deleting entries for Pay Plans - DL. DATE: 14-SEP-2004 for EOY - I
2260: --
2261: /*elsif ( p_to_pay_plan in ('DL') and substr(p_agency_subelement,1,2) <> 'VA' )
2262: then
2263: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2264: hr_utility.set_message_token('PAY_PLAN','DL');
2265: hr_utility.set_message_token('AGENCY_CODE','VA');
2266: hr_utility.raise_error; */
2267: elsif ( p_to_pay_plan in ('DN') and substr(p_agency_subelement,1,2) <> 'BF' )
2260: --
2261: /*elsif ( p_to_pay_plan in ('DL') and substr(p_agency_subelement,1,2) <> 'VA' )
2262: then
2263: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2264: hr_utility.set_message_token('PAY_PLAN','DL');
2265: hr_utility.set_message_token('AGENCY_CODE','VA');
2266: hr_utility.raise_error; */
2267: elsif ( p_to_pay_plan in ('DN') and substr(p_agency_subelement,1,2) <> 'BF' )
2268: then
2261: /*elsif ( p_to_pay_plan in ('DL') and substr(p_agency_subelement,1,2) <> 'VA' )
2262: then
2263: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2264: hr_utility.set_message_token('PAY_PLAN','DL');
2265: hr_utility.set_message_token('AGENCY_CODE','VA');
2266: hr_utility.raise_error; */
2267: elsif ( p_to_pay_plan in ('DN') and substr(p_agency_subelement,1,2) <> 'BF' )
2268: then
2269: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2262: then
2263: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2264: hr_utility.set_message_token('PAY_PLAN','DL');
2265: hr_utility.set_message_token('AGENCY_CODE','VA');
2266: hr_utility.raise_error; */
2267: elsif ( p_to_pay_plan in ('DN') and substr(p_agency_subelement,1,2) <> 'BF' )
2268: then
2269: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2270: hr_utility.set_message_token('PAY_PLAN','DN');
2265: hr_utility.set_message_token('AGENCY_CODE','VA');
2266: hr_utility.raise_error; */
2267: elsif ( p_to_pay_plan in ('DN') and substr(p_agency_subelement,1,2) <> 'BF' )
2268: then
2269: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2270: hr_utility.set_message_token('PAY_PLAN','DN');
2271: hr_utility.set_message_token('AGENCY_CODE','BF');
2272: hr_utility.raise_error;
2273: elsif ( p_to_pay_plan in ('EN') and substr(p_agency_subelement,1,2) <> 'DN' )
2266: hr_utility.raise_error; */
2267: elsif ( p_to_pay_plan in ('DN') and substr(p_agency_subelement,1,2) <> 'BF' )
2268: then
2269: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2270: hr_utility.set_message_token('PAY_PLAN','DN');
2271: hr_utility.set_message_token('AGENCY_CODE','BF');
2272: hr_utility.raise_error;
2273: elsif ( p_to_pay_plan in ('EN') and substr(p_agency_subelement,1,2) <> 'DN' )
2274: then
2267: elsif ( p_to_pay_plan in ('DN') and substr(p_agency_subelement,1,2) <> 'BF' )
2268: then
2269: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2270: hr_utility.set_message_token('PAY_PLAN','DN');
2271: hr_utility.set_message_token('AGENCY_CODE','BF');
2272: hr_utility.raise_error;
2273: elsif ( p_to_pay_plan in ('EN') and substr(p_agency_subelement,1,2) <> 'DN' )
2274: then
2275: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2268: then
2269: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2270: hr_utility.set_message_token('PAY_PLAN','DN');
2271: hr_utility.set_message_token('AGENCY_CODE','BF');
2272: hr_utility.raise_error;
2273: elsif ( p_to_pay_plan in ('EN') and substr(p_agency_subelement,1,2) <> 'DN' )
2274: then
2275: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2276: hr_utility.set_message_token('PAY_PLAN','EN');
2271: hr_utility.set_message_token('AGENCY_CODE','BF');
2272: hr_utility.raise_error;
2273: elsif ( p_to_pay_plan in ('EN') and substr(p_agency_subelement,1,2) <> 'DN' )
2274: then
2275: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2276: hr_utility.set_message_token('PAY_PLAN','EN');
2277: hr_utility.set_message_token('AGENCY_CODE','DN');
2278: hr_utility.raise_error;
2279: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
2272: hr_utility.raise_error;
2273: elsif ( p_to_pay_plan in ('EN') and substr(p_agency_subelement,1,2) <> 'DN' )
2274: then
2275: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2276: hr_utility.set_message_token('PAY_PLAN','EN');
2277: hr_utility.set_message_token('AGENCY_CODE','DN');
2278: hr_utility.raise_error;
2279: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
2280: ( p_to_pay_plan in ('FE') and (p_agency_subelement not in ('AG10','CM55','AG34')
2273: elsif ( p_to_pay_plan in ('EN') and substr(p_agency_subelement,1,2) <> 'DN' )
2274: then
2275: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2276: hr_utility.set_message_token('PAY_PLAN','EN');
2277: hr_utility.set_message_token('AGENCY_CODE','DN');
2278: hr_utility.raise_error;
2279: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
2280: ( p_to_pay_plan in ('FE') and (p_agency_subelement not in ('AG10','CM55','AG34')
2281: and substr(p_agency_subelement,1,2) not in ('AM','HS','IB','PU','ST')) )
2274: then
2275: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2276: hr_utility.set_message_token('PAY_PLAN','EN');
2277: hr_utility.set_message_token('AGENCY_CODE','DN');
2278: hr_utility.raise_error;
2279: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
2280: ( p_to_pay_plan in ('FE') and (p_agency_subelement not in ('AG10','CM55','AG34')
2281: and substr(p_agency_subelement,1,2) not in ('AM','HS','IB','PU','ST')) )
2282: then
2279: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
2280: ( p_to_pay_plan in ('FE') and (p_agency_subelement not in ('AG10','CM55','AG34')
2281: and substr(p_agency_subelement,1,2) not in ('AM','HS','IB','PU','ST')) )
2282: then
2283: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2284: hr_utility.set_message_token('PAY_PLAN','FE');
2285: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,HS,IB,PU or ST');
2286: hr_utility.raise_error;
2287: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2280: ( p_to_pay_plan in ('FE') and (p_agency_subelement not in ('AG10','CM55','AG34')
2281: and substr(p_agency_subelement,1,2) not in ('AM','HS','IB','PU','ST')) )
2282: then
2283: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2284: hr_utility.set_message_token('PAY_PLAN','FE');
2285: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,HS,IB,PU or ST');
2286: hr_utility.raise_error;
2287: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2288: ( p_to_pay_plan in ('FE') and (p_agency_subelement not in ('AG10','CM55','AG34')
2281: and substr(p_agency_subelement,1,2) not in ('AM','HS','IB','PU','ST')) )
2282: then
2283: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2284: hr_utility.set_message_token('PAY_PLAN','FE');
2285: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,HS,IB,PU or ST');
2286: hr_utility.raise_error;
2287: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2288: ( p_to_pay_plan in ('FE') and (p_agency_subelement not in ('AG10','CM55','AG34')
2289: and substr(p_agency_subelement,1,2) not in ('AM','HS','IB','PU')) )
2282: then
2283: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2284: hr_utility.set_message_token('PAY_PLAN','FE');
2285: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,HS,IB,PU or ST');
2286: hr_utility.raise_error;
2287: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2288: ( p_to_pay_plan in ('FE') and (p_agency_subelement not in ('AG10','CM55','AG34')
2289: and substr(p_agency_subelement,1,2) not in ('AM','HS','IB','PU')) )
2290: then
2287: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2288: ( p_to_pay_plan in ('FE') and (p_agency_subelement not in ('AG10','CM55','AG34')
2289: and substr(p_agency_subelement,1,2) not in ('AM','HS','IB','PU')) )
2290: then
2291: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2292: hr_utility.set_message_token('PAY_PLAN','FE');
2293: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,HS,IB or PU');
2294: hr_utility.raise_error;
2295: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
2288: ( p_to_pay_plan in ('FE') and (p_agency_subelement not in ('AG10','CM55','AG34')
2289: and substr(p_agency_subelement,1,2) not in ('AM','HS','IB','PU')) )
2290: then
2291: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2292: hr_utility.set_message_token('PAY_PLAN','FE');
2293: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,HS,IB or PU');
2294: hr_utility.raise_error;
2295: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
2296: ( p_to_pay_plan in ('FO') and (p_agency_subelement not in ('AG10','CM55','AG34')
2289: and substr(p_agency_subelement,1,2) not in ('AM','HS','IB','PU')) )
2290: then
2291: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2292: hr_utility.set_message_token('PAY_PLAN','FE');
2293: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,HS,IB or PU');
2294: hr_utility.raise_error;
2295: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
2296: ( p_to_pay_plan in ('FO') and (p_agency_subelement not in ('AG10','CM55','AG34')
2297: and substr(p_agency_subelement,1,2) not in ('AM','IB','PU','ST','HS')) )
2290: then
2291: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2292: hr_utility.set_message_token('PAY_PLAN','FE');
2293: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,HS,IB or PU');
2294: hr_utility.raise_error;
2295: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
2296: ( p_to_pay_plan in ('FO') and (p_agency_subelement not in ('AG10','CM55','AG34')
2297: and substr(p_agency_subelement,1,2) not in ('AM','IB','PU','ST','HS')) )
2298: then
2295: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
2296: ( p_to_pay_plan in ('FO') and (p_agency_subelement not in ('AG10','CM55','AG34')
2297: and substr(p_agency_subelement,1,2) not in ('AM','IB','PU','ST','HS')) )
2298: then
2299: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2300: hr_utility.set_message_token('PAY_PLAN','FO');
2301: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,IB,PU,HS or ST');
2302: hr_utility.raise_error;
2303: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2296: ( p_to_pay_plan in ('FO') and (p_agency_subelement not in ('AG10','CM55','AG34')
2297: and substr(p_agency_subelement,1,2) not in ('AM','IB','PU','ST','HS')) )
2298: then
2299: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2300: hr_utility.set_message_token('PAY_PLAN','FO');
2301: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,IB,PU,HS or ST');
2302: hr_utility.raise_error;
2303: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2304: ( p_to_pay_plan in ('FO') and (p_agency_subelement not in ('AG10','CM55','AG34')
2297: and substr(p_agency_subelement,1,2) not in ('AM','IB','PU','ST','HS')) )
2298: then
2299: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2300: hr_utility.set_message_token('PAY_PLAN','FO');
2301: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,IB,PU,HS or ST');
2302: hr_utility.raise_error;
2303: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2304: ( p_to_pay_plan in ('FO') and (p_agency_subelement not in ('AG10','CM55','AG34')
2305: and substr(p_agency_subelement,1,2) not in ('AM','IB','PU','HS')) )
2298: then
2299: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2300: hr_utility.set_message_token('PAY_PLAN','FO');
2301: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,IB,PU,HS or ST');
2302: hr_utility.raise_error;
2303: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2304: ( p_to_pay_plan in ('FO') and (p_agency_subelement not in ('AG10','CM55','AG34')
2305: and substr(p_agency_subelement,1,2) not in ('AM','IB','PU','HS')) )
2306: then
2303: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2304: ( p_to_pay_plan in ('FO') and (p_agency_subelement not in ('AG10','CM55','AG34')
2305: and substr(p_agency_subelement,1,2) not in ('AM','IB','PU','HS')) )
2306: then
2307: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2308: hr_utility.set_message_token('PAY_PLAN','FO');
2309: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,IB,PU or HS');
2310: hr_utility.raise_error;
2311: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
2304: ( p_to_pay_plan in ('FO') and (p_agency_subelement not in ('AG10','CM55','AG34')
2305: and substr(p_agency_subelement,1,2) not in ('AM','IB','PU','HS')) )
2306: then
2307: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2308: hr_utility.set_message_token('PAY_PLAN','FO');
2309: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,IB,PU or HS');
2310: hr_utility.raise_error;
2311: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
2312: ( p_to_pay_plan in ('FP') and (p_agency_subelement not in ('AG10','CM55','AG34')
2305: and substr(p_agency_subelement,1,2) not in ('AM','IB','PU','HS')) )
2306: then
2307: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2308: hr_utility.set_message_token('PAY_PLAN','FO');
2309: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,IB,PU or HS');
2310: hr_utility.raise_error;
2311: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
2312: ( p_to_pay_plan in ('FP') and (p_agency_subelement not in ('AG10','CM55','AG34')
2313: and substr(p_agency_subelement,1,2) not in ('AM','HS','IB','PU','ST')) )
2306: then
2307: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2308: hr_utility.set_message_token('PAY_PLAN','FO');
2309: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,IB,PU or HS');
2310: hr_utility.raise_error;
2311: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
2312: ( p_to_pay_plan in ('FP') and (p_agency_subelement not in ('AG10','CM55','AG34')
2313: and substr(p_agency_subelement,1,2) not in ('AM','HS','IB','PU','ST')) )
2314: then
2311: elsif p_effective_date < fnd_date.canonical_to_date('2006/05/01') and
2312: ( p_to_pay_plan in ('FP') and (p_agency_subelement not in ('AG10','CM55','AG34')
2313: and substr(p_agency_subelement,1,2) not in ('AM','HS','IB','PU','ST')) )
2314: then
2315: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2316: hr_utility.set_message_token('PAY_PLAN','FP');
2317: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,HS,IB,PU or ST');
2318: hr_utility.raise_error;
2319: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2312: ( p_to_pay_plan in ('FP') and (p_agency_subelement not in ('AG10','CM55','AG34')
2313: and substr(p_agency_subelement,1,2) not in ('AM','HS','IB','PU','ST')) )
2314: then
2315: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2316: hr_utility.set_message_token('PAY_PLAN','FP');
2317: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,HS,IB,PU or ST');
2318: hr_utility.raise_error;
2319: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2320: ( p_to_pay_plan in ('FP') and (p_agency_subelement not in ('AG10','CM55','AG34')
2313: and substr(p_agency_subelement,1,2) not in ('AM','HS','IB','PU','ST')) )
2314: then
2315: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2316: hr_utility.set_message_token('PAY_PLAN','FP');
2317: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,HS,IB,PU or ST');
2318: hr_utility.raise_error;
2319: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2320: ( p_to_pay_plan in ('FP') and (p_agency_subelement not in ('AG10','CM55','AG34')
2321: and substr(p_agency_subelement,1,2) not in ('AM','HS','IB','PU')) )
2314: then
2315: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2316: hr_utility.set_message_token('PAY_PLAN','FP');
2317: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,HS,IB,PU or ST');
2318: hr_utility.raise_error;
2319: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2320: ( p_to_pay_plan in ('FP') and (p_agency_subelement not in ('AG10','CM55','AG34')
2321: and substr(p_agency_subelement,1,2) not in ('AM','HS','IB','PU')) )
2322: then
2319: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2320: ( p_to_pay_plan in ('FP') and (p_agency_subelement not in ('AG10','CM55','AG34')
2321: and substr(p_agency_subelement,1,2) not in ('AM','HS','IB','PU')) )
2322: then
2323: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2324: hr_utility.set_message_token('PAY_PLAN','FP');
2325: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,HS,IB or PU');
2326: hr_utility.raise_error;
2327: elsif ( p_to_pay_plan in ('IE') and substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') )
2320: ( p_to_pay_plan in ('FP') and (p_agency_subelement not in ('AG10','CM55','AG34')
2321: and substr(p_agency_subelement,1,2) not in ('AM','HS','IB','PU')) )
2322: then
2323: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2324: hr_utility.set_message_token('PAY_PLAN','FP');
2325: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,HS,IB or PU');
2326: hr_utility.raise_error;
2327: elsif ( p_to_pay_plan in ('IE') and substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') )
2328: then
2321: and substr(p_agency_subelement,1,2) not in ('AM','HS','IB','PU')) )
2322: then
2323: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2324: hr_utility.set_message_token('PAY_PLAN','FP');
2325: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,HS,IB or PU');
2326: hr_utility.raise_error;
2327: elsif ( p_to_pay_plan in ('IE') and substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') )
2328: then
2329: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2322: then
2323: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2324: hr_utility.set_message_token('PAY_PLAN','FP');
2325: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,HS,IB or PU');
2326: hr_utility.raise_error;
2327: elsif ( p_to_pay_plan in ('IE') and substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') )
2328: then
2329: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2330: hr_utility.set_message_token('PAY_PLAN','IE');
2325: hr_utility.set_message_token('AGENCY_CODE','AG10,AM,CM55,AG34,HS,IB or PU');
2326: hr_utility.raise_error;
2327: elsif ( p_to_pay_plan in ('IE') and substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') )
2328: then
2329: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2330: hr_utility.set_message_token('PAY_PLAN','IE');
2331: hr_utility.set_message_token('AGENCY_CODE','AF,AR,DD or NV');
2332: hr_utility.raise_error;
2333: elsif ( p_to_pay_plan in ('IP') and substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') )
2326: hr_utility.raise_error;
2327: elsif ( p_to_pay_plan in ('IE') and substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') )
2328: then
2329: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2330: hr_utility.set_message_token('PAY_PLAN','IE');
2331: hr_utility.set_message_token('AGENCY_CODE','AF,AR,DD or NV');
2332: hr_utility.raise_error;
2333: elsif ( p_to_pay_plan in ('IP') and substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') )
2334: then
2327: elsif ( p_to_pay_plan in ('IE') and substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') )
2328: then
2329: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2330: hr_utility.set_message_token('PAY_PLAN','IE');
2331: hr_utility.set_message_token('AGENCY_CODE','AF,AR,DD or NV');
2332: hr_utility.raise_error;
2333: elsif ( p_to_pay_plan in ('IP') and substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') )
2334: then
2335: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2328: then
2329: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2330: hr_utility.set_message_token('PAY_PLAN','IE');
2331: hr_utility.set_message_token('AGENCY_CODE','AF,AR,DD or NV');
2332: hr_utility.raise_error;
2333: elsif ( p_to_pay_plan in ('IP') and substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') )
2334: then
2335: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2336: hr_utility.set_message_token('PAY_PLAN','IP');
2331: hr_utility.set_message_token('AGENCY_CODE','AF,AR,DD or NV');
2332: hr_utility.raise_error;
2333: elsif ( p_to_pay_plan in ('IP') and substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') )
2334: then
2335: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2336: hr_utility.set_message_token('PAY_PLAN','IP');
2337: hr_utility.set_message_token('AGENCY_CODE','AF,AR,DD or NV');
2338: hr_utility.raise_error;
2339: elsif ( p_to_pay_plan in ('PG') and substr(p_agency_subelement,1,2) <> 'LP' )
2332: hr_utility.raise_error;
2333: elsif ( p_to_pay_plan in ('IP') and substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') )
2334: then
2335: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2336: hr_utility.set_message_token('PAY_PLAN','IP');
2337: hr_utility.set_message_token('AGENCY_CODE','AF,AR,DD or NV');
2338: hr_utility.raise_error;
2339: elsif ( p_to_pay_plan in ('PG') and substr(p_agency_subelement,1,2) <> 'LP' )
2340: then
2333: elsif ( p_to_pay_plan in ('IP') and substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') )
2334: then
2335: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2336: hr_utility.set_message_token('PAY_PLAN','IP');
2337: hr_utility.set_message_token('AGENCY_CODE','AF,AR,DD or NV');
2338: hr_utility.raise_error;
2339: elsif ( p_to_pay_plan in ('PG') and substr(p_agency_subelement,1,2) <> 'LP' )
2340: then
2341: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2334: then
2335: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2336: hr_utility.set_message_token('PAY_PLAN','IP');
2337: hr_utility.set_message_token('AGENCY_CODE','AF,AR,DD or NV');
2338: hr_utility.raise_error;
2339: elsif ( p_to_pay_plan in ('PG') and substr(p_agency_subelement,1,2) <> 'LP' )
2340: then
2341: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2342: hr_utility.set_message_token('PAY_PLAN','PG');
2337: hr_utility.set_message_token('AGENCY_CODE','AF,AR,DD or NV');
2338: hr_utility.raise_error;
2339: elsif ( p_to_pay_plan in ('PG') and substr(p_agency_subelement,1,2) <> 'LP' )
2340: then
2341: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2342: hr_utility.set_message_token('PAY_PLAN','PG');
2343: hr_utility.set_message_token('AGENCY_CODE','LP');
2344: hr_utility.raise_error;
2345: elsif ( p_to_pay_plan in ('RS') and substr(p_agency_subelement,1,2) <> 'HE' )
2338: hr_utility.raise_error;
2339: elsif ( p_to_pay_plan in ('PG') and substr(p_agency_subelement,1,2) <> 'LP' )
2340: then
2341: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2342: hr_utility.set_message_token('PAY_PLAN','PG');
2343: hr_utility.set_message_token('AGENCY_CODE','LP');
2344: hr_utility.raise_error;
2345: elsif ( p_to_pay_plan in ('RS') and substr(p_agency_subelement,1,2) <> 'HE' )
2346: then
2339: elsif ( p_to_pay_plan in ('PG') and substr(p_agency_subelement,1,2) <> 'LP' )
2340: then
2341: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2342: hr_utility.set_message_token('PAY_PLAN','PG');
2343: hr_utility.set_message_token('AGENCY_CODE','LP');
2344: hr_utility.raise_error;
2345: elsif ( p_to_pay_plan in ('RS') and substr(p_agency_subelement,1,2) <> 'HE' )
2346: then
2347: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2340: then
2341: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2342: hr_utility.set_message_token('PAY_PLAN','PG');
2343: hr_utility.set_message_token('AGENCY_CODE','LP');
2344: hr_utility.raise_error;
2345: elsif ( p_to_pay_plan in ('RS') and substr(p_agency_subelement,1,2) <> 'HE' )
2346: then
2347: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2348: hr_utility.set_message_token('PAY_PLAN','RS');
2343: hr_utility.set_message_token('AGENCY_CODE','LP');
2344: hr_utility.raise_error;
2345: elsif ( p_to_pay_plan in ('RS') and substr(p_agency_subelement,1,2) <> 'HE' )
2346: then
2347: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2348: hr_utility.set_message_token('PAY_PLAN','RS');
2349: hr_utility.set_message_token('AGENCY_CODE','HE');
2350: hr_utility.raise_error;
2351: elsif ( p_to_pay_plan in ('SS') and substr(p_agency_subelement,1,2) <> 'CU' )
2344: hr_utility.raise_error;
2345: elsif ( p_to_pay_plan in ('RS') and substr(p_agency_subelement,1,2) <> 'HE' )
2346: then
2347: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2348: hr_utility.set_message_token('PAY_PLAN','RS');
2349: hr_utility.set_message_token('AGENCY_CODE','HE');
2350: hr_utility.raise_error;
2351: elsif ( p_to_pay_plan in ('SS') and substr(p_agency_subelement,1,2) <> 'CU' )
2352: then
2345: elsif ( p_to_pay_plan in ('RS') and substr(p_agency_subelement,1,2) <> 'HE' )
2346: then
2347: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2348: hr_utility.set_message_token('PAY_PLAN','RS');
2349: hr_utility.set_message_token('AGENCY_CODE','HE');
2350: hr_utility.raise_error;
2351: elsif ( p_to_pay_plan in ('SS') and substr(p_agency_subelement,1,2) <> 'CU' )
2352: then
2353: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2346: then
2347: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2348: hr_utility.set_message_token('PAY_PLAN','RS');
2349: hr_utility.set_message_token('AGENCY_CODE','HE');
2350: hr_utility.raise_error;
2351: elsif ( p_to_pay_plan in ('SS') and substr(p_agency_subelement,1,2) <> 'CU' )
2352: then
2353: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2354: hr_utility.set_message_token('PAY_PLAN','SS');
2349: hr_utility.set_message_token('AGENCY_CODE','HE');
2350: hr_utility.raise_error;
2351: elsif ( p_to_pay_plan in ('SS') and substr(p_agency_subelement,1,2) <> 'CU' )
2352: then
2353: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2354: hr_utility.set_message_token('PAY_PLAN','SS');
2355: hr_utility.set_message_token('AGENCY_CODE','CU');
2356: hr_utility.raise_error;
2357: --Begin Bug 9503972
2350: hr_utility.raise_error;
2351: elsif ( p_to_pay_plan in ('SS') and substr(p_agency_subelement,1,2) <> 'CU' )
2352: then
2353: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2354: hr_utility.set_message_token('PAY_PLAN','SS');
2355: hr_utility.set_message_token('AGENCY_CODE','CU');
2356: hr_utility.raise_error;
2357: --Begin Bug 9503972
2358: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2351: elsif ( p_to_pay_plan in ('SS') and substr(p_agency_subelement,1,2) <> 'CU' )
2352: then
2353: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2354: hr_utility.set_message_token('PAY_PLAN','SS');
2355: hr_utility.set_message_token('AGENCY_CODE','CU');
2356: hr_utility.raise_error;
2357: --Begin Bug 9503972
2358: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2359: ( p_to_pay_plan in ('TM') and substr(p_agency_subelement,1,2) NOT IN ('FY','HF')) then
2352: then
2353: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2354: hr_utility.set_message_token('PAY_PLAN','SS');
2355: hr_utility.set_message_token('AGENCY_CODE','CU');
2356: hr_utility.raise_error;
2357: --Begin Bug 9503972
2358: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2359: ( p_to_pay_plan in ('TM') and substr(p_agency_subelement,1,2) NOT IN ('FY','HF')) then
2360: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2356: hr_utility.raise_error;
2357: --Begin Bug 9503972
2358: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2359: ( p_to_pay_plan in ('TM') and substr(p_agency_subelement,1,2) NOT IN ('FY','HF')) then
2360: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2361: hr_utility.set_message_token('PAY_PLAN','TM');
2362: hr_utility.set_message_token('AGENCY_CODE','FY, HF');
2363: hr_utility.raise_error;
2364: --End Bug 9503972
2357: --Begin Bug 9503972
2358: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2359: ( p_to_pay_plan in ('TM') and substr(p_agency_subelement,1,2) NOT IN ('FY','HF')) then
2360: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2361: hr_utility.set_message_token('PAY_PLAN','TM');
2362: hr_utility.set_message_token('AGENCY_CODE','FY, HF');
2363: hr_utility.raise_error;
2364: --End Bug 9503972
2365: elsif ( p_to_pay_plan in ('TM') and substr(p_agency_subelement,1,2) <> 'FY' )
2358: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2359: ( p_to_pay_plan in ('TM') and substr(p_agency_subelement,1,2) NOT IN ('FY','HF')) then
2360: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2361: hr_utility.set_message_token('PAY_PLAN','TM');
2362: hr_utility.set_message_token('AGENCY_CODE','FY, HF');
2363: hr_utility.raise_error;
2364: --End Bug 9503972
2365: elsif ( p_to_pay_plan in ('TM') and substr(p_agency_subelement,1,2) <> 'FY' )
2366: then
2359: ( p_to_pay_plan in ('TM') and substr(p_agency_subelement,1,2) NOT IN ('FY','HF')) then
2360: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2361: hr_utility.set_message_token('PAY_PLAN','TM');
2362: hr_utility.set_message_token('AGENCY_CODE','FY, HF');
2363: hr_utility.raise_error;
2364: --End Bug 9503972
2365: elsif ( p_to_pay_plan in ('TM') and substr(p_agency_subelement,1,2) <> 'FY' )
2366: then
2367: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2363: hr_utility.raise_error;
2364: --End Bug 9503972
2365: elsif ( p_to_pay_plan in ('TM') and substr(p_agency_subelement,1,2) <> 'FY' )
2366: then
2367: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2368: hr_utility.set_message_token('PAY_PLAN','TM');
2369: hr_utility.set_message_token('AGENCY_CODE','FY');
2370: hr_utility.raise_error;
2371: elsif ( p_to_pay_plan in ('VG') and substr(p_agency_subelement,1,2) not in ('FK','FL') )
2364: --End Bug 9503972
2365: elsif ( p_to_pay_plan in ('TM') and substr(p_agency_subelement,1,2) <> 'FY' )
2366: then
2367: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2368: hr_utility.set_message_token('PAY_PLAN','TM');
2369: hr_utility.set_message_token('AGENCY_CODE','FY');
2370: hr_utility.raise_error;
2371: elsif ( p_to_pay_plan in ('VG') and substr(p_agency_subelement,1,2) not in ('FK','FL') )
2372: then
2365: elsif ( p_to_pay_plan in ('TM') and substr(p_agency_subelement,1,2) <> 'FY' )
2366: then
2367: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2368: hr_utility.set_message_token('PAY_PLAN','TM');
2369: hr_utility.set_message_token('AGENCY_CODE','FY');
2370: hr_utility.raise_error;
2371: elsif ( p_to_pay_plan in ('VG') and substr(p_agency_subelement,1,2) not in ('FK','FL') )
2372: then
2373: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2366: then
2367: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2368: hr_utility.set_message_token('PAY_PLAN','TM');
2369: hr_utility.set_message_token('AGENCY_CODE','FY');
2370: hr_utility.raise_error;
2371: elsif ( p_to_pay_plan in ('VG') and substr(p_agency_subelement,1,2) not in ('FK','FL') )
2372: then
2373: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2374: hr_utility.set_message_token('PAY_PLAN','VG');
2369: hr_utility.set_message_token('AGENCY_CODE','FY');
2370: hr_utility.raise_error;
2371: elsif ( p_to_pay_plan in ('VG') and substr(p_agency_subelement,1,2) not in ('FK','FL') )
2372: then
2373: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2374: hr_utility.set_message_token('PAY_PLAN','VG');
2375: hr_utility.set_message_token('AGENCY_CODE','FK or FL');
2376: hr_utility.raise_error;
2377: elsif ( p_to_pay_plan in ('VH') and substr(p_agency_subelement,1,2) not in ('FK','FL') )
2370: hr_utility.raise_error;
2371: elsif ( p_to_pay_plan in ('VG') and substr(p_agency_subelement,1,2) not in ('FK','FL') )
2372: then
2373: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2374: hr_utility.set_message_token('PAY_PLAN','VG');
2375: hr_utility.set_message_token('AGENCY_CODE','FK or FL');
2376: hr_utility.raise_error;
2377: elsif ( p_to_pay_plan in ('VH') and substr(p_agency_subelement,1,2) not in ('FK','FL') )
2378: then
2371: elsif ( p_to_pay_plan in ('VG') and substr(p_agency_subelement,1,2) not in ('FK','FL') )
2372: then
2373: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2374: hr_utility.set_message_token('PAY_PLAN','VG');
2375: hr_utility.set_message_token('AGENCY_CODE','FK or FL');
2376: hr_utility.raise_error;
2377: elsif ( p_to_pay_plan in ('VH') and substr(p_agency_subelement,1,2) not in ('FK','FL') )
2378: then
2379: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2372: then
2373: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2374: hr_utility.set_message_token('PAY_PLAN','VG');
2375: hr_utility.set_message_token('AGENCY_CODE','FK or FL');
2376: hr_utility.raise_error;
2377: elsif ( p_to_pay_plan in ('VH') and substr(p_agency_subelement,1,2) not in ('FK','FL') )
2378: then
2379: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2380: hr_utility.set_message_token('PAY_PLAN','VH');
2375: hr_utility.set_message_token('AGENCY_CODE','FK or FL');
2376: hr_utility.raise_error;
2377: elsif ( p_to_pay_plan in ('VH') and substr(p_agency_subelement,1,2) not in ('FK','FL') )
2378: then
2379: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2380: hr_utility.set_message_token('PAY_PLAN','VH');
2381: hr_utility.set_message_token('AGENCY_CODE','FK or FL');
2382: hr_utility.raise_error;
2383: elsif ( p_to_pay_plan in ('XF') and substr(p_agency_subelement,1,2) <> 'AR' )
2376: hr_utility.raise_error;
2377: elsif ( p_to_pay_plan in ('VH') and substr(p_agency_subelement,1,2) not in ('FK','FL') )
2378: then
2379: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2380: hr_utility.set_message_token('PAY_PLAN','VH');
2381: hr_utility.set_message_token('AGENCY_CODE','FK or FL');
2382: hr_utility.raise_error;
2383: elsif ( p_to_pay_plan in ('XF') and substr(p_agency_subelement,1,2) <> 'AR' )
2384: then
2377: elsif ( p_to_pay_plan in ('VH') and substr(p_agency_subelement,1,2) not in ('FK','FL') )
2378: then
2379: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2380: hr_utility.set_message_token('PAY_PLAN','VH');
2381: hr_utility.set_message_token('AGENCY_CODE','FK or FL');
2382: hr_utility.raise_error;
2383: elsif ( p_to_pay_plan in ('XF') and substr(p_agency_subelement,1,2) <> 'AR' )
2384: then
2385: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2378: then
2379: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2380: hr_utility.set_message_token('PAY_PLAN','VH');
2381: hr_utility.set_message_token('AGENCY_CODE','FK or FL');
2382: hr_utility.raise_error;
2383: elsif ( p_to_pay_plan in ('XF') and substr(p_agency_subelement,1,2) <> 'AR' )
2384: then
2385: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2386: hr_utility.set_message_token('PAY_PLAN','XF');
2381: hr_utility.set_message_token('AGENCY_CODE','FK or FL');
2382: hr_utility.raise_error;
2383: elsif ( p_to_pay_plan in ('XF') and substr(p_agency_subelement,1,2) <> 'AR' )
2384: then
2385: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2386: hr_utility.set_message_token('PAY_PLAN','XF');
2387: hr_utility.set_message_token('AGENCY_CODE','AR');
2388: hr_utility.raise_error;
2389: elsif ( p_to_pay_plan in ('XG') and substr(p_agency_subelement,1,2) <> 'AR' )
2382: hr_utility.raise_error;
2383: elsif ( p_to_pay_plan in ('XF') and substr(p_agency_subelement,1,2) <> 'AR' )
2384: then
2385: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2386: hr_utility.set_message_token('PAY_PLAN','XF');
2387: hr_utility.set_message_token('AGENCY_CODE','AR');
2388: hr_utility.raise_error;
2389: elsif ( p_to_pay_plan in ('XG') and substr(p_agency_subelement,1,2) <> 'AR' )
2390: then
2383: elsif ( p_to_pay_plan in ('XF') and substr(p_agency_subelement,1,2) <> 'AR' )
2384: then
2385: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2386: hr_utility.set_message_token('PAY_PLAN','XF');
2387: hr_utility.set_message_token('AGENCY_CODE','AR');
2388: hr_utility.raise_error;
2389: elsif ( p_to_pay_plan in ('XG') and substr(p_agency_subelement,1,2) <> 'AR' )
2390: then
2391: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2384: then
2385: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2386: hr_utility.set_message_token('PAY_PLAN','XF');
2387: hr_utility.set_message_token('AGENCY_CODE','AR');
2388: hr_utility.raise_error;
2389: elsif ( p_to_pay_plan in ('XG') and substr(p_agency_subelement,1,2) <> 'AR' )
2390: then
2391: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2392: hr_utility.set_message_token('PAY_PLAN','XG');
2387: hr_utility.set_message_token('AGENCY_CODE','AR');
2388: hr_utility.raise_error;
2389: elsif ( p_to_pay_plan in ('XG') and substr(p_agency_subelement,1,2) <> 'AR' )
2390: then
2391: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2392: hr_utility.set_message_token('PAY_PLAN','XG');
2393: hr_utility.set_message_token('AGENCY_CODE','AR');
2394: hr_utility.raise_error;
2395: elsif ( p_to_pay_plan in ('XH') and substr(p_agency_subelement,1,2) <> 'AR' )
2388: hr_utility.raise_error;
2389: elsif ( p_to_pay_plan in ('XG') and substr(p_agency_subelement,1,2) <> 'AR' )
2390: then
2391: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2392: hr_utility.set_message_token('PAY_PLAN','XG');
2393: hr_utility.set_message_token('AGENCY_CODE','AR');
2394: hr_utility.raise_error;
2395: elsif ( p_to_pay_plan in ('XH') and substr(p_agency_subelement,1,2) <> 'AR' )
2396: then
2389: elsif ( p_to_pay_plan in ('XG') and substr(p_agency_subelement,1,2) <> 'AR' )
2390: then
2391: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2392: hr_utility.set_message_token('PAY_PLAN','XG');
2393: hr_utility.set_message_token('AGENCY_CODE','AR');
2394: hr_utility.raise_error;
2395: elsif ( p_to_pay_plan in ('XH') and substr(p_agency_subelement,1,2) <> 'AR' )
2396: then
2397: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2390: then
2391: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2392: hr_utility.set_message_token('PAY_PLAN','XG');
2393: hr_utility.set_message_token('AGENCY_CODE','AR');
2394: hr_utility.raise_error;
2395: elsif ( p_to_pay_plan in ('XH') and substr(p_agency_subelement,1,2) <> 'AR' )
2396: then
2397: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2398: hr_utility.set_message_token('PAY_PLAN','XH');
2393: hr_utility.set_message_token('AGENCY_CODE','AR');
2394: hr_utility.raise_error;
2395: elsif ( p_to_pay_plan in ('XH') and substr(p_agency_subelement,1,2) <> 'AR' )
2396: then
2397: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2398: hr_utility.set_message_token('PAY_PLAN','XH');
2399: hr_utility.set_message_token('AGENCY_CODE','AR');
2400: hr_utility.raise_error;
2401: elsif ( p_to_pay_plan = 'CT' and substr(p_agency_subelement,1,2) <> 'CT') then
2394: hr_utility.raise_error;
2395: elsif ( p_to_pay_plan in ('XH') and substr(p_agency_subelement,1,2) <> 'AR' )
2396: then
2397: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2398: hr_utility.set_message_token('PAY_PLAN','XH');
2399: hr_utility.set_message_token('AGENCY_CODE','AR');
2400: hr_utility.raise_error;
2401: elsif ( p_to_pay_plan = 'CT' and substr(p_agency_subelement,1,2) <> 'CT') then
2402: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2395: elsif ( p_to_pay_plan in ('XH') and substr(p_agency_subelement,1,2) <> 'AR' )
2396: then
2397: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2398: hr_utility.set_message_token('PAY_PLAN','XH');
2399: hr_utility.set_message_token('AGENCY_CODE','AR');
2400: hr_utility.raise_error;
2401: elsif ( p_to_pay_plan = 'CT' and substr(p_agency_subelement,1,2) <> 'CT') then
2402: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2403: hr_utility.set_message_token('PAY_PLAN','CT');
2396: then
2397: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2398: hr_utility.set_message_token('PAY_PLAN','XH');
2399: hr_utility.set_message_token('AGENCY_CODE','AR');
2400: hr_utility.raise_error;
2401: elsif ( p_to_pay_plan = 'CT' and substr(p_agency_subelement,1,2) <> 'CT') then
2402: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2403: hr_utility.set_message_token('PAY_PLAN','CT');
2404: hr_utility.set_message_token('AGENCY_CODE','CT');
2398: hr_utility.set_message_token('PAY_PLAN','XH');
2399: hr_utility.set_message_token('AGENCY_CODE','AR');
2400: hr_utility.raise_error;
2401: elsif ( p_to_pay_plan = 'CT' and substr(p_agency_subelement,1,2) <> 'CT') then
2402: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2403: hr_utility.set_message_token('PAY_PLAN','CT');
2404: hr_utility.set_message_token('AGENCY_CODE','CT');
2405: hr_utility.raise_error;
2406: elsif ( p_to_pay_plan = 'RA' and substr(p_agency_subelement,1,2) <> 'AG' ) then
2399: hr_utility.set_message_token('AGENCY_CODE','AR');
2400: hr_utility.raise_error;
2401: elsif ( p_to_pay_plan = 'CT' and substr(p_agency_subelement,1,2) <> 'CT') then
2402: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2403: hr_utility.set_message_token('PAY_PLAN','CT');
2404: hr_utility.set_message_token('AGENCY_CODE','CT');
2405: hr_utility.raise_error;
2406: elsif ( p_to_pay_plan = 'RA' and substr(p_agency_subelement,1,2) <> 'AG' ) then
2407: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2400: hr_utility.raise_error;
2401: elsif ( p_to_pay_plan = 'CT' and substr(p_agency_subelement,1,2) <> 'CT') then
2402: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2403: hr_utility.set_message_token('PAY_PLAN','CT');
2404: hr_utility.set_message_token('AGENCY_CODE','CT');
2405: hr_utility.raise_error;
2406: elsif ( p_to_pay_plan = 'RA' and substr(p_agency_subelement,1,2) <> 'AG' ) then
2407: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2408: hr_utility.set_message_token('PAY_PLAN','RA');
2401: elsif ( p_to_pay_plan = 'CT' and substr(p_agency_subelement,1,2) <> 'CT') then
2402: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2403: hr_utility.set_message_token('PAY_PLAN','CT');
2404: hr_utility.set_message_token('AGENCY_CODE','CT');
2405: hr_utility.raise_error;
2406: elsif ( p_to_pay_plan = 'RA' and substr(p_agency_subelement,1,2) <> 'AG' ) then
2407: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2408: hr_utility.set_message_token('PAY_PLAN','RA');
2409: hr_utility.set_message_token('AGENCY_CODE','AG');
2403: hr_utility.set_message_token('PAY_PLAN','CT');
2404: hr_utility.set_message_token('AGENCY_CODE','CT');
2405: hr_utility.raise_error;
2406: elsif ( p_to_pay_plan = 'RA' and substr(p_agency_subelement,1,2) <> 'AG' ) then
2407: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2408: hr_utility.set_message_token('PAY_PLAN','RA');
2409: hr_utility.set_message_token('AGENCY_CODE','AG');
2410: hr_utility.raise_error;
2411: elsif ( p_to_pay_plan in ('KB','KE','KI','KJ','KM','KN','KO','KP','KT','KU','KV','KW','KX','KY','PJ','PQ','PU','PZ')
2404: hr_utility.set_message_token('AGENCY_CODE','CT');
2405: hr_utility.raise_error;
2406: elsif ( p_to_pay_plan = 'RA' and substr(p_agency_subelement,1,2) <> 'AG' ) then
2407: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2408: hr_utility.set_message_token('PAY_PLAN','RA');
2409: hr_utility.set_message_token('AGENCY_CODE','AG');
2410: hr_utility.raise_error;
2411: elsif ( p_to_pay_plan in ('KB','KE','KI','KJ','KM','KN','KO','KP','KT','KU','KV','KW','KX','KY','PJ','PQ','PU','PZ')
2412: and substr(p_agency_subelement,1,2) <> 'LP' ) then
2405: hr_utility.raise_error;
2406: elsif ( p_to_pay_plan = 'RA' and substr(p_agency_subelement,1,2) <> 'AG' ) then
2407: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2408: hr_utility.set_message_token('PAY_PLAN','RA');
2409: hr_utility.set_message_token('AGENCY_CODE','AG');
2410: hr_utility.raise_error;
2411: elsif ( p_to_pay_plan in ('KB','KE','KI','KJ','KM','KN','KO','KP','KT','KU','KV','KW','KX','KY','PJ','PQ','PU','PZ')
2412: and substr(p_agency_subelement,1,2) <> 'LP' ) then
2413: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2406: elsif ( p_to_pay_plan = 'RA' and substr(p_agency_subelement,1,2) <> 'AG' ) then
2407: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2408: hr_utility.set_message_token('PAY_PLAN','RA');
2409: hr_utility.set_message_token('AGENCY_CODE','AG');
2410: hr_utility.raise_error;
2411: elsif ( p_to_pay_plan in ('KB','KE','KI','KJ','KM','KN','KO','KP','KT','KU','KV','KW','KX','KY','PJ','PQ','PU','PZ')
2412: and substr(p_agency_subelement,1,2) <> 'LP' ) then
2413: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2414: hr_utility.set_message_token('PAY_PLAN','KB,KE,KI,KJ,KM,KN,KO,KP,KT,KU,KV,KW,KX,KY,PJ,PQ,PU,or PZ');
2409: hr_utility.set_message_token('AGENCY_CODE','AG');
2410: hr_utility.raise_error;
2411: elsif ( p_to_pay_plan in ('KB','KE','KI','KJ','KM','KN','KO','KP','KT','KU','KV','KW','KX','KY','PJ','PQ','PU','PZ')
2412: and substr(p_agency_subelement,1,2) <> 'LP' ) then
2413: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2414: hr_utility.set_message_token('PAY_PLAN','KB,KE,KI,KJ,KM,KN,KO,KP,KT,KU,KV,KW,KX,KY,PJ,PQ,PU,or PZ');
2415: hr_utility.set_message_token('AGENCY_CODE','LP');
2416: hr_utility.raise_error;
2417: elsif ( p_to_pay_plan in ('YA', 'YB', 'YC', 'YD', 'YE', 'YF', 'YG', 'YH', 'YI', 'YJ', 'YK', 'YL', 'YM', 'YN', 'YO', 'YP', 'YQ', 'YR', 'YS', 'YT', 'YU', 'YV', 'YW', 'YX', 'YY', 'YZ')
2410: hr_utility.raise_error;
2411: elsif ( p_to_pay_plan in ('KB','KE','KI','KJ','KM','KN','KO','KP','KT','KU','KV','KW','KX','KY','PJ','PQ','PU','PZ')
2412: and substr(p_agency_subelement,1,2) <> 'LP' ) then
2413: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2414: hr_utility.set_message_token('PAY_PLAN','KB,KE,KI,KJ,KM,KN,KO,KP,KT,KU,KV,KW,KX,KY,PJ,PQ,PU,or PZ');
2415: hr_utility.set_message_token('AGENCY_CODE','LP');
2416: hr_utility.raise_error;
2417: elsif ( p_to_pay_plan in ('YA', 'YB', 'YC', 'YD', 'YE', 'YF', 'YG', 'YH', 'YI', 'YJ', 'YK', 'YL', 'YM', 'YN', 'YO', 'YP', 'YQ', 'YR', 'YS', 'YT', 'YU', 'YV', 'YW', 'YX', 'YY', 'YZ')
2418: and substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') ) then
2411: elsif ( p_to_pay_plan in ('KB','KE','KI','KJ','KM','KN','KO','KP','KT','KU','KV','KW','KX','KY','PJ','PQ','PU','PZ')
2412: and substr(p_agency_subelement,1,2) <> 'LP' ) then
2413: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2414: hr_utility.set_message_token('PAY_PLAN','KB,KE,KI,KJ,KM,KN,KO,KP,KT,KU,KV,KW,KX,KY,PJ,PQ,PU,or PZ');
2415: hr_utility.set_message_token('AGENCY_CODE','LP');
2416: hr_utility.raise_error;
2417: elsif ( p_to_pay_plan in ('YA', 'YB', 'YC', 'YD', 'YE', 'YF', 'YG', 'YH', 'YI', 'YJ', 'YK', 'YL', 'YM', 'YN', 'YO', 'YP', 'YQ', 'YR', 'YS', 'YT', 'YU', 'YV', 'YW', 'YX', 'YY', 'YZ')
2418: and substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') ) then
2419: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2412: and substr(p_agency_subelement,1,2) <> 'LP' ) then
2413: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2414: hr_utility.set_message_token('PAY_PLAN','KB,KE,KI,KJ,KM,KN,KO,KP,KT,KU,KV,KW,KX,KY,PJ,PQ,PU,or PZ');
2415: hr_utility.set_message_token('AGENCY_CODE','LP');
2416: hr_utility.raise_error;
2417: elsif ( p_to_pay_plan in ('YA', 'YB', 'YC', 'YD', 'YE', 'YF', 'YG', 'YH', 'YI', 'YJ', 'YK', 'YL', 'YM', 'YN', 'YO', 'YP', 'YQ', 'YR', 'YS', 'YT', 'YU', 'YV', 'YW', 'YX', 'YY', 'YZ')
2418: and substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') ) then
2419: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2420: hr_utility.set_message_token('PAY_PLAN',' YA, YB, YC, YD, YE, YF, YG, YH, YI, YJ, YK,YL, YM, YN, YO, YP, YQ, YR, YS, YT, YU, YV, YW, YX, YY, or YZ ');
2415: hr_utility.set_message_token('AGENCY_CODE','LP');
2416: hr_utility.raise_error;
2417: elsif ( p_to_pay_plan in ('YA', 'YB', 'YC', 'YD', 'YE', 'YF', 'YG', 'YH', 'YI', 'YJ', 'YK', 'YL', 'YM', 'YN', 'YO', 'YP', 'YQ', 'YR', 'YS', 'YT', 'YU', 'YV', 'YW', 'YX', 'YY', 'YZ')
2418: and substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') ) then
2419: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2420: hr_utility.set_message_token('PAY_PLAN',' YA, YB, YC, YD, YE, YF, YG, YH, YI, YJ, YK,YL, YM, YN, YO, YP, YQ, YR, YS, YT, YU, YV, YW, YX, YY, or YZ ');
2421: hr_utility.set_message_token('AGENCY_CODE','AF,AR,DD or NV');
2422: hr_utility.raise_error;
2423: elsif ( p_to_pay_plan in ('XI','XJ','XK') and p_agency_subelement <> 'TRAI' ) then
2416: hr_utility.raise_error;
2417: elsif ( p_to_pay_plan in ('YA', 'YB', 'YC', 'YD', 'YE', 'YF', 'YG', 'YH', 'YI', 'YJ', 'YK', 'YL', 'YM', 'YN', 'YO', 'YP', 'YQ', 'YR', 'YS', 'YT', 'YU', 'YV', 'YW', 'YX', 'YY', 'YZ')
2418: and substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') ) then
2419: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2420: hr_utility.set_message_token('PAY_PLAN',' YA, YB, YC, YD, YE, YF, YG, YH, YI, YJ, YK,YL, YM, YN, YO, YP, YQ, YR, YS, YT, YU, YV, YW, YX, YY, or YZ ');
2421: hr_utility.set_message_token('AGENCY_CODE','AF,AR,DD or NV');
2422: hr_utility.raise_error;
2423: elsif ( p_to_pay_plan in ('XI','XJ','XK') and p_agency_subelement <> 'TRAI' ) then
2424: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2417: elsif ( p_to_pay_plan in ('YA', 'YB', 'YC', 'YD', 'YE', 'YF', 'YG', 'YH', 'YI', 'YJ', 'YK', 'YL', 'YM', 'YN', 'YO', 'YP', 'YQ', 'YR', 'YS', 'YT', 'YU', 'YV', 'YW', 'YX', 'YY', 'YZ')
2418: and substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') ) then
2419: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2420: hr_utility.set_message_token('PAY_PLAN',' YA, YB, YC, YD, YE, YF, YG, YH, YI, YJ, YK,YL, YM, YN, YO, YP, YQ, YR, YS, YT, YU, YV, YW, YX, YY, or YZ ');
2421: hr_utility.set_message_token('AGENCY_CODE','AF,AR,DD or NV');
2422: hr_utility.raise_error;
2423: elsif ( p_to_pay_plan in ('XI','XJ','XK') and p_agency_subelement <> 'TRAI' ) then
2424: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2425: hr_utility.set_message_token('PAY_PLAN','XI, XJ or XK ');
2418: and substr(p_agency_subelement,1,2) not in ('AF','AR','DD','NV') ) then
2419: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2420: hr_utility.set_message_token('PAY_PLAN',' YA, YB, YC, YD, YE, YF, YG, YH, YI, YJ, YK,YL, YM, YN, YO, YP, YQ, YR, YS, YT, YU, YV, YW, YX, YY, or YZ ');
2421: hr_utility.set_message_token('AGENCY_CODE','AF,AR,DD or NV');
2422: hr_utility.raise_error;
2423: elsif ( p_to_pay_plan in ('XI','XJ','XK') and p_agency_subelement <> 'TRAI' ) then
2424: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2425: hr_utility.set_message_token('PAY_PLAN','XI, XJ or XK ');
2426: hr_utility.set_message_token('AGENCY_CODE','TRAI');
2420: hr_utility.set_message_token('PAY_PLAN',' YA, YB, YC, YD, YE, YF, YG, YH, YI, YJ, YK,YL, YM, YN, YO, YP, YQ, YR, YS, YT, YU, YV, YW, YX, YY, or YZ ');
2421: hr_utility.set_message_token('AGENCY_CODE','AF,AR,DD or NV');
2422: hr_utility.raise_error;
2423: elsif ( p_to_pay_plan in ('XI','XJ','XK') and p_agency_subelement <> 'TRAI' ) then
2424: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2425: hr_utility.set_message_token('PAY_PLAN','XI, XJ or XK ');
2426: hr_utility.set_message_token('AGENCY_CODE','TRAI');
2427: hr_utility.raise_error;
2428: elsif ( p_to_pay_plan in ('NZ') and p_agency_subelement <> 'SM03' ) then
2421: hr_utility.set_message_token('AGENCY_CODE','AF,AR,DD or NV');
2422: hr_utility.raise_error;
2423: elsif ( p_to_pay_plan in ('XI','XJ','XK') and p_agency_subelement <> 'TRAI' ) then
2424: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2425: hr_utility.set_message_token('PAY_PLAN','XI, XJ or XK ');
2426: hr_utility.set_message_token('AGENCY_CODE','TRAI');
2427: hr_utility.raise_error;
2428: elsif ( p_to_pay_plan in ('NZ') and p_agency_subelement <> 'SM03' ) then
2429: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2422: hr_utility.raise_error;
2423: elsif ( p_to_pay_plan in ('XI','XJ','XK') and p_agency_subelement <> 'TRAI' ) then
2424: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2425: hr_utility.set_message_token('PAY_PLAN','XI, XJ or XK ');
2426: hr_utility.set_message_token('AGENCY_CODE','TRAI');
2427: hr_utility.raise_error;
2428: elsif ( p_to_pay_plan in ('NZ') and p_agency_subelement <> 'SM03' ) then
2429: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2430: hr_utility.set_message_token('PAY_PLAN','NZ');
2423: elsif ( p_to_pay_plan in ('XI','XJ','XK') and p_agency_subelement <> 'TRAI' ) then
2424: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2425: hr_utility.set_message_token('PAY_PLAN','XI, XJ or XK ');
2426: hr_utility.set_message_token('AGENCY_CODE','TRAI');
2427: hr_utility.raise_error;
2428: elsif ( p_to_pay_plan in ('NZ') and p_agency_subelement <> 'SM03' ) then
2429: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2430: hr_utility.set_message_token('PAY_PLAN','NZ');
2431: hr_utility.set_message_token('AGENCY_CODE','SM03');
2425: hr_utility.set_message_token('PAY_PLAN','XI, XJ or XK ');
2426: hr_utility.set_message_token('AGENCY_CODE','TRAI');
2427: hr_utility.raise_error;
2428: elsif ( p_to_pay_plan in ('NZ') and p_agency_subelement <> 'SM03' ) then
2429: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2430: hr_utility.set_message_token('PAY_PLAN','NZ');
2431: hr_utility.set_message_token('AGENCY_CODE','SM03');
2432: hr_utility.raise_error;
2433: elsif ( p_to_pay_plan in ('GE','GI') and substr(p_agency_subelement,1,2) <> 'LP') THEN
2426: hr_utility.set_message_token('AGENCY_CODE','TRAI');
2427: hr_utility.raise_error;
2428: elsif ( p_to_pay_plan in ('NZ') and p_agency_subelement <> 'SM03' ) then
2429: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2430: hr_utility.set_message_token('PAY_PLAN','NZ');
2431: hr_utility.set_message_token('AGENCY_CODE','SM03');
2432: hr_utility.raise_error;
2433: elsif ( p_to_pay_plan in ('GE','GI') and substr(p_agency_subelement,1,2) <> 'LP') THEN
2434: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2427: hr_utility.raise_error;
2428: elsif ( p_to_pay_plan in ('NZ') and p_agency_subelement <> 'SM03' ) then
2429: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2430: hr_utility.set_message_token('PAY_PLAN','NZ');
2431: hr_utility.set_message_token('AGENCY_CODE','SM03');
2432: hr_utility.raise_error;
2433: elsif ( p_to_pay_plan in ('GE','GI') and substr(p_agency_subelement,1,2) <> 'LP') THEN
2434: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2435: hr_utility.set_message_token('PAY_PLAN','GE or GI');
2428: elsif ( p_to_pay_plan in ('NZ') and p_agency_subelement <> 'SM03' ) then
2429: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2430: hr_utility.set_message_token('PAY_PLAN','NZ');
2431: hr_utility.set_message_token('AGENCY_CODE','SM03');
2432: hr_utility.raise_error;
2433: elsif ( p_to_pay_plan in ('GE','GI') and substr(p_agency_subelement,1,2) <> 'LP') THEN
2434: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2435: hr_utility.set_message_token('PAY_PLAN','GE or GI');
2436: hr_utility.set_message_token('AGENCY_CODE','LP');
2430: hr_utility.set_message_token('PAY_PLAN','NZ');
2431: hr_utility.set_message_token('AGENCY_CODE','SM03');
2432: hr_utility.raise_error;
2433: elsif ( p_to_pay_plan in ('GE','GI') and substr(p_agency_subelement,1,2) <> 'LP') THEN
2434: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2435: hr_utility.set_message_token('PAY_PLAN','GE or GI');
2436: hr_utility.set_message_token('AGENCY_CODE','LP');
2437: hr_utility.raise_error;
2438: elsif p_effective_date < to_date('2007/05/01','RRRR/MM/DD') AND -- Bug# 6469079
2431: hr_utility.set_message_token('AGENCY_CODE','SM03');
2432: hr_utility.raise_error;
2433: elsif ( p_to_pay_plan in ('GE','GI') and substr(p_agency_subelement,1,2) <> 'LP') THEN
2434: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2435: hr_utility.set_message_token('PAY_PLAN','GE or GI');
2436: hr_utility.set_message_token('AGENCY_CODE','LP');
2437: hr_utility.raise_error;
2438: elsif p_effective_date < to_date('2007/05/01','RRRR/MM/DD') AND -- Bug# 6469079
2439: ( p_to_pay_plan = 'OF' and p_agency_subelement <> 'HUFH') THEN
2432: hr_utility.raise_error;
2433: elsif ( p_to_pay_plan in ('GE','GI') and substr(p_agency_subelement,1,2) <> 'LP') THEN
2434: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2435: hr_utility.set_message_token('PAY_PLAN','GE or GI');
2436: hr_utility.set_message_token('AGENCY_CODE','LP');
2437: hr_utility.raise_error;
2438: elsif p_effective_date < to_date('2007/05/01','RRRR/MM/DD') AND -- Bug# 6469079
2439: ( p_to_pay_plan = 'OF' and p_agency_subelement <> 'HUFH') THEN
2440: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2433: elsif ( p_to_pay_plan in ('GE','GI') and substr(p_agency_subelement,1,2) <> 'LP') THEN
2434: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2435: hr_utility.set_message_token('PAY_PLAN','GE or GI');
2436: hr_utility.set_message_token('AGENCY_CODE','LP');
2437: hr_utility.raise_error;
2438: elsif p_effective_date < to_date('2007/05/01','RRRR/MM/DD') AND -- Bug# 6469079
2439: ( p_to_pay_plan = 'OF' and p_agency_subelement <> 'HUFH') THEN
2440: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2441: hr_utility.set_message_token('PAY_PLAN','OF');
2436: hr_utility.set_message_token('AGENCY_CODE','LP');
2437: hr_utility.raise_error;
2438: elsif p_effective_date < to_date('2007/05/01','RRRR/MM/DD') AND -- Bug# 6469079
2439: ( p_to_pay_plan = 'OF' and p_agency_subelement <> 'HUFH') THEN
2440: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2441: hr_utility.set_message_token('PAY_PLAN','OF');
2442: hr_utility.set_message_token('AGENCY_CODE','HUFH');
2443: hr_utility.raise_error;
2444: --Begin Bug 9503972
2437: hr_utility.raise_error;
2438: elsif p_effective_date < to_date('2007/05/01','RRRR/MM/DD') AND -- Bug# 6469079
2439: ( p_to_pay_plan = 'OF' and p_agency_subelement <> 'HUFH') THEN
2440: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2441: hr_utility.set_message_token('PAY_PLAN','OF');
2442: hr_utility.set_message_token('AGENCY_CODE','HUFH');
2443: hr_utility.raise_error;
2444: --Begin Bug 9503972
2445: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2438: elsif p_effective_date < to_date('2007/05/01','RRRR/MM/DD') AND -- Bug# 6469079
2439: ( p_to_pay_plan = 'OF' and p_agency_subelement <> 'HUFH') THEN
2440: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2441: hr_utility.set_message_token('PAY_PLAN','OF');
2442: hr_utility.set_message_token('AGENCY_CODE','HUFH');
2443: hr_utility.raise_error;
2444: --Begin Bug 9503972
2445: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2446: ( p_to_pay_plan IN ('OE','OF') and (substr(p_agency_subelement,1,2) <> 'HF' OR p_agency_subelement <> 'HUFH') ) THEN
2439: ( p_to_pay_plan = 'OF' and p_agency_subelement <> 'HUFH') THEN
2440: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2441: hr_utility.set_message_token('PAY_PLAN','OF');
2442: hr_utility.set_message_token('AGENCY_CODE','HUFH');
2443: hr_utility.raise_error;
2444: --Begin Bug 9503972
2445: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2446: ( p_to_pay_plan IN ('OE','OF') and (substr(p_agency_subelement,1,2) <> 'HF' OR p_agency_subelement <> 'HUFH') ) THEN
2447: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2443: hr_utility.raise_error;
2444: --Begin Bug 9503972
2445: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2446: ( p_to_pay_plan IN ('OE','OF') and (substr(p_agency_subelement,1,2) <> 'HF' OR p_agency_subelement <> 'HUFH') ) THEN
2447: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2448: hr_utility.set_message_token('PAY_PLAN','OE or OF');
2449: hr_utility.set_message_token('AGENCY_CODE','HF, HUFH');
2450: hr_utility.raise_error;
2451: --end Bug 9503972
2444: --Begin Bug 9503972
2445: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2446: ( p_to_pay_plan IN ('OE','OF') and (substr(p_agency_subelement,1,2) <> 'HF' OR p_agency_subelement <> 'HUFH') ) THEN
2447: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2448: hr_utility.set_message_token('PAY_PLAN','OE or OF');
2449: hr_utility.set_message_token('AGENCY_CODE','HF, HUFH');
2450: hr_utility.raise_error;
2451: --end Bug 9503972
2452: --Begin Bug#6469079
2445: elsif p_effective_date > to_date('2009/12/01','RRRR/MM/DD') AND
2446: ( p_to_pay_plan IN ('OE','OF') and (substr(p_agency_subelement,1,2) <> 'HF' OR p_agency_subelement <> 'HUFH') ) THEN
2447: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2448: hr_utility.set_message_token('PAY_PLAN','OE or OF');
2449: hr_utility.set_message_token('AGENCY_CODE','HF, HUFH');
2450: hr_utility.raise_error;
2451: --end Bug 9503972
2452: --Begin Bug#6469079
2453: elsif ( p_to_pay_plan in('OE','OF') and p_agency_subelement <> 'HUFH') THEN
2446: ( p_to_pay_plan IN ('OE','OF') and (substr(p_agency_subelement,1,2) <> 'HF' OR p_agency_subelement <> 'HUFH') ) THEN
2447: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2448: hr_utility.set_message_token('PAY_PLAN','OE or OF');
2449: hr_utility.set_message_token('AGENCY_CODE','HF, HUFH');
2450: hr_utility.raise_error;
2451: --end Bug 9503972
2452: --Begin Bug#6469079
2453: elsif ( p_to_pay_plan in('OE','OF') and p_agency_subelement <> 'HUFH') THEN
2454: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2450: hr_utility.raise_error;
2451: --end Bug 9503972
2452: --Begin Bug#6469079
2453: elsif ( p_to_pay_plan in('OE','OF') and p_agency_subelement <> 'HUFH') THEN
2454: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2455: hr_utility.set_message_token('PAY_PLAN','OE or OF');
2456: hr_utility.set_message_token('AGENCY_CODE','HUFH');
2457: hr_utility.raise_error;
2458: --End Bug#6469079
2451: --end Bug 9503972
2452: --Begin Bug#6469079
2453: elsif ( p_to_pay_plan in('OE','OF') and p_agency_subelement <> 'HUFH') THEN
2454: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2455: hr_utility.set_message_token('PAY_PLAN','OE or OF');
2456: hr_utility.set_message_token('AGENCY_CODE','HUFH');
2457: hr_utility.raise_error;
2458: --End Bug#6469079
2459: --Begin Bug# 5073313
2452: --Begin Bug#6469079
2453: elsif ( p_to_pay_plan in('OE','OF') and p_agency_subelement <> 'HUFH') THEN
2454: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2455: hr_utility.set_message_token('PAY_PLAN','OE or OF');
2456: hr_utility.set_message_token('AGENCY_CODE','HUFH');
2457: hr_utility.raise_error;
2458: --End Bug#6469079
2459: --Begin Bug# 5073313
2460: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2453: elsif ( p_to_pay_plan in('OE','OF') and p_agency_subelement <> 'HUFH') THEN
2454: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2455: hr_utility.set_message_token('PAY_PLAN','OE or OF');
2456: hr_utility.set_message_token('AGENCY_CODE','HUFH');
2457: hr_utility.raise_error;
2458: --End Bug#6469079
2459: --Begin Bug# 5073313
2460: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2461: ( p_to_pay_plan in ('HE','HH','HL','HS','HT','HW') and substr(p_agency_subelement,1,2) <> 'HS' )
2459: --Begin Bug# 5073313
2460: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2461: ( p_to_pay_plan in ('HE','HH','HL','HS','HT','HW') and substr(p_agency_subelement,1,2) <> 'HS' )
2462: then
2463: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2464: hr_utility.set_message_token('PAY_PLAN',p_to_pay_plan);
2465: hr_utility.set_message_token('AGENCY_CODE','HS');
2466: hr_utility.raise_error;
2467: --End bug# 5073313
2460: elsif p_effective_date >= fnd_date.canonical_to_date('2006/05/01') and
2461: ( p_to_pay_plan in ('HE','HH','HL','HS','HT','HW') and substr(p_agency_subelement,1,2) <> 'HS' )
2462: then
2463: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2464: hr_utility.set_message_token('PAY_PLAN',p_to_pay_plan);
2465: hr_utility.set_message_token('AGENCY_CODE','HS');
2466: hr_utility.raise_error;
2467: --End bug# 5073313
2468: --Begin Bug# 5745356
2461: ( p_to_pay_plan in ('HE','HH','HL','HS','HT','HW') and substr(p_agency_subelement,1,2) <> 'HS' )
2462: then
2463: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2464: hr_utility.set_message_token('PAY_PLAN',p_to_pay_plan);
2465: hr_utility.set_message_token('AGENCY_CODE','HS');
2466: hr_utility.raise_error;
2467: --End bug# 5073313
2468: --Begin Bug# 5745356
2469: elsif p_effective_date >= fnd_date.canonical_to_date('2006/10/01') and
2462: then
2463: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2464: hr_utility.set_message_token('PAY_PLAN',p_to_pay_plan);
2465: hr_utility.set_message_token('AGENCY_CODE','HS');
2466: hr_utility.raise_error;
2467: --End bug# 5073313
2468: --Begin Bug# 5745356
2469: elsif p_effective_date >= fnd_date.canonical_to_date('2006/10/01') and
2470: ( p_to_pay_plan in ('HA','HB','HC','HD','HF','HG','HI','HJ','HK','HM','HN','HO',',HP','HQ','HR','HV','HX','HY','HZ') and substr(p_agency_subelement,1,2) <> 'HS' )
2468: --Begin Bug# 5745356
2469: elsif p_effective_date >= fnd_date.canonical_to_date('2006/10/01') and
2470: ( p_to_pay_plan in ('HA','HB','HC','HD','HF','HG','HI','HJ','HK','HM','HN','HO',',HP','HQ','HR','HV','HX','HY','HZ') and substr(p_agency_subelement,1,2) <> 'HS' )
2471: then
2472: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2473: hr_utility.set_message_token('PAY_PLAN',p_to_pay_plan);
2474: hr_utility.set_message_token('AGENCY_CODE','HS');
2475: hr_utility.raise_error;
2476: --End bug# 5745356
2469: elsif p_effective_date >= fnd_date.canonical_to_date('2006/10/01') and
2470: ( p_to_pay_plan in ('HA','HB','HC','HD','HF','HG','HI','HJ','HK','HM','HN','HO',',HP','HQ','HR','HV','HX','HY','HZ') and substr(p_agency_subelement,1,2) <> 'HS' )
2471: then
2472: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2473: hr_utility.set_message_token('PAY_PLAN',p_to_pay_plan);
2474: hr_utility.set_message_token('AGENCY_CODE','HS');
2475: hr_utility.raise_error;
2476: --End bug# 5745356
2477: --Begin Bug# 10189715
2470: ( p_to_pay_plan in ('HA','HB','HC','HD','HF','HG','HI','HJ','HK','HM','HN','HO',',HP','HQ','HR','HV','HX','HY','HZ') and substr(p_agency_subelement,1,2) <> 'HS' )
2471: then
2472: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2473: hr_utility.set_message_token('PAY_PLAN',p_to_pay_plan);
2474: hr_utility.set_message_token('AGENCY_CODE','HS');
2475: hr_utility.raise_error;
2476: --End bug# 5745356
2477: --Begin Bug# 10189715
2478: elsif p_effective_date >= fnd_date.canonical_to_date('2010/09/01') and
2471: then
2472: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2473: hr_utility.set_message_token('PAY_PLAN',p_to_pay_plan);
2474: hr_utility.set_message_token('AGENCY_CODE','HS');
2475: hr_utility.raise_error;
2476: --End bug# 5745356
2477: --Begin Bug# 10189715
2478: elsif p_effective_date >= fnd_date.canonical_to_date('2010/09/01') and
2479: ( p_to_pay_plan in ('HU') and substr(p_agency_subelement,1,2) <> 'HS' )
2477: --Begin Bug# 10189715
2478: elsif p_effective_date >= fnd_date.canonical_to_date('2010/09/01') and
2479: ( p_to_pay_plan in ('HU') and substr(p_agency_subelement,1,2) <> 'HS' )
2480: then
2481: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2482: hr_utility.set_message_token('PAY_PLAN',p_to_pay_plan);
2483: hr_utility.set_message_token('AGENCY_CODE','HS');
2484: hr_utility.raise_error;
2485: --End bug# 10189715
2478: elsif p_effective_date >= fnd_date.canonical_to_date('2010/09/01') and
2479: ( p_to_pay_plan in ('HU') and substr(p_agency_subelement,1,2) <> 'HS' )
2480: then
2481: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2482: hr_utility.set_message_token('PAY_PLAN',p_to_pay_plan);
2483: hr_utility.set_message_token('AGENCY_CODE','HS');
2484: hr_utility.raise_error;
2485: --End bug# 10189715
2486: else
2479: ( p_to_pay_plan in ('HU') and substr(p_agency_subelement,1,2) <> 'HS' )
2480: then
2481: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2482: hr_utility.set_message_token('PAY_PLAN',p_to_pay_plan);
2483: hr_utility.set_message_token('AGENCY_CODE','HS');
2484: hr_utility.raise_error;
2485: --End bug# 10189715
2486: else
2487: hr_utility.set_location('No error',14);
2480: then
2481: hr_utility.set_message(8301,'GHR_37879_ALL_PROCEDURE_FAIL');
2482: hr_utility.set_message_token('PAY_PLAN',p_to_pay_plan);
2483: hr_utility.set_message_token('AGENCY_CODE','HS');
2484: hr_utility.raise_error;
2485: --End bug# 10189715
2486: else
2487: hr_utility.set_location('No error',14);
2488: end if;
2483: hr_utility.set_message_token('AGENCY_CODE','HS');
2484: hr_utility.raise_error;
2485: --End bug# 10189715
2486: else
2487: hr_utility.set_location('No error',14);
2488: end if;
2489:
2490: -- 440.04.3
2491: -- added the following personal office identifiers on 9-oct-98
2502: p_pers_office_identifier not in ('2256','2267','2336','2415','2431',
2503: '2562','2614','2896','3231','3322','4219','4221','4252')
2504: )
2505: then
2506: hr_utility.set_message(8301, 'GHR_37247_ALL_PROCEDURE_FAIL');
2507: hr_utility.raise_error;
2508: end if;
2509: end if;
2510: -- 420.05.3
2503: '2562','2614','2896','3231','3322','4219','4221','4252')
2504: )
2505: then
2506: hr_utility.set_message(8301, 'GHR_37247_ALL_PROCEDURE_FAIL');
2507: hr_utility.raise_error;
2508: end if;
2509: end if;
2510: -- 420.05.3
2511: -- 11/5 12/14/99 vravikan 01-Aug-1999 Delete the Pay Plan DG
2530: and
2531: p_to_grade_or_level not in ('01','02','03','04','05')
2532: )
2533: then
2534: hr_utility.set_message(8301, 'GHR_37410_ALL_PROCEDURE_FAIL');
2535: hr_utility.raise_error;
2536: end if;
2537: else
2538: if (
2531: p_to_grade_or_level not in ('01','02','03','04','05')
2532: )
2533: then
2534: hr_utility.set_message(8301, 'GHR_37410_ALL_PROCEDURE_FAIL');
2535: hr_utility.raise_error;
2536: end if;
2537: else
2538: if (
2539: p_to_pay_plan in ('DA','DS','DT')
2568: and
2569: p_to_grade_or_level not in ('01','02','03','04','05')
2570: )
2571: then
2572: hr_utility.set_message(8301, 'GHR_37248_ALL_PROCEDURE_FAIL');
2573: hr_utility.raise_error;
2574: end if;
2575: end if;
2576: end if;
2569: p_to_grade_or_level not in ('01','02','03','04','05')
2570: )
2571: then
2572: hr_utility.set_message(8301, 'GHR_37248_ALL_PROCEDURE_FAIL');
2573: hr_utility.raise_error;
2574: end if;
2575: end if;
2576: end if;
2577: -- 440.10.2
2586: p_to_pay_plan <>'FE'
2587: and
2588: p_to_pay_plan is not null
2589: then
2590: hr_utility.set_message(8301, 'GHR_37249_ALL_PROCEDURE_FAIL');
2591: hr_utility.raise_error;
2592: end if;
2593: end if;
2594: -- 440.12.2
2587: and
2588: p_to_pay_plan is not null
2589: then
2590: hr_utility.set_message(8301, 'GHR_37249_ALL_PROCEDURE_FAIL');
2591: hr_utility.raise_error;
2592: end if;
2593: end if;
2594: -- 440.12.2
2595: -- Update Date By Effective Date Comment
2596: -- 9 05/03/99 vravikan Added Pay Plan MS
2597: -- 10/30/03 Ashley Deleted Pay Plan EO
2598: -- UPD 56 (Bug# 8309414) Terminating the edit eff date 13-Aug-2007
2599: if p_effective_date < fnd_date.canonical_to_date('2007/08/14') then
2600: hr_utility.set_location('to pay plan is ' || p_to_pay_plan ,10);
2601: hr_utility.set_location('from pay plan is ' || p_prior_pay_plan ,10);
2602: If p_first_NOAC_Lookup_Code = '879'
2603: and
2604: p_to_pay_plan not in ('ES','FE','MS','TF','TX')
2597: -- 10/30/03 Ashley Deleted Pay Plan EO
2598: -- UPD 56 (Bug# 8309414) Terminating the edit eff date 13-Aug-2007
2599: if p_effective_date < fnd_date.canonical_to_date('2007/08/14') then
2600: hr_utility.set_location('to pay plan is ' || p_to_pay_plan ,10);
2601: hr_utility.set_location('from pay plan is ' || p_prior_pay_plan ,10);
2602: If p_first_NOAC_Lookup_Code = '879'
2603: and
2604: p_to_pay_plan not in ('ES','FE','MS','TF','TX')
2605: and
2606: p_to_pay_plan is not null
2607: and
2608: p_Pay_Rate_Determinant_Code <> 'S'
2609: then
2610: hr_utility.set_message(8301, 'GHR_37250_ALL_PROCEDURE_FAIL');
2611: hr_utility.raise_error;
2612: end if;
2613: end if;
2614:
2607: and
2608: p_Pay_Rate_Determinant_Code <> 'S'
2609: then
2610: hr_utility.set_message(8301, 'GHR_37250_ALL_PROCEDURE_FAIL');
2611: hr_utility.raise_error;
2612: end if;
2613: end if;
2614:
2615: -- 440.13.2
2629: 'NB','PD','TM','VH','ZA','ZP','ZS','ZT') and
2630: substr(p_to_pay_plan,1,1) <>'D' and
2631: p_to_pay_plan is not null
2632: then
2633: hr_utility.set_message(8301, 'GHR_37412_ALL_PROCEDURE_FAIL');
2634: hr_utility.raise_error;
2635: end if;
2636: elsif p_effective_date >= to_date('1999/04/01', 'yyyy/mm/dd') then
2637: If p_first_NOAC_Lookup_Code = '891' and
2630: substr(p_to_pay_plan,1,1) <>'D' and
2631: p_to_pay_plan is not null
2632: then
2633: hr_utility.set_message(8301, 'GHR_37412_ALL_PROCEDURE_FAIL');
2634: hr_utility.raise_error;
2635: end if;
2636: elsif p_effective_date >= to_date('1999/04/01', 'yyyy/mm/dd') then
2637: If p_first_NOAC_Lookup_Code = '891' and
2638: p_to_pay_plan not in ('CG','CM','EM','EO','FM','GH','GM',
2639: 'NC','ND','NG','NH','NJ','NK','NO','NP','NR','NT',
2640: 'NB','TM','VH','ZA','ZP','ZS','ZT') and
2641: substr(p_to_pay_plan,1,1) <>'D' and
2642: p_to_pay_plan is not null then
2643: hr_utility.set_message(8301, 'GHR_37070_ALL_PROCEDURE_FAIL');
2644: hr_utility.raise_error;
2645: end if;
2646: elsif p_effective_date >= to_date('1998/10/01', 'yyyy/mm/dd') then
2647: If p_first_NOAC_Lookup_Code = '891' and
2640: 'NB','TM','VH','ZA','ZP','ZS','ZT') and
2641: substr(p_to_pay_plan,1,1) <>'D' and
2642: p_to_pay_plan is not null then
2643: hr_utility.set_message(8301, 'GHR_37070_ALL_PROCEDURE_FAIL');
2644: hr_utility.raise_error;
2645: end if;
2646: elsif p_effective_date >= to_date('1998/10/01', 'yyyy/mm/dd') then
2647: If p_first_NOAC_Lookup_Code = '891' and
2648: p_to_pay_plan not in ('CG','CM','EM','EO','FM','GH','GM',
2648: p_to_pay_plan not in ('CG','CM','EM','EO','FM','GH','GM',
2649: 'ND','NG','NH','NJ','NK','NT','NB','TM','VH','ZA','ZP','ZS','ZT') and
2650: substr(p_to_pay_plan,1,1) <>'D' and
2651: p_to_pay_plan is not null then
2652: hr_utility.set_message(8301, 'GHR_37058_ALL_PROCEDURE_FAIL');
2653: hr_utility.raise_error;
2654: end if;
2655: else
2656: If p_first_NOAC_Lookup_Code = '891' and
2649: 'ND','NG','NH','NJ','NK','NT','NB','TM','VH','ZA','ZP','ZS','ZT') and
2650: substr(p_to_pay_plan,1,1) <>'D' and
2651: p_to_pay_plan is not null then
2652: hr_utility.set_message(8301, 'GHR_37058_ALL_PROCEDURE_FAIL');
2653: hr_utility.raise_error;
2654: end if;
2655: else
2656: If p_first_NOAC_Lookup_Code = '891' and
2657: p_to_pay_plan not in ('CM','EM','FM','GH','GM','NB','TM','VH','ZA','ZP','ZS','ZT') and
2656: If p_first_NOAC_Lookup_Code = '891' and
2657: p_to_pay_plan not in ('CM','EM','FM','GH','GM','NB','TM','VH','ZA','ZP','ZS','ZT') and
2658: substr(p_to_pay_plan,1,1) <>'D' and
2659: p_to_pay_plan is not null then
2660: hr_utility.set_message(8301, 'GHR_37251_ALL_PROCEDURE_FAIL');
2661: hr_utility.raise_error;
2662: end if;
2663: end if;
2664: end if;
2657: p_to_pay_plan not in ('CM','EM','FM','GH','GM','NB','TM','VH','ZA','ZP','ZS','ZT') and
2658: substr(p_to_pay_plan,1,1) <>'D' and
2659: p_to_pay_plan is not null then
2660: hr_utility.set_message(8301, 'GHR_37251_ALL_PROCEDURE_FAIL');
2661: hr_utility.raise_error;
2662: end if;
2663: end if;
2664: end if;
2665:
2670: p_to_pay_plan not in ('ES','FB','FE','FJ','FX')
2671: and
2672: p_to_pay_plan is not null
2673: then
2674: hr_utility.set_message(8301, 'GHR_37252_ALL_PROCEDURE_FAIL');
2675: hr_utility.raise_error;
2676: end if;
2677:
2678: -- 440.25.2
2671: and
2672: p_to_pay_plan is not null
2673: then
2674: hr_utility.set_message(8301, 'GHR_37252_ALL_PROCEDURE_FAIL');
2675: hr_utility.raise_error;
2676: end if;
2677:
2678: -- 440.25.2
2679: --upd47 26-Jun-06 Raju From 01-Apr-2003 Terminate the edit
2679: --upd47 26-Jun-06 Raju From 01-Apr-2003 Terminate the edit
2680: if p_effective_date < fnd_date.canonical_to_date('2003/04/01') then
2681: If p_first_NOAC_Lookup_Code ='893' and
2682: p_to_pay_plan ='GM' then
2683: hr_utility.set_message(8301, 'GHR_37253_ALL_PROCEDURE_FAIL');
2684: hr_utility.raise_error;
2685: end if;
2686: end if;
2687:
2680: if p_effective_date < fnd_date.canonical_to_date('2003/04/01') then
2681: If p_first_NOAC_Lookup_Code ='893' and
2682: p_to_pay_plan ='GM' then
2683: hr_utility.set_message(8301, 'GHR_37253_ALL_PROCEDURE_FAIL');
2684: hr_utility.raise_error;
2685: end if;
2686: end if;
2687:
2688: -- 440.30.2
2693: p_agency not in ('AF','AR','DD','NV')
2694: and
2695: p_to_pay_plan = 'GM'
2696: then
2697: hr_utility.set_message(8301, 'GHR_37254_ALL_PROCEDURE_FAIL');
2698: hr_utility.raise_error;
2699: end if;
2700:
2701: -- 440.35.2
2694: and
2695: p_to_pay_plan = 'GM'
2696: then
2697: hr_utility.set_message(8301, 'GHR_37254_ALL_PROCEDURE_FAIL');
2698: hr_utility.raise_error;
2699: end if;
2700:
2701: -- 440.35.2
2702: -- Delete the first line of the edit (If effective date is later than october 31, 1993)
2711: )
2712: and
2713: p_to_pay_plan = 'GM'
2714: then
2715: hr_utility.set_message(8301, 'GHR_37255_ALL_PROCEDURE_FAIL');
2716: hr_utility.raise_error;
2717: end if;
2718:
2719:
2712: and
2713: p_to_pay_plan = 'GM'
2714: then
2715: hr_utility.set_message(8301, 'GHR_37255_ALL_PROCEDURE_FAIL');
2716: hr_utility.raise_error;
2717: end if;
2718:
2719:
2720: -- 440.40.2
2725: If p_first_NOAC_Lookup_Code in ('702','703','713','740')
2726: and p_to_pay_plan is not null
2727: and p_to_pay_plan = 'GM'
2728: then
2729: hr_utility.set_message(8301, 'GHR_37256_ALL_PROCEDURE_FAIL');
2730: hr_utility.raise_error;
2731: end if;
2732:
2733: -- 440.45.3
2726: and p_to_pay_plan is not null
2727: and p_to_pay_plan = 'GM'
2728: then
2729: hr_utility.set_message(8301, 'GHR_37256_ALL_PROCEDURE_FAIL');
2730: hr_utility.raise_error;
2731: end if;
2732:
2733: -- 440.45.3
2734:
2737: p_Cur_Appt_Auth_2 = 'UAM' )
2738: and
2739: p_to_pay_plan = 'GS'
2740: then
2741: hr_utility.set_message(8301, 'GHR_37257_ALL_PROCEDURE_FAIL');
2742: hr_utility.raise_error;
2743: end if;
2744:
2745: -- 440.46.2
2738: and
2739: p_to_pay_plan = 'GS'
2740: then
2741: hr_utility.set_message(8301, 'GHR_37257_ALL_PROCEDURE_FAIL');
2742: hr_utility.raise_error;
2743: end if;
2744:
2745: -- 440.46.2
2746: -- 12/8/00 vravikan 01-Oct-2000 New Edit
2747: -- If nature of action is 871, Then pay plan must be GG
2748: if l_effective_date >= fnd_date.canonical_to_date('2000/10/01') then
2749: if p_first_NOAC_Lookup_Code = '871' and
2750: p_to_pay_plan <> 'GG' then
2751: hr_utility.set_message(8301, 'GHR_37677_ALL_PROCEDURE_FAIL');
2752: hr_utility.raise_error;
2753: end if;
2754: end if;
2755: end chk_pay_plan;
2748: if l_effective_date >= fnd_date.canonical_to_date('2000/10/01') then
2749: if p_first_NOAC_Lookup_Code = '871' and
2750: p_to_pay_plan <> 'GG' then
2751: hr_utility.set_message(8301, 'GHR_37677_ALL_PROCEDURE_FAIL');
2752: hr_utility.raise_error;
2753: end if;
2754: end if;
2755: end chk_pay_plan;
2756:
2775: substr(p_to_pay_plan, 1, 1) = 'W' or
2776: substr(p_to_pay_plan, 1, 1) = 'X'
2777: )
2778: then
2779: hr_utility.set_message(8301, 'GHR_37258_ALL_PROCEDURE_FAIL');
2780: hr_utility.raise_error;
2781: end if;
2782:
2783: -- 450.03.2
2776: substr(p_to_pay_plan, 1, 1) = 'X'
2777: )
2778: then
2779: hr_utility.set_message(8301, 'GHR_37258_ALL_PROCEDURE_FAIL');
2780: hr_utility.raise_error;
2781: end if;
2782:
2783: -- 450.03.2
2784: -- Update Date By Effective Date Bug Comment
2798: p_prior_pay_rate_det_code is null
2799: ) )
2800: )
2801: then
2802: hr_utility.set_message(8301, 'GHR_37259_ALL_PROCEDURE_FAIL');
2803: hr_utility.raise_error;
2804: end if;
2805:
2806: -- 450.04.3
2799: ) )
2800: )
2801: then
2802: hr_utility.set_message(8301, 'GHR_37259_ALL_PROCEDURE_FAIL');
2803: hr_utility.raise_error;
2804: end if;
2805:
2806: -- 450.04.3
2807: --upd47 26-Jun-06 Raju From 01-Apr-2003 Terminate the edit
2808: if p_effective_date < fnd_date.canonical_to_date('2003/04/01') then
2809: if (p_to_pay_plan = 'FA' or p_to_pay_plan = 'EX') and
2810: p_pay_rate_determinant_code not in ('C','S','0') and
2811: p_pay_rate_determinant_code is not null then
2812: hr_utility.set_message(8301, 'GHR_37260_ALL_PROCEDURE_FAIL');
2813: hr_utility.raise_error;
2814: end if;
2815: end if;
2816:
2809: if (p_to_pay_plan = 'FA' or p_to_pay_plan = 'EX') and
2810: p_pay_rate_determinant_code not in ('C','S','0') and
2811: p_pay_rate_determinant_code is not null then
2812: hr_utility.set_message(8301, 'GHR_37260_ALL_PROCEDURE_FAIL');
2813: hr_utility.raise_error;
2814: end if;
2815: end if;
2816:
2817: -- 450.05.3
2824: p_pay_rate_determinant_code in ('A','B','E','F','U','V')
2825: and
2826: p_pay_rate_determinant_code is not null
2827: then
2828: hr_utility.set_message(8301, 'GHR_37859_ALL_PROCEDURE_FAIL');
2829: hr_utility.raise_error;
2830: END IF;
2831: END IF;
2832:
2825: and
2826: p_pay_rate_determinant_code is not null
2827: then
2828: hr_utility.set_message(8301, 'GHR_37859_ALL_PROCEDURE_FAIL');
2829: hr_utility.raise_error;
2830: END IF;
2831: END IF;
2832:
2833:
2839: p_to_pay_plan in ('ED','EE','EF','EG','EH','EI','ZZ')
2840: or
2841: substr(p_to_pay_plan,1,1) in ('B','W','X')
2842: ) then
2843: hr_utility.set_message(8301, 'GHR_37261_ALL_PROCEDURE_FAIL');
2844: hr_utility.raise_error;
2845: end if;
2846: end if;
2847: -- 450.19.3
2840: or
2841: substr(p_to_pay_plan,1,1) in ('B','W','X')
2842: ) then
2843: hr_utility.set_message(8301, 'GHR_37261_ALL_PROCEDURE_FAIL');
2844: hr_utility.raise_error;
2845: end if;
2846: end if;
2847: -- 450.19.3
2848: -- UPDATE_DATE UPDATED_BY EFFECTIVE_DATE COMMENTS
2864: p_pay_rate_determinant_code <> 'D'--Bug# 7633560
2865: and
2866: p_pay_rate_determinant_code is not null
2867: then
2868: hr_utility.set_message(8301, 'GHR_37262_ALL_PROCEDURE_FAIL');
2869: hr_utility.raise_error;
2870: end if;
2871: end if;
2872:
2865: and
2866: p_pay_rate_determinant_code is not null
2867: then
2868: hr_utility.set_message(8301, 'GHR_37262_ALL_PROCEDURE_FAIL');
2869: hr_utility.raise_error;
2870: end if;
2871: end if;
2872:
2873: -- 450.22.2
2884: 'M','U','V')
2885: and
2886: p_prior_pay_rate_det_code is not null
2887: then
2888: hr_utility.set_message(8301, 'GHR_37263_ALL_PROCEDURE_FAIL');
2889: hr_utility.set_message_token('PRD_LIST','A, B, E, F, M, U, or V');
2890: hr_utility.raise_error;
2891: end if;
2892: elsif p_effective_date >= to_date('2005/05/01','yyyy/mm/dd') then
2885: and
2886: p_prior_pay_rate_det_code is not null
2887: then
2888: hr_utility.set_message(8301, 'GHR_37263_ALL_PROCEDURE_FAIL');
2889: hr_utility.set_message_token('PRD_LIST','A, B, E, F, M, U, or V');
2890: hr_utility.raise_error;
2891: end if;
2892: elsif p_effective_date >= to_date('2005/05/01','yyyy/mm/dd') then
2893: if ( p_first_noa_lookup_code= '740' or
2886: p_prior_pay_rate_det_code is not null
2887: then
2888: hr_utility.set_message(8301, 'GHR_37263_ALL_PROCEDURE_FAIL');
2889: hr_utility.set_message_token('PRD_LIST','A, B, E, F, M, U, or V');
2890: hr_utility.raise_error;
2891: end if;
2892: elsif p_effective_date >= to_date('2005/05/01','yyyy/mm/dd') then
2893: if ( p_first_noa_lookup_code= '740' or
2894: p_first_noa_lookup_code= '741') and
2895: p_pay_rate_determinant_code not in ('A','B','E','F','U','V') and
2896: p_pay_rate_determinant_code is not null and
2897: p_prior_pay_rate_det_code not in ('A','B','E','F','U','V') and
2898: p_prior_pay_rate_det_code is not null then
2899: hr_utility.set_message(8301, 'GHR_37263_ALL_PROCEDURE_FAIL');
2900: hr_utility.set_message_token('PRD_LIST','A, B, E, F, U, or V');
2901: hr_utility.raise_error;
2902: end if;
2903: end if;
2896: p_pay_rate_determinant_code is not null and
2897: p_prior_pay_rate_det_code not in ('A','B','E','F','U','V') and
2898: p_prior_pay_rate_det_code is not null then
2899: hr_utility.set_message(8301, 'GHR_37263_ALL_PROCEDURE_FAIL');
2900: hr_utility.set_message_token('PRD_LIST','A, B, E, F, U, or V');
2901: hr_utility.raise_error;
2902: end if;
2903: end if;
2904:
2897: p_prior_pay_rate_det_code not in ('A','B','E','F','U','V') and
2898: p_prior_pay_rate_det_code is not null then
2899: hr_utility.set_message(8301, 'GHR_37263_ALL_PROCEDURE_FAIL');
2900: hr_utility.set_message_token('PRD_LIST','A, B, E, F, U, or V');
2901: hr_utility.raise_error;
2902: end if;
2903: end if;
2904:
2905: -- 450.25.2
2906: if (p_first_noa_lookup_code ='702' or
2907: p_first_noa_lookup_code ='721')
2908: and
2909: p_pay_rate_determinant_code in ('A','B','E','F','U','V') then
2910: hr_utility.set_message(8301, 'GHR_37264_ALL_PROCEDURE_FAIL');
2911: hr_utility.raise_error;
2912: end if;
2913:
2914: -- 450.28.2
2907: p_first_noa_lookup_code ='721')
2908: and
2909: p_pay_rate_determinant_code in ('A','B','E','F','U','V') then
2910: hr_utility.set_message(8301, 'GHR_37264_ALL_PROCEDURE_FAIL');
2911: hr_utility.raise_error;
2912: end if;
2913:
2914: -- 450.28.2
2915: -- Update/Change Date By Effective Date Comment
2922: p_first_noa_lookup_code = '893') and
2923: p_pay_rate_determinant_code not in ('0','5','6','7','A','B','E','F','T') and
2924: p_pay_rate_determinant_code is not null
2925: then
2926: hr_utility.set_message(8301, 'GHR_37061_ALL_PROCEDURE_FAIL');
2927: hr_utility.set_message_token('PRD_LIST','0, 5, 6, 7, A, B, E, F or T');
2928: hr_utility.raise_error;
2929: end if;
2930: elsIf p_effective_date >= fnd_date.canonical_to_date('19'||'99/03/01') then
2923: p_pay_rate_determinant_code not in ('0','5','6','7','A','B','E','F','T') and
2924: p_pay_rate_determinant_code is not null
2925: then
2926: hr_utility.set_message(8301, 'GHR_37061_ALL_PROCEDURE_FAIL');
2927: hr_utility.set_message_token('PRD_LIST','0, 5, 6, 7, A, B, E, F or T');
2928: hr_utility.raise_error;
2929: end if;
2930: elsIf p_effective_date >= fnd_date.canonical_to_date('19'||'99/03/01') then
2931: if (p_first_noa_lookup_code = '892' or
2924: p_pay_rate_determinant_code is not null
2925: then
2926: hr_utility.set_message(8301, 'GHR_37061_ALL_PROCEDURE_FAIL');
2927: hr_utility.set_message_token('PRD_LIST','0, 5, 6, 7, A, B, E, F or T');
2928: hr_utility.raise_error;
2929: end if;
2930: elsIf p_effective_date >= fnd_date.canonical_to_date('19'||'99/03/01') then
2931: if (p_first_noa_lookup_code = '892' or
2932: p_first_noa_lookup_code = '893') and
2932: p_first_noa_lookup_code = '893') and
2933: p_pay_rate_determinant_code not in ('0','5','6','7','A','B','E','F','M','T') and
2934: p_pay_rate_determinant_code is not null
2935: then
2936: hr_utility.set_message(8301, 'GHR_37061_ALL_PROCEDURE_FAIL');
2937: hr_utility.set_message_token('PRD_LIST','0, 5, 6, 7, A, B, E, F, M or T');
2938: hr_utility.raise_error;
2939: end if;
2940: else
2933: p_pay_rate_determinant_code not in ('0','5','6','7','A','B','E','F','M','T') and
2934: p_pay_rate_determinant_code is not null
2935: then
2936: hr_utility.set_message(8301, 'GHR_37061_ALL_PROCEDURE_FAIL');
2937: hr_utility.set_message_token('PRD_LIST','0, 5, 6, 7, A, B, E, F, M or T');
2938: hr_utility.raise_error;
2939: end if;
2940: else
2941: if (p_first_noa_lookup_code = '892' or
2934: p_pay_rate_determinant_code is not null
2935: then
2936: hr_utility.set_message(8301, 'GHR_37061_ALL_PROCEDURE_FAIL');
2937: hr_utility.set_message_token('PRD_LIST','0, 5, 6, 7, A, B, E, F, M or T');
2938: hr_utility.raise_error;
2939: end if;
2940: else
2941: if (p_first_noa_lookup_code = '892' or
2942: p_first_noa_lookup_code = '893') and
2943: p_pay_rate_determinant_code not in ('0','5','6','7','A',
2944: 'B','E','F','M') and
2945: p_pay_rate_determinant_code is not null
2946: then
2947: hr_utility.set_message(8301, 'GHR_37265_ALL_PROCEDURE_FAIL');
2948: hr_utility.raise_error;
2949: end if;
2950: end if;
2951: end if;
2944: 'B','E','F','M') and
2945: p_pay_rate_determinant_code is not null
2946: then
2947: hr_utility.set_message(8301, 'GHR_37265_ALL_PROCEDURE_FAIL');
2948: hr_utility.raise_error;
2949: end if;
2950: end if;
2951: end if;
2952:
3118: substr(p_duty_station_lookup_code,1,2) = '54' and
3119: substr(p_duty_station_lookup_code,7,3) not in ('003','037')
3120: )
3121: ) then
3122: hr_utility.set_message(8301, 'GHR_37266_ALL_PROCEDURE_FAIL');
3123: hr_utility.raise_error;
3124: end if;
3125: END IF;
3126: -------------------------------------------------------------------------------
3119: substr(p_duty_station_lookup_code,7,3) not in ('003','037')
3120: )
3121: ) then
3122: hr_utility.set_message(8301, 'GHR_37266_ALL_PROCEDURE_FAIL');
3123: hr_utility.raise_error;
3124: end if;
3125: END IF;
3126: -------------------------------------------------------------------------------
3127:
3129: -- UPD 56 (Bug# 8309414) Terminating the edit eff date 13-Aug-2007
3130: if p_effective_date < fnd_date.canonical_to_date('2007/08/14') then
3131: if p_pay_rate_determinant_code = 'P' and
3132: p_agency <>'VA' then
3133: hr_utility.set_message(8301, 'GHR_37267_ALL_PROCEDURE_FAIL');
3134: hr_utility.raise_error;
3135: end if;
3136: end if;
3137:
3130: if p_effective_date < fnd_date.canonical_to_date('2007/08/14') then
3131: if p_pay_rate_determinant_code = 'P' and
3132: p_agency <>'VA' then
3133: hr_utility.set_message(8301, 'GHR_37267_ALL_PROCEDURE_FAIL');
3134: hr_utility.raise_error;
3135: end if;
3136: end if;
3137:
3138: -- 450.42.3
3146: if (p_to_pay_plan= 'GM' or
3147: p_to_pay_plan= 'GS'
3148: ) and
3149: p_pay_rate_determinant_code in ('P','T') then
3150: hr_utility.set_message(8301, 'GHR_37062_ALL_PROCEDURE_FAIL');
3151: hr_utility.raise_error;
3152: end if;
3153: else
3154: if (p_to_pay_plan= 'GM' or
3147: p_to_pay_plan= 'GS'
3148: ) and
3149: p_pay_rate_determinant_code in ('P','T') then
3150: hr_utility.set_message(8301, 'GHR_37062_ALL_PROCEDURE_FAIL');
3151: hr_utility.raise_error;
3152: end if;
3153: else
3154: if (p_to_pay_plan= 'GM' or
3155: p_to_pay_plan= 'GS'
3154: if (p_to_pay_plan= 'GM' or
3155: p_to_pay_plan= 'GS'
3156: ) and
3157: p_pay_rate_determinant_code = 'P' then
3158: hr_utility.set_message(8301, 'GHR_37268_ALL_PROCEDURE_FAIL');
3159: hr_utility.raise_error;
3160: end if;
3161: end if;
3162: end if;
3155: p_to_pay_plan= 'GS'
3156: ) and
3157: p_pay_rate_determinant_code = 'P' then
3158: hr_utility.set_message(8301, 'GHR_37268_ALL_PROCEDURE_FAIL');
3159: hr_utility.raise_error;
3160: end if;
3161: end if;
3162: end if;
3163: -- 450.43.3
3173:
3174: IF p_pay_rate_determinant_code = 'Z' AND
3175: p_to_pay_plan IN ('FO','FP') AND p_agency NOT IN ('AM','GY','ST') AND
3176: substr(p_duty_station_lookup_code,1,2) NOT IN ('CA','MX') THEN
3177: hr_utility.set_message(8301, 'GHR_38841_ALL_PROCEDURE_FAIL');
3178: hr_utility.raise_error;
3179: END IF;
3180:
3181: end chk_pay_rate_determinant;
3174: IF p_pay_rate_determinant_code = 'Z' AND
3175: p_to_pay_plan IN ('FO','FP') AND p_agency NOT IN ('AM','GY','ST') AND
3176: substr(p_duty_station_lookup_code,1,2) NOT IN ('CA','MX') THEN
3177: hr_utility.set_message(8301, 'GHR_38841_ALL_PROCEDURE_FAIL');
3178: hr_utility.raise_error;
3179: END IF;
3180:
3181: end chk_pay_rate_determinant;
3182: