1: PACKAGE BODY OTA_OFF_BUS as
2: /* $Header: otoffrhi.pkb 120.1.12000000.2 2007/02/06 15:25:23 vkkolla noship $ */
3: --
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
4: -- ----------------------------------------------------------------------------
5: -- | Private Global Definitions |
6: -- ----------------------------------------------------------------------------
7: --
8: g_package varchar2(33) := ' ota_off_bus.'; -- Global package name
9: --
10: -- The following two global variables are only to be
11: -- used by the return_legislation_code function.
12: --
118: ,p_argument => 'offering_id'
119: ,p_argument_value => p_offering_id
120: );
121: --
122: if ( nvl(ota_off_bus.g_offering_id, hr_api.g_number)
123: = p_offering_id) then
124: --
125: -- The legislation code has already been found with a previous
126: -- call to this function. Just return the value in the global
125: -- The legislation code has already been found with a previous
126: -- call to this function. Just return the value in the global
127: -- variable.
128: --
129: l_legislation_code := ota_off_bus.g_legislation_code;
130: hr_utility.set_location(l_proc, 20);
131: else
132: --
133: -- The ID is different to the last call to this function
149: -- Set the global variables so the values are
150: -- available for the next call to this function.
151: --
152: close csr_leg_code;
153: ota_off_bus.g_offering_id := p_offering_id;
154: ota_off_bus.g_legislation_code := l_legislation_code;
155: end if;
156: hr_utility.set_location(' Leaving:'|| l_proc, 40);
157: return l_legislation_code;
150: -- available for the next call to this function.
151: --
152: close csr_leg_code;
153: ota_off_bus.g_offering_id := p_offering_id;
154: ota_off_bus.g_legislation_code := l_legislation_code;
155: end if;
156: hr_utility.set_location(' Leaving:'|| l_proc, 40);
157: return l_legislation_code;
158: end return_legislation_code;
1253: p_rec.ACTIVITY_VERSION_ID,
1254: p_rec.OFFERING_ID
1255: );
1256:
1257: ota_off_bus.chk_competency_update_level (p_offering_id => p_rec.offering_id
1258: ,p_object_version_number => p_rec.object_version_number
1259: ,p_competency_update_level => p_rec.competency_update_level
1260: ,p_effective_date => trunc(sysdate));
1261:
1367: fnd_message.raise_error;
1368: END IF;
1369:
1370:
1371: ota_off_bus.chk_df(p_rec);
1372:
1373: --
1374: hr_utility.set_location(' Leaving:'||l_proc, 10);
1375: End insert_validate;
1426: fnd_message.raise_error;
1427: END IF;
1428:
1429:
1430: ota_off_bus.chk_df(p_rec);
1431:
1432: --
1433: hr_utility.set_location(' Leaving:'||l_proc, 10);
1434: End update_validate;
1549: hr_utility.set_location(' Leaving:'|| v_proc, 10);
1550: --
1551: End check_if_comp_exists;
1552: --
1553: end ota_off_bus;