174: CLOSE c_pil;
175: if g_debug then
176: hr_utility.set_location('BEN_94534_PIL_NOT_FOUND'|| to_char(p_person_id),54);
177: end if;
178: fnd_message.set_name('BEN','BEN_94534_PIL_NOT_FOUND');
179: fnd_message.set_token('PROC',l_proc);
180: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
181: fnd_message.set_token('LER_ID',to_char(p_ler_id));
182: fnd_message.set_token('LE_DATE', p_life_event_date);
175: if g_debug then
176: hr_utility.set_location('BEN_94534_PIL_NOT_FOUND'|| to_char(p_person_id),54);
177: end if;
178: fnd_message.set_name('BEN','BEN_94534_PIL_NOT_FOUND');
179: fnd_message.set_token('PROC',l_proc);
180: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
181: fnd_message.set_token('LER_ID',to_char(p_ler_id));
182: fnd_message.set_token('LE_DATE', p_life_event_date);
183: fnd_message.raise_error;
176: hr_utility.set_location('BEN_94534_PIL_NOT_FOUND'|| to_char(p_person_id),54);
177: end if;
178: fnd_message.set_name('BEN','BEN_94534_PIL_NOT_FOUND');
179: fnd_message.set_token('PROC',l_proc);
180: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
181: fnd_message.set_token('LER_ID',to_char(p_ler_id));
182: fnd_message.set_token('LE_DATE', p_life_event_date);
183: fnd_message.raise_error;
184: --
177: end if;
178: fnd_message.set_name('BEN','BEN_94534_PIL_NOT_FOUND');
179: fnd_message.set_token('PROC',l_proc);
180: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
181: fnd_message.set_token('LER_ID',to_char(p_ler_id));
182: fnd_message.set_token('LE_DATE', p_life_event_date);
183: fnd_message.raise_error;
184: --
185: END IF;
178: fnd_message.set_name('BEN','BEN_94534_PIL_NOT_FOUND');
179: fnd_message.set_token('PROC',l_proc);
180: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
181: fnd_message.set_token('LER_ID',to_char(p_ler_id));
182: fnd_message.set_token('LE_DATE', p_life_event_date);
183: fnd_message.raise_error;
184: --
185: END IF;
186: CLOSE c_pil;
179: fnd_message.set_token('PROC',l_proc);
180: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
181: fnd_message.set_token('LER_ID',to_char(p_ler_id));
182: fnd_message.set_token('LE_DATE', p_life_event_date);
183: fnd_message.raise_error;
184: --
185: END IF;
186: CLOSE c_pil;
187: --
216: CLOSE c_epe_oipl ;
217: if g_debug then
218: hr_utility.set_location('BEN_94612_NO_EPE_EU'|| to_char(p_person_id),54);
219: end if;
220: fnd_message.set_name('BEN','BEN_94612_NO_EPE_EU');
221: fnd_message.set_token('PROC',l_proc);
222: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
223: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
224: fnd_message.set_token('PL_ID',to_char(p_pl_id));
217: if g_debug then
218: hr_utility.set_location('BEN_94612_NO_EPE_EU'|| to_char(p_person_id),54);
219: end if;
220: fnd_message.set_name('BEN','BEN_94612_NO_EPE_EU');
221: fnd_message.set_token('PROC',l_proc);
222: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
223: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
224: fnd_message.set_token('PL_ID',to_char(p_pl_id));
225: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
218: hr_utility.set_location('BEN_94612_NO_EPE_EU'|| to_char(p_person_id),54);
219: end if;
220: fnd_message.set_name('BEN','BEN_94612_NO_EPE_EU');
221: fnd_message.set_token('PROC',l_proc);
222: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
223: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
224: fnd_message.set_token('PL_ID',to_char(p_pl_id));
225: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
226: fnd_message.set_token('PER_IN_LER_ID',to_char(p_per_in_ler_id));
219: end if;
220: fnd_message.set_name('BEN','BEN_94612_NO_EPE_EU');
221: fnd_message.set_token('PROC',l_proc);
222: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
223: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
224: fnd_message.set_token('PL_ID',to_char(p_pl_id));
225: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
226: fnd_message.set_token('PER_IN_LER_ID',to_char(p_per_in_ler_id));
227: fnd_message.set_token('LE_DATE',p_life_event_date);
220: fnd_message.set_name('BEN','BEN_94612_NO_EPE_EU');
221: fnd_message.set_token('PROC',l_proc);
222: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
223: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
224: fnd_message.set_token('PL_ID',to_char(p_pl_id));
225: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
226: fnd_message.set_token('PER_IN_LER_ID',to_char(p_per_in_ler_id));
227: fnd_message.set_token('LE_DATE',p_life_event_date);
228: fnd_message.raise_error;
221: fnd_message.set_token('PROC',l_proc);
222: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
223: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
224: fnd_message.set_token('PL_ID',to_char(p_pl_id));
225: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
226: fnd_message.set_token('PER_IN_LER_ID',to_char(p_per_in_ler_id));
227: fnd_message.set_token('LE_DATE',p_life_event_date);
228: fnd_message.raise_error;
229: --
222: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
223: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
224: fnd_message.set_token('PL_ID',to_char(p_pl_id));
225: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
226: fnd_message.set_token('PER_IN_LER_ID',to_char(p_per_in_ler_id));
227: fnd_message.set_token('LE_DATE',p_life_event_date);
228: fnd_message.raise_error;
229: --
230: END IF;
223: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
224: fnd_message.set_token('PL_ID',to_char(p_pl_id));
225: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
226: fnd_message.set_token('PER_IN_LER_ID',to_char(p_per_in_ler_id));
227: fnd_message.set_token('LE_DATE',p_life_event_date);
228: fnd_message.raise_error;
229: --
230: END IF;
231: --
224: fnd_message.set_token('PL_ID',to_char(p_pl_id));
225: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
226: fnd_message.set_token('PER_IN_LER_ID',to_char(p_per_in_ler_id));
227: fnd_message.set_token('LE_DATE',p_life_event_date);
228: fnd_message.raise_error;
229: --
230: END IF;
231: --
232: CLOSE c_epe_oipl ;
241: CLOSE c_epe_pl ;
242: if g_debug then
243: hr_utility.set_location('BEN_94612_NO_EPE_EU'|| to_char(p_person_id),54);
244: end if;
245: fnd_message.set_name('BEN','BEN_94612_NO_EPE_EU');
246: fnd_message.set_token('PROC',l_proc);
247: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
248: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
249: fnd_message.set_token('PL_ID',to_char(p_pl_id));
242: if g_debug then
243: hr_utility.set_location('BEN_94612_NO_EPE_EU'|| to_char(p_person_id),54);
244: end if;
245: fnd_message.set_name('BEN','BEN_94612_NO_EPE_EU');
246: fnd_message.set_token('PROC',l_proc);
247: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
248: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
249: fnd_message.set_token('PL_ID',to_char(p_pl_id));
250: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
243: hr_utility.set_location('BEN_94612_NO_EPE_EU'|| to_char(p_person_id),54);
244: end if;
245: fnd_message.set_name('BEN','BEN_94612_NO_EPE_EU');
246: fnd_message.set_token('PROC',l_proc);
247: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
248: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
249: fnd_message.set_token('PL_ID',to_char(p_pl_id));
250: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
251: fnd_message.set_token('PER_IN_LER_ID',to_char(p_per_in_ler_id));
244: end if;
245: fnd_message.set_name('BEN','BEN_94612_NO_EPE_EU');
246: fnd_message.set_token('PROC',l_proc);
247: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
248: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
249: fnd_message.set_token('PL_ID',to_char(p_pl_id));
250: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
251: fnd_message.set_token('PER_IN_LER_ID',to_char(p_per_in_ler_id));
252: fnd_message.set_token('LE_DATE',p_life_event_date);
245: fnd_message.set_name('BEN','BEN_94612_NO_EPE_EU');
246: fnd_message.set_token('PROC',l_proc);
247: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
248: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
249: fnd_message.set_token('PL_ID',to_char(p_pl_id));
250: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
251: fnd_message.set_token('PER_IN_LER_ID',to_char(p_per_in_ler_id));
252: fnd_message.set_token('LE_DATE',p_life_event_date);
253: fnd_message.raise_error;
246: fnd_message.set_token('PROC',l_proc);
247: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
248: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
249: fnd_message.set_token('PL_ID',to_char(p_pl_id));
250: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
251: fnd_message.set_token('PER_IN_LER_ID',to_char(p_per_in_ler_id));
252: fnd_message.set_token('LE_DATE',p_life_event_date);
253: fnd_message.raise_error;
254: --
247: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
248: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
249: fnd_message.set_token('PL_ID',to_char(p_pl_id));
250: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
251: fnd_message.set_token('PER_IN_LER_ID',to_char(p_per_in_ler_id));
252: fnd_message.set_token('LE_DATE',p_life_event_date);
253: fnd_message.raise_error;
254: --
255: END IF;
248: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
249: fnd_message.set_token('PL_ID',to_char(p_pl_id));
250: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
251: fnd_message.set_token('PER_IN_LER_ID',to_char(p_per_in_ler_id));
252: fnd_message.set_token('LE_DATE',p_life_event_date);
253: fnd_message.raise_error;
254: --
255: END IF;
256: --
249: fnd_message.set_token('PL_ID',to_char(p_pl_id));
250: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
251: fnd_message.set_token('PER_IN_LER_ID',to_char(p_per_in_ler_id));
252: fnd_message.set_token('LE_DATE',p_life_event_date);
253: fnd_message.raise_error;
254: --
255: END IF;
256: --
257: CLOSE c_epe_pl ;
286: CLOSE c_egd ;
287: if g_debug then
288: hr_utility.set_location('BEN_94616_DPNT_WRONG',54);
289: end if;
290: fnd_message.set_name('BEN','BEN_94616_DPNT_WRONG');
291: fnd_message.set_token('PROC',l_proc);
292: fnd_message.raise_error;
293: --
294: END IF;
287: if g_debug then
288: hr_utility.set_location('BEN_94616_DPNT_WRONG',54);
289: end if;
290: fnd_message.set_name('BEN','BEN_94616_DPNT_WRONG');
291: fnd_message.set_token('PROC',l_proc);
292: fnd_message.raise_error;
293: --
294: END IF;
295: --
288: hr_utility.set_location('BEN_94616_DPNT_WRONG',54);
289: end if;
290: fnd_message.set_name('BEN','BEN_94616_DPNT_WRONG');
291: fnd_message.set_token('PROC',l_proc);
292: fnd_message.raise_error;
293: --
294: END IF;
295: --
296: close c_egd ;
324: CLOSE c_pen ;
325: if g_debug then
326: hr_utility.set_location('BEN_94617_DPNT_NO_PEN',54);
327: end if;
328: fnd_message.set_name('BEN','BEN_94617_DPNT_NO_PEN');
329: fnd_message.set_token('PROC',l_proc);
330: fnd_message.raise_error;
331: --
332: END IF;
325: if g_debug then
326: hr_utility.set_location('BEN_94617_DPNT_NO_PEN',54);
327: end if;
328: fnd_message.set_name('BEN','BEN_94617_DPNT_NO_PEN');
329: fnd_message.set_token('PROC',l_proc);
330: fnd_message.raise_error;
331: --
332: END IF;
333: --
326: hr_utility.set_location('BEN_94617_DPNT_NO_PEN',54);
327: end if;
328: fnd_message.set_name('BEN','BEN_94617_DPNT_NO_PEN');
329: fnd_message.set_token('PROC',l_proc);
330: fnd_message.raise_error;
331: --
332: END IF;
333: --
334: close c_pen ;
336: --
337: if g_debug then
338: hr_utility.set_location('BEN_94617_DPNT_NO_PEN',54);
339: end if;
340: fnd_message.set_name('BEN','BEN_94617_DPNT_NO_PEN');
341: fnd_message.set_token('PROC',l_proc);
342: fnd_message.raise_error;
343: --
344: END IF;
337: if g_debug then
338: hr_utility.set_location('BEN_94617_DPNT_NO_PEN',54);
339: end if;
340: fnd_message.set_name('BEN','BEN_94617_DPNT_NO_PEN');
341: fnd_message.set_token('PROC',l_proc);
342: fnd_message.raise_error;
343: --
344: END IF;
345: --
338: hr_utility.set_location('BEN_94617_DPNT_NO_PEN',54);
339: end if;
340: fnd_message.set_name('BEN','BEN_94617_DPNT_NO_PEN');
341: fnd_message.set_token('PROC',l_proc);
342: fnd_message.raise_error;
343: --
344: END IF;
345: --
346: end check_pen ;
362: --
363: if g_debug then
364: hr_utility.set_location('BEN_94617_NO_BNF_PERSON',54);
365: end if;
366: fnd_message.set_name('BEN','BEN_94617_NO_BNF_PERSON');
367: fnd_message.set_token('PROC',l_proc);
368: fnd_message.raise_error;
369: --
370: END IF;
363: if g_debug then
364: hr_utility.set_location('BEN_94617_NO_BNF_PERSON',54);
365: end if;
366: fnd_message.set_name('BEN','BEN_94617_NO_BNF_PERSON');
367: fnd_message.set_token('PROC',l_proc);
368: fnd_message.raise_error;
369: --
370: END IF;
371: --Get PIL
364: hr_utility.set_location('BEN_94617_NO_BNF_PERSON',54);
365: end if;
366: fnd_message.set_name('BEN','BEN_94617_NO_BNF_PERSON');
367: fnd_message.set_token('PROC',l_proc);
368: fnd_message.raise_error;
369: --
370: END IF;
371: --Get PIL
372: IF p_organization_id IS NOT NULL THEN
859: --Throw Error.. Coverage start date needs to be entered
860: if g_debug then
861: hr_utility.set_location('BEN_94552_NO_CVG_STRT_DT'|| to_char(p_person_id),54);
862: end if;
863: fnd_message.set_name('BEN','BEN_94552_NO_CVG_STRT_DT');
864: fnd_message.set_token('PACKAGE',l_proc);
865: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
866: fnd_message.set_token('LER_ID', to_char(p_ler_id));
867: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
860: if g_debug then
861: hr_utility.set_location('BEN_94552_NO_CVG_STRT_DT'|| to_char(p_person_id),54);
862: end if;
863: fnd_message.set_name('BEN','BEN_94552_NO_CVG_STRT_DT');
864: fnd_message.set_token('PACKAGE',l_proc);
865: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
866: fnd_message.set_token('LER_ID', to_char(p_ler_id));
867: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
868: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
861: hr_utility.set_location('BEN_94552_NO_CVG_STRT_DT'|| to_char(p_person_id),54);
862: end if;
863: fnd_message.set_name('BEN','BEN_94552_NO_CVG_STRT_DT');
864: fnd_message.set_token('PACKAGE',l_proc);
865: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
866: fnd_message.set_token('LER_ID', to_char(p_ler_id));
867: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
868: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
869: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
862: end if;
863: fnd_message.set_name('BEN','BEN_94552_NO_CVG_STRT_DT');
864: fnd_message.set_token('PACKAGE',l_proc);
865: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
866: fnd_message.set_token('LER_ID', to_char(p_ler_id));
867: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
868: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
869: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
870: fnd_message.raise_error;
863: fnd_message.set_name('BEN','BEN_94552_NO_CVG_STRT_DT');
864: fnd_message.set_token('PACKAGE',l_proc);
865: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
866: fnd_message.set_token('LER_ID', to_char(p_ler_id));
867: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
868: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
869: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
870: fnd_message.raise_error;
871: --
864: fnd_message.set_token('PACKAGE',l_proc);
865: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
866: fnd_message.set_token('LER_ID', to_char(p_ler_id));
867: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
868: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
869: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
870: fnd_message.raise_error;
871: --
872: END IF;
865: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
866: fnd_message.set_token('LER_ID', to_char(p_ler_id));
867: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
868: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
869: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
870: fnd_message.raise_error;
871: --
872: END IF;
873: --
866: fnd_message.set_token('LER_ID', to_char(p_ler_id));
867: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
868: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
869: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
870: fnd_message.raise_error;
871: --
872: END IF;
873: --
874: ELSE
896: CLOSE c_enb_with_amt ;
897: if g_debug then
898: hr_utility.set_location('BEN_91561_BENVRBRT_ENB_NF'|| to_char(p_person_id),54);
899: end if;
900: fnd_message.set_name('BEN','BEN_91561_BENVRBRT_ENB_NF');
901: fnd_message.set_token('PACKAGE',l_proc);
902: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
903: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
904: fnd_message.set_token('PL_ID', to_char(p_pl_id));
897: if g_debug then
898: hr_utility.set_location('BEN_91561_BENVRBRT_ENB_NF'|| to_char(p_person_id),54);
899: end if;
900: fnd_message.set_name('BEN','BEN_91561_BENVRBRT_ENB_NF');
901: fnd_message.set_token('PACKAGE',l_proc);
902: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
903: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
904: fnd_message.set_token('PL_ID', to_char(p_pl_id));
905: fnd_message.set_token('OIPL_ID',to_char(l_epe.oipl_id));
898: hr_utility.set_location('BEN_91561_BENVRBRT_ENB_NF'|| to_char(p_person_id),54);
899: end if;
900: fnd_message.set_name('BEN','BEN_91561_BENVRBRT_ENB_NF');
901: fnd_message.set_token('PACKAGE',l_proc);
902: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
903: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
904: fnd_message.set_token('PL_ID', to_char(p_pl_id));
905: fnd_message.set_token('OIPL_ID',to_char(l_epe.oipl_id));
906: fnd_message.set_token('LF_EVT_OCRD_DT',p_life_event_date);
899: end if;
900: fnd_message.set_name('BEN','BEN_91561_BENVRBRT_ENB_NF');
901: fnd_message.set_token('PACKAGE',l_proc);
902: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
903: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
904: fnd_message.set_token('PL_ID', to_char(p_pl_id));
905: fnd_message.set_token('OIPL_ID',to_char(l_epe.oipl_id));
906: fnd_message.set_token('LF_EVT_OCRD_DT',p_life_event_date);
907: fnd_message.set_token('EFFECTIVE_DATE',p_effective_date);
900: fnd_message.set_name('BEN','BEN_91561_BENVRBRT_ENB_NF');
901: fnd_message.set_token('PACKAGE',l_proc);
902: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
903: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
904: fnd_message.set_token('PL_ID', to_char(p_pl_id));
905: fnd_message.set_token('OIPL_ID',to_char(l_epe.oipl_id));
906: fnd_message.set_token('LF_EVT_OCRD_DT',p_life_event_date);
907: fnd_message.set_token('EFFECTIVE_DATE',p_effective_date);
908: fnd_message.set_token('PER_IN_LER_ID',to_char(l_pil.per_in_ler_id));
901: fnd_message.set_token('PACKAGE',l_proc);
902: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
903: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
904: fnd_message.set_token('PL_ID', to_char(p_pl_id));
905: fnd_message.set_token('OIPL_ID',to_char(l_epe.oipl_id));
906: fnd_message.set_token('LF_EVT_OCRD_DT',p_life_event_date);
907: fnd_message.set_token('EFFECTIVE_DATE',p_effective_date);
908: fnd_message.set_token('PER_IN_LER_ID',to_char(l_pil.per_in_ler_id));
909: fnd_message.set_token('ELIG_PER_ELCTBL_CHC_ID', to_char(l_epe.elig_per_elctbl_chc_id));
902: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
903: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
904: fnd_message.set_token('PL_ID', to_char(p_pl_id));
905: fnd_message.set_token('OIPL_ID',to_char(l_epe.oipl_id));
906: fnd_message.set_token('LF_EVT_OCRD_DT',p_life_event_date);
907: fnd_message.set_token('EFFECTIVE_DATE',p_effective_date);
908: fnd_message.set_token('PER_IN_LER_ID',to_char(l_pil.per_in_ler_id));
909: fnd_message.set_token('ELIG_PER_ELCTBL_CHC_ID', to_char(l_epe.elig_per_elctbl_chc_id));
910: fnd_message.raise_error;
903: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
904: fnd_message.set_token('PL_ID', to_char(p_pl_id));
905: fnd_message.set_token('OIPL_ID',to_char(l_epe.oipl_id));
906: fnd_message.set_token('LF_EVT_OCRD_DT',p_life_event_date);
907: fnd_message.set_token('EFFECTIVE_DATE',p_effective_date);
908: fnd_message.set_token('PER_IN_LER_ID',to_char(l_pil.per_in_ler_id));
909: fnd_message.set_token('ELIG_PER_ELCTBL_CHC_ID', to_char(l_epe.elig_per_elctbl_chc_id));
910: fnd_message.raise_error;
911: --
904: fnd_message.set_token('PL_ID', to_char(p_pl_id));
905: fnd_message.set_token('OIPL_ID',to_char(l_epe.oipl_id));
906: fnd_message.set_token('LF_EVT_OCRD_DT',p_life_event_date);
907: fnd_message.set_token('EFFECTIVE_DATE',p_effective_date);
908: fnd_message.set_token('PER_IN_LER_ID',to_char(l_pil.per_in_ler_id));
909: fnd_message.set_token('ELIG_PER_ELCTBL_CHC_ID', to_char(l_epe.elig_per_elctbl_chc_id));
910: fnd_message.raise_error;
911: --
912: ELSE
905: fnd_message.set_token('OIPL_ID',to_char(l_epe.oipl_id));
906: fnd_message.set_token('LF_EVT_OCRD_DT',p_life_event_date);
907: fnd_message.set_token('EFFECTIVE_DATE',p_effective_date);
908: fnd_message.set_token('PER_IN_LER_ID',to_char(l_pil.per_in_ler_id));
909: fnd_message.set_token('ELIG_PER_ELCTBL_CHC_ID', to_char(l_epe.elig_per_elctbl_chc_id));
910: fnd_message.raise_error;
911: --
912: ELSE
913: --
906: fnd_message.set_token('LF_EVT_OCRD_DT',p_life_event_date);
907: fnd_message.set_token('EFFECTIVE_DATE',p_effective_date);
908: fnd_message.set_token('PER_IN_LER_ID',to_char(l_pil.per_in_ler_id));
909: fnd_message.set_token('ELIG_PER_ELCTBL_CHC_ID', to_char(l_epe.elig_per_elctbl_chc_id));
910: fnd_message.raise_error;
911: --
912: ELSE
913: --
914: --Check check to see if the coverage calculation method requires the benefit amount.
921: CLOSE c_enb_with_amt ;
922: if g_debug then
923: hr_utility.set_location('BEN_94558_INVALID_BNFT_VAL'|| to_char(p_person_id),54);
924: end if;
925: fnd_message.set_name('BEN','BEN_91561_BENVRBRT_ENB_NF');
926: fnd_message.set_token('PROC',l_proc);
927: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
928: fnd_message.set_token('LER_ID',to_char(p_ler_id));
929: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
922: if g_debug then
923: hr_utility.set_location('BEN_94558_INVALID_BNFT_VAL'|| to_char(p_person_id),54);
924: end if;
925: fnd_message.set_name('BEN','BEN_91561_BENVRBRT_ENB_NF');
926: fnd_message.set_token('PROC',l_proc);
927: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
928: fnd_message.set_token('LER_ID',to_char(p_ler_id));
929: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
930: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
923: hr_utility.set_location('BEN_94558_INVALID_BNFT_VAL'|| to_char(p_person_id),54);
924: end if;
925: fnd_message.set_name('BEN','BEN_91561_BENVRBRT_ENB_NF');
926: fnd_message.set_token('PROC',l_proc);
927: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
928: fnd_message.set_token('LER_ID',to_char(p_ler_id));
929: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
930: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
931: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
924: end if;
925: fnd_message.set_name('BEN','BEN_91561_BENVRBRT_ENB_NF');
926: fnd_message.set_token('PROC',l_proc);
927: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
928: fnd_message.set_token('LER_ID',to_char(p_ler_id));
929: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
930: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
931: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
932: fnd_message.raise_error;
925: fnd_message.set_name('BEN','BEN_91561_BENVRBRT_ENB_NF');
926: fnd_message.set_token('PROC',l_proc);
927: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
928: fnd_message.set_token('LER_ID',to_char(p_ler_id));
929: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
930: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
931: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
932: fnd_message.raise_error;
933: --
926: fnd_message.set_token('PROC',l_proc);
927: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
928: fnd_message.set_token('LER_ID',to_char(p_ler_id));
929: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
930: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
931: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
932: fnd_message.raise_error;
933: --
934: END IF;
927: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
928: fnd_message.set_token('LER_ID',to_char(p_ler_id));
929: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
930: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
931: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
932: fnd_message.raise_error;
933: --
934: END IF;
935: --
928: fnd_message.set_token('LER_ID',to_char(p_ler_id));
929: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
930: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
931: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
932: fnd_message.raise_error;
933: --
934: END IF;
935: --
936: END IF;
950: open c_pl_opt_name(l_epe.elig_per_elctbl_chc_id);
951: fetch c_pl_opt_name into l_pl_opt_name;
952: close c_pl_opt_name;
953: --
954: fnd_message.set_name('BEN','BEN_92394_OUT_OF_RANGE');
955: fnd_message.set_token('MINIMUM', l_enb.mn_val);
956: fnd_message.set_token('MAXIMUM', l_enb.mx_val);
957: fnd_message.set_token('PLAN', l_pl_opt_name);
958: fnd_message.raise_error;
951: fetch c_pl_opt_name into l_pl_opt_name;
952: close c_pl_opt_name;
953: --
954: fnd_message.set_name('BEN','BEN_92394_OUT_OF_RANGE');
955: fnd_message.set_token('MINIMUM', l_enb.mn_val);
956: fnd_message.set_token('MAXIMUM', l_enb.mx_val);
957: fnd_message.set_token('PLAN', l_pl_opt_name);
958: fnd_message.raise_error;
959: --
952: close c_pl_opt_name;
953: --
954: fnd_message.set_name('BEN','BEN_92394_OUT_OF_RANGE');
955: fnd_message.set_token('MINIMUM', l_enb.mn_val);
956: fnd_message.set_token('MAXIMUM', l_enb.mx_val);
957: fnd_message.set_token('PLAN', l_pl_opt_name);
958: fnd_message.raise_error;
959: --
960: end if;
953: --
954: fnd_message.set_name('BEN','BEN_92394_OUT_OF_RANGE');
955: fnd_message.set_token('MINIMUM', l_enb.mn_val);
956: fnd_message.set_token('MAXIMUM', l_enb.mx_val);
957: fnd_message.set_token('PLAN', l_pl_opt_name);
958: fnd_message.raise_error;
959: --
960: end if;
961: --
954: fnd_message.set_name('BEN','BEN_92394_OUT_OF_RANGE');
955: fnd_message.set_token('MINIMUM', l_enb.mn_val);
956: fnd_message.set_token('MAXIMUM', l_enb.mx_val);
957: fnd_message.set_token('PLAN', l_pl_opt_name);
958: fnd_message.raise_error;
959: --
960: end if;
961: --
962: if l_enb.mn_val is not null and
968: open c_pl_opt_name(l_epe.elig_per_elctbl_chc_id);
969: fetch c_pl_opt_name into l_pl_opt_name;
970: close c_pl_opt_name;
971: --
972: fnd_message.set_name('BEN','BEN_92395_NOT_IN_INCR');
973: fnd_message.set_token('INCREMENT', l_enb.incrmt_val);
974: fnd_message.set_token('PLAN', l_pl_opt_name);
975: fnd_message.raise_error;
976: --
969: fetch c_pl_opt_name into l_pl_opt_name;
970: close c_pl_opt_name;
971: --
972: fnd_message.set_name('BEN','BEN_92395_NOT_IN_INCR');
973: fnd_message.set_token('INCREMENT', l_enb.incrmt_val);
974: fnd_message.set_token('PLAN', l_pl_opt_name);
975: fnd_message.raise_error;
976: --
977: end if;
970: close c_pl_opt_name;
971: --
972: fnd_message.set_name('BEN','BEN_92395_NOT_IN_INCR');
973: fnd_message.set_token('INCREMENT', l_enb.incrmt_val);
974: fnd_message.set_token('PLAN', l_pl_opt_name);
975: fnd_message.raise_error;
976: --
977: end if;
978: --
971: --
972: fnd_message.set_name('BEN','BEN_92395_NOT_IN_INCR');
973: fnd_message.set_token('INCREMENT', l_enb.incrmt_val);
974: fnd_message.set_token('PLAN', l_pl_opt_name);
975: fnd_message.raise_error;
976: --
977: end if;
978: --
979: end if;
989: if g_debug then
990: hr_utility.set_location('BEN_94559_NO_BNFT_VAL'|| to_char(p_person_id),54);
991: end if;
992: CLOSE c_enb ;
993: fnd_message.set_name('BEN','BEN_94559_NO_BNFT_VAL');
994: fnd_message.set_token('PROC',l_proc);
995: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
996: fnd_message.set_token('LER_ID',to_char(p_ler_id));
997: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
990: hr_utility.set_location('BEN_94559_NO_BNFT_VAL'|| to_char(p_person_id),54);
991: end if;
992: CLOSE c_enb ;
993: fnd_message.set_name('BEN','BEN_94559_NO_BNFT_VAL');
994: fnd_message.set_token('PROC',l_proc);
995: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
996: fnd_message.set_token('LER_ID',to_char(p_ler_id));
997: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
998: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
991: end if;
992: CLOSE c_enb ;
993: fnd_message.set_name('BEN','BEN_94559_NO_BNFT_VAL');
994: fnd_message.set_token('PROC',l_proc);
995: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
996: fnd_message.set_token('LER_ID',to_char(p_ler_id));
997: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
998: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
999: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
992: CLOSE c_enb ;
993: fnd_message.set_name('BEN','BEN_94559_NO_BNFT_VAL');
994: fnd_message.set_token('PROC',l_proc);
995: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
996: fnd_message.set_token('LER_ID',to_char(p_ler_id));
997: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
998: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
999: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1000: fnd_message.raise_error;
993: fnd_message.set_name('BEN','BEN_94559_NO_BNFT_VAL');
994: fnd_message.set_token('PROC',l_proc);
995: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
996: fnd_message.set_token('LER_ID',to_char(p_ler_id));
997: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
998: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
999: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1000: fnd_message.raise_error;
1001: --
994: fnd_message.set_token('PROC',l_proc);
995: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
996: fnd_message.set_token('LER_ID',to_char(p_ler_id));
997: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
998: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
999: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1000: fnd_message.raise_error;
1001: --
1002: END IF;
995: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
996: fnd_message.set_token('LER_ID',to_char(p_ler_id));
997: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
998: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
999: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1000: fnd_message.raise_error;
1001: --
1002: END IF;
1003: CLOSE c_enb ;
996: fnd_message.set_token('LER_ID',to_char(p_ler_id));
997: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
998: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
999: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1000: fnd_message.raise_error;
1001: --
1002: END IF;
1003: CLOSE c_enb ;
1004: --
1042: --
1043: if g_debug then
1044: hr_utility.set_location('APP_94555_NO_RATE_VAL'|| to_char(p_person_id),54);
1045: end if;
1046: fnd_message.set_name('BEN','APP_94555_NO_RATE_VAL');
1047: fnd_message.set_token('PROC',l_proc);
1048: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1049: fnd_message.set_token('LER_ID',to_char(p_ler_id));
1050: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1043: if g_debug then
1044: hr_utility.set_location('APP_94555_NO_RATE_VAL'|| to_char(p_person_id),54);
1045: end if;
1046: fnd_message.set_name('BEN','APP_94555_NO_RATE_VAL');
1047: fnd_message.set_token('PROC',l_proc);
1048: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1049: fnd_message.set_token('LER_ID',to_char(p_ler_id));
1050: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1051: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1044: hr_utility.set_location('APP_94555_NO_RATE_VAL'|| to_char(p_person_id),54);
1045: end if;
1046: fnd_message.set_name('BEN','APP_94555_NO_RATE_VAL');
1047: fnd_message.set_token('PROC',l_proc);
1048: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1049: fnd_message.set_token('LER_ID',to_char(p_ler_id));
1050: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1051: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1052: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1045: end if;
1046: fnd_message.set_name('BEN','APP_94555_NO_RATE_VAL');
1047: fnd_message.set_token('PROC',l_proc);
1048: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1049: fnd_message.set_token('LER_ID',to_char(p_ler_id));
1050: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1051: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1052: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1053: fnd_message.raise_error;
1046: fnd_message.set_name('BEN','APP_94555_NO_RATE_VAL');
1047: fnd_message.set_token('PROC',l_proc);
1048: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1049: fnd_message.set_token('LER_ID',to_char(p_ler_id));
1050: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1051: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1052: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1053: fnd_message.raise_error;
1054: --
1047: fnd_message.set_token('PROC',l_proc);
1048: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1049: fnd_message.set_token('LER_ID',to_char(p_ler_id));
1050: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1051: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1052: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1053: fnd_message.raise_error;
1054: --
1055: END IF;
1048: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1049: fnd_message.set_token('LER_ID',to_char(p_ler_id));
1050: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1051: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1052: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1053: fnd_message.raise_error;
1054: --
1055: END IF;
1056:
1049: fnd_message.set_token('LER_ID',to_char(p_ler_id));
1050: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1051: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1052: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1053: fnd_message.raise_error;
1054: --
1055: END IF;
1056:
1057: END IF ;
1070: CLOSE c_ecr_enb ;
1071: if g_debug then
1072: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1073: end if;
1074: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1075: fnd_message.set_token('PROC',l_proc);
1076: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1077: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id1));
1078: fnd_message.set_token('RT_VAL', to_char(p_rt_val1));
1071: if g_debug then
1072: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1073: end if;
1074: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1075: fnd_message.set_token('PROC',l_proc);
1076: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1077: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id1));
1078: fnd_message.set_token('RT_VAL', to_char(p_rt_val1));
1079: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val1));
1072: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1073: end if;
1074: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1075: fnd_message.set_token('PROC',l_proc);
1076: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1077: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id1));
1078: fnd_message.set_token('RT_VAL', to_char(p_rt_val1));
1079: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val1));
1080: fnd_message.raise_error;
1073: end if;
1074: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1075: fnd_message.set_token('PROC',l_proc);
1076: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1077: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id1));
1078: fnd_message.set_token('RT_VAL', to_char(p_rt_val1));
1079: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val1));
1080: fnd_message.raise_error;
1081: --
1074: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1075: fnd_message.set_token('PROC',l_proc);
1076: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1077: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id1));
1078: fnd_message.set_token('RT_VAL', to_char(p_rt_val1));
1079: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val1));
1080: fnd_message.raise_error;
1081: --
1082: ELSE
1075: fnd_message.set_token('PROC',l_proc);
1076: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1077: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id1));
1078: fnd_message.set_token('RT_VAL', to_char(p_rt_val1));
1079: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val1));
1080: fnd_message.raise_error;
1081: --
1082: ELSE
1083: --
1076: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1077: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id1));
1078: fnd_message.set_token('RT_VAL', to_char(p_rt_val1));
1079: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val1));
1080: fnd_message.raise_error;
1081: --
1082: ELSE
1083: --
1084: IF l_ecr1.rt_strt_dt_cd = 'ENTRBL' THEN
1091: if g_debug then
1092: hr_utility.set_location('BEN_94552_NO_RT_STRT_DT'|| to_char(p_person_id),54);
1093: end if;
1094: CLOSE c_ecr_enb;
1095: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1096: fnd_message.set_token('PACKAGE',l_proc);
1097: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1098: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1099: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1092: hr_utility.set_location('BEN_94552_NO_RT_STRT_DT'|| to_char(p_person_id),54);
1093: end if;
1094: CLOSE c_ecr_enb;
1095: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1096: fnd_message.set_token('PACKAGE',l_proc);
1097: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1098: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1099: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1100: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1093: end if;
1094: CLOSE c_ecr_enb;
1095: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1096: fnd_message.set_token('PACKAGE',l_proc);
1097: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1098: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1099: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1100: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1101: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1094: CLOSE c_ecr_enb;
1095: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1096: fnd_message.set_token('PACKAGE',l_proc);
1097: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1098: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1099: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1100: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1101: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1102: fnd_message.raise_error;
1095: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1096: fnd_message.set_token('PACKAGE',l_proc);
1097: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1098: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1099: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1100: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1101: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1102: fnd_message.raise_error;
1103: --
1096: fnd_message.set_token('PACKAGE',l_proc);
1097: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1098: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1099: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1100: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1101: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1102: fnd_message.raise_error;
1103: --
1104: END IF;
1097: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1098: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1099: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1100: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1101: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1102: fnd_message.raise_error;
1103: --
1104: END IF;
1105: END IF;
1098: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1099: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1100: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1101: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1102: fnd_message.raise_error;
1103: --
1104: END IF;
1105: END IF;
1106: --
1114: if g_debug then
1115: hr_utility.set_location('BEN_94555_NO_RATE_VAL'|| to_char(p_person_id),54);
1116: end if;
1117: CLOSE c_ecr_enb;
1118: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1119: fnd_message.set_token('PACKAGE',l_proc);
1120: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1121: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1122: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1115: hr_utility.set_location('BEN_94555_NO_RATE_VAL'|| to_char(p_person_id),54);
1116: end if;
1117: CLOSE c_ecr_enb;
1118: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1119: fnd_message.set_token('PACKAGE',l_proc);
1120: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1121: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1122: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1123: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1116: end if;
1117: CLOSE c_ecr_enb;
1118: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1119: fnd_message.set_token('PACKAGE',l_proc);
1120: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1121: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1122: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1123: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1124: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1117: CLOSE c_ecr_enb;
1118: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1119: fnd_message.set_token('PACKAGE',l_proc);
1120: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1121: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1122: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1123: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1124: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1125: fnd_message.raise_error;
1118: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1119: fnd_message.set_token('PACKAGE',l_proc);
1120: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1121: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1122: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1123: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1124: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1125: fnd_message.raise_error;
1126: --
1119: fnd_message.set_token('PACKAGE',l_proc);
1120: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1121: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1122: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1123: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1124: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1125: fnd_message.raise_error;
1126: --
1127: END IF;
1120: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1121: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1122: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1123: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1124: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1125: fnd_message.raise_error;
1126: --
1127: END IF;
1128: --
1121: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1122: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1123: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1124: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1125: fnd_message.raise_error;
1126: --
1127: END IF;
1128: --
1129: ELSE
1141: CLOSE c_ecr ;
1142: if g_debug then
1143: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1144: end if;
1145: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1146: fnd_message.set_token('PROC',l_proc);
1147: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1148: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id1));
1149: fnd_message.set_token('RT_VAL', to_char(p_rt_val1));
1142: if g_debug then
1143: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1144: end if;
1145: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1146: fnd_message.set_token('PROC',l_proc);
1147: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1148: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id1));
1149: fnd_message.set_token('RT_VAL', to_char(p_rt_val1));
1150: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val1));
1143: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1144: end if;
1145: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1146: fnd_message.set_token('PROC',l_proc);
1147: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1148: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id1));
1149: fnd_message.set_token('RT_VAL', to_char(p_rt_val1));
1150: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val1));
1151: fnd_message.raise_error;
1144: end if;
1145: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1146: fnd_message.set_token('PROC',l_proc);
1147: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1148: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id1));
1149: fnd_message.set_token('RT_VAL', to_char(p_rt_val1));
1150: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val1));
1151: fnd_message.raise_error;
1152: --
1145: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1146: fnd_message.set_token('PROC',l_proc);
1147: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1148: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id1));
1149: fnd_message.set_token('RT_VAL', to_char(p_rt_val1));
1150: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val1));
1151: fnd_message.raise_error;
1152: --
1153: ELSE
1146: fnd_message.set_token('PROC',l_proc);
1147: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1148: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id1));
1149: fnd_message.set_token('RT_VAL', to_char(p_rt_val1));
1150: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val1));
1151: fnd_message.raise_error;
1152: --
1153: ELSE
1154: --
1147: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1148: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id1));
1149: fnd_message.set_token('RT_VAL', to_char(p_rt_val1));
1150: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val1));
1151: fnd_message.raise_error;
1152: --
1153: ELSE
1154: --
1155: IF l_ecr1.rt_strt_dt_cd = 'ENTRBL' THEN
1162: if g_debug then
1163: hr_utility.set_location('BEN_94552_NO_RT_STRT_DT'|| to_char(p_person_id),54);
1164: end if;
1165: CLOSE c_ecr;
1166: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1167: fnd_message.set_token('PACKAGE',l_proc);
1168: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1169: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1170: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1163: hr_utility.set_location('BEN_94552_NO_RT_STRT_DT'|| to_char(p_person_id),54);
1164: end if;
1165: CLOSE c_ecr;
1166: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1167: fnd_message.set_token('PACKAGE',l_proc);
1168: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1169: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1170: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1171: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1164: end if;
1165: CLOSE c_ecr;
1166: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1167: fnd_message.set_token('PACKAGE',l_proc);
1168: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1169: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1170: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1171: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1172: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1165: CLOSE c_ecr;
1166: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1167: fnd_message.set_token('PACKAGE',l_proc);
1168: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1169: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1170: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1171: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1172: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1173: fnd_message.raise_error;
1166: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1167: fnd_message.set_token('PACKAGE',l_proc);
1168: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1169: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1170: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1171: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1172: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1173: fnd_message.raise_error;
1174: --
1167: fnd_message.set_token('PACKAGE',l_proc);
1168: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1169: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1170: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1171: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1172: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1173: fnd_message.raise_error;
1174: --
1175: END IF;
1168: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1169: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1170: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1171: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1172: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1173: fnd_message.raise_error;
1174: --
1175: END IF;
1176: END IF;
1169: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1170: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1171: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1172: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1173: fnd_message.raise_error;
1174: --
1175: END IF;
1176: END IF;
1177: --
1185: if g_debug then
1186: hr_utility.set_location('BEN_94555_NO_RATE_VAL'|| to_char(p_person_id),54);
1187: end if;
1188: CLOSE c_ecr;
1189: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1190: fnd_message.set_token('PACKAGE',l_proc);
1191: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1192: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1193: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1186: hr_utility.set_location('BEN_94555_NO_RATE_VAL'|| to_char(p_person_id),54);
1187: end if;
1188: CLOSE c_ecr;
1189: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1190: fnd_message.set_token('PACKAGE',l_proc);
1191: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1192: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1193: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1194: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1187: end if;
1188: CLOSE c_ecr;
1189: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1190: fnd_message.set_token('PACKAGE',l_proc);
1191: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1192: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1193: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1194: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1195: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1188: CLOSE c_ecr;
1189: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1190: fnd_message.set_token('PACKAGE',l_proc);
1191: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1192: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1193: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1194: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1195: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1196: fnd_message.raise_error;
1189: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1190: fnd_message.set_token('PACKAGE',l_proc);
1191: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1192: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1193: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1194: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1195: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1196: fnd_message.raise_error;
1197: --
1190: fnd_message.set_token('PACKAGE',l_proc);
1191: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1192: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1193: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1194: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1195: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1196: fnd_message.raise_error;
1197: --
1198: END IF;
1191: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1192: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1193: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1194: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1195: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1196: fnd_message.raise_error;
1197: --
1198: END IF;
1199: --
1192: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1193: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1194: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1195: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1196: fnd_message.raise_error;
1197: --
1198: END IF;
1199: --
1200: ELSE
1220: CLOSE c_ecr_enb ;
1221: if g_debug then
1222: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1223: end if;
1224: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1225: fnd_message.set_token('PROC',l_proc);
1226: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1227: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id2));
1228: fnd_message.set_token('RT_VAL', to_char(p_rt_val2));
1221: if g_debug then
1222: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1223: end if;
1224: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1225: fnd_message.set_token('PROC',l_proc);
1226: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1227: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id2));
1228: fnd_message.set_token('RT_VAL', to_char(p_rt_val2));
1229: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val2));
1222: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1223: end if;
1224: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1225: fnd_message.set_token('PROC',l_proc);
1226: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1227: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id2));
1228: fnd_message.set_token('RT_VAL', to_char(p_rt_val2));
1229: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val2));
1230: fnd_message.raise_error;
1223: end if;
1224: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1225: fnd_message.set_token('PROC',l_proc);
1226: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1227: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id2));
1228: fnd_message.set_token('RT_VAL', to_char(p_rt_val2));
1229: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val2));
1230: fnd_message.raise_error;
1231: --
1224: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1225: fnd_message.set_token('PROC',l_proc);
1226: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1227: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id2));
1228: fnd_message.set_token('RT_VAL', to_char(p_rt_val2));
1229: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val2));
1230: fnd_message.raise_error;
1231: --
1232: ELSE
1225: fnd_message.set_token('PROC',l_proc);
1226: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1227: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id2));
1228: fnd_message.set_token('RT_VAL', to_char(p_rt_val2));
1229: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val2));
1230: fnd_message.raise_error;
1231: --
1232: ELSE
1233: --
1226: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1227: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id2));
1228: fnd_message.set_token('RT_VAL', to_char(p_rt_val2));
1229: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val2));
1230: fnd_message.raise_error;
1231: --
1232: ELSE
1233: --
1234: IF l_ecr2.rt_strt_dt_cd = 'ENTRBL' THEN
1241: if g_debug then
1242: hr_utility.set_location('BEN_94552_NO_RT_STRT_DT'|| to_char(p_person_id),54);
1243: end if;
1244: CLOSE c_ecr_enb;
1245: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1246: fnd_message.set_token('PACKAGE',l_proc);
1247: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1248: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1249: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1242: hr_utility.set_location('BEN_94552_NO_RT_STRT_DT'|| to_char(p_person_id),54);
1243: end if;
1244: CLOSE c_ecr_enb;
1245: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1246: fnd_message.set_token('PACKAGE',l_proc);
1247: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1248: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1249: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1250: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1243: end if;
1244: CLOSE c_ecr_enb;
1245: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1246: fnd_message.set_token('PACKAGE',l_proc);
1247: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1248: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1249: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1250: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1251: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1244: CLOSE c_ecr_enb;
1245: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1246: fnd_message.set_token('PACKAGE',l_proc);
1247: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1248: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1249: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1250: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1251: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1252: fnd_message.raise_error;
1245: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1246: fnd_message.set_token('PACKAGE',l_proc);
1247: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1248: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1249: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1250: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1251: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1252: fnd_message.raise_error;
1253: --
1246: fnd_message.set_token('PACKAGE',l_proc);
1247: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1248: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1249: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1250: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1251: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1252: fnd_message.raise_error;
1253: --
1254: END IF;
1247: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1248: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1249: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1250: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1251: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1252: fnd_message.raise_error;
1253: --
1254: END IF;
1255: END IF;
1248: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1249: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1250: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1251: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1252: fnd_message.raise_error;
1253: --
1254: END IF;
1255: END IF;
1256: --
1264: if g_debug then
1265: hr_utility.set_location('BEN_94555_NO_RATE_VAL'|| to_char(p_person_id),54);
1266: end if;
1267: CLOSE c_ecr_enb;
1268: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1269: fnd_message.set_token('PACKAGE',l_proc);
1270: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1271: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1272: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1265: hr_utility.set_location('BEN_94555_NO_RATE_VAL'|| to_char(p_person_id),54);
1266: end if;
1267: CLOSE c_ecr_enb;
1268: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1269: fnd_message.set_token('PACKAGE',l_proc);
1270: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1271: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1272: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1273: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1266: end if;
1267: CLOSE c_ecr_enb;
1268: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1269: fnd_message.set_token('PACKAGE',l_proc);
1270: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1271: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1272: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1273: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1274: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1267: CLOSE c_ecr_enb;
1268: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1269: fnd_message.set_token('PACKAGE',l_proc);
1270: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1271: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1272: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1273: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1274: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1275: fnd_message.raise_error;
1268: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1269: fnd_message.set_token('PACKAGE',l_proc);
1270: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1271: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1272: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1273: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1274: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1275: fnd_message.raise_error;
1276: --
1269: fnd_message.set_token('PACKAGE',l_proc);
1270: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1271: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1272: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1273: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1274: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1275: fnd_message.raise_error;
1276: --
1277: END IF;
1270: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1271: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1272: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1273: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1274: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1275: fnd_message.raise_error;
1276: --
1277: END IF;
1278: --
1271: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1272: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1273: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1274: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1275: fnd_message.raise_error;
1276: --
1277: END IF;
1278: --
1279: ELSE
1291: CLOSE c_ecr ;
1292: if g_debug then
1293: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1294: end if;
1295: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1296: fnd_message.set_token('PROC',l_proc);
1297: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1298: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id2));
1299: fnd_message.set_token('RT_VAL', to_char(p_rt_val2));
1292: if g_debug then
1293: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1294: end if;
1295: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1296: fnd_message.set_token('PROC',l_proc);
1297: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1298: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id2));
1299: fnd_message.set_token('RT_VAL', to_char(p_rt_val2));
1300: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val2));
1293: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1294: end if;
1295: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1296: fnd_message.set_token('PROC',l_proc);
1297: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1298: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id2));
1299: fnd_message.set_token('RT_VAL', to_char(p_rt_val2));
1300: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val2));
1301: fnd_message.raise_error;
1294: end if;
1295: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1296: fnd_message.set_token('PROC',l_proc);
1297: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1298: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id2));
1299: fnd_message.set_token('RT_VAL', to_char(p_rt_val2));
1300: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val2));
1301: fnd_message.raise_error;
1302: --
1295: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1296: fnd_message.set_token('PROC',l_proc);
1297: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1298: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id2));
1299: fnd_message.set_token('RT_VAL', to_char(p_rt_val2));
1300: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val2));
1301: fnd_message.raise_error;
1302: --
1303: ELSE
1296: fnd_message.set_token('PROC',l_proc);
1297: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1298: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id2));
1299: fnd_message.set_token('RT_VAL', to_char(p_rt_val2));
1300: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val2));
1301: fnd_message.raise_error;
1302: --
1303: ELSE
1304: --
1297: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1298: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id2));
1299: fnd_message.set_token('RT_VAL', to_char(p_rt_val2));
1300: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val2));
1301: fnd_message.raise_error;
1302: --
1303: ELSE
1304: --
1305: IF l_ecr2.rt_strt_dt_cd = 'ENTRBL' THEN
1312: if g_debug then
1313: hr_utility.set_location('BEN_94552_NO_RT_STRT_DT'|| to_char(p_person_id),54);
1314: end if;
1315: CLOSE c_ecr;
1316: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1317: fnd_message.set_token('PACKAGE',l_proc);
1318: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1319: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1320: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1313: hr_utility.set_location('BEN_94552_NO_RT_STRT_DT'|| to_char(p_person_id),54);
1314: end if;
1315: CLOSE c_ecr;
1316: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1317: fnd_message.set_token('PACKAGE',l_proc);
1318: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1319: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1320: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1321: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1314: end if;
1315: CLOSE c_ecr;
1316: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1317: fnd_message.set_token('PACKAGE',l_proc);
1318: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1319: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1320: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1321: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1322: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1315: CLOSE c_ecr;
1316: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1317: fnd_message.set_token('PACKAGE',l_proc);
1318: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1319: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1320: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1321: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1322: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1323: fnd_message.raise_error;
1316: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1317: fnd_message.set_token('PACKAGE',l_proc);
1318: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1319: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1320: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1321: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1322: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1323: fnd_message.raise_error;
1324: --
1317: fnd_message.set_token('PACKAGE',l_proc);
1318: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1319: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1320: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1321: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1322: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1323: fnd_message.raise_error;
1324: --
1325: END IF;
1318: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1319: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1320: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1321: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1322: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1323: fnd_message.raise_error;
1324: --
1325: END IF;
1326: END IF;
1319: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1320: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1321: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1322: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1323: fnd_message.raise_error;
1324: --
1325: END IF;
1326: END IF;
1327: --
1335: if g_debug then
1336: hr_utility.set_location('BEN_94555_NO_RATE_VAL'|| to_char(p_person_id),54);
1337: end if;
1338: CLOSE c_ecr;
1339: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1340: fnd_message.set_token('PACKAGE',l_proc);
1341: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1342: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1343: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1336: hr_utility.set_location('BEN_94555_NO_RATE_VAL'|| to_char(p_person_id),54);
1337: end if;
1338: CLOSE c_ecr;
1339: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1340: fnd_message.set_token('PACKAGE',l_proc);
1341: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1342: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1343: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1344: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1337: end if;
1338: CLOSE c_ecr;
1339: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1340: fnd_message.set_token('PACKAGE',l_proc);
1341: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1342: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1343: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1344: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1345: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1338: CLOSE c_ecr;
1339: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1340: fnd_message.set_token('PACKAGE',l_proc);
1341: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1342: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1343: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1344: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1345: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1346: fnd_message.raise_error;
1339: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1340: fnd_message.set_token('PACKAGE',l_proc);
1341: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1342: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1343: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1344: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1345: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1346: fnd_message.raise_error;
1347: --
1340: fnd_message.set_token('PACKAGE',l_proc);
1341: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1342: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1343: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1344: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1345: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1346: fnd_message.raise_error;
1347: --
1348: END IF;
1341: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1342: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1343: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1344: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1345: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1346: fnd_message.raise_error;
1347: --
1348: END IF;
1349: --
1342: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1343: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1344: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1345: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1346: fnd_message.raise_error;
1347: --
1348: END IF;
1349: --
1350: ELSE
1370: CLOSE c_ecr_enb ;
1371: if g_debug then
1372: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1373: end if;
1374: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1375: fnd_message.set_token('PROC',l_proc);
1376: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1377: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id3));
1378: fnd_message.set_token('RT_VAL', to_char(p_rt_val3));
1371: if g_debug then
1372: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1373: end if;
1374: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1375: fnd_message.set_token('PROC',l_proc);
1376: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1377: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id3));
1378: fnd_message.set_token('RT_VAL', to_char(p_rt_val3));
1379: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val3));
1372: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1373: end if;
1374: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1375: fnd_message.set_token('PROC',l_proc);
1376: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1377: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id3));
1378: fnd_message.set_token('RT_VAL', to_char(p_rt_val3));
1379: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val3));
1380: fnd_message.raise_error;
1373: end if;
1374: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1375: fnd_message.set_token('PROC',l_proc);
1376: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1377: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id3));
1378: fnd_message.set_token('RT_VAL', to_char(p_rt_val3));
1379: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val3));
1380: fnd_message.raise_error;
1381: --
1374: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1375: fnd_message.set_token('PROC',l_proc);
1376: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1377: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id3));
1378: fnd_message.set_token('RT_VAL', to_char(p_rt_val3));
1379: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val3));
1380: fnd_message.raise_error;
1381: --
1382: ELSE
1375: fnd_message.set_token('PROC',l_proc);
1376: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1377: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id3));
1378: fnd_message.set_token('RT_VAL', to_char(p_rt_val3));
1379: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val3));
1380: fnd_message.raise_error;
1381: --
1382: ELSE
1383: --
1376: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1377: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id3));
1378: fnd_message.set_token('RT_VAL', to_char(p_rt_val3));
1379: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val3));
1380: fnd_message.raise_error;
1381: --
1382: ELSE
1383: --
1384: IF l_ecr3.rt_strt_dt_cd = 'ENTRBL' THEN
1391: if g_debug then
1392: hr_utility.set_location('BEN_94552_NO_RT_STRT_DT'|| to_char(p_person_id),54);
1393: end if;
1394: CLOSE c_ecr_enb;
1395: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1396: fnd_message.set_token('PACKAGE',l_proc);
1397: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1398: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1399: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1392: hr_utility.set_location('BEN_94552_NO_RT_STRT_DT'|| to_char(p_person_id),54);
1393: end if;
1394: CLOSE c_ecr_enb;
1395: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1396: fnd_message.set_token('PACKAGE',l_proc);
1397: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1398: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1399: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1400: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1393: end if;
1394: CLOSE c_ecr_enb;
1395: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1396: fnd_message.set_token('PACKAGE',l_proc);
1397: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1398: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1399: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1400: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1401: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1394: CLOSE c_ecr_enb;
1395: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1396: fnd_message.set_token('PACKAGE',l_proc);
1397: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1398: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1399: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1400: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1401: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1402: fnd_message.raise_error;
1395: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1396: fnd_message.set_token('PACKAGE',l_proc);
1397: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1398: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1399: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1400: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1401: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1402: fnd_message.raise_error;
1403: --
1396: fnd_message.set_token('PACKAGE',l_proc);
1397: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1398: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1399: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1400: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1401: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1402: fnd_message.raise_error;
1403: --
1404: END IF;
1397: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1398: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1399: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1400: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1401: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1402: fnd_message.raise_error;
1403: --
1404: END IF;
1405: END IF;
1398: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1399: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1400: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1401: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1402: fnd_message.raise_error;
1403: --
1404: END IF;
1405: END IF;
1406: --
1414: if g_debug then
1415: hr_utility.set_location('BEN_94555_NO_RATE_VAL'|| to_char(p_person_id),54);
1416: end if;
1417: CLOSE c_ecr_enb;
1418: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1419: fnd_message.set_token('PACKAGE',l_proc);
1420: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1421: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1422: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1415: hr_utility.set_location('BEN_94555_NO_RATE_VAL'|| to_char(p_person_id),54);
1416: end if;
1417: CLOSE c_ecr_enb;
1418: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1419: fnd_message.set_token('PACKAGE',l_proc);
1420: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1421: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1422: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1423: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1416: end if;
1417: CLOSE c_ecr_enb;
1418: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1419: fnd_message.set_token('PACKAGE',l_proc);
1420: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1421: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1422: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1423: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1424: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1417: CLOSE c_ecr_enb;
1418: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1419: fnd_message.set_token('PACKAGE',l_proc);
1420: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1421: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1422: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1423: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1424: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1425: fnd_message.raise_error;
1418: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1419: fnd_message.set_token('PACKAGE',l_proc);
1420: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1421: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1422: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1423: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1424: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1425: fnd_message.raise_error;
1426: --
1419: fnd_message.set_token('PACKAGE',l_proc);
1420: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1421: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1422: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1423: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1424: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1425: fnd_message.raise_error;
1426: --
1427: END IF;
1420: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1421: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1422: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1423: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1424: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1425: fnd_message.raise_error;
1426: --
1427: END IF;
1428: --
1421: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1422: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1423: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1424: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1425: fnd_message.raise_error;
1426: --
1427: END IF;
1428: --
1429: ELSE
1441: CLOSE c_ecr ;
1442: if g_debug then
1443: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1444: end if;
1445: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1446: fnd_message.set_token('PROC',l_proc);
1447: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1448: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id3));
1449: fnd_message.set_token('RT_VAL', to_char(p_rt_val3));
1442: if g_debug then
1443: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1444: end if;
1445: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1446: fnd_message.set_token('PROC',l_proc);
1447: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1448: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id3));
1449: fnd_message.set_token('RT_VAL', to_char(p_rt_val3));
1450: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val3));
1443: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1444: end if;
1445: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1446: fnd_message.set_token('PROC',l_proc);
1447: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1448: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id3));
1449: fnd_message.set_token('RT_VAL', to_char(p_rt_val3));
1450: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val3));
1451: fnd_message.raise_error;
1444: end if;
1445: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1446: fnd_message.set_token('PROC',l_proc);
1447: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1448: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id3));
1449: fnd_message.set_token('RT_VAL', to_char(p_rt_val3));
1450: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val3));
1451: fnd_message.raise_error;
1452: --
1445: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1446: fnd_message.set_token('PROC',l_proc);
1447: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1448: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id3));
1449: fnd_message.set_token('RT_VAL', to_char(p_rt_val3));
1450: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val3));
1451: fnd_message.raise_error;
1452: --
1453: ELSE
1446: fnd_message.set_token('PROC',l_proc);
1447: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1448: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id3));
1449: fnd_message.set_token('RT_VAL', to_char(p_rt_val3));
1450: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val3));
1451: fnd_message.raise_error;
1452: --
1453: ELSE
1454: --
1447: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1448: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id3));
1449: fnd_message.set_token('RT_VAL', to_char(p_rt_val3));
1450: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val3));
1451: fnd_message.raise_error;
1452: --
1453: ELSE
1454: --
1455: IF l_ecr3.rt_strt_dt_cd = 'ENTRBL' THEN
1462: if g_debug then
1463: hr_utility.set_location('BEN_94552_NO_RT_STRT_DT'|| to_char(p_person_id),54);
1464: end if;
1465: CLOSE c_ecr;
1466: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1467: fnd_message.set_token('PACKAGE',l_proc);
1468: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1469: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1470: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1463: hr_utility.set_location('BEN_94552_NO_RT_STRT_DT'|| to_char(p_person_id),54);
1464: end if;
1465: CLOSE c_ecr;
1466: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1467: fnd_message.set_token('PACKAGE',l_proc);
1468: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1469: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1470: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1471: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1464: end if;
1465: CLOSE c_ecr;
1466: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1467: fnd_message.set_token('PACKAGE',l_proc);
1468: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1469: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1470: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1471: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1472: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1465: CLOSE c_ecr;
1466: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1467: fnd_message.set_token('PACKAGE',l_proc);
1468: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1469: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1470: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1471: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1472: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1473: fnd_message.raise_error;
1466: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1467: fnd_message.set_token('PACKAGE',l_proc);
1468: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1469: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1470: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1471: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1472: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1473: fnd_message.raise_error;
1474: --
1467: fnd_message.set_token('PACKAGE',l_proc);
1468: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1469: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1470: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1471: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1472: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1473: fnd_message.raise_error;
1474: --
1475: END IF;
1468: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1469: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1470: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1471: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1472: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1473: fnd_message.raise_error;
1474: --
1475: END IF;
1476: END IF;
1469: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1470: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1471: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1472: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1473: fnd_message.raise_error;
1474: --
1475: END IF;
1476: END IF;
1477: --
1485: if g_debug then
1486: hr_utility.set_location('BEN_94555_NO_RATE_VAL'|| to_char(p_person_id),54);
1487: end if;
1488: CLOSE c_ecr;
1489: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1490: fnd_message.set_token('PACKAGE',l_proc);
1491: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1492: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1493: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1486: hr_utility.set_location('BEN_94555_NO_RATE_VAL'|| to_char(p_person_id),54);
1487: end if;
1488: CLOSE c_ecr;
1489: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1490: fnd_message.set_token('PACKAGE',l_proc);
1491: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1492: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1493: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1494: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1487: end if;
1488: CLOSE c_ecr;
1489: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1490: fnd_message.set_token('PACKAGE',l_proc);
1491: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1492: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1493: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1494: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1495: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1488: CLOSE c_ecr;
1489: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1490: fnd_message.set_token('PACKAGE',l_proc);
1491: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1492: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1493: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1494: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1495: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1496: fnd_message.raise_error;
1489: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1490: fnd_message.set_token('PACKAGE',l_proc);
1491: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1492: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1493: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1494: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1495: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1496: fnd_message.raise_error;
1497: --
1490: fnd_message.set_token('PACKAGE',l_proc);
1491: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1492: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1493: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1494: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1495: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1496: fnd_message.raise_error;
1497: --
1498: END IF;
1491: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1492: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1493: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1494: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1495: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1496: fnd_message.raise_error;
1497: --
1498: END IF;
1499: --
1492: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1493: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1494: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1495: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1496: fnd_message.raise_error;
1497: --
1498: END IF;
1499: --
1500: ELSE
1520: CLOSE c_ecr_enb ;
1521: if g_debug then
1522: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1523: end if;
1524: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1525: fnd_message.set_token('PROC',l_proc);
1526: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1527: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id4));
1528: fnd_message.set_token('RT_VAL', to_char(p_rt_val4));
1521: if g_debug then
1522: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1523: end if;
1524: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1525: fnd_message.set_token('PROC',l_proc);
1526: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1527: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id4));
1528: fnd_message.set_token('RT_VAL', to_char(p_rt_val4));
1529: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val4));
1522: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1523: end if;
1524: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1525: fnd_message.set_token('PROC',l_proc);
1526: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1527: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id4));
1528: fnd_message.set_token('RT_VAL', to_char(p_rt_val4));
1529: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val4));
1530: fnd_message.raise_error;
1523: end if;
1524: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1525: fnd_message.set_token('PROC',l_proc);
1526: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1527: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id4));
1528: fnd_message.set_token('RT_VAL', to_char(p_rt_val4));
1529: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val4));
1530: fnd_message.raise_error;
1531: --
1524: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1525: fnd_message.set_token('PROC',l_proc);
1526: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1527: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id4));
1528: fnd_message.set_token('RT_VAL', to_char(p_rt_val4));
1529: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val4));
1530: fnd_message.raise_error;
1531: --
1532: ELSE
1525: fnd_message.set_token('PROC',l_proc);
1526: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1527: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id4));
1528: fnd_message.set_token('RT_VAL', to_char(p_rt_val4));
1529: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val4));
1530: fnd_message.raise_error;
1531: --
1532: ELSE
1533: --
1526: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1527: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id4));
1528: fnd_message.set_token('RT_VAL', to_char(p_rt_val4));
1529: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val4));
1530: fnd_message.raise_error;
1531: --
1532: ELSE
1533: --
1534: IF l_ecr4.rt_strt_dt_cd = 'ENTRBL' THEN
1541: if g_debug then
1542: hr_utility.set_location('BEN_94552_NO_RT_STRT_DT'|| to_char(p_person_id),54);
1543: end if;
1544: CLOSE c_ecr_enb;
1545: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1546: fnd_message.set_token('PACKAGE',l_proc);
1547: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1548: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1549: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1542: hr_utility.set_location('BEN_94552_NO_RT_STRT_DT'|| to_char(p_person_id),54);
1543: end if;
1544: CLOSE c_ecr_enb;
1545: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1546: fnd_message.set_token('PACKAGE',l_proc);
1547: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1548: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1549: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1550: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1543: end if;
1544: CLOSE c_ecr_enb;
1545: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1546: fnd_message.set_token('PACKAGE',l_proc);
1547: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1548: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1549: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1550: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1551: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1544: CLOSE c_ecr_enb;
1545: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1546: fnd_message.set_token('PACKAGE',l_proc);
1547: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1548: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1549: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1550: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1551: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1552: fnd_message.raise_error;
1545: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1546: fnd_message.set_token('PACKAGE',l_proc);
1547: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1548: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1549: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1550: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1551: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1552: fnd_message.raise_error;
1553: --
1546: fnd_message.set_token('PACKAGE',l_proc);
1547: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1548: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1549: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1550: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1551: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1552: fnd_message.raise_error;
1553: --
1554: END IF;
1547: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1548: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1549: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1550: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1551: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1552: fnd_message.raise_error;
1553: --
1554: END IF;
1555: END IF;
1548: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1549: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1550: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1551: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1552: fnd_message.raise_error;
1553: --
1554: END IF;
1555: END IF;
1556: --
1564: if g_debug then
1565: hr_utility.set_location('BEN_94555_NO_RATE_VAL'|| to_char(p_person_id),54);
1566: end if;
1567: CLOSE c_ecr_enb;
1568: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1569: fnd_message.set_token('PACKAGE',l_proc);
1570: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1571: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1572: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1565: hr_utility.set_location('BEN_94555_NO_RATE_VAL'|| to_char(p_person_id),54);
1566: end if;
1567: CLOSE c_ecr_enb;
1568: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1569: fnd_message.set_token('PACKAGE',l_proc);
1570: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1571: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1572: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1573: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1566: end if;
1567: CLOSE c_ecr_enb;
1568: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1569: fnd_message.set_token('PACKAGE',l_proc);
1570: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1571: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1572: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1573: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1574: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1567: CLOSE c_ecr_enb;
1568: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1569: fnd_message.set_token('PACKAGE',l_proc);
1570: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1571: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1572: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1573: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1574: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1575: fnd_message.raise_error;
1568: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1569: fnd_message.set_token('PACKAGE',l_proc);
1570: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1571: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1572: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1573: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1574: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1575: fnd_message.raise_error;
1576: --
1569: fnd_message.set_token('PACKAGE',l_proc);
1570: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1571: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1572: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1573: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1574: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1575: fnd_message.raise_error;
1576: --
1577: END IF;
1570: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1571: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1572: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1573: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1574: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1575: fnd_message.raise_error;
1576: --
1577: END IF;
1578: --
1571: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1572: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1573: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1574: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1575: fnd_message.raise_error;
1576: --
1577: END IF;
1578: --
1579: ELSE
1591: CLOSE c_ecr ;
1592: if g_debug then
1593: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1594: end if;
1595: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1596: fnd_message.set_token('PROC',l_proc);
1597: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1598: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id4));
1599: fnd_message.set_token('RT_VAL', to_char(p_rt_val4));
1592: if g_debug then
1593: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1594: end if;
1595: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1596: fnd_message.set_token('PROC',l_proc);
1597: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1598: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id4));
1599: fnd_message.set_token('RT_VAL', to_char(p_rt_val4));
1600: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val4));
1593: hr_utility.set_location('BEN_94535_ECR_NOT_FOUND'|| to_char(p_person_id),54);
1594: end if;
1595: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1596: fnd_message.set_token('PROC',l_proc);
1597: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1598: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id4));
1599: fnd_message.set_token('RT_VAL', to_char(p_rt_val4));
1600: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val4));
1601: fnd_message.raise_error;
1594: end if;
1595: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1596: fnd_message.set_token('PROC',l_proc);
1597: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1598: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id4));
1599: fnd_message.set_token('RT_VAL', to_char(p_rt_val4));
1600: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val4));
1601: fnd_message.raise_error;
1602: --
1595: fnd_message.set_name('BEN','BEN_94535_ECR_NOT_FOUND');
1596: fnd_message.set_token('PROC',l_proc);
1597: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1598: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id4));
1599: fnd_message.set_token('RT_VAL', to_char(p_rt_val4));
1600: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val4));
1601: fnd_message.raise_error;
1602: --
1603: ELSE
1596: fnd_message.set_token('PROC',l_proc);
1597: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1598: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id4));
1599: fnd_message.set_token('RT_VAL', to_char(p_rt_val4));
1600: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val4));
1601: fnd_message.raise_error;
1602: --
1603: ELSE
1604: --
1597: fnd_message.set_token('PERSON_ID', to_char(p_person_id));
1598: fnd_message.set_token('ABR_ID', to_char(p_acty_base_rt_id4));
1599: fnd_message.set_token('RT_VAL', to_char(p_rt_val4));
1600: fnd_message.set_token('ANN_RT_VAL', to_char(p_ann_rt_val4));
1601: fnd_message.raise_error;
1602: --
1603: ELSE
1604: --
1605: IF l_ecr4.rt_strt_dt_cd = 'ENTRBL' THEN
1612: if g_debug then
1613: hr_utility.set_location('BEN_94552_NO_RT_STRT_DT'|| to_char(p_person_id),54);
1614: end if;
1615: CLOSE c_ecr;
1616: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1617: fnd_message.set_token('PACKAGE',l_proc);
1618: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1619: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1620: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1613: hr_utility.set_location('BEN_94552_NO_RT_STRT_DT'|| to_char(p_person_id),54);
1614: end if;
1615: CLOSE c_ecr;
1616: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1617: fnd_message.set_token('PACKAGE',l_proc);
1618: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1619: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1620: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1621: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1614: end if;
1615: CLOSE c_ecr;
1616: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1617: fnd_message.set_token('PACKAGE',l_proc);
1618: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1619: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1620: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1621: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1622: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1615: CLOSE c_ecr;
1616: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1617: fnd_message.set_token('PACKAGE',l_proc);
1618: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1619: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1620: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1621: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1622: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1623: fnd_message.raise_error;
1616: fnd_message.set_name('BEN','BEN_94552_NO_RT_STRT_DT');
1617: fnd_message.set_token('PACKAGE',l_proc);
1618: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1619: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1620: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1621: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1622: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1623: fnd_message.raise_error;
1624: --
1617: fnd_message.set_token('PACKAGE',l_proc);
1618: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1619: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1620: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1621: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1622: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1623: fnd_message.raise_error;
1624: --
1625: END IF;
1618: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1619: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1620: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1621: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1622: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1623: fnd_message.raise_error;
1624: --
1625: END IF;
1626: END IF;
1619: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1620: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1621: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1622: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1623: fnd_message.raise_error;
1624: --
1625: END IF;
1626: END IF;
1627: --
1635: if g_debug then
1636: hr_utility.set_location('BEN_94555_NO_RATE_VAL'|| to_char(p_person_id),54);
1637: end if;
1638: CLOSE c_ecr;
1639: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1640: fnd_message.set_token('PACKAGE',l_proc);
1641: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1642: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1643: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1636: hr_utility.set_location('BEN_94555_NO_RATE_VAL'|| to_char(p_person_id),54);
1637: end if;
1638: CLOSE c_ecr;
1639: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1640: fnd_message.set_token('PACKAGE',l_proc);
1641: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1642: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1643: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1644: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1637: end if;
1638: CLOSE c_ecr;
1639: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1640: fnd_message.set_token('PACKAGE',l_proc);
1641: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1642: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1643: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1644: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1645: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1638: CLOSE c_ecr;
1639: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1640: fnd_message.set_token('PACKAGE',l_proc);
1641: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1642: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1643: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1644: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1645: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1646: fnd_message.raise_error;
1639: fnd_message.set_name('BEN','BEN_94555_NO_RATE_VAL');
1640: fnd_message.set_token('PACKAGE',l_proc);
1641: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1642: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1643: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1644: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1645: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1646: fnd_message.raise_error;
1647: --
1640: fnd_message.set_token('PACKAGE',l_proc);
1641: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1642: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1643: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1644: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1645: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1646: fnd_message.raise_error;
1647: --
1648: END IF;
1641: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1642: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1643: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1644: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1645: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1646: fnd_message.raise_error;
1647: --
1648: END IF;
1649: --
1642: fnd_message.set_token('LER_ID', to_char(p_ler_id));
1643: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1644: fnd_message.set_token('PLAN_ID', to_char(p_pl_id));
1645: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
1646: fnd_message.raise_error;
1647: --
1648: END IF;
1649: --
1650: ELSE
1756: if l_prtt_enrt_rslt_id is not null then
1757: --
1758: --Raise error saying that enrollment has already been ended.
1759: --
1760: fnd_message.set_name('BEN','BEN_94658_PLN_ALRDY_DE_ENRLD');
1761: fnd_message.set_token('PACKAGE',l_proc);
1762: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1763: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1764: fnd_message.set_token('PL_ID', to_char(p_ended_pl_id));
1757: --
1758: --Raise error saying that enrollment has already been ended.
1759: --
1760: fnd_message.set_name('BEN','BEN_94658_PLN_ALRDY_DE_ENRLD');
1761: fnd_message.set_token('PACKAGE',l_proc);
1762: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1763: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1764: fnd_message.set_token('PL_ID', to_char(p_ended_pl_id));
1765: fnd_message.set_token('OPT_ID',to_char(p_ended_opt_id));
1758: --Raise error saying that enrollment has already been ended.
1759: --
1760: fnd_message.set_name('BEN','BEN_94658_PLN_ALRDY_DE_ENRLD');
1761: fnd_message.set_token('PACKAGE',l_proc);
1762: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1763: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1764: fnd_message.set_token('PL_ID', to_char(p_ended_pl_id));
1765: fnd_message.set_token('OPT_ID',to_char(p_ended_opt_id));
1766: fnd_message.set_token('PER_ENR_RSLT_ID',to_char(l_prtt_enrt_rslt_id));
1759: --
1760: fnd_message.set_name('BEN','BEN_94658_PLN_ALRDY_DE_ENRLD');
1761: fnd_message.set_token('PACKAGE',l_proc);
1762: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1763: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1764: fnd_message.set_token('PL_ID', to_char(p_ended_pl_id));
1765: fnd_message.set_token('OPT_ID',to_char(p_ended_opt_id));
1766: fnd_message.set_token('PER_ENR_RSLT_ID',to_char(l_prtt_enrt_rslt_id));
1767: fnd_message.set_token('LE_DATE', p_life_event_date);
1760: fnd_message.set_name('BEN','BEN_94658_PLN_ALRDY_DE_ENRLD');
1761: fnd_message.set_token('PACKAGE',l_proc);
1762: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1763: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1764: fnd_message.set_token('PL_ID', to_char(p_ended_pl_id));
1765: fnd_message.set_token('OPT_ID',to_char(p_ended_opt_id));
1766: fnd_message.set_token('PER_ENR_RSLT_ID',to_char(l_prtt_enrt_rslt_id));
1767: fnd_message.set_token('LE_DATE', p_life_event_date);
1768: fnd_message.raise_error;
1761: fnd_message.set_token('PACKAGE',l_proc);
1762: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1763: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1764: fnd_message.set_token('PL_ID', to_char(p_ended_pl_id));
1765: fnd_message.set_token('OPT_ID',to_char(p_ended_opt_id));
1766: fnd_message.set_token('PER_ENR_RSLT_ID',to_char(l_prtt_enrt_rslt_id));
1767: fnd_message.set_token('LE_DATE', p_life_event_date);
1768: fnd_message.raise_error;
1769: --
1762: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1763: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1764: fnd_message.set_token('PL_ID', to_char(p_ended_pl_id));
1765: fnd_message.set_token('OPT_ID',to_char(p_ended_opt_id));
1766: fnd_message.set_token('PER_ENR_RSLT_ID',to_char(l_prtt_enrt_rslt_id));
1767: fnd_message.set_token('LE_DATE', p_life_event_date);
1768: fnd_message.raise_error;
1769: --
1770: else
1763: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1764: fnd_message.set_token('PL_ID', to_char(p_ended_pl_id));
1765: fnd_message.set_token('OPT_ID',to_char(p_ended_opt_id));
1766: fnd_message.set_token('PER_ENR_RSLT_ID',to_char(l_prtt_enrt_rslt_id));
1767: fnd_message.set_token('LE_DATE', p_life_event_date);
1768: fnd_message.raise_error;
1769: --
1770: else
1771: --
1764: fnd_message.set_token('PL_ID', to_char(p_ended_pl_id));
1765: fnd_message.set_token('OPT_ID',to_char(p_ended_opt_id));
1766: fnd_message.set_token('PER_ENR_RSLT_ID',to_char(l_prtt_enrt_rslt_id));
1767: fnd_message.set_token('LE_DATE', p_life_event_date);
1768: fnd_message.raise_error;
1769: --
1770: else
1771: --
1772: --No Enrollment open/ended were found. Invalid data entered. Raise error
1770: else
1771: --
1772: --No Enrollment open/ended were found. Invalid data entered. Raise error
1773: --
1774: fnd_message.set_name('BEN','BEN_94659_NO_PLN_FOR_DE_ENRL');
1775: fnd_message.set_token('PACKAGE',l_proc);
1776: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1777: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1778: fnd_message.set_token('PL_ID', to_char(p_ended_pl_id));
1771: --
1772: --No Enrollment open/ended were found. Invalid data entered. Raise error
1773: --
1774: fnd_message.set_name('BEN','BEN_94659_NO_PLN_FOR_DE_ENRL');
1775: fnd_message.set_token('PACKAGE',l_proc);
1776: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1777: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1778: fnd_message.set_token('PL_ID', to_char(p_ended_pl_id));
1779: fnd_message.set_token('OPT_ID',to_char(p_ended_opt_id));
1772: --No Enrollment open/ended were found. Invalid data entered. Raise error
1773: --
1774: fnd_message.set_name('BEN','BEN_94659_NO_PLN_FOR_DE_ENRL');
1775: fnd_message.set_token('PACKAGE',l_proc);
1776: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1777: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1778: fnd_message.set_token('PL_ID', to_char(p_ended_pl_id));
1779: fnd_message.set_token('OPT_ID',to_char(p_ended_opt_id));
1780: fnd_message.set_token('LE_DATE', p_life_event_date);
1773: --
1774: fnd_message.set_name('BEN','BEN_94659_NO_PLN_FOR_DE_ENRL');
1775: fnd_message.set_token('PACKAGE',l_proc);
1776: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1777: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1778: fnd_message.set_token('PL_ID', to_char(p_ended_pl_id));
1779: fnd_message.set_token('OPT_ID',to_char(p_ended_opt_id));
1780: fnd_message.set_token('LE_DATE', p_life_event_date);
1781: fnd_message.raise_error;
1774: fnd_message.set_name('BEN','BEN_94659_NO_PLN_FOR_DE_ENRL');
1775: fnd_message.set_token('PACKAGE',l_proc);
1776: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1777: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1778: fnd_message.set_token('PL_ID', to_char(p_ended_pl_id));
1779: fnd_message.set_token('OPT_ID',to_char(p_ended_opt_id));
1780: fnd_message.set_token('LE_DATE', p_life_event_date);
1781: fnd_message.raise_error;
1782: --
1775: fnd_message.set_token('PACKAGE',l_proc);
1776: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1777: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1778: fnd_message.set_token('PL_ID', to_char(p_ended_pl_id));
1779: fnd_message.set_token('OPT_ID',to_char(p_ended_opt_id));
1780: fnd_message.set_token('LE_DATE', p_life_event_date);
1781: fnd_message.raise_error;
1782: --
1783: end if;
1776: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1777: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1778: fnd_message.set_token('PL_ID', to_char(p_ended_pl_id));
1779: fnd_message.set_token('OPT_ID',to_char(p_ended_opt_id));
1780: fnd_message.set_token('LE_DATE', p_life_event_date);
1781: fnd_message.raise_error;
1782: --
1783: end if;
1784: --
1777: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
1778: fnd_message.set_token('PL_ID', to_char(p_ended_pl_id));
1779: fnd_message.set_token('OPT_ID',to_char(p_ended_opt_id));
1780: fnd_message.set_token('LE_DATE', p_life_event_date);
1781: fnd_message.raise_error;
1782: --
1783: end if;
1784: --
1785: end if;
1877: --
1878: if g_debug then
1879: hr_utility.set_location('BEN_94534_PIL_NOT_FOUND'|| to_char(p_person_id),54);
1880: end if;
1881: fnd_message.set_name('BEN','BEN_94534_PIL_NOT_FOUND');
1882: fnd_message.set_token('PROC',l_proc);
1883: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1884: fnd_message.set_token('LER_ID',to_char(p_ler_id));
1885: fnd_message.set_token('LE_DATE', p_life_event_date);
1878: if g_debug then
1879: hr_utility.set_location('BEN_94534_PIL_NOT_FOUND'|| to_char(p_person_id),54);
1880: end if;
1881: fnd_message.set_name('BEN','BEN_94534_PIL_NOT_FOUND');
1882: fnd_message.set_token('PROC',l_proc);
1883: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1884: fnd_message.set_token('LER_ID',to_char(p_ler_id));
1885: fnd_message.set_token('LE_DATE', p_life_event_date);
1886: fnd_message.raise_error;
1879: hr_utility.set_location('BEN_94534_PIL_NOT_FOUND'|| to_char(p_person_id),54);
1880: end if;
1881: fnd_message.set_name('BEN','BEN_94534_PIL_NOT_FOUND');
1882: fnd_message.set_token('PROC',l_proc);
1883: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1884: fnd_message.set_token('LER_ID',to_char(p_ler_id));
1885: fnd_message.set_token('LE_DATE', p_life_event_date);
1886: fnd_message.raise_error;
1887: --
1880: end if;
1881: fnd_message.set_name('BEN','BEN_94534_PIL_NOT_FOUND');
1882: fnd_message.set_token('PROC',l_proc);
1883: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1884: fnd_message.set_token('LER_ID',to_char(p_ler_id));
1885: fnd_message.set_token('LE_DATE', p_life_event_date);
1886: fnd_message.raise_error;
1887: --
1888: END IF;
1881: fnd_message.set_name('BEN','BEN_94534_PIL_NOT_FOUND');
1882: fnd_message.set_token('PROC',l_proc);
1883: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1884: fnd_message.set_token('LER_ID',to_char(p_ler_id));
1885: fnd_message.set_token('LE_DATE', p_life_event_date);
1886: fnd_message.raise_error;
1887: --
1888: END IF;
1889: --
1882: fnd_message.set_token('PROC',l_proc);
1883: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
1884: fnd_message.set_token('LER_ID',to_char(p_ler_id));
1885: fnd_message.set_token('LE_DATE', p_life_event_date);
1886: fnd_message.raise_error;
1887: --
1888: END IF;
1889: --
1890: CLOSE c_pil;
2092: --
2093: if g_debug then
2094: hr_utility.set_location('BEN_94536_RECORD_TYPE_ERROR'|| to_char(p_person_id),54);
2095: end if;
2096: fnd_message.set_name('BEN','BEN_94536_RECORD_TYPE_ERROR');
2097: fnd_message.set_token('PROC',l_proc);
2098: fnd_message.set_token('PERSON_ID',p_record_typ_cd);
2099: fnd_message.raise_error;
2100: --
2093: if g_debug then
2094: hr_utility.set_location('BEN_94536_RECORD_TYPE_ERROR'|| to_char(p_person_id),54);
2095: end if;
2096: fnd_message.set_name('BEN','BEN_94536_RECORD_TYPE_ERROR');
2097: fnd_message.set_token('PROC',l_proc);
2098: fnd_message.set_token('PERSON_ID',p_record_typ_cd);
2099: fnd_message.raise_error;
2100: --
2101: END IF;
2094: hr_utility.set_location('BEN_94536_RECORD_TYPE_ERROR'|| to_char(p_person_id),54);
2095: end if;
2096: fnd_message.set_name('BEN','BEN_94536_RECORD_TYPE_ERROR');
2097: fnd_message.set_token('PROC',l_proc);
2098: fnd_message.set_token('PERSON_ID',p_record_typ_cd);
2099: fnd_message.raise_error;
2100: --
2101: END IF;
2102: --
2095: end if;
2096: fnd_message.set_name('BEN','BEN_94536_RECORD_TYPE_ERROR');
2097: fnd_message.set_token('PROC',l_proc);
2098: fnd_message.set_token('PERSON_ID',p_record_typ_cd);
2099: fnd_message.raise_error;
2100: --
2101: END IF;
2102: --
2103: exception when others then
2427: --Throw Error invalid record type
2428: if g_debug then
2429: hr_utility.set_location('BEN_94536_RECORD_TYPE_ERROR'|| to_char(p_person_id),54);
2430: end if;
2431: fnd_message.set_name('BEN','BEN_94536_RECORD_TYPE_ERROR');
2432: fnd_message.set_token('PROC',l_proc);
2433: fnd_message.set_token('PERSON_ID',l_record_typ_cd);
2434: fnd_message.raise_error;
2435: --
2428: if g_debug then
2429: hr_utility.set_location('BEN_94536_RECORD_TYPE_ERROR'|| to_char(p_person_id),54);
2430: end if;
2431: fnd_message.set_name('BEN','BEN_94536_RECORD_TYPE_ERROR');
2432: fnd_message.set_token('PROC',l_proc);
2433: fnd_message.set_token('PERSON_ID',l_record_typ_cd);
2434: fnd_message.raise_error;
2435: --
2436: END IF;
2429: hr_utility.set_location('BEN_94536_RECORD_TYPE_ERROR'|| to_char(p_person_id),54);
2430: end if;
2431: fnd_message.set_name('BEN','BEN_94536_RECORD_TYPE_ERROR');
2432: fnd_message.set_token('PROC',l_proc);
2433: fnd_message.set_token('PERSON_ID',l_record_typ_cd);
2434: fnd_message.raise_error;
2435: --
2436: END IF;
2437: --
2430: end if;
2431: fnd_message.set_name('BEN','BEN_94536_RECORD_TYPE_ERROR');
2432: fnd_message.set_token('PROC',l_proc);
2433: fnd_message.set_token('PERSON_ID',l_record_typ_cd);
2434: fnd_message.raise_error;
2435: --
2436: END IF;
2437: --
2438: END IF;
2439: ELSE
2440: if g_debug then
2441: hr_utility.set_location('BEN_94534_PIL_NOT_FOUND'|| to_char(p_person_id),54);
2442: end if;
2443: fnd_message.set_name('BEN','BEN_94534_PIL_NOT_FOUND');
2444: fnd_message.set_token('PROC',l_proc);
2445: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2446: fnd_message.set_token('LER_ID',to_char(p_ler_id));
2447: fnd_message.set_token('LE_DATE', p_life_event_date);
2440: if g_debug then
2441: hr_utility.set_location('BEN_94534_PIL_NOT_FOUND'|| to_char(p_person_id),54);
2442: end if;
2443: fnd_message.set_name('BEN','BEN_94534_PIL_NOT_FOUND');
2444: fnd_message.set_token('PROC',l_proc);
2445: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2446: fnd_message.set_token('LER_ID',to_char(p_ler_id));
2447: fnd_message.set_token('LE_DATE', p_life_event_date);
2448: fnd_message.raise_error;
2441: hr_utility.set_location('BEN_94534_PIL_NOT_FOUND'|| to_char(p_person_id),54);
2442: end if;
2443: fnd_message.set_name('BEN','BEN_94534_PIL_NOT_FOUND');
2444: fnd_message.set_token('PROC',l_proc);
2445: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2446: fnd_message.set_token('LER_ID',to_char(p_ler_id));
2447: fnd_message.set_token('LE_DATE', p_life_event_date);
2448: fnd_message.raise_error;
2449: --
2442: end if;
2443: fnd_message.set_name('BEN','BEN_94534_PIL_NOT_FOUND');
2444: fnd_message.set_token('PROC',l_proc);
2445: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2446: fnd_message.set_token('LER_ID',to_char(p_ler_id));
2447: fnd_message.set_token('LE_DATE', p_life_event_date);
2448: fnd_message.raise_error;
2449: --
2450: END IF;
2443: fnd_message.set_name('BEN','BEN_94534_PIL_NOT_FOUND');
2444: fnd_message.set_token('PROC',l_proc);
2445: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2446: fnd_message.set_token('LER_ID',to_char(p_ler_id));
2447: fnd_message.set_token('LE_DATE', p_life_event_date);
2448: fnd_message.raise_error;
2449: --
2450: END IF;
2451: --
2444: fnd_message.set_token('PROC',l_proc);
2445: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2446: fnd_message.set_token('LER_ID',to_char(p_ler_id));
2447: fnd_message.set_token('LE_DATE', p_life_event_date);
2448: fnd_message.raise_error;
2449: --
2450: END IF;
2451: --
2452: exception when others then
2625: );
2626: --
2627: IF l_prtt_enrt_rslt_id IS NULL THEN
2628: --
2629: fnd_message.set_name('BEN','BEN_94614_NO_PEN_FOR_BNF');
2630: fnd_message.set_token('PROC',l_proc);
2631: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2632: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
2633: fnd_message.set_token('PL_ID',to_char(p_pl_id));
2626: --
2627: IF l_prtt_enrt_rslt_id IS NULL THEN
2628: --
2629: fnd_message.set_name('BEN','BEN_94614_NO_PEN_FOR_BNF');
2630: fnd_message.set_token('PROC',l_proc);
2631: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2632: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
2633: fnd_message.set_token('PL_ID',to_char(p_pl_id));
2634: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
2627: IF l_prtt_enrt_rslt_id IS NULL THEN
2628: --
2629: fnd_message.set_name('BEN','BEN_94614_NO_PEN_FOR_BNF');
2630: fnd_message.set_token('PROC',l_proc);
2631: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2632: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
2633: fnd_message.set_token('PL_ID',to_char(p_pl_id));
2634: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
2635: fnd_message.set_token('PER_IN_LER_ID',to_char(l_pil.per_in_ler_id));
2628: --
2629: fnd_message.set_name('BEN','BEN_94614_NO_PEN_FOR_BNF');
2630: fnd_message.set_token('PROC',l_proc);
2631: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2632: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
2633: fnd_message.set_token('PL_ID',to_char(p_pl_id));
2634: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
2635: fnd_message.set_token('PER_IN_LER_ID',to_char(l_pil.per_in_ler_id));
2636: fnd_message.set_token('LE_DATE',p_life_event_date);
2629: fnd_message.set_name('BEN','BEN_94614_NO_PEN_FOR_BNF');
2630: fnd_message.set_token('PROC',l_proc);
2631: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2632: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
2633: fnd_message.set_token('PL_ID',to_char(p_pl_id));
2634: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
2635: fnd_message.set_token('PER_IN_LER_ID',to_char(l_pil.per_in_ler_id));
2636: fnd_message.set_token('LE_DATE',p_life_event_date);
2637: fnd_message.raise_error;
2630: fnd_message.set_token('PROC',l_proc);
2631: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2632: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
2633: fnd_message.set_token('PL_ID',to_char(p_pl_id));
2634: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
2635: fnd_message.set_token('PER_IN_LER_ID',to_char(l_pil.per_in_ler_id));
2636: fnd_message.set_token('LE_DATE',p_life_event_date);
2637: fnd_message.raise_error;
2638: --
2631: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2632: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
2633: fnd_message.set_token('PL_ID',to_char(p_pl_id));
2634: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
2635: fnd_message.set_token('PER_IN_LER_ID',to_char(l_pil.per_in_ler_id));
2636: fnd_message.set_token('LE_DATE',p_life_event_date);
2637: fnd_message.raise_error;
2638: --
2639: END IF;
2632: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
2633: fnd_message.set_token('PL_ID',to_char(p_pl_id));
2634: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
2635: fnd_message.set_token('PER_IN_LER_ID',to_char(l_pil.per_in_ler_id));
2636: fnd_message.set_token('LE_DATE',p_life_event_date);
2637: fnd_message.raise_error;
2638: --
2639: END IF;
2640: --
2633: fnd_message.set_token('PL_ID',to_char(p_pl_id));
2634: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
2635: fnd_message.set_token('PER_IN_LER_ID',to_char(l_pil.per_in_ler_id));
2636: fnd_message.set_token('LE_DATE',p_life_event_date);
2637: fnd_message.raise_error;
2638: --
2639: END IF;
2640: --
2641: open get_rslt_ovn_c;
2647: --
2648: if g_debug then
2649: hr_utility.set_location('BEN_94534_PIL_NOT_FOUND'|| to_char(p_person_id),54);
2650: end if;
2651: fnd_message.set_name('BEN','BEN_94534_PIL_NOT_FOUND');
2652: fnd_message.set_token('PROC',l_proc);
2653: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2654: fnd_message.set_token('LER_ID',to_char(p_ler_id));
2655: fnd_message.set_token('LE_DATE', p_life_event_date);
2648: if g_debug then
2649: hr_utility.set_location('BEN_94534_PIL_NOT_FOUND'|| to_char(p_person_id),54);
2650: end if;
2651: fnd_message.set_name('BEN','BEN_94534_PIL_NOT_FOUND');
2652: fnd_message.set_token('PROC',l_proc);
2653: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2654: fnd_message.set_token('LER_ID',to_char(p_ler_id));
2655: fnd_message.set_token('LE_DATE', p_life_event_date);
2656: fnd_message.raise_error;
2649: hr_utility.set_location('BEN_94534_PIL_NOT_FOUND'|| to_char(p_person_id),54);
2650: end if;
2651: fnd_message.set_name('BEN','BEN_94534_PIL_NOT_FOUND');
2652: fnd_message.set_token('PROC',l_proc);
2653: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2654: fnd_message.set_token('LER_ID',to_char(p_ler_id));
2655: fnd_message.set_token('LE_DATE', p_life_event_date);
2656: fnd_message.raise_error;
2657: --
2650: end if;
2651: fnd_message.set_name('BEN','BEN_94534_PIL_NOT_FOUND');
2652: fnd_message.set_token('PROC',l_proc);
2653: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2654: fnd_message.set_token('LER_ID',to_char(p_ler_id));
2655: fnd_message.set_token('LE_DATE', p_life_event_date);
2656: fnd_message.raise_error;
2657: --
2658: END IF ;
2651: fnd_message.set_name('BEN','BEN_94534_PIL_NOT_FOUND');
2652: fnd_message.set_token('PROC',l_proc);
2653: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2654: fnd_message.set_token('LER_ID',to_char(p_ler_id));
2655: fnd_message.set_token('LE_DATE', p_life_event_date);
2656: fnd_message.raise_error;
2657: --
2658: END IF ;
2659: --
2652: fnd_message.set_token('PROC',l_proc);
2653: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2654: fnd_message.set_token('LER_ID',to_char(p_ler_id));
2655: fnd_message.set_token('LE_DATE', p_life_event_date);
2656: fnd_message.raise_error;
2657: --
2658: END IF ;
2659: --
2660: get_pbn
2765: --Bad case why are we here ???
2766: fnd_file.put_line
2767: (which => fnd_file.log,
2768: buff => 'Nothing happended... something wrong...');
2769: fnd_message.set_name('BEN','BEN_94615_BNF_WRONG_IF');
2770: fnd_message.set_token('PROC',l_proc);
2771: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2772: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
2773: fnd_message.set_token('PL_ID',to_char(p_pl_id));
2766: fnd_file.put_line
2767: (which => fnd_file.log,
2768: buff => 'Nothing happended... something wrong...');
2769: fnd_message.set_name('BEN','BEN_94615_BNF_WRONG_IF');
2770: fnd_message.set_token('PROC',l_proc);
2771: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2772: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
2773: fnd_message.set_token('PL_ID',to_char(p_pl_id));
2774: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
2767: (which => fnd_file.log,
2768: buff => 'Nothing happended... something wrong...');
2769: fnd_message.set_name('BEN','BEN_94615_BNF_WRONG_IF');
2770: fnd_message.set_token('PROC',l_proc);
2771: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2772: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
2773: fnd_message.set_token('PL_ID',to_char(p_pl_id));
2774: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
2775: fnd_message.set_token('PER_IN_LER_ID',to_char(l_pil.per_in_ler_id));
2768: buff => 'Nothing happended... something wrong...');
2769: fnd_message.set_name('BEN','BEN_94615_BNF_WRONG_IF');
2770: fnd_message.set_token('PROC',l_proc);
2771: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2772: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
2773: fnd_message.set_token('PL_ID',to_char(p_pl_id));
2774: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
2775: fnd_message.set_token('PER_IN_LER_ID',to_char(l_pil.per_in_ler_id));
2776: fnd_message.set_token('LE_DATE',p_life_event_date);
2769: fnd_message.set_name('BEN','BEN_94615_BNF_WRONG_IF');
2770: fnd_message.set_token('PROC',l_proc);
2771: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2772: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
2773: fnd_message.set_token('PL_ID',to_char(p_pl_id));
2774: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
2775: fnd_message.set_token('PER_IN_LER_ID',to_char(l_pil.per_in_ler_id));
2776: fnd_message.set_token('LE_DATE',p_life_event_date);
2777: fnd_message.raise_error;
2770: fnd_message.set_token('PROC',l_proc);
2771: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2772: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
2773: fnd_message.set_token('PL_ID',to_char(p_pl_id));
2774: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
2775: fnd_message.set_token('PER_IN_LER_ID',to_char(l_pil.per_in_ler_id));
2776: fnd_message.set_token('LE_DATE',p_life_event_date);
2777: fnd_message.raise_error;
2778: --
2771: fnd_message.set_token('PERSON_ID',to_char(p_person_id));
2772: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
2773: fnd_message.set_token('PL_ID',to_char(p_pl_id));
2774: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
2775: fnd_message.set_token('PER_IN_LER_ID',to_char(l_pil.per_in_ler_id));
2776: fnd_message.set_token('LE_DATE',p_life_event_date);
2777: fnd_message.raise_error;
2778: --
2779: END IF;
2772: fnd_message.set_token('PGM_ID',to_char(p_pgm_id));
2773: fnd_message.set_token('PL_ID',to_char(p_pl_id));
2774: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
2775: fnd_message.set_token('PER_IN_LER_ID',to_char(l_pil.per_in_ler_id));
2776: fnd_message.set_token('LE_DATE',p_life_event_date);
2777: fnd_message.raise_error;
2778: --
2779: END IF;
2780: --
2773: fnd_message.set_token('PL_ID',to_char(p_pl_id));
2774: fnd_message.set_token('OPT_ID',to_char(p_opt_id));
2775: fnd_message.set_token('PER_IN_LER_ID',to_char(l_pil.per_in_ler_id));
2776: fnd_message.set_token('LE_DATE',p_life_event_date);
2777: fnd_message.raise_error;
2778: --
2779: END IF;
2780: --
2781: -- IF l_prtt_enrt_rslt_id IS NOT NULL THEN