DBA Data[Home] [Help]

APPS.PQH_WPR_BUS dependencies on PQH_WPR_SHD

Line 46: l_api_updating := pqh_wpr_shd.api_updating

42: Begin
43: --
44: hr_utility.set_location('Entering:'||l_proc, 5);
45: --
46: l_api_updating := pqh_wpr_shd.api_updating
47: (p_worksheet_period_id => p_worksheet_period_id,
48: p_object_version_number => p_object_version_number);
49: --
50: if (l_api_updating

Line 52: <> pqh_wpr_shd.g_old_rec.worksheet_period_id) then

48: p_object_version_number => p_object_version_number);
49: --
50: if (l_api_updating
51: and nvl(p_worksheet_period_id,hr_api.g_number)
52: <> pqh_wpr_shd.g_old_rec.worksheet_period_id) then
53: --
54: -- raise error as PK has changed
55: --
56: pqh_wpr_shd.constraint_error('PQH_WORKSHEET_PERIODS_PK');

Line 56: pqh_wpr_shd.constraint_error('PQH_WORKSHEET_PERIODS_PK');

52: <> pqh_wpr_shd.g_old_rec.worksheet_period_id) then
53: --
54: -- raise error as PK has changed
55: --
56: pqh_wpr_shd.constraint_error('PQH_WORKSHEET_PERIODS_PK');
57: --
58: elsif not l_api_updating then
59: --
60: -- check if PK is null

Line 66: pqh_wpr_shd.constraint_error('PQH_WORKSHEET_PERIODS_PK');

62: if p_worksheet_period_id is not null then
63: --
64: -- raise error as PK is not null
65: --
66: pqh_wpr_shd.constraint_error('PQH_WORKSHEET_PERIODS_PK');
67: --
68: end if;
69: --
70: end if;

Line 118: l_api_updating := pqh_wpr_shd.api_updating

114: Begin
115: --
116: hr_utility.set_location('Entering:'||l_proc,5);
117: --
118: l_api_updating := pqh_wpr_shd.api_updating
119: (p_worksheet_period_id => p_worksheet_period_id,
120: p_object_version_number => p_object_version_number);
121: --
122: if (l_api_updating

Line 124: <> nvl(pqh_wpr_shd.g_old_rec.end_time_period_id,hr_api.g_number)

120: p_object_version_number => p_object_version_number);
121: --
122: if (l_api_updating
123: and nvl(p_end_time_period_id,hr_api.g_number)
124: <> nvl(pqh_wpr_shd.g_old_rec.end_time_period_id,hr_api.g_number)
125: or not l_api_updating) then
126: --
127: -- check if end_time_period_id value exists in per_time_periods table
128: --

Line 139: pqh_wpr_shd.constraint_error('PQH_WORKSHEET_PERIODS_FK3');

135: --
136: -- raise error as FK does not relate to PK in per_time_periods
137: -- table.
138: --
139: pqh_wpr_shd.constraint_error('PQH_WORKSHEET_PERIODS_FK3');
140: --
141: end if;
142: --
143: close c1;

Line 193: l_api_updating := pqh_wpr_shd.api_updating

189: Begin
190: --
191: hr_utility.set_location('Entering:'||l_proc,5);
192: --
193: l_api_updating := pqh_wpr_shd.api_updating
194: (p_worksheet_period_id => p_worksheet_period_id,
195: p_object_version_number => p_object_version_number);
196: --
197: if (l_api_updating

Line 199: <> nvl(pqh_wpr_shd.g_old_rec.start_time_period_id,hr_api.g_number)

195: p_object_version_number => p_object_version_number);
196: --
197: if (l_api_updating
198: and nvl(p_start_time_period_id,hr_api.g_number)
199: <> nvl(pqh_wpr_shd.g_old_rec.start_time_period_id,hr_api.g_number)
200: or not l_api_updating) then
201: --
202: -- check if start_time_period_id value exists in per_time_periods table
203: --

Line 214: pqh_wpr_shd.constraint_error('PQH_WORKSHEET_PERIODS_FK2');

210: --
211: -- raise error as FK does not relate to PK in per_time_periods
212: -- table.
213: --
214: pqh_wpr_shd.constraint_error('PQH_WORKSHEET_PERIODS_FK2');
215: --
216: end if;
217: --
218: close c1;

Line 268: l_api_updating := pqh_wpr_shd.api_updating

264: Begin
265: --
266: hr_utility.set_location('Entering:'||l_proc,5);
267: --
268: l_api_updating := pqh_wpr_shd.api_updating
269: (p_worksheet_period_id => p_worksheet_period_id,
270: p_object_version_number => p_object_version_number);
271: --
272: if (l_api_updating

Line 274: <> nvl(pqh_wpr_shd.g_old_rec.worksheet_detail_id,hr_api.g_number)

270: p_object_version_number => p_object_version_number);
271: --
272: if (l_api_updating
273: and nvl(p_worksheet_detail_id,hr_api.g_number)
274: <> nvl(pqh_wpr_shd.g_old_rec.worksheet_detail_id,hr_api.g_number)
275: or not l_api_updating) then
276: --
277: -- check if worksheet_detail_id value exists in pqh_worksheet_details table
278: --

