723: l_proc varchar2(72) := g_package||'chk_mapping_table_pk_id';
724: l_api_updating boolean;
725: l_dummy varchar2(1);
726: --
727: cursor c_per_spinal_points is
728: select null
729: from per_spinal_points spt
730: where spt.spinal_point_id = p_mapping_table_pk_id
731: and spt.business_group_id = p_business_group_id;
725: l_dummy varchar2(1);
726: --
727: cursor c_per_spinal_points is
728: select null
729: from per_spinal_points spt
730: where spt.spinal_point_id = p_mapping_table_pk_id
731: and spt.business_group_id = p_business_group_id;
732: --
733: Begin
747: --
748: -- check if value of Mapping Table Primary Key Id is valid.
749: --
750:
751: if p_mapping_table_name = 'PER_SPINAL_POINTS' then
752: open c_per_spinal_points;
753: --
754: -- fetch value from cursor if it returns a record then the
755: -- mapping_table_pk_id is valid otherwise its invalid
748: -- check if value of Mapping Table Primary Key Id is valid.
749: --
750:
751: if p_mapping_table_name = 'PER_SPINAL_POINTS' then
752: open c_per_spinal_points;
753: --
754: -- fetch value from cursor if it returns a record then the
755: -- mapping_table_pk_id is valid otherwise its invalid
756: --
753: --
754: -- fetch value from cursor if it returns a record then the
755: -- mapping_table_pk_id is valid otherwise its invalid
756: --
757: fetch c_per_spinal_points into l_dummy;
758: if c_per_spinal_points%notfound then
759: --
760: close c_per_spinal_points;
761: --
754: -- fetch value from cursor if it returns a record then the
755: -- mapping_table_pk_id is valid otherwise its invalid
756: --
757: fetch c_per_spinal_points into l_dummy;
758: if c_per_spinal_points%notfound then
759: --
760: close c_per_spinal_points;
761: --
762: -- raise error
756: --
757: fetch c_per_spinal_points into l_dummy;
758: if c_per_spinal_points%notfound then
759: --
760: close c_per_spinal_points;
761: --
762: -- raise error
763: --
764: hr_utility.set_message(805,'BEN_93322_INV_SPINAL_POINT_ID');
765: hr_utility.raise_error;
766: --
767: end if;
768: --
769: close c_per_spinal_points;
770: --
771: end if;
772: end if;
773: --