Line 289: pqh_wpr_shd.constraint_error('PQH_WORKSHEET_PERIODS_FK1');

285: --
286: -- raise error as FK does not relate to PK in pqh_worksheet_details
287: -- table.
288: --
289: pqh_wpr_shd.constraint_error('PQH_WORKSHEET_PERIODS_FK1');
290: --
291: end if;
292: --
293: close c1;

Line 340: l_api_updating := pqh_wpr_shd.api_updating

336: Begin
337: --
338: hr_utility.set_location('Entering:'||l_proc, 5);
339: --
340: l_api_updating := pqh_wpr_shd.api_updating
341: (p_worksheet_period_id => p_worksheet_period_id,
342: p_object_version_number => p_object_version_number);
343: --
344: if (l_api_updating

Line 346: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit3_value_type_cd,hr_api.g_varchar2)

342: p_object_version_number => p_object_version_number);
343: --
344: if (l_api_updating
345: and p_budget_unit3_value_type_cd
346: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit3_value_type_cd,hr_api.g_varchar2)
347: or not l_api_updating)
348: and p_budget_unit3_value_type_cd is not null then
349: --
350: -- check if value of lookup falls within lookup type.

Line 408: l_api_updating := pqh_wpr_shd.api_updating

404: Begin
405: --
406: hr_utility.set_location('Entering:'||l_proc, 5);
407: --
408: l_api_updating := pqh_wpr_shd.api_updating
409: (p_worksheet_period_id => p_worksheet_period_id,
410: p_object_version_number => p_object_version_number);
411: --
412: if (l_api_updating

Line 414: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit2_value_type_cd,hr_api.g_varchar2)

410: p_object_version_number => p_object_version_number);
411: --
412: if (l_api_updating
413: and p_budget_unit2_value_type_cd
414: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit2_value_type_cd,hr_api.g_varchar2)
415: or not l_api_updating)
416: and p_budget_unit2_value_type_cd is not null then
417: --
418: -- check if value of lookup falls within lookup type.

Line 476: l_api_updating := pqh_wpr_shd.api_updating

472: Begin
473: --
474: hr_utility.set_location('Entering:'||l_proc, 5);
475: --
476: l_api_updating := pqh_wpr_shd.api_updating
477: (p_worksheet_period_id => p_worksheet_period_id,
478: p_object_version_number => p_object_version_number);
479: --
480: if (l_api_updating

Line 482: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit1_value_type_cd,hr_api.g_varchar2)

478: p_object_version_number => p_object_version_number);
479: --
480: if (l_api_updating
481: and p_budget_unit1_value_type_cd
482: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit1_value_type_cd,hr_api.g_varchar2)
483: or not l_api_updating)
484: and p_budget_unit1_value_type_cd is not null then
485: --
486: -- check if value of lookup falls within lookup type.

Line 527: l_api_updating := pqh_wpr_shd.api_updating

523: Begin
524: --
525: hr_utility.set_location('Entering:'||l_proc,5);
526: --
527: l_api_updating := pqh_wpr_shd.api_updating
528: (p_worksheet_period_id => p_worksheet_period_id,
529: p_object_version_number => p_object_version_number);
530: --
531: if (l_api_updating

Line 533: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit1_percent,hr_api.g_number)

529: p_object_version_number => p_object_version_number);
530: --
531: if (l_api_updating
532: and nvl(p_budget_unit1_percent,hr_api.g_number)
533: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit1_percent,hr_api.g_number)
534: or not l_api_updating) and
535: p_budget_unit1_percent is not null then
536: --
537: -- Raise error if the value is negative

Line 548: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit1_value,hr_api.g_number)

544: --
545: --
546: if (l_api_updating
547: and nvl(p_budget_unit1_value,hr_api.g_number)
548: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit1_value,hr_api.g_number)
549: or not l_api_updating) and
550: p_budget_unit1_value is not null then
551: --
552: -- Raise error if the value is negative

Line 564: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit1_available,hr_api.g_number)

560: /**
561: --
562: if (l_api_updating
563: and nvl(p_budget_unit1_available,hr_api.g_number)
564: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit1_available,hr_api.g_number)
565: or not l_api_updating) and
566: p_budget_unit1_available is not null then
567: --
568: -- Raise error if the value is negative

Line 581: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit2_percent,hr_api.g_number)

577: --
578: --
579: if (l_api_updating
580: and nvl(p_budget_unit2_percent,hr_api.g_number)
581: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit2_percent,hr_api.g_number)
582: or not l_api_updating) and
583: p_budget_unit2_percent is not null then
584: --
585: -- Raise error if the value is negative

Line 596: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit2_value,hr_api.g_number)

592: --
593: --
594: if (l_api_updating
595: and nvl(p_budget_unit2_value,hr_api.g_number)
596: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit2_value,hr_api.g_number)
597: or not l_api_updating) and
598: p_budget_unit2_value is not null then
599: --
600: -- Raise error if the value is negative

Line 612: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit2_available,hr_api.g_number)

608: --
609: /**
610: if (l_api_updating
611: and nvl(p_budget_unit2_available,hr_api.g_number)
612: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit2_available,hr_api.g_number)
613: or not l_api_updating) and
614: p_budget_unit2_available is not null then
615: --
616: -- Raise error if the value is negative

Line 628: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit3_percent,hr_api.g_number)

624: --
625: --
626: if (l_api_updating
627: and nvl(p_budget_unit3_percent,hr_api.g_number)
628: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit3_percent,hr_api.g_number)
629: or not l_api_updating) and
630: p_budget_unit3_percent is not null then
631: --
632: -- Raise error if the value is negative

Line 643: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit3_value,hr_api.g_number)

639: --
640: --
641: if (l_api_updating
642: and nvl(p_budget_unit3_value,hr_api.g_number)
643: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit3_value,hr_api.g_number)
644: or not l_api_updating) and
645: p_budget_unit3_value is not null then
646: --
647: -- Raise error if the value is negative

Line 659: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit3_available,hr_api.g_number)

655: --
656: /**
657: if (l_api_updating
658: and nvl(p_budget_unit3_available,hr_api.g_number)
659: <> nvl(pqh_wpr_shd.g_old_rec.budget_unit3_available,hr_api.g_number)
660: or not l_api_updating) and
661: p_budget_unit3_available is not null then
662: --
663: -- Raise error if the value is negative

Line 727: pqh_wpr_shd.constraint_error('PQH_WORKSHEET_PERIODS_FK2');

723: --
724: -- raise error as FK does not relate to PK in per_time_periods
725: -- table.
726: --
727: pqh_wpr_shd.constraint_error('PQH_WORKSHEET_PERIODS_FK2');
728: --
729: end if;
730: Close c1;
731: --

Line 741: pqh_wpr_shd.constraint_error('PQH_WORKSHEET_PERIODS_FK3');

737: --
738: -- raise error as FK does not relate to PK in per_time_periods
739: -- table.
740: --
741: pqh_wpr_shd.constraint_error('PQH_WORKSHEET_PERIODS_FK3');
742: --
743: end if;
744: Close c2;
745: --

Line 746: l_api_updating := pqh_wpr_shd.api_updating

742: --
743: end if;
744: Close c2;
745: --
746: l_api_updating := pqh_wpr_shd.api_updating
747: (p_worksheet_period_id => p_worksheet_period_id,
748: p_object_version_number => p_object_version_number);
749: --
750: if (l_api_updating

Line 752: nvl(pqh_wpr_shd.g_old_rec.start_time_period_id,hr_api.g_number)

748: p_object_version_number => p_object_version_number);
749: --
750: if (l_api_updating
751: and ( nvl(p_start_time_period_id,hr_api.g_number) <>
752: nvl(pqh_wpr_shd.g_old_rec.start_time_period_id,hr_api.g_number)
753: OR
754: nvl(p_end_time_period_id,hr_api.g_number) <>
755: nvl(pqh_wpr_shd.g_old_rec.end_time_period_id,hr_api.g_number)
756: )

Line 755: nvl(pqh_wpr_shd.g_old_rec.end_time_period_id,hr_api.g_number)

751: and ( nvl(p_start_time_period_id,hr_api.g_number) <>
752: nvl(pqh_wpr_shd.g_old_rec.start_time_period_id,hr_api.g_number)
753: OR
754: nvl(p_end_time_period_id,hr_api.g_number) <>
755: nvl(pqh_wpr_shd.g_old_rec.end_time_period_id,hr_api.g_number)
756: )
757: or not l_api_updating) then
758: --
759: If l_start_date > l_end_date then

Line 800: Procedure insert_validate(p_rec in pqh_wpr_shd.g_rec_type

796: --
797: -- ----------------------------------------------------------------------------
798: -- |---------------------------< insert_validate >----------------------------|
799: -- ----------------------------------------------------------------------------
800: Procedure insert_validate(p_rec in pqh_wpr_shd.g_rec_type
801: ,p_effective_date in date) is
802: --
803: l_proc varchar2(72) := g_package||'insert_validate';
804: --

Line 872: Procedure update_validate(p_rec in pqh_wpr_shd.g_rec_type

868: --
869: -- ----------------------------------------------------------------------------
870: -- |---------------------------< update_validate >----------------------------|
871: -- ----------------------------------------------------------------------------
872: Procedure update_validate(p_rec in pqh_wpr_shd.g_rec_type
873: ,p_effective_date in date) is
874: --
875: l_proc varchar2(72) := g_package||'update_validate';
876: --

Line 944: Procedure delete_validate(p_rec in pqh_wpr_shd.g_rec_type

940: --
941: -- ----------------------------------------------------------------------------
942: -- |---------------------------< delete_validate >----------------------------|
943: -- ----------------------------------------------------------------------------
944: Procedure delete_validate(p_rec in pqh_wpr_shd.g_rec_type
945: ,p_effective_date in date) is
946: --
947: l_proc varchar2(72) := g_package||'delete_validate';
948: --