DBA Data[Home] [Help]

APPS.OKC_TIME_PUB dependencies on OKC_API

Line 115: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

111: l_api_name CONSTANT VARCHAR2(30) := 'CREATE_TPA_RELTV';
112: l_return_status VARCHAR2(1);
113: l_talv_rec talv_rec_type := p_talv_rec;
114: BEGIN
115: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
116: p_init_msg_list,
117: '_PUB',
118: x_return_status);
119: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 119: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

115: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
116: p_init_msg_list,
117: '_PUB',
118: x_return_status);
119: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
120: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
121: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
122: raise OKC_API.G_EXCEPTION_ERROR;
123: END IF;

Line 120: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

116: p_init_msg_list,
117: '_PUB',
118: x_return_status);
119: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
120: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
121: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
122: raise OKC_API.G_EXCEPTION_ERROR;
123: END IF;
124: -- Call user hook for BEFORE

Line 121: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

117: '_PUB',
118: x_return_status);
119: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
120: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
121: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
122: raise OKC_API.G_EXCEPTION_ERROR;
123: END IF;
124: -- Call user hook for BEFORE
125: g_talv_rec := l_talv_rec;

Line 122: raise OKC_API.G_EXCEPTION_ERROR;

118: x_return_status);
119: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
120: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
121: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
122: raise OKC_API.G_EXCEPTION_ERROR;
123: END IF;
124: -- Call user hook for BEFORE
125: g_talv_rec := l_talv_rec;
126: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 127: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

123: END IF;
124: -- Call user hook for BEFORE
125: g_talv_rec := l_talv_rec;
126: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
127: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
128: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
129: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
130: raise OKC_API.G_EXCEPTION_ERROR;
131: END IF;

Line 128: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

124: -- Call user hook for BEFORE
125: g_talv_rec := l_talv_rec;
126: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
127: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
128: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
129: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
130: raise OKC_API.G_EXCEPTION_ERROR;
131: END IF;
132: l_talv_rec := migrate_talv(l_talv_rec, g_talv_rec);

Line 129: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

125: g_talv_rec := l_talv_rec;
126: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
127: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
128: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
129: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
130: raise OKC_API.G_EXCEPTION_ERROR;
131: END IF;
132: l_talv_rec := migrate_talv(l_talv_rec, g_talv_rec);
133: OKC_TIME_PVT.CREATE_TPA_RELTV(

Line 130: raise OKC_API.G_EXCEPTION_ERROR;

126: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
127: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
128: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
129: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
130: raise OKC_API.G_EXCEPTION_ERROR;
131: END IF;
132: l_talv_rec := migrate_talv(l_talv_rec, g_talv_rec);
133: OKC_TIME_PVT.CREATE_TPA_RELTV(
134: p_api_version,

Line 141: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

137: x_msg_count,
138: x_msg_data,
139: p_talv_rec,
140: x_talv_rec);
141: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
142: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
143: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
144: raise OKC_API.G_EXCEPTION_ERROR;
145: END IF;

Line 142: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

138: x_msg_data,
139: p_talv_rec,
140: x_talv_rec);
141: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
142: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
143: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
144: raise OKC_API.G_EXCEPTION_ERROR;
145: END IF;
146:

Line 143: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

139: p_talv_rec,
140: x_talv_rec);
141: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
142: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
143: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
144: raise OKC_API.G_EXCEPTION_ERROR;
145: END IF;
146:
147: -- Call user hook for AFTER

Line 144: raise OKC_API.G_EXCEPTION_ERROR;

140: x_talv_rec);
141: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
142: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
143: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
144: raise OKC_API.G_EXCEPTION_ERROR;
145: END IF;
146:
147: -- Call user hook for AFTER
148: g_talv_rec := x_talv_rec;

Line 150: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

146:
147: -- Call user hook for AFTER
148: g_talv_rec := x_talv_rec;
149: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
150: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
151: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
152: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
153: raise OKC_API.G_EXCEPTION_ERROR;
154: END IF;

Line 151: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

147: -- Call user hook for AFTER
148: g_talv_rec := x_talv_rec;
149: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
150: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
151: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
152: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
153: raise OKC_API.G_EXCEPTION_ERROR;
154: END IF;
155: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 152: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

148: g_talv_rec := x_talv_rec;
149: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
150: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
151: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
152: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
153: raise OKC_API.G_EXCEPTION_ERROR;
154: END IF;
155: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
156: EXCEPTION

Line 153: raise OKC_API.G_EXCEPTION_ERROR;

149: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
150: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
151: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
152: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
153: raise OKC_API.G_EXCEPTION_ERROR;
154: END IF;
155: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
156: EXCEPTION
157: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 155: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

151: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
152: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
153: raise OKC_API.G_EXCEPTION_ERROR;
154: END IF;
155: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
156: EXCEPTION
157: WHEN OKC_API.G_EXCEPTION_ERROR THEN
158: x_return_status := OKC_API.HANDLE_EXCEPTIONS
159: (l_api_name,

Line 157: WHEN OKC_API.G_EXCEPTION_ERROR THEN

153: raise OKC_API.G_EXCEPTION_ERROR;
154: END IF;
155: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
156: EXCEPTION
157: WHEN OKC_API.G_EXCEPTION_ERROR THEN
158: x_return_status := OKC_API.HANDLE_EXCEPTIONS
159: (l_api_name,
160: G_PKG_NAME,
161: 'OKC_API.G_RET_STS_ERROR',

Line 158: x_return_status := OKC_API.HANDLE_EXCEPTIONS

154: END IF;
155: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
156: EXCEPTION
157: WHEN OKC_API.G_EXCEPTION_ERROR THEN
158: x_return_status := OKC_API.HANDLE_EXCEPTIONS
159: (l_api_name,
160: G_PKG_NAME,
161: 'OKC_API.G_RET_STS_ERROR',
162: x_msg_count,

Line 161: 'OKC_API.G_RET_STS_ERROR',

157: WHEN OKC_API.G_EXCEPTION_ERROR THEN
158: x_return_status := OKC_API.HANDLE_EXCEPTIONS
159: (l_api_name,
160: G_PKG_NAME,
161: 'OKC_API.G_RET_STS_ERROR',
162: x_msg_count,
163: x_msg_data,
164: '_PUB');
165: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 165: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

161: 'OKC_API.G_RET_STS_ERROR',
162: x_msg_count,
163: x_msg_data,
164: '_PUB');
165: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
166: x_return_status := OKC_API.HANDLE_EXCEPTIONS
167: (l_api_name,
168: G_PKG_NAME,
169: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 166: x_return_status := OKC_API.HANDLE_EXCEPTIONS

162: x_msg_count,
163: x_msg_data,
164: '_PUB');
165: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
166: x_return_status := OKC_API.HANDLE_EXCEPTIONS
167: (l_api_name,
168: G_PKG_NAME,
169: 'OKC_API.G_RET_STS_UNEXP_ERROR',
170: x_msg_count,

Line 169: 'OKC_API.G_RET_STS_UNEXP_ERROR',

165: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
166: x_return_status := OKC_API.HANDLE_EXCEPTIONS
167: (l_api_name,
168: G_PKG_NAME,
169: 'OKC_API.G_RET_STS_UNEXP_ERROR',
170: x_msg_count,
171: x_msg_data,
172: '_PUB');
173: WHEN OTHERS THEN

Line 174: x_return_status := OKC_API.HANDLE_EXCEPTIONS

170: x_msg_count,
171: x_msg_data,
172: '_PUB');
173: WHEN OTHERS THEN
174: x_return_status := OKC_API.HANDLE_EXCEPTIONS
175: (l_api_name,
176: G_PKG_NAME,
177: 'OTHERS',
178: x_msg_count,

Line 192: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

188: x_msg_data OUT NOCOPY VARCHAR2,
189: p_talv_tbl IN talv_tbl_type,
190: x_talv_tbl OUT NOCOPY talv_tbl_type) IS
191: i NUMBER := 0;
192: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
193: BEGIN
194: x_return_status := OKC_API.G_RET_STS_SUCCESS;
195: IF p_talv_tbl.COUNT > 0 THEN
196: i := p_talv_tbl.FIRST;

Line 194: x_return_status := OKC_API.G_RET_STS_SUCCESS;

190: x_talv_tbl OUT NOCOPY talv_tbl_type) IS
191: i NUMBER := 0;
192: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
193: BEGIN
194: x_return_status := OKC_API.G_RET_STS_SUCCESS;
195: IF p_talv_tbl.COUNT > 0 THEN
196: i := p_talv_tbl.FIRST;
197: LOOP
198: CREATE_TPA_RELTV(

Line 206: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

202: x_msg_count,
203: x_msg_data,
204: p_talv_tbl(i),
205: x_talv_tbl(i));
206: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
207: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
208: x_return_status := l_return_status;
209: raise G_EXCEPTION_HALT_VALIDATION;
210: ELSE

Line 207: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

203: x_msg_data,
204: p_talv_tbl(i),
205: x_talv_tbl(i));
206: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
207: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
208: x_return_status := l_return_status;
209: raise G_EXCEPTION_HALT_VALIDATION;
210: ELSE
211: x_return_status := l_return_status;

Line 222: OKC_API.set_message(p_app_name => g_app_name,

218: EXCEPTION
219: WHEN G_EXCEPTION_HALT_VALIDATION THEN
220: NULL;
221: WHEN OTHERS THEN
222: OKC_API.set_message(p_app_name => g_app_name,
223: p_msg_name => g_unexpected_error,
224: p_token1 => g_sqlcode_token,
225: p_token1_value => sqlcode,
226: p_token2 => g_sqlerrm_token,

Line 228: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

224: p_token1 => g_sqlcode_token,
225: p_token1_value => sqlcode,
226: p_token2 => g_sqlerrm_token,
227: p_token2_value => sqlerrm);
228: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
229: END CREATE_TPA_RELTV;
230:
231: PROCEDURE UPDATE_TPA_RELTV(
232: p_api_version IN NUMBER,

Line 243: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

239: l_api_name CONSTANT VARCHAR2(30) := 'UPDATE_TPA_RELTV';
240: l_return_status VARCHAR2(1);
241: l_talv_rec talv_rec_type := p_talv_rec;
242: BEGIN
243: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
244: p_init_msg_list,
245: '_PUB',
246: x_return_status);
247: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 247: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

243: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
244: p_init_msg_list,
245: '_PUB',
246: x_return_status);
247: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
248: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
249: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
250: raise OKC_API.G_EXCEPTION_ERROR;
251: END IF;

Line 248: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

244: p_init_msg_list,
245: '_PUB',
246: x_return_status);
247: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
248: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
249: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
250: raise OKC_API.G_EXCEPTION_ERROR;
251: END IF;
252: -- Call user hook for BEFORE

Line 249: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

245: '_PUB',
246: x_return_status);
247: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
248: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
249: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
250: raise OKC_API.G_EXCEPTION_ERROR;
251: END IF;
252: -- Call user hook for BEFORE
253: g_talv_rec := l_talv_rec;

Line 250: raise OKC_API.G_EXCEPTION_ERROR;

246: x_return_status);
247: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
248: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
249: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
250: raise OKC_API.G_EXCEPTION_ERROR;
251: END IF;
252: -- Call user hook for BEFORE
253: g_talv_rec := l_talv_rec;
254: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 255: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

251: END IF;
252: -- Call user hook for BEFORE
253: g_talv_rec := l_talv_rec;
254: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
255: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
256: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
257: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
258: raise OKC_API.G_EXCEPTION_ERROR;
259: END IF;

Line 256: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

252: -- Call user hook for BEFORE
253: g_talv_rec := l_talv_rec;
254: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
255: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
256: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
257: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
258: raise OKC_API.G_EXCEPTION_ERROR;
259: END IF;
260: l_talv_rec := migrate_talv(l_talv_rec, g_talv_rec);

Line 257: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

253: g_talv_rec := l_talv_rec;
254: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
255: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
256: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
257: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
258: raise OKC_API.G_EXCEPTION_ERROR;
259: END IF;
260: l_talv_rec := migrate_talv(l_talv_rec, g_talv_rec);
261: OKC_TIME_PVT.UPDATE_TPA_RELTV(

Line 258: raise OKC_API.G_EXCEPTION_ERROR;

254: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
255: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
256: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
257: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
258: raise OKC_API.G_EXCEPTION_ERROR;
259: END IF;
260: l_talv_rec := migrate_talv(l_talv_rec, g_talv_rec);
261: OKC_TIME_PVT.UPDATE_TPA_RELTV(
262: p_api_version,

Line 269: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

265: x_msg_count,
266: x_msg_data,
267: p_talv_rec,
268: x_talv_rec);
269: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
270: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
271: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
272: raise OKC_API.G_EXCEPTION_ERROR;
273: END IF;

Line 270: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

266: x_msg_data,
267: p_talv_rec,
268: x_talv_rec);
269: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
270: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
271: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
272: raise OKC_API.G_EXCEPTION_ERROR;
273: END IF;
274:

Line 271: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

267: p_talv_rec,
268: x_talv_rec);
269: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
270: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
271: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
272: raise OKC_API.G_EXCEPTION_ERROR;
273: END IF;
274:
275: -- Call user hook for AFTER

Line 272: raise OKC_API.G_EXCEPTION_ERROR;

268: x_talv_rec);
269: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
270: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
271: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
272: raise OKC_API.G_EXCEPTION_ERROR;
273: END IF;
274:
275: -- Call user hook for AFTER
276: g_talv_rec := x_talv_rec;

Line 278: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

274:
275: -- Call user hook for AFTER
276: g_talv_rec := x_talv_rec;
277: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
278: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
279: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
280: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
281: raise OKC_API.G_EXCEPTION_ERROR;
282: END IF;

Line 279: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

275: -- Call user hook for AFTER
276: g_talv_rec := x_talv_rec;
277: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
278: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
279: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
280: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
281: raise OKC_API.G_EXCEPTION_ERROR;
282: END IF;
283: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 280: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

276: g_talv_rec := x_talv_rec;
277: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
278: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
279: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
280: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
281: raise OKC_API.G_EXCEPTION_ERROR;
282: END IF;
283: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
284: EXCEPTION

Line 281: raise OKC_API.G_EXCEPTION_ERROR;

277: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
278: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
279: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
280: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
281: raise OKC_API.G_EXCEPTION_ERROR;
282: END IF;
283: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
284: EXCEPTION
285: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 283: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

279: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
280: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
281: raise OKC_API.G_EXCEPTION_ERROR;
282: END IF;
283: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
284: EXCEPTION
285: WHEN OKC_API.G_EXCEPTION_ERROR THEN
286: x_return_status := OKC_API.HANDLE_EXCEPTIONS
287: (l_api_name,

Line 285: WHEN OKC_API.G_EXCEPTION_ERROR THEN

281: raise OKC_API.G_EXCEPTION_ERROR;
282: END IF;
283: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
284: EXCEPTION
285: WHEN OKC_API.G_EXCEPTION_ERROR THEN
286: x_return_status := OKC_API.HANDLE_EXCEPTIONS
287: (l_api_name,
288: G_PKG_NAME,
289: 'OKC_API.G_RET_STS_ERROR',

Line 286: x_return_status := OKC_API.HANDLE_EXCEPTIONS

282: END IF;
283: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
284: EXCEPTION
285: WHEN OKC_API.G_EXCEPTION_ERROR THEN
286: x_return_status := OKC_API.HANDLE_EXCEPTIONS
287: (l_api_name,
288: G_PKG_NAME,
289: 'OKC_API.G_RET_STS_ERROR',
290: x_msg_count,

Line 289: 'OKC_API.G_RET_STS_ERROR',

285: WHEN OKC_API.G_EXCEPTION_ERROR THEN
286: x_return_status := OKC_API.HANDLE_EXCEPTIONS
287: (l_api_name,
288: G_PKG_NAME,
289: 'OKC_API.G_RET_STS_ERROR',
290: x_msg_count,
291: x_msg_data,
292: '_PUB');
293: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 293: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

289: 'OKC_API.G_RET_STS_ERROR',
290: x_msg_count,
291: x_msg_data,
292: '_PUB');
293: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
294: x_return_status := OKC_API.HANDLE_EXCEPTIONS
295: (l_api_name,
296: G_PKG_NAME,
297: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 294: x_return_status := OKC_API.HANDLE_EXCEPTIONS

290: x_msg_count,
291: x_msg_data,
292: '_PUB');
293: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
294: x_return_status := OKC_API.HANDLE_EXCEPTIONS
295: (l_api_name,
296: G_PKG_NAME,
297: 'OKC_API.G_RET_STS_UNEXP_ERROR',
298: x_msg_count,

Line 297: 'OKC_API.G_RET_STS_UNEXP_ERROR',

293: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
294: x_return_status := OKC_API.HANDLE_EXCEPTIONS
295: (l_api_name,
296: G_PKG_NAME,
297: 'OKC_API.G_RET_STS_UNEXP_ERROR',
298: x_msg_count,
299: x_msg_data,
300: '_PUB');
301: WHEN OTHERS THEN

Line 302: x_return_status := OKC_API.HANDLE_EXCEPTIONS

298: x_msg_count,
299: x_msg_data,
300: '_PUB');
301: WHEN OTHERS THEN
302: x_return_status := OKC_API.HANDLE_EXCEPTIONS
303: (l_api_name,
304: G_PKG_NAME,
305: 'OTHERS',
306: x_msg_count,

Line 320: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

316: x_msg_data OUT NOCOPY VARCHAR2,
317: p_talv_tbl IN talv_tbl_type,
318: x_talv_tbl OUT NOCOPY talv_tbl_type) IS
319: i NUMBER := 0;
320: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
321: BEGIN
322: x_return_status := OKC_API.G_RET_STS_SUCCESS;
323: IF p_talv_tbl.COUNT > 0 THEN
324: i := p_talv_tbl.FIRST;

Line 322: x_return_status := OKC_API.G_RET_STS_SUCCESS;

318: x_talv_tbl OUT NOCOPY talv_tbl_type) IS
319: i NUMBER := 0;
320: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
321: BEGIN
322: x_return_status := OKC_API.G_RET_STS_SUCCESS;
323: IF p_talv_tbl.COUNT > 0 THEN
324: i := p_talv_tbl.FIRST;
325: LOOP
326: UPDATE_TPA_RELTV(

Line 334: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

330: x_msg_count,
331: x_msg_data,
332: p_talv_tbl(i),
333: x_talv_tbl(i));
334: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
335: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
336: x_return_status := l_return_status;
337: raise G_EXCEPTION_HALT_VALIDATION;
338: ELSE

Line 335: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

331: x_msg_data,
332: p_talv_tbl(i),
333: x_talv_tbl(i));
334: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
335: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
336: x_return_status := l_return_status;
337: raise G_EXCEPTION_HALT_VALIDATION;
338: ELSE
339: x_return_status := l_return_status;

Line 350: OKC_API.set_message(p_app_name => g_app_name,

346: EXCEPTION
347: WHEN G_EXCEPTION_HALT_VALIDATION THEN
348: NULL;
349: WHEN OTHERS THEN
350: OKC_API.set_message(p_app_name => g_app_name,
351: p_msg_name => g_unexpected_error,
352: p_token1 => g_sqlcode_token,
353: p_token1_value => sqlcode,
354: p_token2 => g_sqlerrm_token,

Line 356: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

352: p_token1 => g_sqlcode_token,
353: p_token1_value => sqlcode,
354: p_token2 => g_sqlerrm_token,
355: p_token2_value => sqlerrm);
356: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
357: END UPDATE_TPA_RELTV;
358:
359: PROCEDURE DELETE_TPA_RELTV(
360: p_api_version IN NUMBER,

Line 370: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

366: l_api_name CONSTANT VARCHAR2(30) := 'DELETE_TPA_RELTV';
367: l_return_status VARCHAR2(1);
368: l_talv_rec talv_rec_type := p_talv_rec;
369: BEGIN
370: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
371: p_init_msg_list,
372: '_PUB',
373: x_return_status);
374: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 374: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

370: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
371: p_init_msg_list,
372: '_PUB',
373: x_return_status);
374: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
375: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
376: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
377: raise OKC_API.G_EXCEPTION_ERROR;
378: END IF;

Line 375: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

371: p_init_msg_list,
372: '_PUB',
373: x_return_status);
374: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
375: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
376: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
377: raise OKC_API.G_EXCEPTION_ERROR;
378: END IF;
379: -- Call user hook for BEFORE

Line 376: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

372: '_PUB',
373: x_return_status);
374: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
375: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
376: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
377: raise OKC_API.G_EXCEPTION_ERROR;
378: END IF;
379: -- Call user hook for BEFORE
380: g_talv_rec := l_talv_rec;

Line 377: raise OKC_API.G_EXCEPTION_ERROR;

373: x_return_status);
374: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
375: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
376: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
377: raise OKC_API.G_EXCEPTION_ERROR;
378: END IF;
379: -- Call user hook for BEFORE
380: g_talv_rec := l_talv_rec;
381: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 382: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

378: END IF;
379: -- Call user hook for BEFORE
380: g_talv_rec := l_talv_rec;
381: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
382: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
383: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
384: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
385: raise OKC_API.G_EXCEPTION_ERROR;
386: END IF;

Line 383: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

379: -- Call user hook for BEFORE
380: g_talv_rec := l_talv_rec;
381: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
382: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
383: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
384: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
385: raise OKC_API.G_EXCEPTION_ERROR;
386: END IF;
387: OKC_TIME_PVT.DELETE_TPA_RELTV(

Line 384: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

380: g_talv_rec := l_talv_rec;
381: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
382: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
383: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
384: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
385: raise OKC_API.G_EXCEPTION_ERROR;
386: END IF;
387: OKC_TIME_PVT.DELETE_TPA_RELTV(
388: p_api_version,

Line 385: raise OKC_API.G_EXCEPTION_ERROR;

381: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
382: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
383: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
384: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
385: raise OKC_API.G_EXCEPTION_ERROR;
386: END IF;
387: OKC_TIME_PVT.DELETE_TPA_RELTV(
388: p_api_version,
389: p_init_msg_list,

Line 394: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

390: x_return_status,
391: x_msg_count,
392: x_msg_data,
393: p_talv_rec);
394: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
395: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
396: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
397: raise OKC_API.G_EXCEPTION_ERROR;
398: END IF;

Line 395: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

391: x_msg_count,
392: x_msg_data,
393: p_talv_rec);
394: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
395: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
396: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
397: raise OKC_API.G_EXCEPTION_ERROR;
398: END IF;
399:

Line 396: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

392: x_msg_data,
393: p_talv_rec);
394: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
395: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
396: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
397: raise OKC_API.G_EXCEPTION_ERROR;
398: END IF;
399:
400: -- Call user hook for AFTER

Line 397: raise OKC_API.G_EXCEPTION_ERROR;

393: p_talv_rec);
394: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
395: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
396: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
397: raise OKC_API.G_EXCEPTION_ERROR;
398: END IF;
399:
400: -- Call user hook for AFTER
401: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');

Line 402: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

398: END IF;
399:
400: -- Call user hook for AFTER
401: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
402: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
403: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
404: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
405: raise OKC_API.G_EXCEPTION_ERROR;
406: END IF;

Line 403: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

399:
400: -- Call user hook for AFTER
401: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
402: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
403: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
404: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
405: raise OKC_API.G_EXCEPTION_ERROR;
406: END IF;
407: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 404: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

400: -- Call user hook for AFTER
401: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
402: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
403: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
404: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
405: raise OKC_API.G_EXCEPTION_ERROR;
406: END IF;
407: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
408: EXCEPTION

Line 405: raise OKC_API.G_EXCEPTION_ERROR;

401: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
402: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
403: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
404: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
405: raise OKC_API.G_EXCEPTION_ERROR;
406: END IF;
407: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
408: EXCEPTION
409: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 407: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

403: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
404: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
405: raise OKC_API.G_EXCEPTION_ERROR;
406: END IF;
407: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
408: EXCEPTION
409: WHEN OKC_API.G_EXCEPTION_ERROR THEN
410: x_return_status := OKC_API.HANDLE_EXCEPTIONS
411: (l_api_name,

Line 409: WHEN OKC_API.G_EXCEPTION_ERROR THEN

405: raise OKC_API.G_EXCEPTION_ERROR;
406: END IF;
407: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
408: EXCEPTION
409: WHEN OKC_API.G_EXCEPTION_ERROR THEN
410: x_return_status := OKC_API.HANDLE_EXCEPTIONS
411: (l_api_name,
412: G_PKG_NAME,
413: 'OKC_API.G_RET_STS_ERROR',

Line 410: x_return_status := OKC_API.HANDLE_EXCEPTIONS

406: END IF;
407: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
408: EXCEPTION
409: WHEN OKC_API.G_EXCEPTION_ERROR THEN
410: x_return_status := OKC_API.HANDLE_EXCEPTIONS
411: (l_api_name,
412: G_PKG_NAME,
413: 'OKC_API.G_RET_STS_ERROR',
414: x_msg_count,

Line 413: 'OKC_API.G_RET_STS_ERROR',

409: WHEN OKC_API.G_EXCEPTION_ERROR THEN
410: x_return_status := OKC_API.HANDLE_EXCEPTIONS
411: (l_api_name,
412: G_PKG_NAME,
413: 'OKC_API.G_RET_STS_ERROR',
414: x_msg_count,
415: x_msg_data,
416: '_PUB');
417: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 417: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

413: 'OKC_API.G_RET_STS_ERROR',
414: x_msg_count,
415: x_msg_data,
416: '_PUB');
417: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
418: x_return_status := OKC_API.HANDLE_EXCEPTIONS
419: (l_api_name,
420: G_PKG_NAME,
421: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 418: x_return_status := OKC_API.HANDLE_EXCEPTIONS

414: x_msg_count,
415: x_msg_data,
416: '_PUB');
417: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
418: x_return_status := OKC_API.HANDLE_EXCEPTIONS
419: (l_api_name,
420: G_PKG_NAME,
421: 'OKC_API.G_RET_STS_UNEXP_ERROR',
422: x_msg_count,

Line 421: 'OKC_API.G_RET_STS_UNEXP_ERROR',

417: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
418: x_return_status := OKC_API.HANDLE_EXCEPTIONS
419: (l_api_name,
420: G_PKG_NAME,
421: 'OKC_API.G_RET_STS_UNEXP_ERROR',
422: x_msg_count,
423: x_msg_data,
424: '_PUB');
425: WHEN OTHERS THEN

Line 426: x_return_status := OKC_API.HANDLE_EXCEPTIONS

422: x_msg_count,
423: x_msg_data,
424: '_PUB');
425: WHEN OTHERS THEN
426: x_return_status := OKC_API.HANDLE_EXCEPTIONS
427: (l_api_name,
428: G_PKG_NAME,
429: 'OTHERS',
430: x_msg_count,

Line 443: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

439: x_msg_count OUT NOCOPY NUMBER,
440: x_msg_data OUT NOCOPY VARCHAR2,
441: p_talv_tbl IN talv_tbl_type) IS
442: i NUMBER := 0;
443: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
444: BEGIN
445: x_return_status := OKC_API.G_RET_STS_SUCCESS;
446: IF p_talv_tbl.COUNT > 0 THEN
447: i := p_talv_tbl.FIRST;

Line 445: x_return_status := OKC_API.G_RET_STS_SUCCESS;

441: p_talv_tbl IN talv_tbl_type) IS
442: i NUMBER := 0;
443: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
444: BEGIN
445: x_return_status := OKC_API.G_RET_STS_SUCCESS;
446: IF p_talv_tbl.COUNT > 0 THEN
447: i := p_talv_tbl.FIRST;
448: LOOP
449: DELETE_TPA_RELTV(

Line 456: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

452: l_return_status,
453: x_msg_count,
454: x_msg_data,
455: p_talv_tbl(i));
456: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
457: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
458: x_return_status := l_return_status;
459: raise G_EXCEPTION_HALT_VALIDATION;
460: ELSE

Line 457: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

453: x_msg_count,
454: x_msg_data,
455: p_talv_tbl(i));
456: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
457: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
458: x_return_status := l_return_status;
459: raise G_EXCEPTION_HALT_VALIDATION;
460: ELSE
461: x_return_status := l_return_status;

Line 472: OKC_API.set_message(p_app_name => g_app_name,

468: EXCEPTION
469: WHEN G_EXCEPTION_HALT_VALIDATION THEN
470: NULL;
471: WHEN OTHERS THEN
472: OKC_API.set_message(p_app_name => g_app_name,
473: p_msg_name => g_unexpected_error,
474: p_token1 => g_sqlcode_token,
475: p_token1_value => sqlcode,
476: p_token2 => g_sqlerrm_token,

Line 478: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

474: p_token1 => g_sqlcode_token,
475: p_token1_value => sqlcode,
476: p_token2 => g_sqlerrm_token,
477: p_token2_value => sqlerrm);
478: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
479: END DELETE_TPA_RELTV;
480:
481: PROCEDURE LOCK_TPA_RELTV(
482: p_api_version IN NUMBER,

Line 506: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

502: x_msg_count OUT NOCOPY NUMBER,
503: x_msg_data OUT NOCOPY VARCHAR2,
504: p_talv_tbl IN talv_tbl_type) IS
505: i NUMBER := 0;
506: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
507: BEGIN
508: x_return_status := OKC_API.G_RET_STS_SUCCESS;
509: IF p_talv_tbl.COUNT > 0 THEN
510: i := p_talv_tbl.FIRST;

Line 508: x_return_status := OKC_API.G_RET_STS_SUCCESS;

504: p_talv_tbl IN talv_tbl_type) IS
505: i NUMBER := 0;
506: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
507: BEGIN
508: x_return_status := OKC_API.G_RET_STS_SUCCESS;
509: IF p_talv_tbl.COUNT > 0 THEN
510: i := p_talv_tbl.FIRST;
511: LOOP
512: LOCK_TPA_RELTV(

Line 519: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

515: l_return_status,
516: x_msg_count,
517: x_msg_data,
518: p_talv_tbl(i));
519: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
520: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
521: x_return_status := l_return_status;
522: raise G_EXCEPTION_HALT_VALIDATION;
523: ELSE

Line 520: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

516: x_msg_count,
517: x_msg_data,
518: p_talv_tbl(i));
519: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
520: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
521: x_return_status := l_return_status;
522: raise G_EXCEPTION_HALT_VALIDATION;
523: ELSE
524: x_return_status := l_return_status;

Line 535: OKC_API.set_message(p_app_name => g_app_name,

531: EXCEPTION
532: WHEN G_EXCEPTION_HALT_VALIDATION THEN
533: NULL;
534: WHEN OTHERS THEN
535: OKC_API.set_message(p_app_name => g_app_name,
536: p_msg_name => g_unexpected_error,
537: p_token1 => g_sqlcode_token,
538: p_token1_value => sqlcode,
539: p_token2 => g_sqlerrm_token,

Line 541: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

537: p_token1 => g_sqlcode_token,
538: p_token1_value => sqlcode,
539: p_token2 => g_sqlerrm_token,
540: p_token2_value => sqlerrm);
541: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
542: END LOCK_TPA_RELTV;
543:
544: PROCEDURE VALID_TPA_RELTV(
545: p_api_version IN NUMBER,

Line 569: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

565: x_msg_count OUT NOCOPY NUMBER,
566: x_msg_data OUT NOCOPY VARCHAR2,
567: p_talv_tbl IN talv_tbl_type) IS
568: i NUMBER := 0;
569: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
570: BEGIN
571: x_return_status := OKC_API.G_RET_STS_SUCCESS;
572: IF p_talv_tbl.COUNT > 0 THEN
573: i := p_talv_tbl.FIRST;

Line 571: x_return_status := OKC_API.G_RET_STS_SUCCESS;

567: p_talv_tbl IN talv_tbl_type) IS
568: i NUMBER := 0;
569: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
570: BEGIN
571: x_return_status := OKC_API.G_RET_STS_SUCCESS;
572: IF p_talv_tbl.COUNT > 0 THEN
573: i := p_talv_tbl.FIRST;
574: LOOP
575: VALID_TPA_RELTV(

Line 582: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

578: l_return_status,
579: x_msg_count,
580: x_msg_data,
581: p_talv_tbl(i));
582: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
583: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
584: x_return_status := l_return_status;
585: raise G_EXCEPTION_HALT_VALIDATION;
586: ELSE

Line 583: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

579: x_msg_count,
580: x_msg_data,
581: p_talv_tbl(i));
582: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
583: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
584: x_return_status := l_return_status;
585: raise G_EXCEPTION_HALT_VALIDATION;
586: ELSE
587: x_return_status := l_return_status;

Line 598: OKC_API.set_message(p_app_name => g_app_name,

594: EXCEPTION
595: WHEN G_EXCEPTION_HALT_VALIDATION THEN
596: NULL;
597: WHEN OTHERS THEN
598: OKC_API.set_message(p_app_name => g_app_name,
599: p_msg_name => g_unexpected_error,
600: p_token1 => g_sqlcode_token,
601: p_token1_value => sqlcode,
602: p_token2 => g_sqlerrm_token,

Line 604: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

600: p_token1 => g_sqlcode_token,
601: p_token1_value => sqlcode,
602: p_token2 => g_sqlerrm_token,
603: p_token2_value => sqlerrm);
604: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
605: END VALID_TPA_RELTV;
606:
607: FUNCTION migrate_talv(p_talv_evt_rec1 IN talv_evt_rec_type,
608: p_talv_evt_rec2 IN talv_evt_rec_type)

Line 690: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

686: l_api_name CONSTANT VARCHAR2(30) := 'CREATE_TPA_RELTV';
687: l_return_status VARCHAR2(1);
688: l_talv_evt_rec talv_evt_rec_type := p_talv_evt_rec;
689: BEGIN
690: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
691: p_init_msg_list,
692: '_PUB',
693: x_return_status);
694: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 694: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

690: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
691: p_init_msg_list,
692: '_PUB',
693: x_return_status);
694: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
695: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
696: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
697: raise OKC_API.G_EXCEPTION_ERROR;
698: END IF;

Line 695: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

691: p_init_msg_list,
692: '_PUB',
693: x_return_status);
694: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
695: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
696: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
697: raise OKC_API.G_EXCEPTION_ERROR;
698: END IF;
699: -- Call user hook for BEFORE

Line 696: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

692: '_PUB',
693: x_return_status);
694: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
695: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
696: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
697: raise OKC_API.G_EXCEPTION_ERROR;
698: END IF;
699: -- Call user hook for BEFORE
700: g_talv_evt_rec := l_talv_evt_rec;

Line 697: raise OKC_API.G_EXCEPTION_ERROR;

693: x_return_status);
694: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
695: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
696: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
697: raise OKC_API.G_EXCEPTION_ERROR;
698: END IF;
699: -- Call user hook for BEFORE
700: g_talv_evt_rec := l_talv_evt_rec;
701: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 702: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

698: END IF;
699: -- Call user hook for BEFORE
700: g_talv_evt_rec := l_talv_evt_rec;
701: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
702: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
703: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
704: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
705: raise OKC_API.G_EXCEPTION_ERROR;
706: END IF;

Line 703: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

699: -- Call user hook for BEFORE
700: g_talv_evt_rec := l_talv_evt_rec;
701: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
702: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
703: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
704: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
705: raise OKC_API.G_EXCEPTION_ERROR;
706: END IF;
707: l_talv_evt_rec := migrate_talv(l_talv_evt_rec, g_talv_evt_rec);

Line 704: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

700: g_talv_evt_rec := l_talv_evt_rec;
701: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
702: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
703: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
704: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
705: raise OKC_API.G_EXCEPTION_ERROR;
706: END IF;
707: l_talv_evt_rec := migrate_talv(l_talv_evt_rec, g_talv_evt_rec);
708: OKC_TIME_PVT.CREATE_TPA_RELTV(

Line 705: raise OKC_API.G_EXCEPTION_ERROR;

701: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
702: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
703: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
704: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
705: raise OKC_API.G_EXCEPTION_ERROR;
706: END IF;
707: l_talv_evt_rec := migrate_talv(l_talv_evt_rec, g_talv_evt_rec);
708: OKC_TIME_PVT.CREATE_TPA_RELTV(
709: p_api_version,

Line 716: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

712: x_msg_count,
713: x_msg_data,
714: p_talv_evt_rec,
715: x_talv_evt_rec);
716: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
717: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
718: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
719: raise OKC_API.G_EXCEPTION_ERROR;
720: END IF;

Line 717: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

713: x_msg_data,
714: p_talv_evt_rec,
715: x_talv_evt_rec);
716: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
717: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
718: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
719: raise OKC_API.G_EXCEPTION_ERROR;
720: END IF;
721:

Line 718: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

714: p_talv_evt_rec,
715: x_talv_evt_rec);
716: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
717: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
718: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
719: raise OKC_API.G_EXCEPTION_ERROR;
720: END IF;
721:
722: -- Call user hook for AFTER

Line 719: raise OKC_API.G_EXCEPTION_ERROR;

715: x_talv_evt_rec);
716: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
717: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
718: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
719: raise OKC_API.G_EXCEPTION_ERROR;
720: END IF;
721:
722: -- Call user hook for AFTER
723: g_talv_evt_rec := x_talv_evt_rec;

Line 725: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

721:
722: -- Call user hook for AFTER
723: g_talv_evt_rec := x_talv_evt_rec;
724: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
725: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
726: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
727: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
728: raise OKC_API.G_EXCEPTION_ERROR;
729: END IF;

Line 726: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

722: -- Call user hook for AFTER
723: g_talv_evt_rec := x_talv_evt_rec;
724: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
725: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
726: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
727: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
728: raise OKC_API.G_EXCEPTION_ERROR;
729: END IF;
730: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 727: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

723: g_talv_evt_rec := x_talv_evt_rec;
724: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
725: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
726: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
727: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
728: raise OKC_API.G_EXCEPTION_ERROR;
729: END IF;
730: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
731: EXCEPTION

Line 728: raise OKC_API.G_EXCEPTION_ERROR;

724: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
725: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
726: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
727: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
728: raise OKC_API.G_EXCEPTION_ERROR;
729: END IF;
730: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
731: EXCEPTION
732: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 730: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

726: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
727: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
728: raise OKC_API.G_EXCEPTION_ERROR;
729: END IF;
730: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
731: EXCEPTION
732: WHEN OKC_API.G_EXCEPTION_ERROR THEN
733: x_return_status := OKC_API.HANDLE_EXCEPTIONS
734: (l_api_name,

Line 732: WHEN OKC_API.G_EXCEPTION_ERROR THEN

728: raise OKC_API.G_EXCEPTION_ERROR;
729: END IF;
730: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
731: EXCEPTION
732: WHEN OKC_API.G_EXCEPTION_ERROR THEN
733: x_return_status := OKC_API.HANDLE_EXCEPTIONS
734: (l_api_name,
735: G_PKG_NAME,
736: 'OKC_API.G_RET_STS_ERROR',

Line 733: x_return_status := OKC_API.HANDLE_EXCEPTIONS

729: END IF;
730: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
731: EXCEPTION
732: WHEN OKC_API.G_EXCEPTION_ERROR THEN
733: x_return_status := OKC_API.HANDLE_EXCEPTIONS
734: (l_api_name,
735: G_PKG_NAME,
736: 'OKC_API.G_RET_STS_ERROR',
737: x_msg_count,

Line 736: 'OKC_API.G_RET_STS_ERROR',

732: WHEN OKC_API.G_EXCEPTION_ERROR THEN
733: x_return_status := OKC_API.HANDLE_EXCEPTIONS
734: (l_api_name,
735: G_PKG_NAME,
736: 'OKC_API.G_RET_STS_ERROR',
737: x_msg_count,
738: x_msg_data,
739: '_PUB');
740: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 740: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

736: 'OKC_API.G_RET_STS_ERROR',
737: x_msg_count,
738: x_msg_data,
739: '_PUB');
740: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
741: x_return_status := OKC_API.HANDLE_EXCEPTIONS
742: (l_api_name,
743: G_PKG_NAME,
744: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 741: x_return_status := OKC_API.HANDLE_EXCEPTIONS

737: x_msg_count,
738: x_msg_data,
739: '_PUB');
740: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
741: x_return_status := OKC_API.HANDLE_EXCEPTIONS
742: (l_api_name,
743: G_PKG_NAME,
744: 'OKC_API.G_RET_STS_UNEXP_ERROR',
745: x_msg_count,

Line 744: 'OKC_API.G_RET_STS_UNEXP_ERROR',

740: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
741: x_return_status := OKC_API.HANDLE_EXCEPTIONS
742: (l_api_name,
743: G_PKG_NAME,
744: 'OKC_API.G_RET_STS_UNEXP_ERROR',
745: x_msg_count,
746: x_msg_data,
747: '_PUB');
748: WHEN OTHERS THEN

Line 749: x_return_status := OKC_API.HANDLE_EXCEPTIONS

745: x_msg_count,
746: x_msg_data,
747: '_PUB');
748: WHEN OTHERS THEN
749: x_return_status := OKC_API.HANDLE_EXCEPTIONS
750: (l_api_name,
751: G_PKG_NAME,
752: 'OTHERS',
753: x_msg_count,

Line 767: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

763: x_msg_data OUT NOCOPY VARCHAR2,
764: p_talv_evt_tbl IN talv_evt_tbl_type,
765: x_talv_evt_tbl OUT NOCOPY talv_evt_tbl_type) IS
766: i NUMBER := 0;
767: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
768: BEGIN
769: x_return_status := OKC_API.G_RET_STS_SUCCESS;
770: IF p_talv_evt_tbl.COUNT > 0 THEN
771: i := p_talv_evt_tbl.FIRST;

Line 769: x_return_status := OKC_API.G_RET_STS_SUCCESS;

765: x_talv_evt_tbl OUT NOCOPY talv_evt_tbl_type) IS
766: i NUMBER := 0;
767: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
768: BEGIN
769: x_return_status := OKC_API.G_RET_STS_SUCCESS;
770: IF p_talv_evt_tbl.COUNT > 0 THEN
771: i := p_talv_evt_tbl.FIRST;
772: LOOP
773: CREATE_TPA_RELTV(

Line 781: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

777: x_msg_count,
778: x_msg_data,
779: p_talv_evt_tbl(i),
780: x_talv_evt_tbl(i));
781: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
782: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
783: x_return_status := l_return_status;
784: raise G_EXCEPTION_HALT_VALIDATION;
785: ELSE

Line 782: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

778: x_msg_data,
779: p_talv_evt_tbl(i),
780: x_talv_evt_tbl(i));
781: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
782: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
783: x_return_status := l_return_status;
784: raise G_EXCEPTION_HALT_VALIDATION;
785: ELSE
786: x_return_status := l_return_status;

Line 797: OKC_API.set_message(p_app_name => g_app_name,

793: EXCEPTION
794: WHEN G_EXCEPTION_HALT_VALIDATION THEN
795: NULL;
796: WHEN OTHERS THEN
797: OKC_API.set_message(p_app_name => g_app_name,
798: p_msg_name => g_unexpected_error,
799: p_token1 => g_sqlcode_token,
800: p_token1_value => sqlcode,
801: p_token2 => g_sqlerrm_token,

Line 803: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

799: p_token1 => g_sqlcode_token,
800: p_token1_value => sqlcode,
801: p_token2 => g_sqlerrm_token,
802: p_token2_value => sqlerrm);
803: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
804: END CREATE_TPA_RELTV;
805:
806: PROCEDURE UPDATE_TPA_RELTV(
807: p_api_version IN NUMBER,

Line 818: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

814: l_api_name CONSTANT VARCHAR2(30) := 'UPDATE_TPA_RELTV';
815: l_return_status VARCHAR2(1);
816: l_talv_evt_rec talv_evt_rec_type := p_talv_evt_rec;
817: BEGIN
818: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
819: p_init_msg_list,
820: '_PUB',
821: x_return_status);
822: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 822: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

818: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
819: p_init_msg_list,
820: '_PUB',
821: x_return_status);
822: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
823: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
824: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
825: raise OKC_API.G_EXCEPTION_ERROR;
826: END IF;

Line 823: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

819: p_init_msg_list,
820: '_PUB',
821: x_return_status);
822: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
823: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
824: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
825: raise OKC_API.G_EXCEPTION_ERROR;
826: END IF;
827: -- Call user hook for BEFORE

Line 824: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

820: '_PUB',
821: x_return_status);
822: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
823: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
824: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
825: raise OKC_API.G_EXCEPTION_ERROR;
826: END IF;
827: -- Call user hook for BEFORE
828: g_talv_evt_rec := l_talv_evt_rec;

Line 825: raise OKC_API.G_EXCEPTION_ERROR;

821: x_return_status);
822: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
823: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
824: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
825: raise OKC_API.G_EXCEPTION_ERROR;
826: END IF;
827: -- Call user hook for BEFORE
828: g_talv_evt_rec := l_talv_evt_rec;
829: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 830: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

826: END IF;
827: -- Call user hook for BEFORE
828: g_talv_evt_rec := l_talv_evt_rec;
829: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
830: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
831: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
832: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
833: raise OKC_API.G_EXCEPTION_ERROR;
834: END IF;

Line 831: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

827: -- Call user hook for BEFORE
828: g_talv_evt_rec := l_talv_evt_rec;
829: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
830: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
831: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
832: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
833: raise OKC_API.G_EXCEPTION_ERROR;
834: END IF;
835: l_talv_evt_rec := migrate_talv(l_talv_evt_rec, g_talv_evt_rec);

Line 832: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

828: g_talv_evt_rec := l_talv_evt_rec;
829: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
830: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
831: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
832: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
833: raise OKC_API.G_EXCEPTION_ERROR;
834: END IF;
835: l_talv_evt_rec := migrate_talv(l_talv_evt_rec, g_talv_evt_rec);
836: OKC_TIME_PVT.UPDATE_TPA_RELTV(

Line 833: raise OKC_API.G_EXCEPTION_ERROR;

829: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
830: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
831: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
832: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
833: raise OKC_API.G_EXCEPTION_ERROR;
834: END IF;
835: l_talv_evt_rec := migrate_talv(l_talv_evt_rec, g_talv_evt_rec);
836: OKC_TIME_PVT.UPDATE_TPA_RELTV(
837: p_api_version,

Line 844: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

840: x_msg_count,
841: x_msg_data,
842: p_talv_evt_rec,
843: x_talv_evt_rec);
844: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
845: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
846: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
847: raise OKC_API.G_EXCEPTION_ERROR;
848: END IF;

Line 845: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

841: x_msg_data,
842: p_talv_evt_rec,
843: x_talv_evt_rec);
844: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
845: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
846: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
847: raise OKC_API.G_EXCEPTION_ERROR;
848: END IF;
849:

Line 846: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

842: p_talv_evt_rec,
843: x_talv_evt_rec);
844: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
845: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
846: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
847: raise OKC_API.G_EXCEPTION_ERROR;
848: END IF;
849:
850: -- Call user hook for AFTER

Line 847: raise OKC_API.G_EXCEPTION_ERROR;

843: x_talv_evt_rec);
844: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
845: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
846: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
847: raise OKC_API.G_EXCEPTION_ERROR;
848: END IF;
849:
850: -- Call user hook for AFTER
851: g_talv_evt_rec := x_talv_evt_rec;

Line 853: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

849:
850: -- Call user hook for AFTER
851: g_talv_evt_rec := x_talv_evt_rec;
852: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
853: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
854: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
855: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
856: raise OKC_API.G_EXCEPTION_ERROR;
857: END IF;

Line 854: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

850: -- Call user hook for AFTER
851: g_talv_evt_rec := x_talv_evt_rec;
852: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
853: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
854: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
855: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
856: raise OKC_API.G_EXCEPTION_ERROR;
857: END IF;
858: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 855: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

851: g_talv_evt_rec := x_talv_evt_rec;
852: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
853: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
854: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
855: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
856: raise OKC_API.G_EXCEPTION_ERROR;
857: END IF;
858: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
859: EXCEPTION

Line 856: raise OKC_API.G_EXCEPTION_ERROR;

852: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
853: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
854: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
855: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
856: raise OKC_API.G_EXCEPTION_ERROR;
857: END IF;
858: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
859: EXCEPTION
860: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 858: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

854: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
855: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
856: raise OKC_API.G_EXCEPTION_ERROR;
857: END IF;
858: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
859: EXCEPTION
860: WHEN OKC_API.G_EXCEPTION_ERROR THEN
861: x_return_status := OKC_API.HANDLE_EXCEPTIONS
862: (l_api_name,

Line 860: WHEN OKC_API.G_EXCEPTION_ERROR THEN

856: raise OKC_API.G_EXCEPTION_ERROR;
857: END IF;
858: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
859: EXCEPTION
860: WHEN OKC_API.G_EXCEPTION_ERROR THEN
861: x_return_status := OKC_API.HANDLE_EXCEPTIONS
862: (l_api_name,
863: G_PKG_NAME,
864: 'OKC_API.G_RET_STS_ERROR',

Line 861: x_return_status := OKC_API.HANDLE_EXCEPTIONS

857: END IF;
858: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
859: EXCEPTION
860: WHEN OKC_API.G_EXCEPTION_ERROR THEN
861: x_return_status := OKC_API.HANDLE_EXCEPTIONS
862: (l_api_name,
863: G_PKG_NAME,
864: 'OKC_API.G_RET_STS_ERROR',
865: x_msg_count,

Line 864: 'OKC_API.G_RET_STS_ERROR',

860: WHEN OKC_API.G_EXCEPTION_ERROR THEN
861: x_return_status := OKC_API.HANDLE_EXCEPTIONS
862: (l_api_name,
863: G_PKG_NAME,
864: 'OKC_API.G_RET_STS_ERROR',
865: x_msg_count,
866: x_msg_data,
867: '_PUB');
868: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 868: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

864: 'OKC_API.G_RET_STS_ERROR',
865: x_msg_count,
866: x_msg_data,
867: '_PUB');
868: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
869: x_return_status := OKC_API.HANDLE_EXCEPTIONS
870: (l_api_name,
871: G_PKG_NAME,
872: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 869: x_return_status := OKC_API.HANDLE_EXCEPTIONS

865: x_msg_count,
866: x_msg_data,
867: '_PUB');
868: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
869: x_return_status := OKC_API.HANDLE_EXCEPTIONS
870: (l_api_name,
871: G_PKG_NAME,
872: 'OKC_API.G_RET_STS_UNEXP_ERROR',
873: x_msg_count,

Line 872: 'OKC_API.G_RET_STS_UNEXP_ERROR',

868: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
869: x_return_status := OKC_API.HANDLE_EXCEPTIONS
870: (l_api_name,
871: G_PKG_NAME,
872: 'OKC_API.G_RET_STS_UNEXP_ERROR',
873: x_msg_count,
874: x_msg_data,
875: '_PUB');
876: WHEN OTHERS THEN

Line 877: x_return_status := OKC_API.HANDLE_EXCEPTIONS

873: x_msg_count,
874: x_msg_data,
875: '_PUB');
876: WHEN OTHERS THEN
877: x_return_status := OKC_API.HANDLE_EXCEPTIONS
878: (l_api_name,
879: G_PKG_NAME,
880: 'OTHERS',
881: x_msg_count,

Line 895: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

891: x_msg_data OUT NOCOPY VARCHAR2,
892: p_talv_evt_tbl IN talv_evt_tbl_type,
893: x_talv_evt_tbl OUT NOCOPY talv_evt_tbl_type) IS
894: i NUMBER := 0;
895: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
896: BEGIN
897: x_return_status := OKC_API.G_RET_STS_SUCCESS;
898: IF p_talv_evt_tbl.COUNT > 0 THEN
899: i := p_talv_evt_tbl.FIRST;

Line 897: x_return_status := OKC_API.G_RET_STS_SUCCESS;

893: x_talv_evt_tbl OUT NOCOPY talv_evt_tbl_type) IS
894: i NUMBER := 0;
895: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
896: BEGIN
897: x_return_status := OKC_API.G_RET_STS_SUCCESS;
898: IF p_talv_evt_tbl.COUNT > 0 THEN
899: i := p_talv_evt_tbl.FIRST;
900: LOOP
901: UPDATE_TPA_RELTV(

Line 909: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

905: x_msg_count,
906: x_msg_data,
907: p_talv_evt_tbl(i),
908: x_talv_evt_tbl(i));
909: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
910: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
911: x_return_status := l_return_status;
912: raise G_EXCEPTION_HALT_VALIDATION;
913: ELSE

Line 910: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

906: x_msg_data,
907: p_talv_evt_tbl(i),
908: x_talv_evt_tbl(i));
909: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
910: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
911: x_return_status := l_return_status;
912: raise G_EXCEPTION_HALT_VALIDATION;
913: ELSE
914: x_return_status := l_return_status;

Line 925: OKC_API.set_message(p_app_name => g_app_name,

921: EXCEPTION
922: WHEN G_EXCEPTION_HALT_VALIDATION THEN
923: NULL;
924: WHEN OTHERS THEN
925: OKC_API.set_message(p_app_name => g_app_name,
926: p_msg_name => g_unexpected_error,
927: p_token1 => g_sqlcode_token,
928: p_token1_value => sqlcode,
929: p_token2 => g_sqlerrm_token,

Line 931: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

927: p_token1 => g_sqlcode_token,
928: p_token1_value => sqlcode,
929: p_token2 => g_sqlerrm_token,
930: p_token2_value => sqlerrm);
931: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
932: END UPDATE_TPA_RELTV;
933:
934: PROCEDURE DELETE_TPA_RELTV(
935: p_api_version IN NUMBER,

Line 945: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

941: l_api_name CONSTANT VARCHAR2(30) := 'DELETE_TPA_RELTV';
942: l_return_status VARCHAR2(1);
943: l_talv_evt_rec talv_evt_rec_type := p_talv_evt_rec;
944: BEGIN
945: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
946: p_init_msg_list,
947: '_PUB',
948: x_return_status);
949: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 949: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

945: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
946: p_init_msg_list,
947: '_PUB',
948: x_return_status);
949: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
950: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
951: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
952: raise OKC_API.G_EXCEPTION_ERROR;
953: END IF;

Line 950: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

946: p_init_msg_list,
947: '_PUB',
948: x_return_status);
949: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
950: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
951: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
952: raise OKC_API.G_EXCEPTION_ERROR;
953: END IF;
954: -- Call user hook for BEFORE

Line 951: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

947: '_PUB',
948: x_return_status);
949: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
950: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
951: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
952: raise OKC_API.G_EXCEPTION_ERROR;
953: END IF;
954: -- Call user hook for BEFORE
955: g_talv_evt_rec := l_talv_evt_rec;

Line 952: raise OKC_API.G_EXCEPTION_ERROR;

948: x_return_status);
949: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
950: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
951: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
952: raise OKC_API.G_EXCEPTION_ERROR;
953: END IF;
954: -- Call user hook for BEFORE
955: g_talv_evt_rec := l_talv_evt_rec;
956: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 957: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

953: END IF;
954: -- Call user hook for BEFORE
955: g_talv_evt_rec := l_talv_evt_rec;
956: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
957: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
958: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
959: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
960: raise OKC_API.G_EXCEPTION_ERROR;
961: END IF;

Line 958: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

954: -- Call user hook for BEFORE
955: g_talv_evt_rec := l_talv_evt_rec;
956: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
957: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
958: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
959: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
960: raise OKC_API.G_EXCEPTION_ERROR;
961: END IF;
962: OKC_TIME_PVT.DELETE_TPA_RELTV(

Line 959: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

955: g_talv_evt_rec := l_talv_evt_rec;
956: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
957: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
958: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
959: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
960: raise OKC_API.G_EXCEPTION_ERROR;
961: END IF;
962: OKC_TIME_PVT.DELETE_TPA_RELTV(
963: p_api_version,

Line 960: raise OKC_API.G_EXCEPTION_ERROR;

956: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
957: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
958: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
959: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
960: raise OKC_API.G_EXCEPTION_ERROR;
961: END IF;
962: OKC_TIME_PVT.DELETE_TPA_RELTV(
963: p_api_version,
964: p_init_msg_list,

Line 969: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

965: x_return_status,
966: x_msg_count,
967: x_msg_data,
968: p_talv_evt_rec);
969: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
970: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
971: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
972: raise OKC_API.G_EXCEPTION_ERROR;
973: END IF;

Line 970: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

966: x_msg_count,
967: x_msg_data,
968: p_talv_evt_rec);
969: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
970: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
971: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
972: raise OKC_API.G_EXCEPTION_ERROR;
973: END IF;
974:

Line 971: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

967: x_msg_data,
968: p_talv_evt_rec);
969: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
970: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
971: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
972: raise OKC_API.G_EXCEPTION_ERROR;
973: END IF;
974:
975: -- Call user hook for AFTER

Line 972: raise OKC_API.G_EXCEPTION_ERROR;

968: p_talv_evt_rec);
969: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
970: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
971: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
972: raise OKC_API.G_EXCEPTION_ERROR;
973: END IF;
974:
975: -- Call user hook for AFTER
976: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');

Line 977: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

973: END IF;
974:
975: -- Call user hook for AFTER
976: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
977: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
978: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
979: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
980: raise OKC_API.G_EXCEPTION_ERROR;
981: END IF;

Line 978: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

974:
975: -- Call user hook for AFTER
976: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
977: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
978: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
979: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
980: raise OKC_API.G_EXCEPTION_ERROR;
981: END IF;
982: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 979: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

975: -- Call user hook for AFTER
976: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
977: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
978: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
979: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
980: raise OKC_API.G_EXCEPTION_ERROR;
981: END IF;
982: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
983: EXCEPTION

Line 980: raise OKC_API.G_EXCEPTION_ERROR;

976: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
977: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
978: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
979: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
980: raise OKC_API.G_EXCEPTION_ERROR;
981: END IF;
982: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
983: EXCEPTION
984: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 982: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

978: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
979: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
980: raise OKC_API.G_EXCEPTION_ERROR;
981: END IF;
982: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
983: EXCEPTION
984: WHEN OKC_API.G_EXCEPTION_ERROR THEN
985: x_return_status := OKC_API.HANDLE_EXCEPTIONS
986: (l_api_name,

Line 984: WHEN OKC_API.G_EXCEPTION_ERROR THEN

980: raise OKC_API.G_EXCEPTION_ERROR;
981: END IF;
982: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
983: EXCEPTION
984: WHEN OKC_API.G_EXCEPTION_ERROR THEN
985: x_return_status := OKC_API.HANDLE_EXCEPTIONS
986: (l_api_name,
987: G_PKG_NAME,
988: 'OKC_API.G_RET_STS_ERROR',

Line 985: x_return_status := OKC_API.HANDLE_EXCEPTIONS

981: END IF;
982: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
983: EXCEPTION
984: WHEN OKC_API.G_EXCEPTION_ERROR THEN
985: x_return_status := OKC_API.HANDLE_EXCEPTIONS
986: (l_api_name,
987: G_PKG_NAME,
988: 'OKC_API.G_RET_STS_ERROR',
989: x_msg_count,

Line 988: 'OKC_API.G_RET_STS_ERROR',

984: WHEN OKC_API.G_EXCEPTION_ERROR THEN
985: x_return_status := OKC_API.HANDLE_EXCEPTIONS
986: (l_api_name,
987: G_PKG_NAME,
988: 'OKC_API.G_RET_STS_ERROR',
989: x_msg_count,
990: x_msg_data,
991: '_PUB');
992: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 992: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

988: 'OKC_API.G_RET_STS_ERROR',
989: x_msg_count,
990: x_msg_data,
991: '_PUB');
992: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
993: x_return_status := OKC_API.HANDLE_EXCEPTIONS
994: (l_api_name,
995: G_PKG_NAME,
996: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 993: x_return_status := OKC_API.HANDLE_EXCEPTIONS

989: x_msg_count,
990: x_msg_data,
991: '_PUB');
992: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
993: x_return_status := OKC_API.HANDLE_EXCEPTIONS
994: (l_api_name,
995: G_PKG_NAME,
996: 'OKC_API.G_RET_STS_UNEXP_ERROR',
997: x_msg_count,

Line 996: 'OKC_API.G_RET_STS_UNEXP_ERROR',

992: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
993: x_return_status := OKC_API.HANDLE_EXCEPTIONS
994: (l_api_name,
995: G_PKG_NAME,
996: 'OKC_API.G_RET_STS_UNEXP_ERROR',
997: x_msg_count,
998: x_msg_data,
999: '_PUB');
1000: WHEN OTHERS THEN

Line 1001: x_return_status := OKC_API.HANDLE_EXCEPTIONS

997: x_msg_count,
998: x_msg_data,
999: '_PUB');
1000: WHEN OTHERS THEN
1001: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1002: (l_api_name,
1003: G_PKG_NAME,
1004: 'OTHERS',
1005: x_msg_count,

Line 1018: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

1014: x_msg_count OUT NOCOPY NUMBER,
1015: x_msg_data OUT NOCOPY VARCHAR2,
1016: p_talv_evt_tbl IN talv_evt_tbl_type) IS
1017: i NUMBER := 0;
1018: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
1019: BEGIN
1020: x_return_status := OKC_API.G_RET_STS_SUCCESS;
1021: IF p_talv_evt_tbl.COUNT > 0 THEN
1022: i := p_talv_evt_tbl.FIRST;

Line 1020: x_return_status := OKC_API.G_RET_STS_SUCCESS;

1016: p_talv_evt_tbl IN talv_evt_tbl_type) IS
1017: i NUMBER := 0;
1018: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
1019: BEGIN
1020: x_return_status := OKC_API.G_RET_STS_SUCCESS;
1021: IF p_talv_evt_tbl.COUNT > 0 THEN
1022: i := p_talv_evt_tbl.FIRST;
1023: LOOP
1024: DELETE_TPA_RELTV(

Line 1031: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

1027: l_return_status,
1028: x_msg_count,
1029: x_msg_data,
1030: p_talv_evt_tbl(i));
1031: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
1032: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1033: x_return_status := l_return_status;
1034: raise G_EXCEPTION_HALT_VALIDATION;
1035: ELSE

Line 1032: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1028: x_msg_count,
1029: x_msg_data,
1030: p_talv_evt_tbl(i));
1031: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
1032: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1033: x_return_status := l_return_status;
1034: raise G_EXCEPTION_HALT_VALIDATION;
1035: ELSE
1036: x_return_status := l_return_status;

Line 1047: OKC_API.set_message(p_app_name => g_app_name,

1043: EXCEPTION
1044: WHEN G_EXCEPTION_HALT_VALIDATION THEN
1045: NULL;
1046: WHEN OTHERS THEN
1047: OKC_API.set_message(p_app_name => g_app_name,
1048: p_msg_name => g_unexpected_error,
1049: p_token1 => g_sqlcode_token,
1050: p_token1_value => sqlcode,
1051: p_token2 => g_sqlerrm_token,

Line 1053: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

1049: p_token1 => g_sqlcode_token,
1050: p_token1_value => sqlcode,
1051: p_token2 => g_sqlerrm_token,
1052: p_token2_value => sqlerrm);
1053: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
1054: END DELETE_TPA_RELTV;
1055:
1056: PROCEDURE LOCK_TPA_RELTV(
1057: p_api_version IN NUMBER,

Line 1081: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

1077: x_msg_count OUT NOCOPY NUMBER,
1078: x_msg_data OUT NOCOPY VARCHAR2,
1079: p_talv_evt_tbl IN talv_evt_tbl_type) IS
1080: i NUMBER := 0;
1081: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
1082: BEGIN
1083: x_return_status := OKC_API.G_RET_STS_SUCCESS;
1084: IF p_talv_evt_tbl.COUNT > 0 THEN
1085: i := p_talv_evt_tbl.FIRST;

Line 1083: x_return_status := OKC_API.G_RET_STS_SUCCESS;

1079: p_talv_evt_tbl IN talv_evt_tbl_type) IS
1080: i NUMBER := 0;
1081: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
1082: BEGIN
1083: x_return_status := OKC_API.G_RET_STS_SUCCESS;
1084: IF p_talv_evt_tbl.COUNT > 0 THEN
1085: i := p_talv_evt_tbl.FIRST;
1086: LOOP
1087: LOCK_TPA_RELTV(

Line 1094: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

1090: l_return_status,
1091: x_msg_count,
1092: x_msg_data,
1093: p_talv_evt_tbl(i));
1094: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
1095: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1096: x_return_status := l_return_status;
1097: raise G_EXCEPTION_HALT_VALIDATION;
1098: ELSE

Line 1095: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1091: x_msg_count,
1092: x_msg_data,
1093: p_talv_evt_tbl(i));
1094: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
1095: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1096: x_return_status := l_return_status;
1097: raise G_EXCEPTION_HALT_VALIDATION;
1098: ELSE
1099: x_return_status := l_return_status;

Line 1110: OKC_API.set_message(p_app_name => g_app_name,

1106: EXCEPTION
1107: WHEN G_EXCEPTION_HALT_VALIDATION THEN
1108: NULL;
1109: WHEN OTHERS THEN
1110: OKC_API.set_message(p_app_name => g_app_name,
1111: p_msg_name => g_unexpected_error,
1112: p_token1 => g_sqlcode_token,
1113: p_token1_value => sqlcode,
1114: p_token2 => g_sqlerrm_token,

Line 1116: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

1112: p_token1 => g_sqlcode_token,
1113: p_token1_value => sqlcode,
1114: p_token2 => g_sqlerrm_token,
1115: p_token2_value => sqlerrm);
1116: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
1117: END LOCK_TPA_RELTV;
1118:
1119: PROCEDURE VALID_TPA_RELTV(
1120: p_api_version IN NUMBER,

Line 1144: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

1140: x_msg_count OUT NOCOPY NUMBER,
1141: x_msg_data OUT NOCOPY VARCHAR2,
1142: p_talv_evt_tbl IN talv_evt_tbl_type) IS
1143: i NUMBER := 0;
1144: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
1145: BEGIN
1146: x_return_status := OKC_API.G_RET_STS_SUCCESS;
1147: IF p_talv_evt_tbl.COUNT > 0 THEN
1148: i := p_talv_evt_tbl.FIRST;

Line 1146: x_return_status := OKC_API.G_RET_STS_SUCCESS;

1142: p_talv_evt_tbl IN talv_evt_tbl_type) IS
1143: i NUMBER := 0;
1144: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
1145: BEGIN
1146: x_return_status := OKC_API.G_RET_STS_SUCCESS;
1147: IF p_talv_evt_tbl.COUNT > 0 THEN
1148: i := p_talv_evt_tbl.FIRST;
1149: LOOP
1150: VALID_TPA_RELTV(

Line 1157: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

1153: l_return_status,
1154: x_msg_count,
1155: x_msg_data,
1156: p_talv_evt_tbl(i));
1157: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
1158: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1159: x_return_status := l_return_status;
1160: raise G_EXCEPTION_HALT_VALIDATION;
1161: ELSE

Line 1158: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1154: x_msg_count,
1155: x_msg_data,
1156: p_talv_evt_tbl(i));
1157: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
1158: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1159: x_return_status := l_return_status;
1160: raise G_EXCEPTION_HALT_VALIDATION;
1161: ELSE
1162: x_return_status := l_return_status;

Line 1173: OKC_API.set_message(p_app_name => g_app_name,

1169: EXCEPTION
1170: WHEN G_EXCEPTION_HALT_VALIDATION THEN
1171: NULL;
1172: WHEN OTHERS THEN
1173: OKC_API.set_message(p_app_name => g_app_name,
1174: p_msg_name => g_unexpected_error,
1175: p_token1 => g_sqlcode_token,
1176: p_token1_value => sqlcode,
1177: p_token2 => g_sqlerrm_token,

Line 1179: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

1175: p_token1 => g_sqlcode_token,
1176: p_token1_value => sqlcode,
1177: p_token2 => g_sqlerrm_token,
1178: p_token2_value => sqlerrm);
1179: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
1180: END VALID_TPA_RELTV;
1181:
1182: --------------------------------------------------------------------------
1183: ---The following procedures cater to handling of OKC_TIME_TPA_VALUE

Line 1265: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

1261: l_api_name CONSTANT VARCHAR2(30) := 'CREATE_TPA_VALUE';
1262: l_return_status VARCHAR2(1);
1263: l_tavv_rec tavv_rec_type := p_tavv_rec;
1264: BEGIN
1265: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
1266: p_init_msg_list,
1267: '_PUB',
1268: x_return_status);
1269: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 1269: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1265: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
1266: p_init_msg_list,
1267: '_PUB',
1268: x_return_status);
1269: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1270: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1271: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
1272: raise OKC_API.G_EXCEPTION_ERROR;
1273: END IF;

Line 1270: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

1266: p_init_msg_list,
1267: '_PUB',
1268: x_return_status);
1269: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1270: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1271: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
1272: raise OKC_API.G_EXCEPTION_ERROR;
1273: END IF;
1274: -- Call user hook for BEFORE

Line 1271: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

1267: '_PUB',
1268: x_return_status);
1269: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1270: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1271: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
1272: raise OKC_API.G_EXCEPTION_ERROR;
1273: END IF;
1274: -- Call user hook for BEFORE
1275: g_tavv_rec := l_tavv_rec;

Line 1272: raise OKC_API.G_EXCEPTION_ERROR;

1268: x_return_status);
1269: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1270: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1271: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
1272: raise OKC_API.G_EXCEPTION_ERROR;
1273: END IF;
1274: -- Call user hook for BEFORE
1275: g_tavv_rec := l_tavv_rec;
1276: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 1277: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1273: END IF;
1274: -- Call user hook for BEFORE
1275: g_tavv_rec := l_tavv_rec;
1276: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
1277: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1278: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1279: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1280: raise OKC_API.G_EXCEPTION_ERROR;
1281: END IF;

Line 1278: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

1274: -- Call user hook for BEFORE
1275: g_tavv_rec := l_tavv_rec;
1276: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
1277: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1278: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1279: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1280: raise OKC_API.G_EXCEPTION_ERROR;
1281: END IF;
1282: l_tavv_rec := migrate_tavv(l_tavv_rec, g_tavv_rec);

Line 1279: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

1275: g_tavv_rec := l_tavv_rec;
1276: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
1277: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1278: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1279: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1280: raise OKC_API.G_EXCEPTION_ERROR;
1281: END IF;
1282: l_tavv_rec := migrate_tavv(l_tavv_rec, g_tavv_rec);
1283: OKC_TIME_PVT.CREATE_TPA_VALUE(

Line 1280: raise OKC_API.G_EXCEPTION_ERROR;

1276: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
1277: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1278: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1279: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1280: raise OKC_API.G_EXCEPTION_ERROR;
1281: END IF;
1282: l_tavv_rec := migrate_tavv(l_tavv_rec, g_tavv_rec);
1283: OKC_TIME_PVT.CREATE_TPA_VALUE(
1284: p_api_version,

Line 1291: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1287: x_msg_count,
1288: x_msg_data,
1289: p_tavv_rec,
1290: x_tavv_rec);
1291: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1292: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1293: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1294: raise OKC_API.G_EXCEPTION_ERROR;
1295: END IF;

Line 1292: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

1288: x_msg_data,
1289: p_tavv_rec,
1290: x_tavv_rec);
1291: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1292: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1293: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1294: raise OKC_API.G_EXCEPTION_ERROR;
1295: END IF;
1296:

Line 1293: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

1289: p_tavv_rec,
1290: x_tavv_rec);
1291: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1292: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1293: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1294: raise OKC_API.G_EXCEPTION_ERROR;
1295: END IF;
1296:
1297: -- Call user hook for AFTER

Line 1294: raise OKC_API.G_EXCEPTION_ERROR;

1290: x_tavv_rec);
1291: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1292: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1293: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1294: raise OKC_API.G_EXCEPTION_ERROR;
1295: END IF;
1296:
1297: -- Call user hook for AFTER
1298: g_tavv_rec := x_tavv_rec;

Line 1300: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1296:
1297: -- Call user hook for AFTER
1298: g_tavv_rec := x_tavv_rec;
1299: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
1300: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1301: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1302: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1303: raise OKC_API.G_EXCEPTION_ERROR;
1304: END IF;

Line 1301: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

1297: -- Call user hook for AFTER
1298: g_tavv_rec := x_tavv_rec;
1299: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
1300: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1301: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1302: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1303: raise OKC_API.G_EXCEPTION_ERROR;
1304: END IF;
1305: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 1302: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

1298: g_tavv_rec := x_tavv_rec;
1299: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
1300: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1301: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1302: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1303: raise OKC_API.G_EXCEPTION_ERROR;
1304: END IF;
1305: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
1306: EXCEPTION

Line 1303: raise OKC_API.G_EXCEPTION_ERROR;

1299: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
1300: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1301: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1302: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1303: raise OKC_API.G_EXCEPTION_ERROR;
1304: END IF;
1305: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
1306: EXCEPTION
1307: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 1305: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

1301: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1302: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1303: raise OKC_API.G_EXCEPTION_ERROR;
1304: END IF;
1305: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
1306: EXCEPTION
1307: WHEN OKC_API.G_EXCEPTION_ERROR THEN
1308: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1309: (l_api_name,

Line 1307: WHEN OKC_API.G_EXCEPTION_ERROR THEN

1303: raise OKC_API.G_EXCEPTION_ERROR;
1304: END IF;
1305: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
1306: EXCEPTION
1307: WHEN OKC_API.G_EXCEPTION_ERROR THEN
1308: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1309: (l_api_name,
1310: G_PKG_NAME,
1311: 'OKC_API.G_RET_STS_ERROR',

Line 1308: x_return_status := OKC_API.HANDLE_EXCEPTIONS

1304: END IF;
1305: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
1306: EXCEPTION
1307: WHEN OKC_API.G_EXCEPTION_ERROR THEN
1308: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1309: (l_api_name,
1310: G_PKG_NAME,
1311: 'OKC_API.G_RET_STS_ERROR',
1312: x_msg_count,

Line 1311: 'OKC_API.G_RET_STS_ERROR',

1307: WHEN OKC_API.G_EXCEPTION_ERROR THEN
1308: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1309: (l_api_name,
1310: G_PKG_NAME,
1311: 'OKC_API.G_RET_STS_ERROR',
1312: x_msg_count,
1313: x_msg_data,
1314: '_PUB');
1315: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 1315: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

1311: 'OKC_API.G_RET_STS_ERROR',
1312: x_msg_count,
1313: x_msg_data,
1314: '_PUB');
1315: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
1316: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1317: (l_api_name,
1318: G_PKG_NAME,
1319: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 1316: x_return_status := OKC_API.HANDLE_EXCEPTIONS

1312: x_msg_count,
1313: x_msg_data,
1314: '_PUB');
1315: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
1316: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1317: (l_api_name,
1318: G_PKG_NAME,
1319: 'OKC_API.G_RET_STS_UNEXP_ERROR',
1320: x_msg_count,

Line 1319: 'OKC_API.G_RET_STS_UNEXP_ERROR',

1315: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
1316: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1317: (l_api_name,
1318: G_PKG_NAME,
1319: 'OKC_API.G_RET_STS_UNEXP_ERROR',
1320: x_msg_count,
1321: x_msg_data,
1322: '_PUB');
1323: WHEN OTHERS THEN

Line 1324: x_return_status := OKC_API.HANDLE_EXCEPTIONS

1320: x_msg_count,
1321: x_msg_data,
1322: '_PUB');
1323: WHEN OTHERS THEN
1324: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1325: (l_api_name,
1326: G_PKG_NAME,
1327: 'OTHERS',
1328: x_msg_count,

Line 1342: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

1338: x_msg_data OUT NOCOPY VARCHAR2,
1339: p_tavv_tbl IN tavv_tbl_type,
1340: x_tavv_tbl OUT NOCOPY tavv_tbl_type) IS
1341: i NUMBER := 0;
1342: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
1343: BEGIN
1344: x_return_status := OKC_API.G_RET_STS_SUCCESS;
1345: IF p_tavv_tbl.COUNT > 0 THEN
1346: i := p_tavv_tbl.FIRST;

Line 1344: x_return_status := OKC_API.G_RET_STS_SUCCESS;

1340: x_tavv_tbl OUT NOCOPY tavv_tbl_type) IS
1341: i NUMBER := 0;
1342: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
1343: BEGIN
1344: x_return_status := OKC_API.G_RET_STS_SUCCESS;
1345: IF p_tavv_tbl.COUNT > 0 THEN
1346: i := p_tavv_tbl.FIRST;
1347: LOOP
1348: CREATE_TPA_VALUE(

Line 1356: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

1352: x_msg_count,
1353: x_msg_data,
1354: p_tavv_tbl(i),
1355: x_tavv_tbl(i));
1356: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
1357: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1358: x_return_status := l_return_status;
1359: raise G_EXCEPTION_HALT_VALIDATION;
1360: ELSE

Line 1357: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1353: x_msg_data,
1354: p_tavv_tbl(i),
1355: x_tavv_tbl(i));
1356: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
1357: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1358: x_return_status := l_return_status;
1359: raise G_EXCEPTION_HALT_VALIDATION;
1360: ELSE
1361: x_return_status := l_return_status;

Line 1372: OKC_API.set_message(p_app_name => g_app_name,

1368: EXCEPTION
1369: WHEN G_EXCEPTION_HALT_VALIDATION THEN
1370: NULL;
1371: WHEN OTHERS THEN
1372: OKC_API.set_message(p_app_name => g_app_name,
1373: p_msg_name => g_unexpected_error,
1374: p_token1 => g_sqlcode_token,
1375: p_token1_value => sqlcode,
1376: p_token2 => g_sqlerrm_token,

Line 1378: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

1374: p_token1 => g_sqlcode_token,
1375: p_token1_value => sqlcode,
1376: p_token2 => g_sqlerrm_token,
1377: p_token2_value => sqlerrm);
1378: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
1379: END CREATE_TPA_VALUE;
1380:
1381: PROCEDURE UPDATE_TPA_VALUE(
1382: p_api_version IN NUMBER,

Line 1393: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

1389: l_api_name CONSTANT VARCHAR2(30) := 'UPDATE_TPA_VALUE';
1390: l_return_status VARCHAR2(1);
1391: l_tavv_rec tavv_rec_type := p_tavv_rec;
1392: BEGIN
1393: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
1394: p_init_msg_list,
1395: '_PUB',
1396: x_return_status);
1397: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 1397: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1393: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
1394: p_init_msg_list,
1395: '_PUB',
1396: x_return_status);
1397: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1398: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1399: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
1400: raise OKC_API.G_EXCEPTION_ERROR;
1401: END IF;

Line 1398: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

1394: p_init_msg_list,
1395: '_PUB',
1396: x_return_status);
1397: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1398: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1399: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
1400: raise OKC_API.G_EXCEPTION_ERROR;
1401: END IF;
1402: -- Call user hook for BEFORE

Line 1399: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

1395: '_PUB',
1396: x_return_status);
1397: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1398: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1399: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
1400: raise OKC_API.G_EXCEPTION_ERROR;
1401: END IF;
1402: -- Call user hook for BEFORE
1403: g_tavv_rec := l_tavv_rec;

Line 1400: raise OKC_API.G_EXCEPTION_ERROR;

1396: x_return_status);
1397: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1398: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1399: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
1400: raise OKC_API.G_EXCEPTION_ERROR;
1401: END IF;
1402: -- Call user hook for BEFORE
1403: g_tavv_rec := l_tavv_rec;
1404: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 1405: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1401: END IF;
1402: -- Call user hook for BEFORE
1403: g_tavv_rec := l_tavv_rec;
1404: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
1405: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1406: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1407: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1408: raise OKC_API.G_EXCEPTION_ERROR;
1409: END IF;

Line 1406: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

1402: -- Call user hook for BEFORE
1403: g_tavv_rec := l_tavv_rec;
1404: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
1405: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1406: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1407: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1408: raise OKC_API.G_EXCEPTION_ERROR;
1409: END IF;
1410: l_tavv_rec := migrate_tavv(l_tavv_rec, g_tavv_rec);

Line 1407: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

1403: g_tavv_rec := l_tavv_rec;
1404: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
1405: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1406: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1407: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1408: raise OKC_API.G_EXCEPTION_ERROR;
1409: END IF;
1410: l_tavv_rec := migrate_tavv(l_tavv_rec, g_tavv_rec);
1411: OKC_TIME_PVT.UPDATE_TPA_VALUE(

Line 1408: raise OKC_API.G_EXCEPTION_ERROR;

1404: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
1405: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1406: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1407: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1408: raise OKC_API.G_EXCEPTION_ERROR;
1409: END IF;
1410: l_tavv_rec := migrate_tavv(l_tavv_rec, g_tavv_rec);
1411: OKC_TIME_PVT.UPDATE_TPA_VALUE(
1412: p_api_version,

Line 1419: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1415: x_msg_count,
1416: x_msg_data,
1417: p_tavv_rec,
1418: x_tavv_rec);
1419: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1420: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1421: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1422: raise OKC_API.G_EXCEPTION_ERROR;
1423: END IF;

Line 1420: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

1416: x_msg_data,
1417: p_tavv_rec,
1418: x_tavv_rec);
1419: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1420: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1421: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1422: raise OKC_API.G_EXCEPTION_ERROR;
1423: END IF;
1424:

Line 1421: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

1417: p_tavv_rec,
1418: x_tavv_rec);
1419: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1420: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1421: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1422: raise OKC_API.G_EXCEPTION_ERROR;
1423: END IF;
1424:
1425: -- Call user hook for AFTER

Line 1422: raise OKC_API.G_EXCEPTION_ERROR;

1418: x_tavv_rec);
1419: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1420: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1421: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1422: raise OKC_API.G_EXCEPTION_ERROR;
1423: END IF;
1424:
1425: -- Call user hook for AFTER
1426: g_tavv_rec := x_tavv_rec;

Line 1428: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1424:
1425: -- Call user hook for AFTER
1426: g_tavv_rec := x_tavv_rec;
1427: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
1428: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1429: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1430: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1431: raise OKC_API.G_EXCEPTION_ERROR;
1432: END IF;

Line 1429: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

1425: -- Call user hook for AFTER
1426: g_tavv_rec := x_tavv_rec;
1427: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
1428: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1429: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1430: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1431: raise OKC_API.G_EXCEPTION_ERROR;
1432: END IF;
1433: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 1430: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

1426: g_tavv_rec := x_tavv_rec;
1427: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
1428: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1429: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1430: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1431: raise OKC_API.G_EXCEPTION_ERROR;
1432: END IF;
1433: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
1434: EXCEPTION

Line 1431: raise OKC_API.G_EXCEPTION_ERROR;

1427: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
1428: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1429: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1430: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1431: raise OKC_API.G_EXCEPTION_ERROR;
1432: END IF;
1433: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
1434: EXCEPTION
1435: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 1433: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

1429: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1430: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1431: raise OKC_API.G_EXCEPTION_ERROR;
1432: END IF;
1433: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
1434: EXCEPTION
1435: WHEN OKC_API.G_EXCEPTION_ERROR THEN
1436: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1437: (l_api_name,

Line 1435: WHEN OKC_API.G_EXCEPTION_ERROR THEN

1431: raise OKC_API.G_EXCEPTION_ERROR;
1432: END IF;
1433: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
1434: EXCEPTION
1435: WHEN OKC_API.G_EXCEPTION_ERROR THEN
1436: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1437: (l_api_name,
1438: G_PKG_NAME,
1439: 'OKC_API.G_RET_STS_ERROR',

Line 1436: x_return_status := OKC_API.HANDLE_EXCEPTIONS

1432: END IF;
1433: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
1434: EXCEPTION
1435: WHEN OKC_API.G_EXCEPTION_ERROR THEN
1436: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1437: (l_api_name,
1438: G_PKG_NAME,
1439: 'OKC_API.G_RET_STS_ERROR',
1440: x_msg_count,

Line 1439: 'OKC_API.G_RET_STS_ERROR',

1435: WHEN OKC_API.G_EXCEPTION_ERROR THEN
1436: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1437: (l_api_name,
1438: G_PKG_NAME,
1439: 'OKC_API.G_RET_STS_ERROR',
1440: x_msg_count,
1441: x_msg_data,
1442: '_PUB');
1443: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 1443: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

1439: 'OKC_API.G_RET_STS_ERROR',
1440: x_msg_count,
1441: x_msg_data,
1442: '_PUB');
1443: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
1444: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1445: (l_api_name,
1446: G_PKG_NAME,
1447: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 1444: x_return_status := OKC_API.HANDLE_EXCEPTIONS

1440: x_msg_count,
1441: x_msg_data,
1442: '_PUB');
1443: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
1444: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1445: (l_api_name,
1446: G_PKG_NAME,
1447: 'OKC_API.G_RET_STS_UNEXP_ERROR',
1448: x_msg_count,

Line 1447: 'OKC_API.G_RET_STS_UNEXP_ERROR',

1443: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
1444: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1445: (l_api_name,
1446: G_PKG_NAME,
1447: 'OKC_API.G_RET_STS_UNEXP_ERROR',
1448: x_msg_count,
1449: x_msg_data,
1450: '_PUB');
1451: WHEN OTHERS THEN

Line 1452: x_return_status := OKC_API.HANDLE_EXCEPTIONS

1448: x_msg_count,
1449: x_msg_data,
1450: '_PUB');
1451: WHEN OTHERS THEN
1452: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1453: (l_api_name,
1454: G_PKG_NAME,
1455: 'OTHERS',
1456: x_msg_count,

Line 1470: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

1466: x_msg_data OUT NOCOPY VARCHAR2,
1467: p_tavv_tbl IN tavv_tbl_type,
1468: x_tavv_tbl OUT NOCOPY tavv_tbl_type) IS
1469: i NUMBER := 0;
1470: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
1471: BEGIN
1472: x_return_status := OKC_API.G_RET_STS_SUCCESS;
1473: IF p_tavv_tbl.COUNT > 0 THEN
1474: i := p_tavv_tbl.FIRST;

Line 1472: x_return_status := OKC_API.G_RET_STS_SUCCESS;

1468: x_tavv_tbl OUT NOCOPY tavv_tbl_type) IS
1469: i NUMBER := 0;
1470: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
1471: BEGIN
1472: x_return_status := OKC_API.G_RET_STS_SUCCESS;
1473: IF p_tavv_tbl.COUNT > 0 THEN
1474: i := p_tavv_tbl.FIRST;
1475: LOOP
1476: UPDATE_TPA_VALUE(

Line 1484: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

1480: x_msg_count,
1481: x_msg_data,
1482: p_tavv_tbl(i),
1483: x_tavv_tbl(i));
1484: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
1485: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1486: x_return_status := l_return_status;
1487: raise G_EXCEPTION_HALT_VALIDATION;
1488: ELSE

Line 1485: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1481: x_msg_data,
1482: p_tavv_tbl(i),
1483: x_tavv_tbl(i));
1484: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
1485: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1486: x_return_status := l_return_status;
1487: raise G_EXCEPTION_HALT_VALIDATION;
1488: ELSE
1489: x_return_status := l_return_status;

Line 1500: OKC_API.set_message(p_app_name => g_app_name,

1496: EXCEPTION
1497: WHEN G_EXCEPTION_HALT_VALIDATION THEN
1498: NULL;
1499: WHEN OTHERS THEN
1500: OKC_API.set_message(p_app_name => g_app_name,
1501: p_msg_name => g_unexpected_error,
1502: p_token1 => g_sqlcode_token,
1503: p_token1_value => sqlcode,
1504: p_token2 => g_sqlerrm_token,

Line 1506: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

1502: p_token1 => g_sqlcode_token,
1503: p_token1_value => sqlcode,
1504: p_token2 => g_sqlerrm_token,
1505: p_token2_value => sqlerrm);
1506: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
1507: END UPDATE_TPA_VALUE;
1508:
1509: PROCEDURE DELETE_TPA_VALUE(
1510: p_api_version IN NUMBER,

Line 1520: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

1516: l_api_name CONSTANT VARCHAR2(30) := 'DELETE_TPA_VALUE';
1517: l_return_status VARCHAR2(1);
1518: l_tavv_rec tavv_rec_type := p_tavv_rec;
1519: BEGIN
1520: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
1521: p_init_msg_list,
1522: '_PUB',
1523: x_return_status);
1524: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 1524: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1520: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
1521: p_init_msg_list,
1522: '_PUB',
1523: x_return_status);
1524: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1525: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1526: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
1527: raise OKC_API.G_EXCEPTION_ERROR;
1528: END IF;

Line 1525: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

1521: p_init_msg_list,
1522: '_PUB',
1523: x_return_status);
1524: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1525: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1526: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
1527: raise OKC_API.G_EXCEPTION_ERROR;
1528: END IF;
1529: -- Call user hook for BEFORE

Line 1526: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

1522: '_PUB',
1523: x_return_status);
1524: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1525: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1526: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
1527: raise OKC_API.G_EXCEPTION_ERROR;
1528: END IF;
1529: -- Call user hook for BEFORE
1530: g_tavv_rec := l_tavv_rec;

Line 1527: raise OKC_API.G_EXCEPTION_ERROR;

1523: x_return_status);
1524: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1525: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1526: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
1527: raise OKC_API.G_EXCEPTION_ERROR;
1528: END IF;
1529: -- Call user hook for BEFORE
1530: g_tavv_rec := l_tavv_rec;
1531: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 1532: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1528: END IF;
1529: -- Call user hook for BEFORE
1530: g_tavv_rec := l_tavv_rec;
1531: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
1532: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1533: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1534: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1535: raise OKC_API.G_EXCEPTION_ERROR;
1536: END IF;

Line 1533: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

1529: -- Call user hook for BEFORE
1530: g_tavv_rec := l_tavv_rec;
1531: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
1532: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1533: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1534: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1535: raise OKC_API.G_EXCEPTION_ERROR;
1536: END IF;
1537: OKC_TIME_PVT.DELETE_TPA_VALUE(

Line 1534: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

1530: g_tavv_rec := l_tavv_rec;
1531: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
1532: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1533: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1534: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1535: raise OKC_API.G_EXCEPTION_ERROR;
1536: END IF;
1537: OKC_TIME_PVT.DELETE_TPA_VALUE(
1538: p_api_version,

Line 1535: raise OKC_API.G_EXCEPTION_ERROR;

1531: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
1532: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1533: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1534: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1535: raise OKC_API.G_EXCEPTION_ERROR;
1536: END IF;
1537: OKC_TIME_PVT.DELETE_TPA_VALUE(
1538: p_api_version,
1539: p_init_msg_list,

Line 1544: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1540: x_return_status,
1541: x_msg_count,
1542: x_msg_data,
1543: p_tavv_rec);
1544: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1545: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1546: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1547: raise OKC_API.G_EXCEPTION_ERROR;
1548: END IF;

Line 1545: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

1541: x_msg_count,
1542: x_msg_data,
1543: p_tavv_rec);
1544: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1545: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1546: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1547: raise OKC_API.G_EXCEPTION_ERROR;
1548: END IF;
1549:

Line 1546: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

1542: x_msg_data,
1543: p_tavv_rec);
1544: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1545: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1546: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1547: raise OKC_API.G_EXCEPTION_ERROR;
1548: END IF;
1549:
1550: -- Call user hook for AFTER

Line 1547: raise OKC_API.G_EXCEPTION_ERROR;

1543: p_tavv_rec);
1544: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1545: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1546: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1547: raise OKC_API.G_EXCEPTION_ERROR;
1548: END IF;
1549:
1550: -- Call user hook for AFTER
1551: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');

Line 1552: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1548: END IF;
1549:
1550: -- Call user hook for AFTER
1551: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
1552: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1553: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1554: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1555: raise OKC_API.G_EXCEPTION_ERROR;
1556: END IF;

Line 1553: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

1549:
1550: -- Call user hook for AFTER
1551: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
1552: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1553: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1554: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1555: raise OKC_API.G_EXCEPTION_ERROR;
1556: END IF;
1557: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 1554: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

1550: -- Call user hook for AFTER
1551: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
1552: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1553: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1554: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1555: raise OKC_API.G_EXCEPTION_ERROR;
1556: END IF;
1557: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
1558: EXCEPTION

Line 1555: raise OKC_API.G_EXCEPTION_ERROR;

1551: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
1552: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1553: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1554: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1555: raise OKC_API.G_EXCEPTION_ERROR;
1556: END IF;
1557: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
1558: EXCEPTION
1559: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 1557: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

1553: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1554: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1555: raise OKC_API.G_EXCEPTION_ERROR;
1556: END IF;
1557: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
1558: EXCEPTION
1559: WHEN OKC_API.G_EXCEPTION_ERROR THEN
1560: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1561: (l_api_name,

Line 1559: WHEN OKC_API.G_EXCEPTION_ERROR THEN

1555: raise OKC_API.G_EXCEPTION_ERROR;
1556: END IF;
1557: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
1558: EXCEPTION
1559: WHEN OKC_API.G_EXCEPTION_ERROR THEN
1560: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1561: (l_api_name,
1562: G_PKG_NAME,
1563: 'OKC_API.G_RET_STS_ERROR',

Line 1560: x_return_status := OKC_API.HANDLE_EXCEPTIONS

1556: END IF;
1557: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
1558: EXCEPTION
1559: WHEN OKC_API.G_EXCEPTION_ERROR THEN
1560: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1561: (l_api_name,
1562: G_PKG_NAME,
1563: 'OKC_API.G_RET_STS_ERROR',
1564: x_msg_count,

Line 1563: 'OKC_API.G_RET_STS_ERROR',

1559: WHEN OKC_API.G_EXCEPTION_ERROR THEN
1560: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1561: (l_api_name,
1562: G_PKG_NAME,
1563: 'OKC_API.G_RET_STS_ERROR',
1564: x_msg_count,
1565: x_msg_data,
1566: '_PUB');
1567: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 1567: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

1563: 'OKC_API.G_RET_STS_ERROR',
1564: x_msg_count,
1565: x_msg_data,
1566: '_PUB');
1567: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
1568: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1569: (l_api_name,
1570: G_PKG_NAME,
1571: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 1568: x_return_status := OKC_API.HANDLE_EXCEPTIONS

1564: x_msg_count,
1565: x_msg_data,
1566: '_PUB');
1567: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
1568: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1569: (l_api_name,
1570: G_PKG_NAME,
1571: 'OKC_API.G_RET_STS_UNEXP_ERROR',
1572: x_msg_count,

Line 1571: 'OKC_API.G_RET_STS_UNEXP_ERROR',

1567: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
1568: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1569: (l_api_name,
1570: G_PKG_NAME,
1571: 'OKC_API.G_RET_STS_UNEXP_ERROR',
1572: x_msg_count,
1573: x_msg_data,
1574: '_PUB');
1575: WHEN OTHERS THEN

Line 1576: x_return_status := OKC_API.HANDLE_EXCEPTIONS

1572: x_msg_count,
1573: x_msg_data,
1574: '_PUB');
1575: WHEN OTHERS THEN
1576: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1577: (l_api_name,
1578: G_PKG_NAME,
1579: 'OTHERS',
1580: x_msg_count,

Line 1593: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

1589: x_msg_count OUT NOCOPY NUMBER,
1590: x_msg_data OUT NOCOPY VARCHAR2,
1591: p_tavv_tbl IN tavv_tbl_type) IS
1592: i NUMBER := 0;
1593: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
1594: BEGIN
1595: x_return_status := OKC_API.G_RET_STS_SUCCESS;
1596: IF p_tavv_tbl.COUNT > 0 THEN
1597: i := p_tavv_tbl.FIRST;

Line 1595: x_return_status := OKC_API.G_RET_STS_SUCCESS;

1591: p_tavv_tbl IN tavv_tbl_type) IS
1592: i NUMBER := 0;
1593: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
1594: BEGIN
1595: x_return_status := OKC_API.G_RET_STS_SUCCESS;
1596: IF p_tavv_tbl.COUNT > 0 THEN
1597: i := p_tavv_tbl.FIRST;
1598: LOOP
1599: DELETE_TPA_VALUE(

Line 1606: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

1602: l_return_status,
1603: x_msg_count,
1604: x_msg_data,
1605: p_tavv_tbl(i));
1606: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
1607: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1608: x_return_status := l_return_status;
1609: raise G_EXCEPTION_HALT_VALIDATION;
1610: ELSE

Line 1607: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1603: x_msg_count,
1604: x_msg_data,
1605: p_tavv_tbl(i));
1606: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
1607: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1608: x_return_status := l_return_status;
1609: raise G_EXCEPTION_HALT_VALIDATION;
1610: ELSE
1611: x_return_status := l_return_status;

Line 1622: OKC_API.set_message(p_app_name => g_app_name,

1618: EXCEPTION
1619: WHEN G_EXCEPTION_HALT_VALIDATION THEN
1620: NULL;
1621: WHEN OTHERS THEN
1622: OKC_API.set_message(p_app_name => g_app_name,
1623: p_msg_name => g_unexpected_error,
1624: p_token1 => g_sqlcode_token,
1625: p_token1_value => sqlcode,
1626: p_token2 => g_sqlerrm_token,

Line 1628: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

1624: p_token1 => g_sqlcode_token,
1625: p_token1_value => sqlcode,
1626: p_token2 => g_sqlerrm_token,
1627: p_token2_value => sqlerrm);
1628: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
1629: END DELETE_TPA_VALUE;
1630:
1631: PROCEDURE LOCK_TPA_VALUE(
1632: p_api_version IN NUMBER,

Line 1656: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

1652: x_msg_count OUT NOCOPY NUMBER,
1653: x_msg_data OUT NOCOPY VARCHAR2,
1654: p_tavv_tbl IN tavv_tbl_type) IS
1655: i NUMBER := 0;
1656: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
1657: BEGIN
1658: x_return_status := OKC_API.G_RET_STS_SUCCESS;
1659: IF p_tavv_tbl.COUNT > 0 THEN
1660: i := p_tavv_tbl.FIRST;

Line 1658: x_return_status := OKC_API.G_RET_STS_SUCCESS;

1654: p_tavv_tbl IN tavv_tbl_type) IS
1655: i NUMBER := 0;
1656: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
1657: BEGIN
1658: x_return_status := OKC_API.G_RET_STS_SUCCESS;
1659: IF p_tavv_tbl.COUNT > 0 THEN
1660: i := p_tavv_tbl.FIRST;
1661: LOOP
1662: LOCK_TPA_VALUE(

Line 1669: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

1665: l_return_status,
1666: x_msg_count,
1667: x_msg_data,
1668: p_tavv_tbl(i));
1669: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
1670: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1671: x_return_status := l_return_status;
1672: raise G_EXCEPTION_HALT_VALIDATION;
1673: ELSE

Line 1670: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1666: x_msg_count,
1667: x_msg_data,
1668: p_tavv_tbl(i));
1669: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
1670: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1671: x_return_status := l_return_status;
1672: raise G_EXCEPTION_HALT_VALIDATION;
1673: ELSE
1674: x_return_status := l_return_status;

Line 1685: OKC_API.set_message(p_app_name => g_app_name,

1681: EXCEPTION
1682: WHEN G_EXCEPTION_HALT_VALIDATION THEN
1683: NULL;
1684: WHEN OTHERS THEN
1685: OKC_API.set_message(p_app_name => g_app_name,
1686: p_msg_name => g_unexpected_error,
1687: p_token1 => g_sqlcode_token,
1688: p_token1_value => sqlcode,
1689: p_token2 => g_sqlerrm_token,

Line 1691: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

1687: p_token1 => g_sqlcode_token,
1688: p_token1_value => sqlcode,
1689: p_token2 => g_sqlerrm_token,
1690: p_token2_value => sqlerrm);
1691: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
1692: END LOCK_TPA_VALUE;
1693:
1694: PROCEDURE VALID_TPA_VALUE(
1695: p_api_version IN NUMBER,

Line 1719: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

1715: x_msg_count OUT NOCOPY NUMBER,
1716: x_msg_data OUT NOCOPY VARCHAR2,
1717: p_tavv_tbl IN tavv_tbl_type) IS
1718: i NUMBER := 0;
1719: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
1720: BEGIN
1721: x_return_status := OKC_API.G_RET_STS_SUCCESS;
1722: IF p_tavv_tbl.COUNT > 0 THEN
1723: i := p_tavv_tbl.FIRST;

Line 1721: x_return_status := OKC_API.G_RET_STS_SUCCESS;

1717: p_tavv_tbl IN tavv_tbl_type) IS
1718: i NUMBER := 0;
1719: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
1720: BEGIN
1721: x_return_status := OKC_API.G_RET_STS_SUCCESS;
1722: IF p_tavv_tbl.COUNT > 0 THEN
1723: i := p_tavv_tbl.FIRST;
1724: LOOP
1725: VALID_TPA_VALUE(

Line 1732: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

1728: l_return_status,
1729: x_msg_count,
1730: x_msg_data,
1731: p_tavv_tbl(i));
1732: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
1733: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1734: x_return_status := l_return_status;
1735: raise G_EXCEPTION_HALT_VALIDATION;
1736: ELSE

Line 1733: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1729: x_msg_count,
1730: x_msg_data,
1731: p_tavv_tbl(i));
1732: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
1733: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1734: x_return_status := l_return_status;
1735: raise G_EXCEPTION_HALT_VALIDATION;
1736: ELSE
1737: x_return_status := l_return_status;

Line 1748: OKC_API.set_message(p_app_name => g_app_name,

1744: EXCEPTION
1745: WHEN G_EXCEPTION_HALT_VALIDATION THEN
1746: NULL;
1747: WHEN OTHERS THEN
1748: OKC_API.set_message(p_app_name => g_app_name,
1749: p_msg_name => g_unexpected_error,
1750: p_token1 => g_sqlcode_token,
1751: p_token1_value => sqlcode,
1752: p_token2 => g_sqlerrm_token,

Line 1754: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

1750: p_token1 => g_sqlcode_token,
1751: p_token1_value => sqlcode,
1752: p_token2 => g_sqlerrm_token,
1753: p_token2_value => sqlerrm);
1754: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
1755: END VALID_TPA_VALUE;
1756:
1757: --------------------------------------------------------------------------
1758: ---The following procedures cater to handling of OKC_TIME_TPG_DELIMITED

Line 1846: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

1842: l_api_name CONSTANT VARCHAR2(30) := 'CREATE_TPG_DELIMITED';
1843: l_return_status VARCHAR2(1);
1844: l_tgdv_ext_rec tgdv_ext_rec_type := p_tgdv_ext_rec;
1845: BEGIN
1846: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
1847: p_init_msg_list,
1848: '_PUB',
1849: x_return_status);
1850: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 1850: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1846: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
1847: p_init_msg_list,
1848: '_PUB',
1849: x_return_status);
1850: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1851: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1852: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
1853: raise OKC_API.G_EXCEPTION_ERROR;
1854: END IF;

Line 1851: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

1847: p_init_msg_list,
1848: '_PUB',
1849: x_return_status);
1850: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1851: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1852: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
1853: raise OKC_API.G_EXCEPTION_ERROR;
1854: END IF;
1855: -- Call user hook for BEFORE

Line 1852: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

1848: '_PUB',
1849: x_return_status);
1850: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1851: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1852: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
1853: raise OKC_API.G_EXCEPTION_ERROR;
1854: END IF;
1855: -- Call user hook for BEFORE
1856: g_tgdv_ext_rec := l_tgdv_ext_rec;

Line 1853: raise OKC_API.G_EXCEPTION_ERROR;

1849: x_return_status);
1850: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1851: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1852: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
1853: raise OKC_API.G_EXCEPTION_ERROR;
1854: END IF;
1855: -- Call user hook for BEFORE
1856: g_tgdv_ext_rec := l_tgdv_ext_rec;
1857: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 1858: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1854: END IF;
1855: -- Call user hook for BEFORE
1856: g_tgdv_ext_rec := l_tgdv_ext_rec;
1857: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
1858: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1859: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1860: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1861: raise OKC_API.G_EXCEPTION_ERROR;
1862: END IF;

Line 1859: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

1855: -- Call user hook for BEFORE
1856: g_tgdv_ext_rec := l_tgdv_ext_rec;
1857: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
1858: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1859: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1860: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1861: raise OKC_API.G_EXCEPTION_ERROR;
1862: END IF;
1863: l_tgdv_ext_rec := migrate_tgdv(l_tgdv_ext_rec, g_tgdv_ext_rec);

Line 1860: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

1856: g_tgdv_ext_rec := l_tgdv_ext_rec;
1857: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
1858: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1859: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1860: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1861: raise OKC_API.G_EXCEPTION_ERROR;
1862: END IF;
1863: l_tgdv_ext_rec := migrate_tgdv(l_tgdv_ext_rec, g_tgdv_ext_rec);
1864: OKC_TIME_PVT.CREATE_TPG_DELIMITED(

Line 1861: raise OKC_API.G_EXCEPTION_ERROR;

1857: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
1858: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1859: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1860: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1861: raise OKC_API.G_EXCEPTION_ERROR;
1862: END IF;
1863: l_tgdv_ext_rec := migrate_tgdv(l_tgdv_ext_rec, g_tgdv_ext_rec);
1864: OKC_TIME_PVT.CREATE_TPG_DELIMITED(
1865: p_api_version,

Line 1872: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1868: x_msg_count,
1869: x_msg_data,
1870: p_tgdv_ext_rec,
1871: x_tgdv_ext_rec);
1872: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1873: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1874: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1875: raise OKC_API.G_EXCEPTION_ERROR;
1876: END IF;

Line 1873: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

1869: x_msg_data,
1870: p_tgdv_ext_rec,
1871: x_tgdv_ext_rec);
1872: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1873: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1874: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1875: raise OKC_API.G_EXCEPTION_ERROR;
1876: END IF;
1877:

Line 1874: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

1870: p_tgdv_ext_rec,
1871: x_tgdv_ext_rec);
1872: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1873: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1874: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1875: raise OKC_API.G_EXCEPTION_ERROR;
1876: END IF;
1877:
1878: -- Call user hook for AFTER

Line 1875: raise OKC_API.G_EXCEPTION_ERROR;

1871: x_tgdv_ext_rec);
1872: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1873: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1874: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1875: raise OKC_API.G_EXCEPTION_ERROR;
1876: END IF;
1877:
1878: -- Call user hook for AFTER
1879: g_tgdv_ext_rec := x_tgdv_ext_rec;

Line 1881: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1877:
1878: -- Call user hook for AFTER
1879: g_tgdv_ext_rec := x_tgdv_ext_rec;
1880: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
1881: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1882: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1883: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1884: raise OKC_API.G_EXCEPTION_ERROR;
1885: END IF;

Line 1882: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

1878: -- Call user hook for AFTER
1879: g_tgdv_ext_rec := x_tgdv_ext_rec;
1880: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
1881: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1882: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1883: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1884: raise OKC_API.G_EXCEPTION_ERROR;
1885: END IF;
1886: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 1883: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

1879: g_tgdv_ext_rec := x_tgdv_ext_rec;
1880: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
1881: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1882: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1883: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1884: raise OKC_API.G_EXCEPTION_ERROR;
1885: END IF;
1886: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
1887: EXCEPTION

Line 1884: raise OKC_API.G_EXCEPTION_ERROR;

1880: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
1881: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1882: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1883: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1884: raise OKC_API.G_EXCEPTION_ERROR;
1885: END IF;
1886: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
1887: EXCEPTION
1888: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 1886: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

1882: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1883: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1884: raise OKC_API.G_EXCEPTION_ERROR;
1885: END IF;
1886: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
1887: EXCEPTION
1888: WHEN OKC_API.G_EXCEPTION_ERROR THEN
1889: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1890: (l_api_name,

Line 1888: WHEN OKC_API.G_EXCEPTION_ERROR THEN

1884: raise OKC_API.G_EXCEPTION_ERROR;
1885: END IF;
1886: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
1887: EXCEPTION
1888: WHEN OKC_API.G_EXCEPTION_ERROR THEN
1889: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1890: (l_api_name,
1891: G_PKG_NAME,
1892: 'OKC_API.G_RET_STS_ERROR',

Line 1889: x_return_status := OKC_API.HANDLE_EXCEPTIONS

1885: END IF;
1886: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
1887: EXCEPTION
1888: WHEN OKC_API.G_EXCEPTION_ERROR THEN
1889: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1890: (l_api_name,
1891: G_PKG_NAME,
1892: 'OKC_API.G_RET_STS_ERROR',
1893: x_msg_count,

Line 1892: 'OKC_API.G_RET_STS_ERROR',

1888: WHEN OKC_API.G_EXCEPTION_ERROR THEN
1889: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1890: (l_api_name,
1891: G_PKG_NAME,
1892: 'OKC_API.G_RET_STS_ERROR',
1893: x_msg_count,
1894: x_msg_data,
1895: '_PUB');
1896: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 1896: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

1892: 'OKC_API.G_RET_STS_ERROR',
1893: x_msg_count,
1894: x_msg_data,
1895: '_PUB');
1896: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
1897: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1898: (l_api_name,
1899: G_PKG_NAME,
1900: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 1897: x_return_status := OKC_API.HANDLE_EXCEPTIONS

1893: x_msg_count,
1894: x_msg_data,
1895: '_PUB');
1896: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
1897: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1898: (l_api_name,
1899: G_PKG_NAME,
1900: 'OKC_API.G_RET_STS_UNEXP_ERROR',
1901: x_msg_count,

Line 1900: 'OKC_API.G_RET_STS_UNEXP_ERROR',

1896: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
1897: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1898: (l_api_name,
1899: G_PKG_NAME,
1900: 'OKC_API.G_RET_STS_UNEXP_ERROR',
1901: x_msg_count,
1902: x_msg_data,
1903: '_PUB');
1904: WHEN OTHERS THEN

Line 1905: x_return_status := OKC_API.HANDLE_EXCEPTIONS

1901: x_msg_count,
1902: x_msg_data,
1903: '_PUB');
1904: WHEN OTHERS THEN
1905: x_return_status := OKC_API.HANDLE_EXCEPTIONS
1906: (l_api_name,
1907: G_PKG_NAME,
1908: 'OTHERS',
1909: x_msg_count,

Line 1923: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

1919: x_msg_data OUT NOCOPY VARCHAR2,
1920: p_tgdv_ext_tbl IN tgdv_ext_tbl_type,
1921: x_tgdv_ext_tbl OUT NOCOPY tgdv_ext_tbl_type) IS
1922: i NUMBER := 0;
1923: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
1924: BEGIN
1925: x_return_status := OKC_API.G_RET_STS_SUCCESS;
1926: IF p_tgdv_ext_tbl.COUNT > 0 THEN
1927: i := p_tgdv_ext_tbl.FIRST;

Line 1925: x_return_status := OKC_API.G_RET_STS_SUCCESS;

1921: x_tgdv_ext_tbl OUT NOCOPY tgdv_ext_tbl_type) IS
1922: i NUMBER := 0;
1923: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
1924: BEGIN
1925: x_return_status := OKC_API.G_RET_STS_SUCCESS;
1926: IF p_tgdv_ext_tbl.COUNT > 0 THEN
1927: i := p_tgdv_ext_tbl.FIRST;
1928: LOOP
1929: CREATE_TPG_DELIMITED(

Line 1937: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

1933: x_msg_count,
1934: x_msg_data,
1935: p_tgdv_ext_tbl(i),
1936: x_tgdv_ext_tbl(i));
1937: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
1938: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1939: x_return_status := l_return_status;
1940: raise G_EXCEPTION_HALT_VALIDATION;
1941: ELSE

Line 1938: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1934: x_msg_data,
1935: p_tgdv_ext_tbl(i),
1936: x_tgdv_ext_tbl(i));
1937: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
1938: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1939: x_return_status := l_return_status;
1940: raise G_EXCEPTION_HALT_VALIDATION;
1941: ELSE
1942: x_return_status := l_return_status;

Line 1953: OKC_API.set_message(p_app_name => g_app_name,

1949: EXCEPTION
1950: WHEN G_EXCEPTION_HALT_VALIDATION THEN
1951: NULL;
1952: WHEN OTHERS THEN
1953: OKC_API.set_message(p_app_name => g_app_name,
1954: p_msg_name => g_unexpected_error,
1955: p_token1 => g_sqlcode_token,
1956: p_token1_value => sqlcode,
1957: p_token2 => g_sqlerrm_token,

Line 1959: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

1955: p_token1 => g_sqlcode_token,
1956: p_token1_value => sqlcode,
1957: p_token2 => g_sqlerrm_token,
1958: p_token2_value => sqlerrm);
1959: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
1960: END CREATE_TPG_DELIMITED;
1961:
1962: PROCEDURE UPDATE_TPG_DELIMITED(
1963: p_api_version IN NUMBER,

Line 1974: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

1970: l_api_name CONSTANT VARCHAR2(30) := 'UPDATE_TPG_DELIMITED';
1971: l_return_status VARCHAR2(1);
1972: l_tgdv_ext_rec tgdv_ext_rec_type := p_tgdv_ext_rec;
1973: BEGIN
1974: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
1975: p_init_msg_list,
1976: '_PUB',
1977: x_return_status);
1978: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 1978: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1974: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
1975: p_init_msg_list,
1976: '_PUB',
1977: x_return_status);
1978: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1979: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1980: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
1981: raise OKC_API.G_EXCEPTION_ERROR;
1982: END IF;

Line 1979: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

1975: p_init_msg_list,
1976: '_PUB',
1977: x_return_status);
1978: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1979: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1980: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
1981: raise OKC_API.G_EXCEPTION_ERROR;
1982: END IF;
1983: -- Call user hook for BEFORE

Line 1980: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

1976: '_PUB',
1977: x_return_status);
1978: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1979: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1980: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
1981: raise OKC_API.G_EXCEPTION_ERROR;
1982: END IF;
1983: -- Call user hook for BEFORE
1984: g_tgdv_ext_rec := l_tgdv_ext_rec;

Line 1981: raise OKC_API.G_EXCEPTION_ERROR;

1977: x_return_status);
1978: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1979: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1980: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
1981: raise OKC_API.G_EXCEPTION_ERROR;
1982: END IF;
1983: -- Call user hook for BEFORE
1984: g_tgdv_ext_rec := l_tgdv_ext_rec;
1985: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 1986: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1982: END IF;
1983: -- Call user hook for BEFORE
1984: g_tgdv_ext_rec := l_tgdv_ext_rec;
1985: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
1986: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1987: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1988: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1989: raise OKC_API.G_EXCEPTION_ERROR;
1990: END IF;

Line 1987: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

1983: -- Call user hook for BEFORE
1984: g_tgdv_ext_rec := l_tgdv_ext_rec;
1985: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
1986: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1987: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1988: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1989: raise OKC_API.G_EXCEPTION_ERROR;
1990: END IF;
1991: l_tgdv_ext_rec := migrate_tgdv(l_tgdv_ext_rec, g_tgdv_ext_rec);

Line 1988: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

1984: g_tgdv_ext_rec := l_tgdv_ext_rec;
1985: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
1986: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1987: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1988: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1989: raise OKC_API.G_EXCEPTION_ERROR;
1990: END IF;
1991: l_tgdv_ext_rec := migrate_tgdv(l_tgdv_ext_rec, g_tgdv_ext_rec);
1992: OKC_TIME_PVT.UPDATE_TPG_DELIMITED(

Line 1989: raise OKC_API.G_EXCEPTION_ERROR;

1985: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
1986: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
1987: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
1988: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
1989: raise OKC_API.G_EXCEPTION_ERROR;
1990: END IF;
1991: l_tgdv_ext_rec := migrate_tgdv(l_tgdv_ext_rec, g_tgdv_ext_rec);
1992: OKC_TIME_PVT.UPDATE_TPG_DELIMITED(
1993: p_api_version,

Line 2000: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

1996: x_msg_count,
1997: x_msg_data,
1998: p_tgdv_ext_rec,
1999: x_tgdv_ext_rec);
2000: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2001: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2002: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2003: raise OKC_API.G_EXCEPTION_ERROR;
2004: END IF;

Line 2001: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

1997: x_msg_data,
1998: p_tgdv_ext_rec,
1999: x_tgdv_ext_rec);
2000: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2001: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2002: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2003: raise OKC_API.G_EXCEPTION_ERROR;
2004: END IF;
2005:

Line 2002: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

1998: p_tgdv_ext_rec,
1999: x_tgdv_ext_rec);
2000: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2001: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2002: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2003: raise OKC_API.G_EXCEPTION_ERROR;
2004: END IF;
2005:
2006: -- Call user hook for AFTER

Line 2003: raise OKC_API.G_EXCEPTION_ERROR;

1999: x_tgdv_ext_rec);
2000: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2001: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2002: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2003: raise OKC_API.G_EXCEPTION_ERROR;
2004: END IF;
2005:
2006: -- Call user hook for AFTER
2007: g_tgdv_ext_rec := x_tgdv_ext_rec;

Line 2009: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2005:
2006: -- Call user hook for AFTER
2007: g_tgdv_ext_rec := x_tgdv_ext_rec;
2008: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
2009: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2010: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2011: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2012: raise OKC_API.G_EXCEPTION_ERROR;
2013: END IF;

Line 2010: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

2006: -- Call user hook for AFTER
2007: g_tgdv_ext_rec := x_tgdv_ext_rec;
2008: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
2009: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2010: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2011: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2012: raise OKC_API.G_EXCEPTION_ERROR;
2013: END IF;
2014: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 2011: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

2007: g_tgdv_ext_rec := x_tgdv_ext_rec;
2008: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
2009: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2010: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2011: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2012: raise OKC_API.G_EXCEPTION_ERROR;
2013: END IF;
2014: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2015: EXCEPTION

Line 2012: raise OKC_API.G_EXCEPTION_ERROR;

2008: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
2009: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2010: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2011: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2012: raise OKC_API.G_EXCEPTION_ERROR;
2013: END IF;
2014: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2015: EXCEPTION
2016: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 2014: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

2010: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2011: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2012: raise OKC_API.G_EXCEPTION_ERROR;
2013: END IF;
2014: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2015: EXCEPTION
2016: WHEN OKC_API.G_EXCEPTION_ERROR THEN
2017: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2018: (l_api_name,

Line 2016: WHEN OKC_API.G_EXCEPTION_ERROR THEN

2012: raise OKC_API.G_EXCEPTION_ERROR;
2013: END IF;
2014: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2015: EXCEPTION
2016: WHEN OKC_API.G_EXCEPTION_ERROR THEN
2017: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2018: (l_api_name,
2019: G_PKG_NAME,
2020: 'OKC_API.G_RET_STS_ERROR',

Line 2017: x_return_status := OKC_API.HANDLE_EXCEPTIONS

2013: END IF;
2014: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2015: EXCEPTION
2016: WHEN OKC_API.G_EXCEPTION_ERROR THEN
2017: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2018: (l_api_name,
2019: G_PKG_NAME,
2020: 'OKC_API.G_RET_STS_ERROR',
2021: x_msg_count,

Line 2020: 'OKC_API.G_RET_STS_ERROR',

2016: WHEN OKC_API.G_EXCEPTION_ERROR THEN
2017: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2018: (l_api_name,
2019: G_PKG_NAME,
2020: 'OKC_API.G_RET_STS_ERROR',
2021: x_msg_count,
2022: x_msg_data,
2023: '_PUB');
2024: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 2024: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

2020: 'OKC_API.G_RET_STS_ERROR',
2021: x_msg_count,
2022: x_msg_data,
2023: '_PUB');
2024: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
2025: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2026: (l_api_name,
2027: G_PKG_NAME,
2028: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 2025: x_return_status := OKC_API.HANDLE_EXCEPTIONS

2021: x_msg_count,
2022: x_msg_data,
2023: '_PUB');
2024: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
2025: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2026: (l_api_name,
2027: G_PKG_NAME,
2028: 'OKC_API.G_RET_STS_UNEXP_ERROR',
2029: x_msg_count,

Line 2028: 'OKC_API.G_RET_STS_UNEXP_ERROR',

2024: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
2025: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2026: (l_api_name,
2027: G_PKG_NAME,
2028: 'OKC_API.G_RET_STS_UNEXP_ERROR',
2029: x_msg_count,
2030: x_msg_data,
2031: '_PUB');
2032: WHEN OTHERS THEN

Line 2033: x_return_status := OKC_API.HANDLE_EXCEPTIONS

2029: x_msg_count,
2030: x_msg_data,
2031: '_PUB');
2032: WHEN OTHERS THEN
2033: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2034: (l_api_name,
2035: G_PKG_NAME,
2036: 'OTHERS',
2037: x_msg_count,

Line 2051: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

2047: x_msg_data OUT NOCOPY VARCHAR2,
2048: p_tgdv_ext_tbl IN tgdv_ext_tbl_type,
2049: x_tgdv_ext_tbl OUT NOCOPY tgdv_ext_tbl_type) IS
2050: i NUMBER := 0;
2051: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
2052: BEGIN
2053: x_return_status := OKC_API.G_RET_STS_SUCCESS;
2054: IF p_tgdv_ext_tbl.COUNT > 0 THEN
2055: i := p_tgdv_ext_tbl.FIRST;

Line 2053: x_return_status := OKC_API.G_RET_STS_SUCCESS;

2049: x_tgdv_ext_tbl OUT NOCOPY tgdv_ext_tbl_type) IS
2050: i NUMBER := 0;
2051: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
2052: BEGIN
2053: x_return_status := OKC_API.G_RET_STS_SUCCESS;
2054: IF p_tgdv_ext_tbl.COUNT > 0 THEN
2055: i := p_tgdv_ext_tbl.FIRST;
2056: LOOP
2057: UPDATE_TPG_DELIMITED(

Line 2065: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

2061: x_msg_count,
2062: x_msg_data,
2063: p_tgdv_ext_tbl(i),
2064: x_tgdv_ext_tbl(i));
2065: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
2066: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2067: x_return_status := l_return_status;
2068: raise G_EXCEPTION_HALT_VALIDATION;
2069: ELSE

Line 2066: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2062: x_msg_data,
2063: p_tgdv_ext_tbl(i),
2064: x_tgdv_ext_tbl(i));
2065: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
2066: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2067: x_return_status := l_return_status;
2068: raise G_EXCEPTION_HALT_VALIDATION;
2069: ELSE
2070: x_return_status := l_return_status;

Line 2081: OKC_API.set_message(p_app_name => g_app_name,

2077: EXCEPTION
2078: WHEN G_EXCEPTION_HALT_VALIDATION THEN
2079: NULL;
2080: WHEN OTHERS THEN
2081: OKC_API.set_message(p_app_name => g_app_name,
2082: p_msg_name => g_unexpected_error,
2083: p_token1 => g_sqlcode_token,
2084: p_token1_value => sqlcode,
2085: p_token2 => g_sqlerrm_token,

Line 2087: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

2083: p_token1 => g_sqlcode_token,
2084: p_token1_value => sqlcode,
2085: p_token2 => g_sqlerrm_token,
2086: p_token2_value => sqlerrm);
2087: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
2088: END UPDATE_TPG_DELIMITED;
2089:
2090: PROCEDURE DELETE_TPG_DELIMITED(
2091: p_api_version IN NUMBER,

Line 2101: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

2097: l_api_name CONSTANT VARCHAR2(30) := 'DELETE_TPG_DELIMITED';
2098: l_return_status VARCHAR2(1);
2099: l_tgdv_ext_rec tgdv_ext_rec_type := p_tgdv_ext_rec;
2100: BEGIN
2101: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
2102: p_init_msg_list,
2103: '_PUB',
2104: x_return_status);
2105: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 2105: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2101: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
2102: p_init_msg_list,
2103: '_PUB',
2104: x_return_status);
2105: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2106: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2107: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
2108: raise OKC_API.G_EXCEPTION_ERROR;
2109: END IF;

Line 2106: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

2102: p_init_msg_list,
2103: '_PUB',
2104: x_return_status);
2105: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2106: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2107: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
2108: raise OKC_API.G_EXCEPTION_ERROR;
2109: END IF;
2110: -- Call user hook for BEFORE

Line 2107: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

2103: '_PUB',
2104: x_return_status);
2105: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2106: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2107: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
2108: raise OKC_API.G_EXCEPTION_ERROR;
2109: END IF;
2110: -- Call user hook for BEFORE
2111: g_tgdv_ext_rec := l_tgdv_ext_rec;

Line 2108: raise OKC_API.G_EXCEPTION_ERROR;

2104: x_return_status);
2105: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2106: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2107: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
2108: raise OKC_API.G_EXCEPTION_ERROR;
2109: END IF;
2110: -- Call user hook for BEFORE
2111: g_tgdv_ext_rec := l_tgdv_ext_rec;
2112: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 2113: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2109: END IF;
2110: -- Call user hook for BEFORE
2111: g_tgdv_ext_rec := l_tgdv_ext_rec;
2112: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
2113: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2114: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2115: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2116: raise OKC_API.G_EXCEPTION_ERROR;
2117: END IF;

Line 2114: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

2110: -- Call user hook for BEFORE
2111: g_tgdv_ext_rec := l_tgdv_ext_rec;
2112: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
2113: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2114: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2115: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2116: raise OKC_API.G_EXCEPTION_ERROR;
2117: END IF;
2118: OKC_TIME_PVT.DELETE_TPG_DELIMITED(

Line 2115: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

2111: g_tgdv_ext_rec := l_tgdv_ext_rec;
2112: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
2113: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2114: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2115: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2116: raise OKC_API.G_EXCEPTION_ERROR;
2117: END IF;
2118: OKC_TIME_PVT.DELETE_TPG_DELIMITED(
2119: p_api_version,

Line 2116: raise OKC_API.G_EXCEPTION_ERROR;

2112: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
2113: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2114: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2115: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2116: raise OKC_API.G_EXCEPTION_ERROR;
2117: END IF;
2118: OKC_TIME_PVT.DELETE_TPG_DELIMITED(
2119: p_api_version,
2120: p_init_msg_list,

Line 2125: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2121: x_return_status,
2122: x_msg_count,
2123: x_msg_data,
2124: p_tgdv_ext_rec);
2125: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2126: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2127: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2128: raise OKC_API.G_EXCEPTION_ERROR;
2129: END IF;

Line 2126: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

2122: x_msg_count,
2123: x_msg_data,
2124: p_tgdv_ext_rec);
2125: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2126: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2127: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2128: raise OKC_API.G_EXCEPTION_ERROR;
2129: END IF;
2130:

Line 2127: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

2123: x_msg_data,
2124: p_tgdv_ext_rec);
2125: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2126: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2127: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2128: raise OKC_API.G_EXCEPTION_ERROR;
2129: END IF;
2130:
2131: -- Call user hook for AFTER

Line 2128: raise OKC_API.G_EXCEPTION_ERROR;

2124: p_tgdv_ext_rec);
2125: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2126: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2127: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2128: raise OKC_API.G_EXCEPTION_ERROR;
2129: END IF;
2130:
2131: -- Call user hook for AFTER
2132: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');

Line 2133: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2129: END IF;
2130:
2131: -- Call user hook for AFTER
2132: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
2133: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2134: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2135: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2136: raise OKC_API.G_EXCEPTION_ERROR;
2137: END IF;

Line 2134: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

2130:
2131: -- Call user hook for AFTER
2132: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
2133: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2134: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2135: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2136: raise OKC_API.G_EXCEPTION_ERROR;
2137: END IF;
2138: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 2135: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

2131: -- Call user hook for AFTER
2132: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
2133: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2134: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2135: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2136: raise OKC_API.G_EXCEPTION_ERROR;
2137: END IF;
2138: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2139: EXCEPTION

Line 2136: raise OKC_API.G_EXCEPTION_ERROR;

2132: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
2133: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2134: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2135: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2136: raise OKC_API.G_EXCEPTION_ERROR;
2137: END IF;
2138: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2139: EXCEPTION
2140: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 2138: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

2134: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2135: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2136: raise OKC_API.G_EXCEPTION_ERROR;
2137: END IF;
2138: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2139: EXCEPTION
2140: WHEN OKC_API.G_EXCEPTION_ERROR THEN
2141: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2142: (l_api_name,

Line 2140: WHEN OKC_API.G_EXCEPTION_ERROR THEN

2136: raise OKC_API.G_EXCEPTION_ERROR;
2137: END IF;
2138: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2139: EXCEPTION
2140: WHEN OKC_API.G_EXCEPTION_ERROR THEN
2141: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2142: (l_api_name,
2143: G_PKG_NAME,
2144: 'OKC_API.G_RET_STS_ERROR',

Line 2141: x_return_status := OKC_API.HANDLE_EXCEPTIONS

2137: END IF;
2138: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2139: EXCEPTION
2140: WHEN OKC_API.G_EXCEPTION_ERROR THEN
2141: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2142: (l_api_name,
2143: G_PKG_NAME,
2144: 'OKC_API.G_RET_STS_ERROR',
2145: x_msg_count,

Line 2144: 'OKC_API.G_RET_STS_ERROR',

2140: WHEN OKC_API.G_EXCEPTION_ERROR THEN
2141: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2142: (l_api_name,
2143: G_PKG_NAME,
2144: 'OKC_API.G_RET_STS_ERROR',
2145: x_msg_count,
2146: x_msg_data,
2147: '_PUB');
2148: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 2148: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

2144: 'OKC_API.G_RET_STS_ERROR',
2145: x_msg_count,
2146: x_msg_data,
2147: '_PUB');
2148: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
2149: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2150: (l_api_name,
2151: G_PKG_NAME,
2152: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 2149: x_return_status := OKC_API.HANDLE_EXCEPTIONS

2145: x_msg_count,
2146: x_msg_data,
2147: '_PUB');
2148: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
2149: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2150: (l_api_name,
2151: G_PKG_NAME,
2152: 'OKC_API.G_RET_STS_UNEXP_ERROR',
2153: x_msg_count,

Line 2152: 'OKC_API.G_RET_STS_UNEXP_ERROR',

2148: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
2149: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2150: (l_api_name,
2151: G_PKG_NAME,
2152: 'OKC_API.G_RET_STS_UNEXP_ERROR',
2153: x_msg_count,
2154: x_msg_data,
2155: '_PUB');
2156: WHEN OTHERS THEN

Line 2157: x_return_status := OKC_API.HANDLE_EXCEPTIONS

2153: x_msg_count,
2154: x_msg_data,
2155: '_PUB');
2156: WHEN OTHERS THEN
2157: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2158: (l_api_name,
2159: G_PKG_NAME,
2160: 'OTHERS',
2161: x_msg_count,

Line 2174: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

2170: x_msg_count OUT NOCOPY NUMBER,
2171: x_msg_data OUT NOCOPY VARCHAR2,
2172: p_tgdv_ext_tbl IN tgdv_ext_tbl_type) IS
2173: i NUMBER := 0;
2174: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
2175: BEGIN
2176: x_return_status := OKC_API.G_RET_STS_SUCCESS;
2177: IF p_tgdv_ext_tbl.COUNT > 0 THEN
2178: i := p_tgdv_ext_tbl.FIRST;

Line 2176: x_return_status := OKC_API.G_RET_STS_SUCCESS;

2172: p_tgdv_ext_tbl IN tgdv_ext_tbl_type) IS
2173: i NUMBER := 0;
2174: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
2175: BEGIN
2176: x_return_status := OKC_API.G_RET_STS_SUCCESS;
2177: IF p_tgdv_ext_tbl.COUNT > 0 THEN
2178: i := p_tgdv_ext_tbl.FIRST;
2179: LOOP
2180: DELETE_TPG_DELIMITED(

Line 2187: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

2183: l_return_status,
2184: x_msg_count,
2185: x_msg_data,
2186: p_tgdv_ext_tbl(i));
2187: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
2188: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2189: x_return_status := l_return_status;
2190: raise G_EXCEPTION_HALT_VALIDATION;
2191: ELSE

Line 2188: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2184: x_msg_count,
2185: x_msg_data,
2186: p_tgdv_ext_tbl(i));
2187: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
2188: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2189: x_return_status := l_return_status;
2190: raise G_EXCEPTION_HALT_VALIDATION;
2191: ELSE
2192: x_return_status := l_return_status;

Line 2203: OKC_API.set_message(p_app_name => g_app_name,

2199: EXCEPTION
2200: WHEN G_EXCEPTION_HALT_VALIDATION THEN
2201: NULL;
2202: WHEN OTHERS THEN
2203: OKC_API.set_message(p_app_name => g_app_name,
2204: p_msg_name => g_unexpected_error,
2205: p_token1 => g_sqlcode_token,
2206: p_token1_value => sqlcode,
2207: p_token2 => g_sqlerrm_token,

Line 2209: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

2205: p_token1 => g_sqlcode_token,
2206: p_token1_value => sqlcode,
2207: p_token2 => g_sqlerrm_token,
2208: p_token2_value => sqlerrm);
2209: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
2210: END DELETE_TPG_DELIMITED;
2211:
2212: PROCEDURE LOCK_TPG_DELIMITED(
2213: p_api_version IN NUMBER,

Line 2237: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

2233: x_msg_count OUT NOCOPY NUMBER,
2234: x_msg_data OUT NOCOPY VARCHAR2,
2235: p_tgdv_ext_tbl IN tgdv_ext_tbl_type) IS
2236: i NUMBER := 0;
2237: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
2238: BEGIN
2239: x_return_status := OKC_API.G_RET_STS_SUCCESS;
2240: IF p_tgdv_ext_tbl.COUNT > 0 THEN
2241: i := p_tgdv_ext_tbl.FIRST;

Line 2239: x_return_status := OKC_API.G_RET_STS_SUCCESS;

2235: p_tgdv_ext_tbl IN tgdv_ext_tbl_type) IS
2236: i NUMBER := 0;
2237: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
2238: BEGIN
2239: x_return_status := OKC_API.G_RET_STS_SUCCESS;
2240: IF p_tgdv_ext_tbl.COUNT > 0 THEN
2241: i := p_tgdv_ext_tbl.FIRST;
2242: LOOP
2243: LOCK_TPG_DELIMITED(

Line 2250: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

2246: l_return_status,
2247: x_msg_count,
2248: x_msg_data,
2249: p_tgdv_ext_tbl(i));
2250: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
2251: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2252: x_return_status := l_return_status;
2253: raise G_EXCEPTION_HALT_VALIDATION;
2254: ELSE

Line 2251: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2247: x_msg_count,
2248: x_msg_data,
2249: p_tgdv_ext_tbl(i));
2250: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
2251: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2252: x_return_status := l_return_status;
2253: raise G_EXCEPTION_HALT_VALIDATION;
2254: ELSE
2255: x_return_status := l_return_status;

Line 2266: OKC_API.set_message(p_app_name => g_app_name,

2262: EXCEPTION
2263: WHEN G_EXCEPTION_HALT_VALIDATION THEN
2264: NULL;
2265: WHEN OTHERS THEN
2266: OKC_API.set_message(p_app_name => g_app_name,
2267: p_msg_name => g_unexpected_error,
2268: p_token1 => g_sqlcode_token,
2269: p_token1_value => sqlcode,
2270: p_token2 => g_sqlerrm_token,

Line 2272: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

2268: p_token1 => g_sqlcode_token,
2269: p_token1_value => sqlcode,
2270: p_token2 => g_sqlerrm_token,
2271: p_token2_value => sqlerrm);
2272: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
2273: END LOCK_TPG_DELIMITED;
2274:
2275: PROCEDURE VALID_TPG_DELIMITED(
2276: p_api_version IN NUMBER,

Line 2300: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

2296: x_msg_count OUT NOCOPY NUMBER,
2297: x_msg_data OUT NOCOPY VARCHAR2,
2298: p_tgdv_ext_tbl IN tgdv_ext_tbl_type) IS
2299: i NUMBER := 0;
2300: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
2301: BEGIN
2302: x_return_status := OKC_API.G_RET_STS_SUCCESS;
2303: IF p_tgdv_ext_tbl.COUNT > 0 THEN
2304: i := p_tgdv_ext_tbl.FIRST;

Line 2302: x_return_status := OKC_API.G_RET_STS_SUCCESS;

2298: p_tgdv_ext_tbl IN tgdv_ext_tbl_type) IS
2299: i NUMBER := 0;
2300: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
2301: BEGIN
2302: x_return_status := OKC_API.G_RET_STS_SUCCESS;
2303: IF p_tgdv_ext_tbl.COUNT > 0 THEN
2304: i := p_tgdv_ext_tbl.FIRST;
2305: LOOP
2306: VALID_TPG_DELIMITED(

Line 2313: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

2309: l_return_status,
2310: x_msg_count,
2311: x_msg_data,
2312: p_tgdv_ext_tbl(i));
2313: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
2314: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2315: x_return_status := l_return_status;
2316: raise G_EXCEPTION_HALT_VALIDATION;
2317: ELSE

Line 2314: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2310: x_msg_count,
2311: x_msg_data,
2312: p_tgdv_ext_tbl(i));
2313: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
2314: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2315: x_return_status := l_return_status;
2316: raise G_EXCEPTION_HALT_VALIDATION;
2317: ELSE
2318: x_return_status := l_return_status;

Line 2329: OKC_API.set_message(p_app_name => g_app_name,

2325: EXCEPTION
2326: WHEN G_EXCEPTION_HALT_VALIDATION THEN
2327: NULL;
2328: WHEN OTHERS THEN
2329: OKC_API.set_message(p_app_name => g_app_name,
2330: p_msg_name => g_unexpected_error,
2331: p_token1 => g_sqlcode_token,
2332: p_token1_value => sqlcode,
2333: p_token2 => g_sqlerrm_token,

Line 2335: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

2331: p_token1 => g_sqlcode_token,
2332: p_token1_value => sqlcode,
2333: p_token2 => g_sqlerrm_token,
2334: p_token2_value => sqlerrm);
2335: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
2336: END VALID_TPG_DELIMITED;
2337:
2338: --------------------------------------------------------------------------
2339: ---The following procedures cater to handling of OKC_TIME_TPG_NAMED

Line 2419: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

2415: l_api_name CONSTANT VARCHAR2(30) := 'CREATE_TPG_NAMED';
2416: l_return_status VARCHAR2(1);
2417: l_tgnv_rec tgnv_rec_type := p_tgnv_rec;
2418: BEGIN
2419: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
2420: p_init_msg_list,
2421: '_PUB',
2422: x_return_status);
2423: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 2423: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2419: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
2420: p_init_msg_list,
2421: '_PUB',
2422: x_return_status);
2423: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2424: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2425: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
2426: raise OKC_API.G_EXCEPTION_ERROR;
2427: END IF;

Line 2424: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

2420: p_init_msg_list,
2421: '_PUB',
2422: x_return_status);
2423: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2424: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2425: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
2426: raise OKC_API.G_EXCEPTION_ERROR;
2427: END IF;
2428: -- Call user hook for BEFORE

Line 2425: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

2421: '_PUB',
2422: x_return_status);
2423: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2424: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2425: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
2426: raise OKC_API.G_EXCEPTION_ERROR;
2427: END IF;
2428: -- Call user hook for BEFORE
2429: g_tgnv_rec := l_tgnv_rec;

Line 2426: raise OKC_API.G_EXCEPTION_ERROR;

2422: x_return_status);
2423: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2424: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2425: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
2426: raise OKC_API.G_EXCEPTION_ERROR;
2427: END IF;
2428: -- Call user hook for BEFORE
2429: g_tgnv_rec := l_tgnv_rec;
2430: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 2431: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2427: END IF;
2428: -- Call user hook for BEFORE
2429: g_tgnv_rec := l_tgnv_rec;
2430: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
2431: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2432: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2433: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2434: raise OKC_API.G_EXCEPTION_ERROR;
2435: END IF;

Line 2432: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

2428: -- Call user hook for BEFORE
2429: g_tgnv_rec := l_tgnv_rec;
2430: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
2431: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2432: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2433: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2434: raise OKC_API.G_EXCEPTION_ERROR;
2435: END IF;
2436: l_tgnv_rec := migrate_tgnv(l_tgnv_rec, g_tgnv_rec);

Line 2433: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

2429: g_tgnv_rec := l_tgnv_rec;
2430: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
2431: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2432: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2433: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2434: raise OKC_API.G_EXCEPTION_ERROR;
2435: END IF;
2436: l_tgnv_rec := migrate_tgnv(l_tgnv_rec, g_tgnv_rec);
2437: OKC_TIME_PVT.CREATE_TPG_NAMED(

Line 2434: raise OKC_API.G_EXCEPTION_ERROR;

2430: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
2431: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2432: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2433: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2434: raise OKC_API.G_EXCEPTION_ERROR;
2435: END IF;
2436: l_tgnv_rec := migrate_tgnv(l_tgnv_rec, g_tgnv_rec);
2437: OKC_TIME_PVT.CREATE_TPG_NAMED(
2438: p_api_version,

Line 2445: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2441: x_msg_count,
2442: x_msg_data,
2443: p_tgnv_rec,
2444: x_tgnv_rec);
2445: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2446: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2447: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2448: raise OKC_API.G_EXCEPTION_ERROR;
2449: END IF;

Line 2446: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

2442: x_msg_data,
2443: p_tgnv_rec,
2444: x_tgnv_rec);
2445: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2446: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2447: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2448: raise OKC_API.G_EXCEPTION_ERROR;
2449: END IF;
2450:

Line 2447: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

2443: p_tgnv_rec,
2444: x_tgnv_rec);
2445: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2446: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2447: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2448: raise OKC_API.G_EXCEPTION_ERROR;
2449: END IF;
2450:
2451: -- Call user hook for AFTER

Line 2448: raise OKC_API.G_EXCEPTION_ERROR;

2444: x_tgnv_rec);
2445: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2446: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2447: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2448: raise OKC_API.G_EXCEPTION_ERROR;
2449: END IF;
2450:
2451: -- Call user hook for AFTER
2452: g_tgnv_rec := x_tgnv_rec;

Line 2454: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2450:
2451: -- Call user hook for AFTER
2452: g_tgnv_rec := x_tgnv_rec;
2453: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
2454: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2455: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2456: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2457: raise OKC_API.G_EXCEPTION_ERROR;
2458: END IF;

Line 2455: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

2451: -- Call user hook for AFTER
2452: g_tgnv_rec := x_tgnv_rec;
2453: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
2454: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2455: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2456: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2457: raise OKC_API.G_EXCEPTION_ERROR;
2458: END IF;
2459: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 2456: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

2452: g_tgnv_rec := x_tgnv_rec;
2453: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
2454: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2455: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2456: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2457: raise OKC_API.G_EXCEPTION_ERROR;
2458: END IF;
2459: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2460: EXCEPTION

Line 2457: raise OKC_API.G_EXCEPTION_ERROR;

2453: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
2454: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2455: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2456: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2457: raise OKC_API.G_EXCEPTION_ERROR;
2458: END IF;
2459: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2460: EXCEPTION
2461: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 2459: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

2455: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2456: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2457: raise OKC_API.G_EXCEPTION_ERROR;
2458: END IF;
2459: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2460: EXCEPTION
2461: WHEN OKC_API.G_EXCEPTION_ERROR THEN
2462: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2463: (l_api_name,

Line 2461: WHEN OKC_API.G_EXCEPTION_ERROR THEN

2457: raise OKC_API.G_EXCEPTION_ERROR;
2458: END IF;
2459: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2460: EXCEPTION
2461: WHEN OKC_API.G_EXCEPTION_ERROR THEN
2462: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2463: (l_api_name,
2464: G_PKG_NAME,
2465: 'OKC_API.G_RET_STS_ERROR',

Line 2462: x_return_status := OKC_API.HANDLE_EXCEPTIONS

2458: END IF;
2459: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2460: EXCEPTION
2461: WHEN OKC_API.G_EXCEPTION_ERROR THEN
2462: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2463: (l_api_name,
2464: G_PKG_NAME,
2465: 'OKC_API.G_RET_STS_ERROR',
2466: x_msg_count,

Line 2465: 'OKC_API.G_RET_STS_ERROR',

2461: WHEN OKC_API.G_EXCEPTION_ERROR THEN
2462: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2463: (l_api_name,
2464: G_PKG_NAME,
2465: 'OKC_API.G_RET_STS_ERROR',
2466: x_msg_count,
2467: x_msg_data,
2468: '_PUB');
2469: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 2469: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

2465: 'OKC_API.G_RET_STS_ERROR',
2466: x_msg_count,
2467: x_msg_data,
2468: '_PUB');
2469: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
2470: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2471: (l_api_name,
2472: G_PKG_NAME,
2473: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 2470: x_return_status := OKC_API.HANDLE_EXCEPTIONS

2466: x_msg_count,
2467: x_msg_data,
2468: '_PUB');
2469: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
2470: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2471: (l_api_name,
2472: G_PKG_NAME,
2473: 'OKC_API.G_RET_STS_UNEXP_ERROR',
2474: x_msg_count,

Line 2473: 'OKC_API.G_RET_STS_UNEXP_ERROR',

2469: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
2470: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2471: (l_api_name,
2472: G_PKG_NAME,
2473: 'OKC_API.G_RET_STS_UNEXP_ERROR',
2474: x_msg_count,
2475: x_msg_data,
2476: '_PUB');
2477: WHEN OTHERS THEN

Line 2478: x_return_status := OKC_API.HANDLE_EXCEPTIONS

2474: x_msg_count,
2475: x_msg_data,
2476: '_PUB');
2477: WHEN OTHERS THEN
2478: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2479: (l_api_name,
2480: G_PKG_NAME,
2481: 'OTHERS',
2482: x_msg_count,

Line 2496: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

2492: x_msg_data OUT NOCOPY VARCHAR2,
2493: p_tgnv_tbl IN tgnv_tbl_type,
2494: x_tgnv_tbl OUT NOCOPY tgnv_tbl_type) IS
2495: i NUMBER := 0;
2496: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
2497: BEGIN
2498: x_return_status := OKC_API.G_RET_STS_SUCCESS;
2499: IF p_tgnv_tbl.COUNT > 0 THEN
2500: i := p_tgnv_tbl.FIRST;

Line 2498: x_return_status := OKC_API.G_RET_STS_SUCCESS;

2494: x_tgnv_tbl OUT NOCOPY tgnv_tbl_type) IS
2495: i NUMBER := 0;
2496: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
2497: BEGIN
2498: x_return_status := OKC_API.G_RET_STS_SUCCESS;
2499: IF p_tgnv_tbl.COUNT > 0 THEN
2500: i := p_tgnv_tbl.FIRST;
2501: LOOP
2502: CREATE_TPG_NAMED(

Line 2510: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

2506: x_msg_count,
2507: x_msg_data,
2508: p_tgnv_tbl(i),
2509: x_tgnv_tbl(i));
2510: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
2511: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2512: x_return_status := l_return_status;
2513: raise G_EXCEPTION_HALT_VALIDATION;
2514: ELSE

Line 2511: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2507: x_msg_data,
2508: p_tgnv_tbl(i),
2509: x_tgnv_tbl(i));
2510: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
2511: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2512: x_return_status := l_return_status;
2513: raise G_EXCEPTION_HALT_VALIDATION;
2514: ELSE
2515: x_return_status := l_return_status;

Line 2526: OKC_API.set_message(p_app_name => g_app_name,

2522: EXCEPTION
2523: WHEN G_EXCEPTION_HALT_VALIDATION THEN
2524: NULL;
2525: WHEN OTHERS THEN
2526: OKC_API.set_message(p_app_name => g_app_name,
2527: p_msg_name => g_unexpected_error,
2528: p_token1 => g_sqlcode_token,
2529: p_token1_value => sqlcode,
2530: p_token2 => g_sqlerrm_token,

Line 2532: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

2528: p_token1 => g_sqlcode_token,
2529: p_token1_value => sqlcode,
2530: p_token2 => g_sqlerrm_token,
2531: p_token2_value => sqlerrm);
2532: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
2533: END CREATE_TPG_NAMED;
2534:
2535: PROCEDURE UPDATE_TPG_NAMED(
2536: p_api_version IN NUMBER,

Line 2547: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

2543: l_api_name CONSTANT VARCHAR2(30) := 'UPDATE_TPG_NAMED';
2544: l_return_status VARCHAR2(1);
2545: l_tgnv_rec tgnv_rec_type := p_tgnv_rec;
2546: BEGIN
2547: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
2548: p_init_msg_list,
2549: '_PUB',
2550: x_return_status);
2551: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 2551: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2547: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
2548: p_init_msg_list,
2549: '_PUB',
2550: x_return_status);
2551: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2552: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2553: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
2554: raise OKC_API.G_EXCEPTION_ERROR;
2555: END IF;

Line 2552: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

2548: p_init_msg_list,
2549: '_PUB',
2550: x_return_status);
2551: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2552: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2553: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
2554: raise OKC_API.G_EXCEPTION_ERROR;
2555: END IF;
2556: -- Call user hook for BEFORE

Line 2553: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

2549: '_PUB',
2550: x_return_status);
2551: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2552: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2553: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
2554: raise OKC_API.G_EXCEPTION_ERROR;
2555: END IF;
2556: -- Call user hook for BEFORE
2557: g_tgnv_rec := l_tgnv_rec;

Line 2554: raise OKC_API.G_EXCEPTION_ERROR;

2550: x_return_status);
2551: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2552: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2553: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
2554: raise OKC_API.G_EXCEPTION_ERROR;
2555: END IF;
2556: -- Call user hook for BEFORE
2557: g_tgnv_rec := l_tgnv_rec;
2558: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 2559: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2555: END IF;
2556: -- Call user hook for BEFORE
2557: g_tgnv_rec := l_tgnv_rec;
2558: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
2559: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2560: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2561: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2562: raise OKC_API.G_EXCEPTION_ERROR;
2563: END IF;

Line 2560: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

2556: -- Call user hook for BEFORE
2557: g_tgnv_rec := l_tgnv_rec;
2558: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
2559: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2560: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2561: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2562: raise OKC_API.G_EXCEPTION_ERROR;
2563: END IF;
2564: l_tgnv_rec := migrate_tgnv(l_tgnv_rec, g_tgnv_rec);

Line 2561: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

2557: g_tgnv_rec := l_tgnv_rec;
2558: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
2559: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2560: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2561: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2562: raise OKC_API.G_EXCEPTION_ERROR;
2563: END IF;
2564: l_tgnv_rec := migrate_tgnv(l_tgnv_rec, g_tgnv_rec);
2565: OKC_TIME_PVT.UPDATE_TPG_NAMED(

Line 2562: raise OKC_API.G_EXCEPTION_ERROR;

2558: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
2559: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2560: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2561: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2562: raise OKC_API.G_EXCEPTION_ERROR;
2563: END IF;
2564: l_tgnv_rec := migrate_tgnv(l_tgnv_rec, g_tgnv_rec);
2565: OKC_TIME_PVT.UPDATE_TPG_NAMED(
2566: p_api_version,

Line 2573: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2569: x_msg_count,
2570: x_msg_data,
2571: p_tgnv_rec,
2572: x_tgnv_rec);
2573: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2574: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2575: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2576: raise OKC_API.G_EXCEPTION_ERROR;
2577: END IF;

Line 2574: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

2570: x_msg_data,
2571: p_tgnv_rec,
2572: x_tgnv_rec);
2573: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2574: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2575: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2576: raise OKC_API.G_EXCEPTION_ERROR;
2577: END IF;
2578:

Line 2575: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

2571: p_tgnv_rec,
2572: x_tgnv_rec);
2573: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2574: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2575: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2576: raise OKC_API.G_EXCEPTION_ERROR;
2577: END IF;
2578:
2579: -- Call user hook for AFTER

Line 2576: raise OKC_API.G_EXCEPTION_ERROR;

2572: x_tgnv_rec);
2573: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2574: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2575: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2576: raise OKC_API.G_EXCEPTION_ERROR;
2577: END IF;
2578:
2579: -- Call user hook for AFTER
2580: g_tgnv_rec := x_tgnv_rec;

Line 2582: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2578:
2579: -- Call user hook for AFTER
2580: g_tgnv_rec := x_tgnv_rec;
2581: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
2582: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2583: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2584: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2585: raise OKC_API.G_EXCEPTION_ERROR;
2586: END IF;

Line 2583: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

2579: -- Call user hook for AFTER
2580: g_tgnv_rec := x_tgnv_rec;
2581: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
2582: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2583: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2584: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2585: raise OKC_API.G_EXCEPTION_ERROR;
2586: END IF;
2587: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 2584: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

2580: g_tgnv_rec := x_tgnv_rec;
2581: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
2582: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2583: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2584: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2585: raise OKC_API.G_EXCEPTION_ERROR;
2586: END IF;
2587: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2588: EXCEPTION

Line 2585: raise OKC_API.G_EXCEPTION_ERROR;

2581: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
2582: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2583: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2584: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2585: raise OKC_API.G_EXCEPTION_ERROR;
2586: END IF;
2587: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2588: EXCEPTION
2589: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 2587: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

2583: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2584: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2585: raise OKC_API.G_EXCEPTION_ERROR;
2586: END IF;
2587: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2588: EXCEPTION
2589: WHEN OKC_API.G_EXCEPTION_ERROR THEN
2590: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2591: (l_api_name,

Line 2589: WHEN OKC_API.G_EXCEPTION_ERROR THEN

2585: raise OKC_API.G_EXCEPTION_ERROR;
2586: END IF;
2587: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2588: EXCEPTION
2589: WHEN OKC_API.G_EXCEPTION_ERROR THEN
2590: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2591: (l_api_name,
2592: G_PKG_NAME,
2593: 'OKC_API.G_RET_STS_ERROR',

Line 2590: x_return_status := OKC_API.HANDLE_EXCEPTIONS

2586: END IF;
2587: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2588: EXCEPTION
2589: WHEN OKC_API.G_EXCEPTION_ERROR THEN
2590: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2591: (l_api_name,
2592: G_PKG_NAME,
2593: 'OKC_API.G_RET_STS_ERROR',
2594: x_msg_count,

Line 2593: 'OKC_API.G_RET_STS_ERROR',

2589: WHEN OKC_API.G_EXCEPTION_ERROR THEN
2590: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2591: (l_api_name,
2592: G_PKG_NAME,
2593: 'OKC_API.G_RET_STS_ERROR',
2594: x_msg_count,
2595: x_msg_data,
2596: '_PUB');
2597: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 2597: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

2593: 'OKC_API.G_RET_STS_ERROR',
2594: x_msg_count,
2595: x_msg_data,
2596: '_PUB');
2597: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
2598: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2599: (l_api_name,
2600: G_PKG_NAME,
2601: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 2598: x_return_status := OKC_API.HANDLE_EXCEPTIONS

2594: x_msg_count,
2595: x_msg_data,
2596: '_PUB');
2597: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
2598: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2599: (l_api_name,
2600: G_PKG_NAME,
2601: 'OKC_API.G_RET_STS_UNEXP_ERROR',
2602: x_msg_count,

Line 2601: 'OKC_API.G_RET_STS_UNEXP_ERROR',

2597: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
2598: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2599: (l_api_name,
2600: G_PKG_NAME,
2601: 'OKC_API.G_RET_STS_UNEXP_ERROR',
2602: x_msg_count,
2603: x_msg_data,
2604: '_PUB');
2605: WHEN OTHERS THEN

Line 2606: x_return_status := OKC_API.HANDLE_EXCEPTIONS

2602: x_msg_count,
2603: x_msg_data,
2604: '_PUB');
2605: WHEN OTHERS THEN
2606: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2607: (l_api_name,
2608: G_PKG_NAME,
2609: 'OTHERS',
2610: x_msg_count,

Line 2624: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

2620: x_msg_data OUT NOCOPY VARCHAR2,
2621: p_tgnv_tbl IN tgnv_tbl_type,
2622: x_tgnv_tbl OUT NOCOPY tgnv_tbl_type) IS
2623: i NUMBER := 0;
2624: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
2625: BEGIN
2626: x_return_status := OKC_API.G_RET_STS_SUCCESS;
2627: IF p_tgnv_tbl.COUNT > 0 THEN
2628: i := p_tgnv_tbl.FIRST;

Line 2626: x_return_status := OKC_API.G_RET_STS_SUCCESS;

2622: x_tgnv_tbl OUT NOCOPY tgnv_tbl_type) IS
2623: i NUMBER := 0;
2624: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
2625: BEGIN
2626: x_return_status := OKC_API.G_RET_STS_SUCCESS;
2627: IF p_tgnv_tbl.COUNT > 0 THEN
2628: i := p_tgnv_tbl.FIRST;
2629: LOOP
2630: UPDATE_TPG_NAMED(

Line 2638: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

2634: x_msg_count,
2635: x_msg_data,
2636: p_tgnv_tbl(i),
2637: x_tgnv_tbl(i));
2638: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
2639: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2640: x_return_status := l_return_status;
2641: raise G_EXCEPTION_HALT_VALIDATION;
2642: ELSE

Line 2639: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2635: x_msg_data,
2636: p_tgnv_tbl(i),
2637: x_tgnv_tbl(i));
2638: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
2639: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2640: x_return_status := l_return_status;
2641: raise G_EXCEPTION_HALT_VALIDATION;
2642: ELSE
2643: x_return_status := l_return_status;

Line 2654: OKC_API.set_message(p_app_name => g_app_name,

2650: EXCEPTION
2651: WHEN G_EXCEPTION_HALT_VALIDATION THEN
2652: NULL;
2653: WHEN OTHERS THEN
2654: OKC_API.set_message(p_app_name => g_app_name,
2655: p_msg_name => g_unexpected_error,
2656: p_token1 => g_sqlcode_token,
2657: p_token1_value => sqlcode,
2658: p_token2 => g_sqlerrm_token,

Line 2660: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

2656: p_token1 => g_sqlcode_token,
2657: p_token1_value => sqlcode,
2658: p_token2 => g_sqlerrm_token,
2659: p_token2_value => sqlerrm);
2660: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
2661: END UPDATE_TPG_NAMED;
2662:
2663: PROCEDURE DELETE_TPG_NAMED(
2664: p_api_version IN NUMBER,

Line 2674: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

2670: l_api_name CONSTANT VARCHAR2(30) := 'DELETE_TPG_NAMED';
2671: l_return_status VARCHAR2(1);
2672: l_tgnv_rec tgnv_rec_type := p_tgnv_rec;
2673: BEGIN
2674: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
2675: p_init_msg_list,
2676: '_PUB',
2677: x_return_status);
2678: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 2678: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2674: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
2675: p_init_msg_list,
2676: '_PUB',
2677: x_return_status);
2678: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2679: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2680: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
2681: raise OKC_API.G_EXCEPTION_ERROR;
2682: END IF;

Line 2679: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

2675: p_init_msg_list,
2676: '_PUB',
2677: x_return_status);
2678: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2679: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2680: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
2681: raise OKC_API.G_EXCEPTION_ERROR;
2682: END IF;
2683: -- Call user hook for BEFORE

Line 2680: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

2676: '_PUB',
2677: x_return_status);
2678: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2679: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2680: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
2681: raise OKC_API.G_EXCEPTION_ERROR;
2682: END IF;
2683: -- Call user hook for BEFORE
2684: g_tgnv_rec := l_tgnv_rec;

Line 2681: raise OKC_API.G_EXCEPTION_ERROR;

2677: x_return_status);
2678: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2679: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2680: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
2681: raise OKC_API.G_EXCEPTION_ERROR;
2682: END IF;
2683: -- Call user hook for BEFORE
2684: g_tgnv_rec := l_tgnv_rec;
2685: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 2686: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2682: END IF;
2683: -- Call user hook for BEFORE
2684: g_tgnv_rec := l_tgnv_rec;
2685: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
2686: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2687: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2688: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2689: raise OKC_API.G_EXCEPTION_ERROR;
2690: END IF;

Line 2687: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

2683: -- Call user hook for BEFORE
2684: g_tgnv_rec := l_tgnv_rec;
2685: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
2686: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2687: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2688: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2689: raise OKC_API.G_EXCEPTION_ERROR;
2690: END IF;
2691: OKC_TIME_PVT.DELETE_TPG_NAMED(

Line 2688: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

2684: g_tgnv_rec := l_tgnv_rec;
2685: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
2686: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2687: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2688: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2689: raise OKC_API.G_EXCEPTION_ERROR;
2690: END IF;
2691: OKC_TIME_PVT.DELETE_TPG_NAMED(
2692: p_api_version,

Line 2689: raise OKC_API.G_EXCEPTION_ERROR;

2685: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
2686: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2687: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2688: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2689: raise OKC_API.G_EXCEPTION_ERROR;
2690: END IF;
2691: OKC_TIME_PVT.DELETE_TPG_NAMED(
2692: p_api_version,
2693: p_init_msg_list,

Line 2698: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2694: x_return_status,
2695: x_msg_count,
2696: x_msg_data,
2697: p_tgnv_rec);
2698: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2699: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2700: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2701: raise OKC_API.G_EXCEPTION_ERROR;
2702: END IF;

Line 2699: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

2695: x_msg_count,
2696: x_msg_data,
2697: p_tgnv_rec);
2698: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2699: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2700: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2701: raise OKC_API.G_EXCEPTION_ERROR;
2702: END IF;
2703:

Line 2700: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

2696: x_msg_data,
2697: p_tgnv_rec);
2698: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2699: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2700: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2701: raise OKC_API.G_EXCEPTION_ERROR;
2702: END IF;
2703:
2704: -- Call user hook for AFTER

Line 2701: raise OKC_API.G_EXCEPTION_ERROR;

2697: p_tgnv_rec);
2698: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2699: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2700: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2701: raise OKC_API.G_EXCEPTION_ERROR;
2702: END IF;
2703:
2704: -- Call user hook for AFTER
2705: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');

Line 2706: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2702: END IF;
2703:
2704: -- Call user hook for AFTER
2705: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
2706: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2707: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2708: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2709: raise OKC_API.G_EXCEPTION_ERROR;
2710: END IF;

Line 2707: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

2703:
2704: -- Call user hook for AFTER
2705: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
2706: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2707: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2708: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2709: raise OKC_API.G_EXCEPTION_ERROR;
2710: END IF;
2711: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 2708: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

2704: -- Call user hook for AFTER
2705: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
2706: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2707: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2708: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2709: raise OKC_API.G_EXCEPTION_ERROR;
2710: END IF;
2711: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2712: EXCEPTION

Line 2709: raise OKC_API.G_EXCEPTION_ERROR;

2705: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
2706: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2707: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2708: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2709: raise OKC_API.G_EXCEPTION_ERROR;
2710: END IF;
2711: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2712: EXCEPTION
2713: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 2711: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

2707: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
2708: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
2709: raise OKC_API.G_EXCEPTION_ERROR;
2710: END IF;
2711: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2712: EXCEPTION
2713: WHEN OKC_API.G_EXCEPTION_ERROR THEN
2714: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2715: (l_api_name,

Line 2713: WHEN OKC_API.G_EXCEPTION_ERROR THEN

2709: raise OKC_API.G_EXCEPTION_ERROR;
2710: END IF;
2711: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2712: EXCEPTION
2713: WHEN OKC_API.G_EXCEPTION_ERROR THEN
2714: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2715: (l_api_name,
2716: G_PKG_NAME,
2717: 'OKC_API.G_RET_STS_ERROR',

Line 2714: x_return_status := OKC_API.HANDLE_EXCEPTIONS

2710: END IF;
2711: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
2712: EXCEPTION
2713: WHEN OKC_API.G_EXCEPTION_ERROR THEN
2714: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2715: (l_api_name,
2716: G_PKG_NAME,
2717: 'OKC_API.G_RET_STS_ERROR',
2718: x_msg_count,

Line 2717: 'OKC_API.G_RET_STS_ERROR',

2713: WHEN OKC_API.G_EXCEPTION_ERROR THEN
2714: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2715: (l_api_name,
2716: G_PKG_NAME,
2717: 'OKC_API.G_RET_STS_ERROR',
2718: x_msg_count,
2719: x_msg_data,
2720: '_PUB');
2721: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 2721: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

2717: 'OKC_API.G_RET_STS_ERROR',
2718: x_msg_count,
2719: x_msg_data,
2720: '_PUB');
2721: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
2722: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2723: (l_api_name,
2724: G_PKG_NAME,
2725: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 2722: x_return_status := OKC_API.HANDLE_EXCEPTIONS

2718: x_msg_count,
2719: x_msg_data,
2720: '_PUB');
2721: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
2722: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2723: (l_api_name,
2724: G_PKG_NAME,
2725: 'OKC_API.G_RET_STS_UNEXP_ERROR',
2726: x_msg_count,

Line 2725: 'OKC_API.G_RET_STS_UNEXP_ERROR',

2721: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
2722: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2723: (l_api_name,
2724: G_PKG_NAME,
2725: 'OKC_API.G_RET_STS_UNEXP_ERROR',
2726: x_msg_count,
2727: x_msg_data,
2728: '_PUB');
2729: WHEN OTHERS THEN

Line 2730: x_return_status := OKC_API.HANDLE_EXCEPTIONS

2726: x_msg_count,
2727: x_msg_data,
2728: '_PUB');
2729: WHEN OTHERS THEN
2730: x_return_status := OKC_API.HANDLE_EXCEPTIONS
2731: (l_api_name,
2732: G_PKG_NAME,
2733: 'OTHERS',
2734: x_msg_count,

Line 2747: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

2743: x_msg_count OUT NOCOPY NUMBER,
2744: x_msg_data OUT NOCOPY VARCHAR2,
2745: p_tgnv_tbl IN tgnv_tbl_type) IS
2746: i NUMBER := 0;
2747: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
2748: BEGIN
2749: x_return_status := OKC_API.G_RET_STS_SUCCESS;
2750: IF p_tgnv_tbl.COUNT > 0 THEN
2751: i := p_tgnv_tbl.FIRST;

Line 2749: x_return_status := OKC_API.G_RET_STS_SUCCESS;

2745: p_tgnv_tbl IN tgnv_tbl_type) IS
2746: i NUMBER := 0;
2747: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
2748: BEGIN
2749: x_return_status := OKC_API.G_RET_STS_SUCCESS;
2750: IF p_tgnv_tbl.COUNT > 0 THEN
2751: i := p_tgnv_tbl.FIRST;
2752: LOOP
2753: DELETE_TPG_NAMED(

Line 2760: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

2756: l_return_status,
2757: x_msg_count,
2758: x_msg_data,
2759: p_tgnv_tbl(i));
2760: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
2761: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2762: x_return_status := l_return_status;
2763: raise G_EXCEPTION_HALT_VALIDATION;
2764: ELSE

Line 2761: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2757: x_msg_count,
2758: x_msg_data,
2759: p_tgnv_tbl(i));
2760: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
2761: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2762: x_return_status := l_return_status;
2763: raise G_EXCEPTION_HALT_VALIDATION;
2764: ELSE
2765: x_return_status := l_return_status;

Line 2776: OKC_API.set_message(p_app_name => g_app_name,

2772: EXCEPTION
2773: WHEN G_EXCEPTION_HALT_VALIDATION THEN
2774: NULL;
2775: WHEN OTHERS THEN
2776: OKC_API.set_message(p_app_name => g_app_name,
2777: p_msg_name => g_unexpected_error,
2778: p_token1 => g_sqlcode_token,
2779: p_token1_value => sqlcode,
2780: p_token2 => g_sqlerrm_token,

Line 2782: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

2778: p_token1 => g_sqlcode_token,
2779: p_token1_value => sqlcode,
2780: p_token2 => g_sqlerrm_token,
2781: p_token2_value => sqlerrm);
2782: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
2783: END DELETE_TPG_NAMED;
2784:
2785: PROCEDURE LOCK_TPG_NAMED(
2786: p_api_version IN NUMBER,

Line 2810: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

2806: x_msg_count OUT NOCOPY NUMBER,
2807: x_msg_data OUT NOCOPY VARCHAR2,
2808: p_tgnv_tbl IN tgnv_tbl_type) IS
2809: i NUMBER := 0;
2810: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
2811: BEGIN
2812: x_return_status := OKC_API.G_RET_STS_SUCCESS;
2813: IF p_tgnv_tbl.COUNT > 0 THEN
2814: i := p_tgnv_tbl.FIRST;

Line 2812: x_return_status := OKC_API.G_RET_STS_SUCCESS;

2808: p_tgnv_tbl IN tgnv_tbl_type) IS
2809: i NUMBER := 0;
2810: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
2811: BEGIN
2812: x_return_status := OKC_API.G_RET_STS_SUCCESS;
2813: IF p_tgnv_tbl.COUNT > 0 THEN
2814: i := p_tgnv_tbl.FIRST;
2815: LOOP
2816: LOCK_TPG_NAMED(

Line 2823: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

2819: l_return_status,
2820: x_msg_count,
2821: x_msg_data,
2822: p_tgnv_tbl(i));
2823: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
2824: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2825: x_return_status := l_return_status;
2826: raise G_EXCEPTION_HALT_VALIDATION;
2827: ELSE

Line 2824: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2820: x_msg_count,
2821: x_msg_data,
2822: p_tgnv_tbl(i));
2823: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
2824: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2825: x_return_status := l_return_status;
2826: raise G_EXCEPTION_HALT_VALIDATION;
2827: ELSE
2828: x_return_status := l_return_status;

Line 2839: OKC_API.set_message(p_app_name => g_app_name,

2835: EXCEPTION
2836: WHEN G_EXCEPTION_HALT_VALIDATION THEN
2837: NULL;
2838: WHEN OTHERS THEN
2839: OKC_API.set_message(p_app_name => g_app_name,
2840: p_msg_name => g_unexpected_error,
2841: p_token1 => g_sqlcode_token,
2842: p_token1_value => sqlcode,
2843: p_token2 => g_sqlerrm_token,

Line 2845: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

2841: p_token1 => g_sqlcode_token,
2842: p_token1_value => sqlcode,
2843: p_token2 => g_sqlerrm_token,
2844: p_token2_value => sqlerrm);
2845: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
2846: END LOCK_TPG_NAMED;
2847:
2848: PROCEDURE VALID_TPG_NAMED(
2849: p_api_version IN NUMBER,

Line 2873: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

2869: x_msg_count OUT NOCOPY NUMBER,
2870: x_msg_data OUT NOCOPY VARCHAR2,
2871: p_tgnv_tbl IN tgnv_tbl_type) IS
2872: i NUMBER := 0;
2873: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
2874: BEGIN
2875: x_return_status := OKC_API.G_RET_STS_SUCCESS;
2876: IF p_tgnv_tbl.COUNT > 0 THEN
2877: i := p_tgnv_tbl.FIRST;

Line 2875: x_return_status := OKC_API.G_RET_STS_SUCCESS;

2871: p_tgnv_tbl IN tgnv_tbl_type) IS
2872: i NUMBER := 0;
2873: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
2874: BEGIN
2875: x_return_status := OKC_API.G_RET_STS_SUCCESS;
2876: IF p_tgnv_tbl.COUNT > 0 THEN
2877: i := p_tgnv_tbl.FIRST;
2878: LOOP
2879: VALID_TPG_NAMED(

Line 2886: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

2882: l_return_status,
2883: x_msg_count,
2884: x_msg_data,
2885: p_tgnv_tbl(i));
2886: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
2887: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2888: x_return_status := l_return_status;
2889: raise G_EXCEPTION_HALT_VALIDATION;
2890: ELSE

Line 2887: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

2883: x_msg_count,
2884: x_msg_data,
2885: p_tgnv_tbl(i));
2886: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
2887: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
2888: x_return_status := l_return_status;
2889: raise G_EXCEPTION_HALT_VALIDATION;
2890: ELSE
2891: x_return_status := l_return_status;

Line 2902: OKC_API.set_message(p_app_name => g_app_name,

2898: EXCEPTION
2899: WHEN G_EXCEPTION_HALT_VALIDATION THEN
2900: NULL;
2901: WHEN OTHERS THEN
2902: OKC_API.set_message(p_app_name => g_app_name,
2903: p_msg_name => g_unexpected_error,
2904: p_token1 => g_sqlcode_token,
2905: p_token1_value => sqlcode,
2906: p_token2 => g_sqlerrm_token,

Line 2908: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

2904: p_token1 => g_sqlcode_token,
2905: p_token1_value => sqlcode,
2906: p_token2 => g_sqlerrm_token,
2907: p_token2_value => sqlerrm);
2908: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
2909: END VALID_TPG_NAMED;
2910:
2911: --------------------------------------------------------------------------
2912: ---The following procedures cater to handling of OKC_TIME_IA_STARTEND

Line 3069: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

3065: l_api_name CONSTANT VARCHAR2(30) := 'CREATE_IA_STARTEND';
3066: l_return_status VARCHAR2(1);
3067: l_isev_ext_rec isev_ext_rec_type := p_isev_ext_rec;
3068: BEGIN
3069: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
3070: p_init_msg_list,
3071: '_PUB',
3072: x_return_status);
3073: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 3073: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3069: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
3070: p_init_msg_list,
3071: '_PUB',
3072: x_return_status);
3073: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3074: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3075: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3076: raise OKC_API.G_EXCEPTION_ERROR;
3077: END IF;

Line 3074: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3070: p_init_msg_list,
3071: '_PUB',
3072: x_return_status);
3073: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3074: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3075: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3076: raise OKC_API.G_EXCEPTION_ERROR;
3077: END IF;
3078: -- Call user hook for BEFORE

Line 3075: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

3071: '_PUB',
3072: x_return_status);
3073: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3074: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3075: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3076: raise OKC_API.G_EXCEPTION_ERROR;
3077: END IF;
3078: -- Call user hook for BEFORE
3079: g_isev_ext_rec := l_isev_ext_rec;

Line 3076: raise OKC_API.G_EXCEPTION_ERROR;

3072: x_return_status);
3073: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3074: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3075: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3076: raise OKC_API.G_EXCEPTION_ERROR;
3077: END IF;
3078: -- Call user hook for BEFORE
3079: g_isev_ext_rec := l_isev_ext_rec;
3080: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 3081: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3077: END IF;
3078: -- Call user hook for BEFORE
3079: g_isev_ext_rec := l_isev_ext_rec;
3080: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3081: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3082: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3083: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3084: raise OKC_API.G_EXCEPTION_ERROR;
3085: END IF;

Line 3082: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3078: -- Call user hook for BEFORE
3079: g_isev_ext_rec := l_isev_ext_rec;
3080: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3081: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3082: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3083: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3084: raise OKC_API.G_EXCEPTION_ERROR;
3085: END IF;
3086: l_isev_ext_rec := migrate_isev(l_isev_ext_rec, g_isev_ext_rec);

Line 3083: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

3079: g_isev_ext_rec := l_isev_ext_rec;
3080: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3081: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3082: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3083: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3084: raise OKC_API.G_EXCEPTION_ERROR;
3085: END IF;
3086: l_isev_ext_rec := migrate_isev(l_isev_ext_rec, g_isev_ext_rec);
3087: OKC_TIME_PVT.CREATE_IA_STARTEND(

Line 3084: raise OKC_API.G_EXCEPTION_ERROR;

3080: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3081: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3082: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3083: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3084: raise OKC_API.G_EXCEPTION_ERROR;
3085: END IF;
3086: l_isev_ext_rec := migrate_isev(l_isev_ext_rec, g_isev_ext_rec);
3087: OKC_TIME_PVT.CREATE_IA_STARTEND(
3088: p_api_version,

Line 3095: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3091: x_msg_count,
3092: x_msg_data,
3093: p_isev_ext_rec,
3094: x_isev_ext_rec);
3095: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3096: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3097: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3098: raise OKC_API.G_EXCEPTION_ERROR;
3099: END IF;

Line 3096: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3092: x_msg_data,
3093: p_isev_ext_rec,
3094: x_isev_ext_rec);
3095: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3096: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3097: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3098: raise OKC_API.G_EXCEPTION_ERROR;
3099: END IF;
3100:

Line 3097: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

3093: p_isev_ext_rec,
3094: x_isev_ext_rec);
3095: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3096: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3097: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3098: raise OKC_API.G_EXCEPTION_ERROR;
3099: END IF;
3100:
3101: -- Call user hook for AFTER

Line 3098: raise OKC_API.G_EXCEPTION_ERROR;

3094: x_isev_ext_rec);
3095: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3096: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3097: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3098: raise OKC_API.G_EXCEPTION_ERROR;
3099: END IF;
3100:
3101: -- Call user hook for AFTER
3102: g_isev_ext_rec := x_isev_ext_rec;

Line 3104: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3100:
3101: -- Call user hook for AFTER
3102: g_isev_ext_rec := x_isev_ext_rec;
3103: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3104: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3105: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3106: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3107: raise OKC_API.G_EXCEPTION_ERROR;
3108: END IF;

Line 3105: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3101: -- Call user hook for AFTER
3102: g_isev_ext_rec := x_isev_ext_rec;
3103: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3104: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3105: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3106: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3107: raise OKC_API.G_EXCEPTION_ERROR;
3108: END IF;
3109: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 3106: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

3102: g_isev_ext_rec := x_isev_ext_rec;
3103: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3104: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3105: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3106: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3107: raise OKC_API.G_EXCEPTION_ERROR;
3108: END IF;
3109: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3110: EXCEPTION

Line 3107: raise OKC_API.G_EXCEPTION_ERROR;

3103: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3104: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3105: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3106: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3107: raise OKC_API.G_EXCEPTION_ERROR;
3108: END IF;
3109: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3110: EXCEPTION
3111: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 3109: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

3105: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3106: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3107: raise OKC_API.G_EXCEPTION_ERROR;
3108: END IF;
3109: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3110: EXCEPTION
3111: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3112: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3113: (l_api_name,

Line 3111: WHEN OKC_API.G_EXCEPTION_ERROR THEN

3107: raise OKC_API.G_EXCEPTION_ERROR;
3108: END IF;
3109: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3110: EXCEPTION
3111: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3112: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3113: (l_api_name,
3114: G_PKG_NAME,
3115: 'OKC_API.G_RET_STS_ERROR',

Line 3112: x_return_status := OKC_API.HANDLE_EXCEPTIONS

3108: END IF;
3109: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3110: EXCEPTION
3111: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3112: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3113: (l_api_name,
3114: G_PKG_NAME,
3115: 'OKC_API.G_RET_STS_ERROR',
3116: x_msg_count,

Line 3115: 'OKC_API.G_RET_STS_ERROR',

3111: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3112: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3113: (l_api_name,
3114: G_PKG_NAME,
3115: 'OKC_API.G_RET_STS_ERROR',
3116: x_msg_count,
3117: x_msg_data,
3118: '_PUB');
3119: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 3119: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

3115: 'OKC_API.G_RET_STS_ERROR',
3116: x_msg_count,
3117: x_msg_data,
3118: '_PUB');
3119: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
3120: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3121: (l_api_name,
3122: G_PKG_NAME,
3123: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 3120: x_return_status := OKC_API.HANDLE_EXCEPTIONS

3116: x_msg_count,
3117: x_msg_data,
3118: '_PUB');
3119: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
3120: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3121: (l_api_name,
3122: G_PKG_NAME,
3123: 'OKC_API.G_RET_STS_UNEXP_ERROR',
3124: x_msg_count,

Line 3123: 'OKC_API.G_RET_STS_UNEXP_ERROR',

3119: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
3120: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3121: (l_api_name,
3122: G_PKG_NAME,
3123: 'OKC_API.G_RET_STS_UNEXP_ERROR',
3124: x_msg_count,
3125: x_msg_data,
3126: '_PUB');
3127: WHEN OTHERS THEN

Line 3128: x_return_status := OKC_API.HANDLE_EXCEPTIONS

3124: x_msg_count,
3125: x_msg_data,
3126: '_PUB');
3127: WHEN OTHERS THEN
3128: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3129: (l_api_name,
3130: G_PKG_NAME,
3131: 'OTHERS',
3132: x_msg_count,

Line 3146: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

3142: x_msg_data OUT NOCOPY VARCHAR2,
3143: p_isev_ext_tbl IN isev_ext_tbl_type,
3144: x_isev_ext_tbl OUT NOCOPY isev_ext_tbl_type) IS
3145: i NUMBER := 0;
3146: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
3147: BEGIN
3148: x_return_status := OKC_API.G_RET_STS_SUCCESS;
3149: IF p_isev_ext_tbl.COUNT > 0 THEN
3150: i := p_isev_ext_tbl.FIRST;

Line 3148: x_return_status := OKC_API.G_RET_STS_SUCCESS;

3144: x_isev_ext_tbl OUT NOCOPY isev_ext_tbl_type) IS
3145: i NUMBER := 0;
3146: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
3147: BEGIN
3148: x_return_status := OKC_API.G_RET_STS_SUCCESS;
3149: IF p_isev_ext_tbl.COUNT > 0 THEN
3150: i := p_isev_ext_tbl.FIRST;
3151: LOOP
3152: CREATE_IA_STARTEND(

Line 3160: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

3156: x_msg_count,
3157: x_msg_data,
3158: p_isev_ext_tbl(i),
3159: x_isev_ext_tbl(i));
3160: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
3161: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3162: x_return_status := l_return_status;
3163: raise G_EXCEPTION_HALT_VALIDATION;
3164: ELSE

Line 3161: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3157: x_msg_data,
3158: p_isev_ext_tbl(i),
3159: x_isev_ext_tbl(i));
3160: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
3161: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3162: x_return_status := l_return_status;
3163: raise G_EXCEPTION_HALT_VALIDATION;
3164: ELSE
3165: x_return_status := l_return_status;

Line 3176: OKC_API.set_message(p_app_name => g_app_name,

3172: EXCEPTION
3173: WHEN G_EXCEPTION_HALT_VALIDATION THEN
3174: NULL;
3175: WHEN OTHERS THEN
3176: OKC_API.set_message(p_app_name => g_app_name,
3177: p_msg_name => g_unexpected_error,
3178: p_token1 => g_sqlcode_token,
3179: p_token1_value => sqlcode,
3180: p_token2 => g_sqlerrm_token,

Line 3182: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

3178: p_token1 => g_sqlcode_token,
3179: p_token1_value => sqlcode,
3180: p_token2 => g_sqlerrm_token,
3181: p_token2_value => sqlerrm);
3182: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
3183: END CREATE_IA_STARTEND;
3184:
3185: PROCEDURE UPDATE_IA_STARTEND(
3186: p_api_version IN NUMBER,

Line 3197: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

3193: l_api_name CONSTANT VARCHAR2(30) := 'UPDATE_IA_STARTEND';
3194: l_return_status VARCHAR2(1);
3195: l_isev_ext_rec isev_ext_rec_type := p_isev_ext_rec;
3196: BEGIN
3197: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
3198: p_init_msg_list,
3199: '_PUB',
3200: x_return_status);
3201: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 3201: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3197: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
3198: p_init_msg_list,
3199: '_PUB',
3200: x_return_status);
3201: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3202: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3203: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3204: raise OKC_API.G_EXCEPTION_ERROR;
3205: END IF;

Line 3202: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3198: p_init_msg_list,
3199: '_PUB',
3200: x_return_status);
3201: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3202: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3203: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3204: raise OKC_API.G_EXCEPTION_ERROR;
3205: END IF;
3206: -- Call user hook for BEFORE

Line 3203: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

3199: '_PUB',
3200: x_return_status);
3201: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3202: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3203: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3204: raise OKC_API.G_EXCEPTION_ERROR;
3205: END IF;
3206: -- Call user hook for BEFORE
3207: g_isev_ext_rec := l_isev_ext_rec;

Line 3204: raise OKC_API.G_EXCEPTION_ERROR;

3200: x_return_status);
3201: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3202: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3203: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3204: raise OKC_API.G_EXCEPTION_ERROR;
3205: END IF;
3206: -- Call user hook for BEFORE
3207: g_isev_ext_rec := l_isev_ext_rec;
3208: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 3209: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3205: END IF;
3206: -- Call user hook for BEFORE
3207: g_isev_ext_rec := l_isev_ext_rec;
3208: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3209: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3210: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3211: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3212: raise OKC_API.G_EXCEPTION_ERROR;
3213: END IF;

Line 3210: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3206: -- Call user hook for BEFORE
3207: g_isev_ext_rec := l_isev_ext_rec;
3208: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3209: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3210: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3211: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3212: raise OKC_API.G_EXCEPTION_ERROR;
3213: END IF;
3214: l_isev_ext_rec := migrate_isev(l_isev_ext_rec, g_isev_ext_rec);

Line 3211: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

3207: g_isev_ext_rec := l_isev_ext_rec;
3208: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3209: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3210: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3211: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3212: raise OKC_API.G_EXCEPTION_ERROR;
3213: END IF;
3214: l_isev_ext_rec := migrate_isev(l_isev_ext_rec, g_isev_ext_rec);
3215: OKC_TIME_PVT.UPDATE_IA_STARTEND(

Line 3212: raise OKC_API.G_EXCEPTION_ERROR;

3208: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3209: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3210: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3211: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3212: raise OKC_API.G_EXCEPTION_ERROR;
3213: END IF;
3214: l_isev_ext_rec := migrate_isev(l_isev_ext_rec, g_isev_ext_rec);
3215: OKC_TIME_PVT.UPDATE_IA_STARTEND(
3216: p_api_version,

Line 3223: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3219: x_msg_count,
3220: x_msg_data,
3221: p_isev_ext_rec,
3222: x_isev_ext_rec);
3223: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3224: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3225: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3226: raise OKC_API.G_EXCEPTION_ERROR;
3227: END IF;

Line 3224: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3220: x_msg_data,
3221: p_isev_ext_rec,
3222: x_isev_ext_rec);
3223: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3224: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3225: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3226: raise OKC_API.G_EXCEPTION_ERROR;
3227: END IF;
3228:

Line 3225: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

3221: p_isev_ext_rec,
3222: x_isev_ext_rec);
3223: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3224: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3225: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3226: raise OKC_API.G_EXCEPTION_ERROR;
3227: END IF;
3228:
3229: -- Call user hook for AFTER

Line 3226: raise OKC_API.G_EXCEPTION_ERROR;

3222: x_isev_ext_rec);
3223: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3224: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3225: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3226: raise OKC_API.G_EXCEPTION_ERROR;
3227: END IF;
3228:
3229: -- Call user hook for AFTER
3230: g_isev_ext_rec := x_isev_ext_rec;

Line 3232: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3228:
3229: -- Call user hook for AFTER
3230: g_isev_ext_rec := x_isev_ext_rec;
3231: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3232: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3233: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3234: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3235: raise OKC_API.G_EXCEPTION_ERROR;
3236: END IF;

Line 3233: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3229: -- Call user hook for AFTER
3230: g_isev_ext_rec := x_isev_ext_rec;
3231: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3232: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3233: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3234: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3235: raise OKC_API.G_EXCEPTION_ERROR;
3236: END IF;
3237: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 3234: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

3230: g_isev_ext_rec := x_isev_ext_rec;
3231: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3232: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3233: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3234: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3235: raise OKC_API.G_EXCEPTION_ERROR;
3236: END IF;
3237: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3238: EXCEPTION

Line 3235: raise OKC_API.G_EXCEPTION_ERROR;

3231: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3232: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3233: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3234: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3235: raise OKC_API.G_EXCEPTION_ERROR;
3236: END IF;
3237: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3238: EXCEPTION
3239: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 3237: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

3233: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3234: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3235: raise OKC_API.G_EXCEPTION_ERROR;
3236: END IF;
3237: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3238: EXCEPTION
3239: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3240: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3241: (l_api_name,

Line 3239: WHEN OKC_API.G_EXCEPTION_ERROR THEN

3235: raise OKC_API.G_EXCEPTION_ERROR;
3236: END IF;
3237: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3238: EXCEPTION
3239: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3240: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3241: (l_api_name,
3242: G_PKG_NAME,
3243: 'OKC_API.G_RET_STS_ERROR',

Line 3240: x_return_status := OKC_API.HANDLE_EXCEPTIONS

3236: END IF;
3237: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3238: EXCEPTION
3239: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3240: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3241: (l_api_name,
3242: G_PKG_NAME,
3243: 'OKC_API.G_RET_STS_ERROR',
3244: x_msg_count,

Line 3243: 'OKC_API.G_RET_STS_ERROR',

3239: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3240: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3241: (l_api_name,
3242: G_PKG_NAME,
3243: 'OKC_API.G_RET_STS_ERROR',
3244: x_msg_count,
3245: x_msg_data,
3246: '_PUB');
3247: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 3247: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

3243: 'OKC_API.G_RET_STS_ERROR',
3244: x_msg_count,
3245: x_msg_data,
3246: '_PUB');
3247: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
3248: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3249: (l_api_name,
3250: G_PKG_NAME,
3251: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 3248: x_return_status := OKC_API.HANDLE_EXCEPTIONS

3244: x_msg_count,
3245: x_msg_data,
3246: '_PUB');
3247: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
3248: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3249: (l_api_name,
3250: G_PKG_NAME,
3251: 'OKC_API.G_RET_STS_UNEXP_ERROR',
3252: x_msg_count,

Line 3251: 'OKC_API.G_RET_STS_UNEXP_ERROR',

3247: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
3248: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3249: (l_api_name,
3250: G_PKG_NAME,
3251: 'OKC_API.G_RET_STS_UNEXP_ERROR',
3252: x_msg_count,
3253: x_msg_data,
3254: '_PUB');
3255: WHEN OTHERS THEN

Line 3256: x_return_status := OKC_API.HANDLE_EXCEPTIONS

3252: x_msg_count,
3253: x_msg_data,
3254: '_PUB');
3255: WHEN OTHERS THEN
3256: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3257: (l_api_name,
3258: G_PKG_NAME,
3259: 'OTHERS',
3260: x_msg_count,

Line 3274: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

3270: x_msg_data OUT NOCOPY VARCHAR2,
3271: p_isev_ext_tbl IN isev_ext_tbl_type,
3272: x_isev_ext_tbl OUT NOCOPY isev_ext_tbl_type) IS
3273: i NUMBER := 0;
3274: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
3275: BEGIN
3276: x_return_status := OKC_API.G_RET_STS_SUCCESS;
3277: IF p_isev_ext_tbl.COUNT > 0 THEN
3278: i := p_isev_ext_tbl.FIRST;

Line 3276: x_return_status := OKC_API.G_RET_STS_SUCCESS;

3272: x_isev_ext_tbl OUT NOCOPY isev_ext_tbl_type) IS
3273: i NUMBER := 0;
3274: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
3275: BEGIN
3276: x_return_status := OKC_API.G_RET_STS_SUCCESS;
3277: IF p_isev_ext_tbl.COUNT > 0 THEN
3278: i := p_isev_ext_tbl.FIRST;
3279: LOOP
3280: UPDATE_IA_STARTEND(

Line 3288: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

3284: x_msg_count,
3285: x_msg_data,
3286: p_isev_ext_tbl(i),
3287: x_isev_ext_tbl(i));
3288: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
3289: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3290: x_return_status := l_return_status;
3291: raise G_EXCEPTION_HALT_VALIDATION;
3292: ELSE

Line 3289: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3285: x_msg_data,
3286: p_isev_ext_tbl(i),
3287: x_isev_ext_tbl(i));
3288: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
3289: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3290: x_return_status := l_return_status;
3291: raise G_EXCEPTION_HALT_VALIDATION;
3292: ELSE
3293: x_return_status := l_return_status;

Line 3304: OKC_API.set_message(p_app_name => g_app_name,

3300: EXCEPTION
3301: WHEN G_EXCEPTION_HALT_VALIDATION THEN
3302: NULL;
3303: WHEN OTHERS THEN
3304: OKC_API.set_message(p_app_name => g_app_name,
3305: p_msg_name => g_unexpected_error,
3306: p_token1 => g_sqlcode_token,
3307: p_token1_value => sqlcode,
3308: p_token2 => g_sqlerrm_token,

Line 3310: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

3306: p_token1 => g_sqlcode_token,
3307: p_token1_value => sqlcode,
3308: p_token2 => g_sqlerrm_token,
3309: p_token2_value => sqlerrm);
3310: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
3311: END UPDATE_IA_STARTEND;
3312:
3313: PROCEDURE DELETE_IA_STARTEND(
3314: p_api_version IN NUMBER,

Line 3324: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

3320: l_api_name CONSTANT VARCHAR2(30) := 'DELETE_IA_STARTEND';
3321: l_return_status VARCHAR2(1);
3322: l_isev_ext_rec isev_ext_rec_type := p_isev_ext_rec;
3323: BEGIN
3324: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
3325: p_init_msg_list,
3326: '_PUB',
3327: x_return_status);
3328: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 3328: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3324: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
3325: p_init_msg_list,
3326: '_PUB',
3327: x_return_status);
3328: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3329: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3330: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3331: raise OKC_API.G_EXCEPTION_ERROR;
3332: END IF;

Line 3329: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3325: p_init_msg_list,
3326: '_PUB',
3327: x_return_status);
3328: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3329: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3330: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3331: raise OKC_API.G_EXCEPTION_ERROR;
3332: END IF;
3333: -- Call user hook for BEFORE

Line 3330: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

3326: '_PUB',
3327: x_return_status);
3328: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3329: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3330: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3331: raise OKC_API.G_EXCEPTION_ERROR;
3332: END IF;
3333: -- Call user hook for BEFORE
3334: g_isev_ext_rec := l_isev_ext_rec;

Line 3331: raise OKC_API.G_EXCEPTION_ERROR;

3327: x_return_status);
3328: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3329: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3330: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3331: raise OKC_API.G_EXCEPTION_ERROR;
3332: END IF;
3333: -- Call user hook for BEFORE
3334: g_isev_ext_rec := l_isev_ext_rec;
3335: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 3336: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3332: END IF;
3333: -- Call user hook for BEFORE
3334: g_isev_ext_rec := l_isev_ext_rec;
3335: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3336: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3337: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3338: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3339: raise OKC_API.G_EXCEPTION_ERROR;
3340: END IF;

Line 3337: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3333: -- Call user hook for BEFORE
3334: g_isev_ext_rec := l_isev_ext_rec;
3335: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3336: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3337: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3338: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3339: raise OKC_API.G_EXCEPTION_ERROR;
3340: END IF;
3341: OKC_TIME_PVT.DELETE_IA_STARTEND(

Line 3338: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

3334: g_isev_ext_rec := l_isev_ext_rec;
3335: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3336: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3337: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3338: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3339: raise OKC_API.G_EXCEPTION_ERROR;
3340: END IF;
3341: OKC_TIME_PVT.DELETE_IA_STARTEND(
3342: p_api_version,

Line 3339: raise OKC_API.G_EXCEPTION_ERROR;

3335: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3336: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3337: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3338: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3339: raise OKC_API.G_EXCEPTION_ERROR;
3340: END IF;
3341: OKC_TIME_PVT.DELETE_IA_STARTEND(
3342: p_api_version,
3343: p_init_msg_list,

Line 3348: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3344: x_return_status,
3345: x_msg_count,
3346: x_msg_data,
3347: p_isev_ext_rec);
3348: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3349: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3350: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3351: raise OKC_API.G_EXCEPTION_ERROR;
3352: END IF;

Line 3349: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3345: x_msg_count,
3346: x_msg_data,
3347: p_isev_ext_rec);
3348: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3349: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3350: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3351: raise OKC_API.G_EXCEPTION_ERROR;
3352: END IF;
3353:

Line 3350: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

3346: x_msg_data,
3347: p_isev_ext_rec);
3348: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3349: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3350: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3351: raise OKC_API.G_EXCEPTION_ERROR;
3352: END IF;
3353:
3354: -- Call user hook for AFTER

Line 3351: raise OKC_API.G_EXCEPTION_ERROR;

3347: p_isev_ext_rec);
3348: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3349: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3350: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3351: raise OKC_API.G_EXCEPTION_ERROR;
3352: END IF;
3353:
3354: -- Call user hook for AFTER
3355: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');

Line 3356: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3352: END IF;
3353:
3354: -- Call user hook for AFTER
3355: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3356: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3357: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3358: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3359: raise OKC_API.G_EXCEPTION_ERROR;
3360: END IF;

Line 3357: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3353:
3354: -- Call user hook for AFTER
3355: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3356: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3357: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3358: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3359: raise OKC_API.G_EXCEPTION_ERROR;
3360: END IF;
3361: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 3358: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

3354: -- Call user hook for AFTER
3355: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3356: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3357: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3358: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3359: raise OKC_API.G_EXCEPTION_ERROR;
3360: END IF;
3361: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3362: EXCEPTION

Line 3359: raise OKC_API.G_EXCEPTION_ERROR;

3355: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3356: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3357: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3358: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3359: raise OKC_API.G_EXCEPTION_ERROR;
3360: END IF;
3361: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3362: EXCEPTION
3363: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 3361: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

3357: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3358: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3359: raise OKC_API.G_EXCEPTION_ERROR;
3360: END IF;
3361: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3362: EXCEPTION
3363: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3364: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3365: (l_api_name,

Line 3363: WHEN OKC_API.G_EXCEPTION_ERROR THEN

3359: raise OKC_API.G_EXCEPTION_ERROR;
3360: END IF;
3361: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3362: EXCEPTION
3363: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3364: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3365: (l_api_name,
3366: G_PKG_NAME,
3367: 'OKC_API.G_RET_STS_ERROR',

Line 3364: x_return_status := OKC_API.HANDLE_EXCEPTIONS

3360: END IF;
3361: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3362: EXCEPTION
3363: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3364: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3365: (l_api_name,
3366: G_PKG_NAME,
3367: 'OKC_API.G_RET_STS_ERROR',
3368: x_msg_count,

Line 3367: 'OKC_API.G_RET_STS_ERROR',

3363: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3364: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3365: (l_api_name,
3366: G_PKG_NAME,
3367: 'OKC_API.G_RET_STS_ERROR',
3368: x_msg_count,
3369: x_msg_data,
3370: '_PUB');
3371: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 3371: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

3367: 'OKC_API.G_RET_STS_ERROR',
3368: x_msg_count,
3369: x_msg_data,
3370: '_PUB');
3371: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
3372: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3373: (l_api_name,
3374: G_PKG_NAME,
3375: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 3372: x_return_status := OKC_API.HANDLE_EXCEPTIONS

3368: x_msg_count,
3369: x_msg_data,
3370: '_PUB');
3371: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
3372: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3373: (l_api_name,
3374: G_PKG_NAME,
3375: 'OKC_API.G_RET_STS_UNEXP_ERROR',
3376: x_msg_count,

Line 3375: 'OKC_API.G_RET_STS_UNEXP_ERROR',

3371: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
3372: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3373: (l_api_name,
3374: G_PKG_NAME,
3375: 'OKC_API.G_RET_STS_UNEXP_ERROR',
3376: x_msg_count,
3377: x_msg_data,
3378: '_PUB');
3379: WHEN OTHERS THEN

Line 3380: x_return_status := OKC_API.HANDLE_EXCEPTIONS

3376: x_msg_count,
3377: x_msg_data,
3378: '_PUB');
3379: WHEN OTHERS THEN
3380: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3381: (l_api_name,
3382: G_PKG_NAME,
3383: 'OTHERS',
3384: x_msg_count,

Line 3397: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

3393: x_msg_count OUT NOCOPY NUMBER,
3394: x_msg_data OUT NOCOPY VARCHAR2,
3395: p_isev_ext_tbl IN isev_ext_tbl_type) IS
3396: i NUMBER := 0;
3397: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
3398: BEGIN
3399: x_return_status := OKC_API.G_RET_STS_SUCCESS;
3400: IF p_isev_ext_tbl.COUNT > 0 THEN
3401: i := p_isev_ext_tbl.FIRST;

Line 3399: x_return_status := OKC_API.G_RET_STS_SUCCESS;

3395: p_isev_ext_tbl IN isev_ext_tbl_type) IS
3396: i NUMBER := 0;
3397: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
3398: BEGIN
3399: x_return_status := OKC_API.G_RET_STS_SUCCESS;
3400: IF p_isev_ext_tbl.COUNT > 0 THEN
3401: i := p_isev_ext_tbl.FIRST;
3402: LOOP
3403: DELETE_IA_STARTEND(

Line 3410: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

3406: l_return_status,
3407: x_msg_count,
3408: x_msg_data,
3409: p_isev_ext_tbl(i));
3410: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
3411: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3412: x_return_status := l_return_status;
3413: raise G_EXCEPTION_HALT_VALIDATION;
3414: ELSE

Line 3411: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3407: x_msg_count,
3408: x_msg_data,
3409: p_isev_ext_tbl(i));
3410: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
3411: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3412: x_return_status := l_return_status;
3413: raise G_EXCEPTION_HALT_VALIDATION;
3414: ELSE
3415: x_return_status := l_return_status;

Line 3426: OKC_API.set_message(p_app_name => g_app_name,

3422: EXCEPTION
3423: WHEN G_EXCEPTION_HALT_VALIDATION THEN
3424: NULL;
3425: WHEN OTHERS THEN
3426: OKC_API.set_message(p_app_name => g_app_name,
3427: p_msg_name => g_unexpected_error,
3428: p_token1 => g_sqlcode_token,
3429: p_token1_value => sqlcode,
3430: p_token2 => g_sqlerrm_token,

Line 3432: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

3428: p_token1 => g_sqlcode_token,
3429: p_token1_value => sqlcode,
3430: p_token2 => g_sqlerrm_token,
3431: p_token2_value => sqlerrm);
3432: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
3433: END DELETE_IA_STARTEND;
3434:
3435: PROCEDURE LOCK_IA_STARTEND(
3436: p_api_version IN NUMBER,

Line 3460: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

3456: x_msg_count OUT NOCOPY NUMBER,
3457: x_msg_data OUT NOCOPY VARCHAR2,
3458: p_isev_ext_tbl IN isev_ext_tbl_type) IS
3459: i NUMBER := 0;
3460: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
3461: BEGIN
3462: x_return_status := OKC_API.G_RET_STS_SUCCESS;
3463: IF p_isev_ext_tbl.COUNT > 0 THEN
3464: i := p_isev_ext_tbl.FIRST;

Line 3462: x_return_status := OKC_API.G_RET_STS_SUCCESS;

3458: p_isev_ext_tbl IN isev_ext_tbl_type) IS
3459: i NUMBER := 0;
3460: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
3461: BEGIN
3462: x_return_status := OKC_API.G_RET_STS_SUCCESS;
3463: IF p_isev_ext_tbl.COUNT > 0 THEN
3464: i := p_isev_ext_tbl.FIRST;
3465: LOOP
3466: LOCK_IA_STARTEND(

Line 3473: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

3469: l_return_status,
3470: x_msg_count,
3471: x_msg_data,
3472: p_isev_ext_tbl(i));
3473: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
3474: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3475: x_return_status := l_return_status;
3476: raise G_EXCEPTION_HALT_VALIDATION;
3477: ELSE

Line 3474: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3470: x_msg_count,
3471: x_msg_data,
3472: p_isev_ext_tbl(i));
3473: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
3474: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3475: x_return_status := l_return_status;
3476: raise G_EXCEPTION_HALT_VALIDATION;
3477: ELSE
3478: x_return_status := l_return_status;

Line 3489: OKC_API.set_message(p_app_name => g_app_name,

3485: EXCEPTION
3486: WHEN G_EXCEPTION_HALT_VALIDATION THEN
3487: NULL;
3488: WHEN OTHERS THEN
3489: OKC_API.set_message(p_app_name => g_app_name,
3490: p_msg_name => g_unexpected_error,
3491: p_token1 => g_sqlcode_token,
3492: p_token1_value => sqlcode,
3493: p_token2 => g_sqlerrm_token,

Line 3495: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

3491: p_token1 => g_sqlcode_token,
3492: p_token1_value => sqlcode,
3493: p_token2 => g_sqlerrm_token,
3494: p_token2_value => sqlerrm);
3495: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
3496: END LOCK_IA_STARTEND;
3497:
3498: PROCEDURE VALID_IA_STARTEND(
3499: p_api_version IN NUMBER,

Line 3523: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

3519: x_msg_count OUT NOCOPY NUMBER,
3520: x_msg_data OUT NOCOPY VARCHAR2,
3521: p_isev_ext_tbl IN isev_ext_tbl_type) IS
3522: i NUMBER := 0;
3523: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
3524: BEGIN
3525: x_return_status := OKC_API.G_RET_STS_SUCCESS;
3526: IF p_isev_ext_tbl.COUNT > 0 THEN
3527: i := p_isev_ext_tbl.FIRST;

Line 3525: x_return_status := OKC_API.G_RET_STS_SUCCESS;

3521: p_isev_ext_tbl IN isev_ext_tbl_type) IS
3522: i NUMBER := 0;
3523: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
3524: BEGIN
3525: x_return_status := OKC_API.G_RET_STS_SUCCESS;
3526: IF p_isev_ext_tbl.COUNT > 0 THEN
3527: i := p_isev_ext_tbl.FIRST;
3528: LOOP
3529: VALID_IA_STARTEND(

Line 3536: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

3532: l_return_status,
3533: x_msg_count,
3534: x_msg_data,
3535: p_isev_ext_tbl(i));
3536: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
3537: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3538: x_return_status := l_return_status;
3539: raise G_EXCEPTION_HALT_VALIDATION;
3540: ELSE

Line 3537: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3533: x_msg_count,
3534: x_msg_data,
3535: p_isev_ext_tbl(i));
3536: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
3537: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3538: x_return_status := l_return_status;
3539: raise G_EXCEPTION_HALT_VALIDATION;
3540: ELSE
3541: x_return_status := l_return_status;

Line 3552: OKC_API.set_message(p_app_name => g_app_name,

3548: EXCEPTION
3549: WHEN G_EXCEPTION_HALT_VALIDATION THEN
3550: NULL;
3551: WHEN OTHERS THEN
3552: OKC_API.set_message(p_app_name => g_app_name,
3553: p_msg_name => g_unexpected_error,
3554: p_token1 => g_sqlcode_token,
3555: p_token1_value => sqlcode,
3556: p_token2 => g_sqlerrm_token,

Line 3558: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

3554: p_token1 => g_sqlcode_token,
3555: p_token1_value => sqlcode,
3556: p_token2 => g_sqlerrm_token,
3557: p_token2_value => sqlerrm);
3558: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
3559: END VALID_IA_STARTEND;
3560:
3561: PROCEDURE CREATE_IA_STARTEND(
3562: p_api_version IN NUMBER,

Line 3573: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

3569: l_api_name CONSTANT VARCHAR2(30) := 'CREATE_IA_STARTEND';
3570: l_return_status VARCHAR2(1);
3571: l_isev_rel_rec isev_rel_rec_type := p_isev_rel_rec;
3572: BEGIN
3573: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
3574: p_init_msg_list,
3575: '_PUB',
3576: x_return_status);
3577: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 3577: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3573: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
3574: p_init_msg_list,
3575: '_PUB',
3576: x_return_status);
3577: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3578: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3579: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3580: raise OKC_API.G_EXCEPTION_ERROR;
3581: END IF;

Line 3578: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3574: p_init_msg_list,
3575: '_PUB',
3576: x_return_status);
3577: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3578: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3579: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3580: raise OKC_API.G_EXCEPTION_ERROR;
3581: END IF;
3582: -- Call user hook for BEFORE

Line 3579: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

3575: '_PUB',
3576: x_return_status);
3577: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3578: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3579: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3580: raise OKC_API.G_EXCEPTION_ERROR;
3581: END IF;
3582: -- Call user hook for BEFORE
3583: g_isev_rel_rec := l_isev_rel_rec;

Line 3580: raise OKC_API.G_EXCEPTION_ERROR;

3576: x_return_status);
3577: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3578: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3579: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3580: raise OKC_API.G_EXCEPTION_ERROR;
3581: END IF;
3582: -- Call user hook for BEFORE
3583: g_isev_rel_rec := l_isev_rel_rec;
3584: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 3585: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3581: END IF;
3582: -- Call user hook for BEFORE
3583: g_isev_rel_rec := l_isev_rel_rec;
3584: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3585: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3586: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3587: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3588: raise OKC_API.G_EXCEPTION_ERROR;
3589: END IF;

Line 3586: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3582: -- Call user hook for BEFORE
3583: g_isev_rel_rec := l_isev_rel_rec;
3584: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3585: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3586: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3587: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3588: raise OKC_API.G_EXCEPTION_ERROR;
3589: END IF;
3590: l_isev_rel_rec := migrate_isev(l_isev_rel_rec, g_isev_rel_rec);

Line 3587: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

3583: g_isev_rel_rec := l_isev_rel_rec;
3584: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3585: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3586: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3587: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3588: raise OKC_API.G_EXCEPTION_ERROR;
3589: END IF;
3590: l_isev_rel_rec := migrate_isev(l_isev_rel_rec, g_isev_rel_rec);
3591: OKC_TIME_PVT.CREATE_IA_STARTEND(

Line 3588: raise OKC_API.G_EXCEPTION_ERROR;

3584: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3585: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3586: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3587: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3588: raise OKC_API.G_EXCEPTION_ERROR;
3589: END IF;
3590: l_isev_rel_rec := migrate_isev(l_isev_rel_rec, g_isev_rel_rec);
3591: OKC_TIME_PVT.CREATE_IA_STARTEND(
3592: p_api_version,

Line 3599: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3595: x_msg_count,
3596: x_msg_data,
3597: p_isev_rel_rec,
3598: x_isev_rel_rec);
3599: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3600: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3601: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3602: raise OKC_API.G_EXCEPTION_ERROR;
3603: END IF;

Line 3600: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3596: x_msg_data,
3597: p_isev_rel_rec,
3598: x_isev_rel_rec);
3599: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3600: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3601: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3602: raise OKC_API.G_EXCEPTION_ERROR;
3603: END IF;
3604:

Line 3601: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

3597: p_isev_rel_rec,
3598: x_isev_rel_rec);
3599: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3600: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3601: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3602: raise OKC_API.G_EXCEPTION_ERROR;
3603: END IF;
3604:
3605: -- Call user hook for AFTER

Line 3602: raise OKC_API.G_EXCEPTION_ERROR;

3598: x_isev_rel_rec);
3599: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3600: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3601: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3602: raise OKC_API.G_EXCEPTION_ERROR;
3603: END IF;
3604:
3605: -- Call user hook for AFTER
3606: g_isev_rel_rec := x_isev_rel_rec;

Line 3608: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3604:
3605: -- Call user hook for AFTER
3606: g_isev_rel_rec := x_isev_rel_rec;
3607: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3608: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3609: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3610: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3611: raise OKC_API.G_EXCEPTION_ERROR;
3612: END IF;

Line 3609: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3605: -- Call user hook for AFTER
3606: g_isev_rel_rec := x_isev_rel_rec;
3607: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3608: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3609: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3610: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3611: raise OKC_API.G_EXCEPTION_ERROR;
3612: END IF;
3613: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 3610: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

3606: g_isev_rel_rec := x_isev_rel_rec;
3607: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3608: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3609: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3610: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3611: raise OKC_API.G_EXCEPTION_ERROR;
3612: END IF;
3613: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3614: EXCEPTION

Line 3611: raise OKC_API.G_EXCEPTION_ERROR;

3607: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3608: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3609: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3610: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3611: raise OKC_API.G_EXCEPTION_ERROR;
3612: END IF;
3613: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3614: EXCEPTION
3615: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 3613: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

3609: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3610: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3611: raise OKC_API.G_EXCEPTION_ERROR;
3612: END IF;
3613: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3614: EXCEPTION
3615: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3616: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3617: (l_api_name,

Line 3615: WHEN OKC_API.G_EXCEPTION_ERROR THEN

3611: raise OKC_API.G_EXCEPTION_ERROR;
3612: END IF;
3613: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3614: EXCEPTION
3615: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3616: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3617: (l_api_name,
3618: G_PKG_NAME,
3619: 'OKC_API.G_RET_STS_ERROR',

Line 3616: x_return_status := OKC_API.HANDLE_EXCEPTIONS

3612: END IF;
3613: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3614: EXCEPTION
3615: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3616: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3617: (l_api_name,
3618: G_PKG_NAME,
3619: 'OKC_API.G_RET_STS_ERROR',
3620: x_msg_count,

Line 3619: 'OKC_API.G_RET_STS_ERROR',

3615: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3616: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3617: (l_api_name,
3618: G_PKG_NAME,
3619: 'OKC_API.G_RET_STS_ERROR',
3620: x_msg_count,
3621: x_msg_data,
3622: '_PUB');
3623: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 3623: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

3619: 'OKC_API.G_RET_STS_ERROR',
3620: x_msg_count,
3621: x_msg_data,
3622: '_PUB');
3623: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
3624: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3625: (l_api_name,
3626: G_PKG_NAME,
3627: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 3624: x_return_status := OKC_API.HANDLE_EXCEPTIONS

3620: x_msg_count,
3621: x_msg_data,
3622: '_PUB');
3623: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
3624: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3625: (l_api_name,
3626: G_PKG_NAME,
3627: 'OKC_API.G_RET_STS_UNEXP_ERROR',
3628: x_msg_count,

Line 3627: 'OKC_API.G_RET_STS_UNEXP_ERROR',

3623: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
3624: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3625: (l_api_name,
3626: G_PKG_NAME,
3627: 'OKC_API.G_RET_STS_UNEXP_ERROR',
3628: x_msg_count,
3629: x_msg_data,
3630: '_PUB');
3631: WHEN OTHERS THEN

Line 3632: x_return_status := OKC_API.HANDLE_EXCEPTIONS

3628: x_msg_count,
3629: x_msg_data,
3630: '_PUB');
3631: WHEN OTHERS THEN
3632: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3633: (l_api_name,
3634: G_PKG_NAME,
3635: 'OTHERS',
3636: x_msg_count,

Line 3650: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

3646: x_msg_data OUT NOCOPY VARCHAR2,
3647: p_isev_rel_tbl IN isev_rel_tbl_type,
3648: x_isev_rel_tbl OUT NOCOPY isev_rel_tbl_type) IS
3649: i NUMBER := 0;
3650: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
3651: BEGIN
3652: x_return_status := OKC_API.G_RET_STS_SUCCESS;
3653: IF p_isev_rel_tbl.COUNT > 0 THEN
3654: i := p_isev_rel_tbl.FIRST;

Line 3652: x_return_status := OKC_API.G_RET_STS_SUCCESS;

3648: x_isev_rel_tbl OUT NOCOPY isev_rel_tbl_type) IS
3649: i NUMBER := 0;
3650: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
3651: BEGIN
3652: x_return_status := OKC_API.G_RET_STS_SUCCESS;
3653: IF p_isev_rel_tbl.COUNT > 0 THEN
3654: i := p_isev_rel_tbl.FIRST;
3655: LOOP
3656: CREATE_IA_STARTEND(

Line 3664: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

3660: x_msg_count,
3661: x_msg_data,
3662: p_isev_rel_tbl(i),
3663: x_isev_rel_tbl(i));
3664: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
3665: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3666: x_return_status := l_return_status;
3667: raise G_EXCEPTION_HALT_VALIDATION;
3668: ELSE

Line 3665: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3661: x_msg_data,
3662: p_isev_rel_tbl(i),
3663: x_isev_rel_tbl(i));
3664: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
3665: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3666: x_return_status := l_return_status;
3667: raise G_EXCEPTION_HALT_VALIDATION;
3668: ELSE
3669: x_return_status := l_return_status;

Line 3680: OKC_API.set_message(p_app_name => g_app_name,

3676: EXCEPTION
3677: WHEN G_EXCEPTION_HALT_VALIDATION THEN
3678: NULL;
3679: WHEN OTHERS THEN
3680: OKC_API.set_message(p_app_name => g_app_name,
3681: p_msg_name => g_unexpected_error,
3682: p_token1 => g_sqlcode_token,
3683: p_token1_value => sqlcode,
3684: p_token2 => g_sqlerrm_token,

Line 3686: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

3682: p_token1 => g_sqlcode_token,
3683: p_token1_value => sqlcode,
3684: p_token2 => g_sqlerrm_token,
3685: p_token2_value => sqlerrm);
3686: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
3687: END CREATE_IA_STARTEND;
3688:
3689: PROCEDURE UPDATE_IA_STARTEND(
3690: p_api_version IN NUMBER,

Line 3701: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

3697: l_api_name CONSTANT VARCHAR2(30) := 'UPDATE_IA_STARTEND';
3698: l_return_status VARCHAR2(1);
3699: l_isev_rel_rec isev_rel_rec_type := p_isev_rel_rec;
3700: BEGIN
3701: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
3702: p_init_msg_list,
3703: '_PUB',
3704: x_return_status);
3705: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 3705: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3701: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
3702: p_init_msg_list,
3703: '_PUB',
3704: x_return_status);
3705: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3706: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3707: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3708: raise OKC_API.G_EXCEPTION_ERROR;
3709: END IF;

Line 3706: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3702: p_init_msg_list,
3703: '_PUB',
3704: x_return_status);
3705: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3706: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3707: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3708: raise OKC_API.G_EXCEPTION_ERROR;
3709: END IF;
3710: -- Call user hook for BEFORE

Line 3707: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

3703: '_PUB',
3704: x_return_status);
3705: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3706: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3707: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3708: raise OKC_API.G_EXCEPTION_ERROR;
3709: END IF;
3710: -- Call user hook for BEFORE
3711: g_isev_rel_rec := l_isev_rel_rec;

Line 3708: raise OKC_API.G_EXCEPTION_ERROR;

3704: x_return_status);
3705: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3706: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3707: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3708: raise OKC_API.G_EXCEPTION_ERROR;
3709: END IF;
3710: -- Call user hook for BEFORE
3711: g_isev_rel_rec := l_isev_rel_rec;
3712: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 3713: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3709: END IF;
3710: -- Call user hook for BEFORE
3711: g_isev_rel_rec := l_isev_rel_rec;
3712: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3713: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3714: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3715: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3716: raise OKC_API.G_EXCEPTION_ERROR;
3717: END IF;

Line 3714: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3710: -- Call user hook for BEFORE
3711: g_isev_rel_rec := l_isev_rel_rec;
3712: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3713: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3714: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3715: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3716: raise OKC_API.G_EXCEPTION_ERROR;
3717: END IF;
3718: l_isev_rel_rec := migrate_isev(l_isev_rel_rec, g_isev_rel_rec);

Line 3715: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

3711: g_isev_rel_rec := l_isev_rel_rec;
3712: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3713: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3714: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3715: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3716: raise OKC_API.G_EXCEPTION_ERROR;
3717: END IF;
3718: l_isev_rel_rec := migrate_isev(l_isev_rel_rec, g_isev_rel_rec);
3719: OKC_TIME_PVT.UPDATE_IA_STARTEND(

Line 3716: raise OKC_API.G_EXCEPTION_ERROR;

3712: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3713: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3714: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3715: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3716: raise OKC_API.G_EXCEPTION_ERROR;
3717: END IF;
3718: l_isev_rel_rec := migrate_isev(l_isev_rel_rec, g_isev_rel_rec);
3719: OKC_TIME_PVT.UPDATE_IA_STARTEND(
3720: p_api_version,

Line 3727: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3723: x_msg_count,
3724: x_msg_data,
3725: p_isev_rel_rec,
3726: x_isev_rel_rec);
3727: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3728: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3729: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3730: raise OKC_API.G_EXCEPTION_ERROR;
3731: END IF;

Line 3728: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3724: x_msg_data,
3725: p_isev_rel_rec,
3726: x_isev_rel_rec);
3727: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3728: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3729: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3730: raise OKC_API.G_EXCEPTION_ERROR;
3731: END IF;
3732:

Line 3729: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

3725: p_isev_rel_rec,
3726: x_isev_rel_rec);
3727: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3728: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3729: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3730: raise OKC_API.G_EXCEPTION_ERROR;
3731: END IF;
3732:
3733: -- Call user hook for AFTER

Line 3730: raise OKC_API.G_EXCEPTION_ERROR;

3726: x_isev_rel_rec);
3727: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3728: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3729: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3730: raise OKC_API.G_EXCEPTION_ERROR;
3731: END IF;
3732:
3733: -- Call user hook for AFTER
3734: g_isev_rel_rec := x_isev_rel_rec;

Line 3736: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3732:
3733: -- Call user hook for AFTER
3734: g_isev_rel_rec := x_isev_rel_rec;
3735: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3736: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3737: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3738: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3739: raise OKC_API.G_EXCEPTION_ERROR;
3740: END IF;

Line 3737: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3733: -- Call user hook for AFTER
3734: g_isev_rel_rec := x_isev_rel_rec;
3735: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3736: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3737: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3738: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3739: raise OKC_API.G_EXCEPTION_ERROR;
3740: END IF;
3741: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 3738: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

3734: g_isev_rel_rec := x_isev_rel_rec;
3735: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3736: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3737: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3738: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3739: raise OKC_API.G_EXCEPTION_ERROR;
3740: END IF;
3741: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3742: EXCEPTION

Line 3739: raise OKC_API.G_EXCEPTION_ERROR;

3735: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3736: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3737: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3738: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3739: raise OKC_API.G_EXCEPTION_ERROR;
3740: END IF;
3741: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3742: EXCEPTION
3743: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 3741: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

3737: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3738: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3739: raise OKC_API.G_EXCEPTION_ERROR;
3740: END IF;
3741: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3742: EXCEPTION
3743: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3744: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3745: (l_api_name,

Line 3743: WHEN OKC_API.G_EXCEPTION_ERROR THEN

3739: raise OKC_API.G_EXCEPTION_ERROR;
3740: END IF;
3741: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3742: EXCEPTION
3743: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3744: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3745: (l_api_name,
3746: G_PKG_NAME,
3747: 'OKC_API.G_RET_STS_ERROR',

Line 3744: x_return_status := OKC_API.HANDLE_EXCEPTIONS

3740: END IF;
3741: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3742: EXCEPTION
3743: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3744: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3745: (l_api_name,
3746: G_PKG_NAME,
3747: 'OKC_API.G_RET_STS_ERROR',
3748: x_msg_count,

Line 3747: 'OKC_API.G_RET_STS_ERROR',

3743: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3744: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3745: (l_api_name,
3746: G_PKG_NAME,
3747: 'OKC_API.G_RET_STS_ERROR',
3748: x_msg_count,
3749: x_msg_data,
3750: '_PUB');
3751: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 3751: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

3747: 'OKC_API.G_RET_STS_ERROR',
3748: x_msg_count,
3749: x_msg_data,
3750: '_PUB');
3751: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
3752: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3753: (l_api_name,
3754: G_PKG_NAME,
3755: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 3752: x_return_status := OKC_API.HANDLE_EXCEPTIONS

3748: x_msg_count,
3749: x_msg_data,
3750: '_PUB');
3751: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
3752: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3753: (l_api_name,
3754: G_PKG_NAME,
3755: 'OKC_API.G_RET_STS_UNEXP_ERROR',
3756: x_msg_count,

Line 3755: 'OKC_API.G_RET_STS_UNEXP_ERROR',

3751: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
3752: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3753: (l_api_name,
3754: G_PKG_NAME,
3755: 'OKC_API.G_RET_STS_UNEXP_ERROR',
3756: x_msg_count,
3757: x_msg_data,
3758: '_PUB');
3759: WHEN OTHERS THEN

Line 3760: x_return_status := OKC_API.HANDLE_EXCEPTIONS

3756: x_msg_count,
3757: x_msg_data,
3758: '_PUB');
3759: WHEN OTHERS THEN
3760: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3761: (l_api_name,
3762: G_PKG_NAME,
3763: 'OTHERS',
3764: x_msg_count,

Line 3778: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

3774: x_msg_data OUT NOCOPY VARCHAR2,
3775: p_isev_rel_tbl IN isev_rel_tbl_type,
3776: x_isev_rel_tbl OUT NOCOPY isev_rel_tbl_type) IS
3777: i NUMBER := 0;
3778: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
3779: BEGIN
3780: x_return_status := OKC_API.G_RET_STS_SUCCESS;
3781: IF p_isev_rel_tbl.COUNT > 0 THEN
3782: i := p_isev_rel_tbl.FIRST;

Line 3780: x_return_status := OKC_API.G_RET_STS_SUCCESS;

3776: x_isev_rel_tbl OUT NOCOPY isev_rel_tbl_type) IS
3777: i NUMBER := 0;
3778: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
3779: BEGIN
3780: x_return_status := OKC_API.G_RET_STS_SUCCESS;
3781: IF p_isev_rel_tbl.COUNT > 0 THEN
3782: i := p_isev_rel_tbl.FIRST;
3783: LOOP
3784: UPDATE_IA_STARTEND(

Line 3792: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

3788: x_msg_count,
3789: x_msg_data,
3790: p_isev_rel_tbl(i),
3791: x_isev_rel_tbl(i));
3792: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
3793: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3794: x_return_status := l_return_status;
3795: raise G_EXCEPTION_HALT_VALIDATION;
3796: ELSE

Line 3793: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3789: x_msg_data,
3790: p_isev_rel_tbl(i),
3791: x_isev_rel_tbl(i));
3792: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
3793: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3794: x_return_status := l_return_status;
3795: raise G_EXCEPTION_HALT_VALIDATION;
3796: ELSE
3797: x_return_status := l_return_status;

Line 3808: OKC_API.set_message(p_app_name => g_app_name,

3804: EXCEPTION
3805: WHEN G_EXCEPTION_HALT_VALIDATION THEN
3806: NULL;
3807: WHEN OTHERS THEN
3808: OKC_API.set_message(p_app_name => g_app_name,
3809: p_msg_name => g_unexpected_error,
3810: p_token1 => g_sqlcode_token,
3811: p_token1_value => sqlcode,
3812: p_token2 => g_sqlerrm_token,

Line 3814: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

3810: p_token1 => g_sqlcode_token,
3811: p_token1_value => sqlcode,
3812: p_token2 => g_sqlerrm_token,
3813: p_token2_value => sqlerrm);
3814: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
3815: END UPDATE_IA_STARTEND;
3816:
3817: PROCEDURE DELETE_IA_STARTEND(
3818: p_api_version IN NUMBER,

Line 3828: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

3824: l_api_name CONSTANT VARCHAR2(30) := 'DELETE_IA_STARTEND';
3825: l_return_status VARCHAR2(1);
3826: l_isev_rel_rec isev_rel_rec_type := p_isev_rel_rec;
3827: BEGIN
3828: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
3829: p_init_msg_list,
3830: '_PUB',
3831: x_return_status);
3832: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 3832: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3828: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
3829: p_init_msg_list,
3830: '_PUB',
3831: x_return_status);
3832: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3833: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3834: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3835: raise OKC_API.G_EXCEPTION_ERROR;
3836: END IF;

Line 3833: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3829: p_init_msg_list,
3830: '_PUB',
3831: x_return_status);
3832: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3833: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3834: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3835: raise OKC_API.G_EXCEPTION_ERROR;
3836: END IF;
3837: -- Call user hook for BEFORE

Line 3834: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

3830: '_PUB',
3831: x_return_status);
3832: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3833: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3834: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3835: raise OKC_API.G_EXCEPTION_ERROR;
3836: END IF;
3837: -- Call user hook for BEFORE
3838: g_isev_rel_rec := l_isev_rel_rec;

Line 3835: raise OKC_API.G_EXCEPTION_ERROR;

3831: x_return_status);
3832: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3833: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3834: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
3835: raise OKC_API.G_EXCEPTION_ERROR;
3836: END IF;
3837: -- Call user hook for BEFORE
3838: g_isev_rel_rec := l_isev_rel_rec;
3839: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 3840: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3836: END IF;
3837: -- Call user hook for BEFORE
3838: g_isev_rel_rec := l_isev_rel_rec;
3839: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3840: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3841: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3842: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3843: raise OKC_API.G_EXCEPTION_ERROR;
3844: END IF;

Line 3841: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3837: -- Call user hook for BEFORE
3838: g_isev_rel_rec := l_isev_rel_rec;
3839: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3840: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3841: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3842: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3843: raise OKC_API.G_EXCEPTION_ERROR;
3844: END IF;
3845: OKC_TIME_PVT.DELETE_IA_STARTEND(

Line 3842: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

3838: g_isev_rel_rec := l_isev_rel_rec;
3839: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3840: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3841: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3842: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3843: raise OKC_API.G_EXCEPTION_ERROR;
3844: END IF;
3845: OKC_TIME_PVT.DELETE_IA_STARTEND(
3846: p_api_version,

Line 3843: raise OKC_API.G_EXCEPTION_ERROR;

3839: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
3840: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3841: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3842: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3843: raise OKC_API.G_EXCEPTION_ERROR;
3844: END IF;
3845: OKC_TIME_PVT.DELETE_IA_STARTEND(
3846: p_api_version,
3847: p_init_msg_list,

Line 3852: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3848: x_return_status,
3849: x_msg_count,
3850: x_msg_data,
3851: p_isev_rel_rec);
3852: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3853: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3854: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3855: raise OKC_API.G_EXCEPTION_ERROR;
3856: END IF;

Line 3853: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3849: x_msg_count,
3850: x_msg_data,
3851: p_isev_rel_rec);
3852: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3853: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3854: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3855: raise OKC_API.G_EXCEPTION_ERROR;
3856: END IF;
3857:

Line 3854: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

3850: x_msg_data,
3851: p_isev_rel_rec);
3852: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3853: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3854: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3855: raise OKC_API.G_EXCEPTION_ERROR;
3856: END IF;
3857:
3858: -- Call user hook for AFTER

Line 3855: raise OKC_API.G_EXCEPTION_ERROR;

3851: p_isev_rel_rec);
3852: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3853: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3854: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3855: raise OKC_API.G_EXCEPTION_ERROR;
3856: END IF;
3857:
3858: -- Call user hook for AFTER
3859: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');

Line 3860: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3856: END IF;
3857:
3858: -- Call user hook for AFTER
3859: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3860: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3861: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3862: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3863: raise OKC_API.G_EXCEPTION_ERROR;
3864: END IF;

Line 3861: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

3857:
3858: -- Call user hook for AFTER
3859: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3860: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3861: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3862: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3863: raise OKC_API.G_EXCEPTION_ERROR;
3864: END IF;
3865: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 3862: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

3858: -- Call user hook for AFTER
3859: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3860: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3861: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3862: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3863: raise OKC_API.G_EXCEPTION_ERROR;
3864: END IF;
3865: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3866: EXCEPTION

Line 3863: raise OKC_API.G_EXCEPTION_ERROR;

3859: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
3860: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3861: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3862: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3863: raise OKC_API.G_EXCEPTION_ERROR;
3864: END IF;
3865: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3866: EXCEPTION
3867: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 3865: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

3861: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
3862: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
3863: raise OKC_API.G_EXCEPTION_ERROR;
3864: END IF;
3865: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3866: EXCEPTION
3867: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3868: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3869: (l_api_name,

Line 3867: WHEN OKC_API.G_EXCEPTION_ERROR THEN

3863: raise OKC_API.G_EXCEPTION_ERROR;
3864: END IF;
3865: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3866: EXCEPTION
3867: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3868: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3869: (l_api_name,
3870: G_PKG_NAME,
3871: 'OKC_API.G_RET_STS_ERROR',

Line 3868: x_return_status := OKC_API.HANDLE_EXCEPTIONS

3864: END IF;
3865: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
3866: EXCEPTION
3867: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3868: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3869: (l_api_name,
3870: G_PKG_NAME,
3871: 'OKC_API.G_RET_STS_ERROR',
3872: x_msg_count,

Line 3871: 'OKC_API.G_RET_STS_ERROR',

3867: WHEN OKC_API.G_EXCEPTION_ERROR THEN
3868: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3869: (l_api_name,
3870: G_PKG_NAME,
3871: 'OKC_API.G_RET_STS_ERROR',
3872: x_msg_count,
3873: x_msg_data,
3874: '_PUB');
3875: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 3875: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

3871: 'OKC_API.G_RET_STS_ERROR',
3872: x_msg_count,
3873: x_msg_data,
3874: '_PUB');
3875: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
3876: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3877: (l_api_name,
3878: G_PKG_NAME,
3879: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 3876: x_return_status := OKC_API.HANDLE_EXCEPTIONS

3872: x_msg_count,
3873: x_msg_data,
3874: '_PUB');
3875: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
3876: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3877: (l_api_name,
3878: G_PKG_NAME,
3879: 'OKC_API.G_RET_STS_UNEXP_ERROR',
3880: x_msg_count,

Line 3879: 'OKC_API.G_RET_STS_UNEXP_ERROR',

3875: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
3876: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3877: (l_api_name,
3878: G_PKG_NAME,
3879: 'OKC_API.G_RET_STS_UNEXP_ERROR',
3880: x_msg_count,
3881: x_msg_data,
3882: '_PUB');
3883: WHEN OTHERS THEN

Line 3884: x_return_status := OKC_API.HANDLE_EXCEPTIONS

3880: x_msg_count,
3881: x_msg_data,
3882: '_PUB');
3883: WHEN OTHERS THEN
3884: x_return_status := OKC_API.HANDLE_EXCEPTIONS
3885: (l_api_name,
3886: G_PKG_NAME,
3887: 'OTHERS',
3888: x_msg_count,

Line 3901: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

3897: x_msg_count OUT NOCOPY NUMBER,
3898: x_msg_data OUT NOCOPY VARCHAR2,
3899: p_isev_rel_tbl IN isev_rel_tbl_type) IS
3900: i NUMBER := 0;
3901: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
3902: BEGIN
3903: x_return_status := OKC_API.G_RET_STS_SUCCESS;
3904: IF p_isev_rel_tbl.COUNT > 0 THEN
3905: i := p_isev_rel_tbl.FIRST;

Line 3903: x_return_status := OKC_API.G_RET_STS_SUCCESS;

3899: p_isev_rel_tbl IN isev_rel_tbl_type) IS
3900: i NUMBER := 0;
3901: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
3902: BEGIN
3903: x_return_status := OKC_API.G_RET_STS_SUCCESS;
3904: IF p_isev_rel_tbl.COUNT > 0 THEN
3905: i := p_isev_rel_tbl.FIRST;
3906: LOOP
3907: DELETE_IA_STARTEND(

Line 3914: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

3910: l_return_status,
3911: x_msg_count,
3912: x_msg_data,
3913: p_isev_rel_tbl(i));
3914: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
3915: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3916: x_return_status := l_return_status;
3917: raise G_EXCEPTION_HALT_VALIDATION;
3918: ELSE

Line 3915: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3911: x_msg_count,
3912: x_msg_data,
3913: p_isev_rel_tbl(i));
3914: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
3915: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3916: x_return_status := l_return_status;
3917: raise G_EXCEPTION_HALT_VALIDATION;
3918: ELSE
3919: x_return_status := l_return_status;

Line 3930: OKC_API.set_message(p_app_name => g_app_name,

3926: EXCEPTION
3927: WHEN G_EXCEPTION_HALT_VALIDATION THEN
3928: NULL;
3929: WHEN OTHERS THEN
3930: OKC_API.set_message(p_app_name => g_app_name,
3931: p_msg_name => g_unexpected_error,
3932: p_token1 => g_sqlcode_token,
3933: p_token1_value => sqlcode,
3934: p_token2 => g_sqlerrm_token,

Line 3936: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

3932: p_token1 => g_sqlcode_token,
3933: p_token1_value => sqlcode,
3934: p_token2 => g_sqlerrm_token,
3935: p_token2_value => sqlerrm);
3936: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
3937: END DELETE_IA_STARTEND;
3938:
3939: PROCEDURE LOCK_IA_STARTEND(
3940: p_api_version IN NUMBER,

Line 3964: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

3960: x_msg_count OUT NOCOPY NUMBER,
3961: x_msg_data OUT NOCOPY VARCHAR2,
3962: p_isev_rel_tbl IN isev_rel_tbl_type) IS
3963: i NUMBER := 0;
3964: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
3965: BEGIN
3966: x_return_status := OKC_API.G_RET_STS_SUCCESS;
3967: IF p_isev_rel_tbl.COUNT > 0 THEN
3968: i := p_isev_rel_tbl.FIRST;

Line 3966: x_return_status := OKC_API.G_RET_STS_SUCCESS;

3962: p_isev_rel_tbl IN isev_rel_tbl_type) IS
3963: i NUMBER := 0;
3964: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
3965: BEGIN
3966: x_return_status := OKC_API.G_RET_STS_SUCCESS;
3967: IF p_isev_rel_tbl.COUNT > 0 THEN
3968: i := p_isev_rel_tbl.FIRST;
3969: LOOP
3970: LOCK_IA_STARTEND(

Line 3977: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

3973: l_return_status,
3974: x_msg_count,
3975: x_msg_data,
3976: p_isev_rel_tbl(i));
3977: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
3978: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3979: x_return_status := l_return_status;
3980: raise G_EXCEPTION_HALT_VALIDATION;
3981: ELSE

Line 3978: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

3974: x_msg_count,
3975: x_msg_data,
3976: p_isev_rel_tbl(i));
3977: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
3978: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
3979: x_return_status := l_return_status;
3980: raise G_EXCEPTION_HALT_VALIDATION;
3981: ELSE
3982: x_return_status := l_return_status;

Line 3993: OKC_API.set_message(p_app_name => g_app_name,

3989: EXCEPTION
3990: WHEN G_EXCEPTION_HALT_VALIDATION THEN
3991: NULL;
3992: WHEN OTHERS THEN
3993: OKC_API.set_message(p_app_name => g_app_name,
3994: p_msg_name => g_unexpected_error,
3995: p_token1 => g_sqlcode_token,
3996: p_token1_value => sqlcode,
3997: p_token2 => g_sqlerrm_token,

Line 3999: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

3995: p_token1 => g_sqlcode_token,
3996: p_token1_value => sqlcode,
3997: p_token2 => g_sqlerrm_token,
3998: p_token2_value => sqlerrm);
3999: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
4000: END LOCK_IA_STARTEND;
4001:
4002: PROCEDURE VALID_IA_STARTEND(
4003: p_api_version IN NUMBER,

Line 4027: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

4023: x_msg_count OUT NOCOPY NUMBER,
4024: x_msg_data OUT NOCOPY VARCHAR2,
4025: p_isev_rel_tbl IN isev_rel_tbl_type) IS
4026: i NUMBER := 0;
4027: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
4028: BEGIN
4029: x_return_status := OKC_API.G_RET_STS_SUCCESS;
4030: IF p_isev_rel_tbl.COUNT > 0 THEN
4031: i := p_isev_rel_tbl.FIRST;

Line 4029: x_return_status := OKC_API.G_RET_STS_SUCCESS;

4025: p_isev_rel_tbl IN isev_rel_tbl_type) IS
4026: i NUMBER := 0;
4027: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
4028: BEGIN
4029: x_return_status := OKC_API.G_RET_STS_SUCCESS;
4030: IF p_isev_rel_tbl.COUNT > 0 THEN
4031: i := p_isev_rel_tbl.FIRST;
4032: LOOP
4033: VALID_IA_STARTEND(

Line 4040: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

4036: l_return_status,
4037: x_msg_count,
4038: x_msg_data,
4039: p_isev_rel_tbl(i));
4040: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
4041: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4042: x_return_status := l_return_status;
4043: raise G_EXCEPTION_HALT_VALIDATION;
4044: ELSE

Line 4041: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4037: x_msg_count,
4038: x_msg_data,
4039: p_isev_rel_tbl(i));
4040: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
4041: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4042: x_return_status := l_return_status;
4043: raise G_EXCEPTION_HALT_VALIDATION;
4044: ELSE
4045: x_return_status := l_return_status;

Line 4056: OKC_API.set_message(p_app_name => g_app_name,

4052: EXCEPTION
4053: WHEN G_EXCEPTION_HALT_VALIDATION THEN
4054: NULL;
4055: WHEN OTHERS THEN
4056: OKC_API.set_message(p_app_name => g_app_name,
4057: p_msg_name => g_unexpected_error,
4058: p_token1 => g_sqlcode_token,
4059: p_token1_value => sqlcode,
4060: p_token2 => g_sqlerrm_token,

Line 4062: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

4058: p_token1 => g_sqlcode_token,
4059: p_token1_value => sqlcode,
4060: p_token2 => g_sqlerrm_token,
4061: p_token2_value => sqlerrm);
4062: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
4063: END VALID_IA_STARTEND;
4064:
4065: --------------------------------------------------------------------------
4066: ---The following procedures cater to handling of OKC_TIME_IG_STARTEND

Line 4147: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

4143: l_api_name CONSTANT VARCHAR2(30) := 'CREATE_IG_STARTEND';
4144: l_return_status VARCHAR2(1);
4145: l_igsv_ext_rec igsv_ext_rec_type := p_igsv_ext_rec;
4146: BEGIN
4147: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
4148: p_init_msg_list,
4149: '_PUB',
4150: x_return_status);
4151: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 4151: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4147: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
4148: p_init_msg_list,
4149: '_PUB',
4150: x_return_status);
4151: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4152: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4153: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4154: raise OKC_API.G_EXCEPTION_ERROR;
4155: END IF;

Line 4152: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

4148: p_init_msg_list,
4149: '_PUB',
4150: x_return_status);
4151: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4152: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4153: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4154: raise OKC_API.G_EXCEPTION_ERROR;
4155: END IF;
4156: -- Call user hook for BEFORE

Line 4153: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

4149: '_PUB',
4150: x_return_status);
4151: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4152: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4153: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4154: raise OKC_API.G_EXCEPTION_ERROR;
4155: END IF;
4156: -- Call user hook for BEFORE
4157: g_igsv_ext_rec := l_igsv_ext_rec;

Line 4154: raise OKC_API.G_EXCEPTION_ERROR;

4150: x_return_status);
4151: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4152: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4153: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4154: raise OKC_API.G_EXCEPTION_ERROR;
4155: END IF;
4156: -- Call user hook for BEFORE
4157: g_igsv_ext_rec := l_igsv_ext_rec;
4158: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 4159: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4155: END IF;
4156: -- Call user hook for BEFORE
4157: g_igsv_ext_rec := l_igsv_ext_rec;
4158: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4159: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4160: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4161: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4162: raise OKC_API.G_EXCEPTION_ERROR;
4163: END IF;

Line 4160: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

4156: -- Call user hook for BEFORE
4157: g_igsv_ext_rec := l_igsv_ext_rec;
4158: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4159: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4160: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4161: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4162: raise OKC_API.G_EXCEPTION_ERROR;
4163: END IF;
4164: l_igsv_ext_rec := migrate_igsv(l_igsv_ext_rec, g_igsv_ext_rec);

Line 4161: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

4157: g_igsv_ext_rec := l_igsv_ext_rec;
4158: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4159: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4160: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4161: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4162: raise OKC_API.G_EXCEPTION_ERROR;
4163: END IF;
4164: l_igsv_ext_rec := migrate_igsv(l_igsv_ext_rec, g_igsv_ext_rec);
4165: OKC_TIME_PVT.CREATE_IG_STARTEND(

Line 4162: raise OKC_API.G_EXCEPTION_ERROR;

4158: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4159: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4160: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4161: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4162: raise OKC_API.G_EXCEPTION_ERROR;
4163: END IF;
4164: l_igsv_ext_rec := migrate_igsv(l_igsv_ext_rec, g_igsv_ext_rec);
4165: OKC_TIME_PVT.CREATE_IG_STARTEND(
4166: p_api_version,

Line 4173: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4169: x_msg_count,
4170: x_msg_data,
4171: p_igsv_ext_rec,
4172: x_igsv_ext_rec);
4173: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4174: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4175: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4176: raise OKC_API.G_EXCEPTION_ERROR;
4177: END IF;

Line 4174: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

4170: x_msg_data,
4171: p_igsv_ext_rec,
4172: x_igsv_ext_rec);
4173: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4174: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4175: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4176: raise OKC_API.G_EXCEPTION_ERROR;
4177: END IF;
4178:

Line 4175: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

4171: p_igsv_ext_rec,
4172: x_igsv_ext_rec);
4173: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4174: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4175: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4176: raise OKC_API.G_EXCEPTION_ERROR;
4177: END IF;
4178:
4179: -- Call user hook for AFTER

Line 4176: raise OKC_API.G_EXCEPTION_ERROR;

4172: x_igsv_ext_rec);
4173: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4174: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4175: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4176: raise OKC_API.G_EXCEPTION_ERROR;
4177: END IF;
4178:
4179: -- Call user hook for AFTER
4180: g_igsv_ext_rec := x_igsv_ext_rec;

Line 4182: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4178:
4179: -- Call user hook for AFTER
4180: g_igsv_ext_rec := x_igsv_ext_rec;
4181: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
4182: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4183: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4184: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4185: raise OKC_API.G_EXCEPTION_ERROR;
4186: END IF;

Line 4183: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

4179: -- Call user hook for AFTER
4180: g_igsv_ext_rec := x_igsv_ext_rec;
4181: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
4182: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4183: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4184: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4185: raise OKC_API.G_EXCEPTION_ERROR;
4186: END IF;
4187: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 4184: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

4180: g_igsv_ext_rec := x_igsv_ext_rec;
4181: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
4182: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4183: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4184: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4185: raise OKC_API.G_EXCEPTION_ERROR;
4186: END IF;
4187: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4188: EXCEPTION

Line 4185: raise OKC_API.G_EXCEPTION_ERROR;

4181: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
4182: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4183: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4184: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4185: raise OKC_API.G_EXCEPTION_ERROR;
4186: END IF;
4187: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4188: EXCEPTION
4189: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 4187: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

4183: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4184: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4185: raise OKC_API.G_EXCEPTION_ERROR;
4186: END IF;
4187: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4188: EXCEPTION
4189: WHEN OKC_API.G_EXCEPTION_ERROR THEN
4190: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4191: (l_api_name,

Line 4189: WHEN OKC_API.G_EXCEPTION_ERROR THEN

4185: raise OKC_API.G_EXCEPTION_ERROR;
4186: END IF;
4187: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4188: EXCEPTION
4189: WHEN OKC_API.G_EXCEPTION_ERROR THEN
4190: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4191: (l_api_name,
4192: G_PKG_NAME,
4193: 'OKC_API.G_RET_STS_ERROR',

Line 4190: x_return_status := OKC_API.HANDLE_EXCEPTIONS

4186: END IF;
4187: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4188: EXCEPTION
4189: WHEN OKC_API.G_EXCEPTION_ERROR THEN
4190: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4191: (l_api_name,
4192: G_PKG_NAME,
4193: 'OKC_API.G_RET_STS_ERROR',
4194: x_msg_count,

Line 4193: 'OKC_API.G_RET_STS_ERROR',

4189: WHEN OKC_API.G_EXCEPTION_ERROR THEN
4190: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4191: (l_api_name,
4192: G_PKG_NAME,
4193: 'OKC_API.G_RET_STS_ERROR',
4194: x_msg_count,
4195: x_msg_data,
4196: '_PUB');
4197: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 4197: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

4193: 'OKC_API.G_RET_STS_ERROR',
4194: x_msg_count,
4195: x_msg_data,
4196: '_PUB');
4197: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
4198: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4199: (l_api_name,
4200: G_PKG_NAME,
4201: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 4198: x_return_status := OKC_API.HANDLE_EXCEPTIONS

4194: x_msg_count,
4195: x_msg_data,
4196: '_PUB');
4197: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
4198: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4199: (l_api_name,
4200: G_PKG_NAME,
4201: 'OKC_API.G_RET_STS_UNEXP_ERROR',
4202: x_msg_count,

Line 4201: 'OKC_API.G_RET_STS_UNEXP_ERROR',

4197: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
4198: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4199: (l_api_name,
4200: G_PKG_NAME,
4201: 'OKC_API.G_RET_STS_UNEXP_ERROR',
4202: x_msg_count,
4203: x_msg_data,
4204: '_PUB');
4205: WHEN OTHERS THEN

Line 4206: x_return_status := OKC_API.HANDLE_EXCEPTIONS

4202: x_msg_count,
4203: x_msg_data,
4204: '_PUB');
4205: WHEN OTHERS THEN
4206: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4207: (l_api_name,
4208: G_PKG_NAME,
4209: 'OTHERS',
4210: x_msg_count,

Line 4224: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

4220: x_msg_data OUT NOCOPY VARCHAR2,
4221: p_igsv_ext_tbl IN igsv_ext_tbl_type,
4222: x_igsv_ext_tbl OUT NOCOPY igsv_ext_tbl_type) IS
4223: i NUMBER := 0;
4224: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
4225: BEGIN
4226: x_return_status := OKC_API.G_RET_STS_SUCCESS;
4227: IF p_igsv_ext_tbl.COUNT > 0 THEN
4228: i := p_igsv_ext_tbl.FIRST;

Line 4226: x_return_status := OKC_API.G_RET_STS_SUCCESS;

4222: x_igsv_ext_tbl OUT NOCOPY igsv_ext_tbl_type) IS
4223: i NUMBER := 0;
4224: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
4225: BEGIN
4226: x_return_status := OKC_API.G_RET_STS_SUCCESS;
4227: IF p_igsv_ext_tbl.COUNT > 0 THEN
4228: i := p_igsv_ext_tbl.FIRST;
4229: LOOP
4230: CREATE_IG_STARTEND(

Line 4238: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

4234: x_msg_count,
4235: x_msg_data,
4236: p_igsv_ext_tbl(i),
4237: x_igsv_ext_tbl(i));
4238: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
4239: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4240: x_return_status := l_return_status;
4241: raise G_EXCEPTION_HALT_VALIDATION;
4242: ELSE

Line 4239: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4235: x_msg_data,
4236: p_igsv_ext_tbl(i),
4237: x_igsv_ext_tbl(i));
4238: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
4239: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4240: x_return_status := l_return_status;
4241: raise G_EXCEPTION_HALT_VALIDATION;
4242: ELSE
4243: x_return_status := l_return_status;

Line 4254: OKC_API.set_message(p_app_name => g_app_name,

4250: EXCEPTION
4251: WHEN G_EXCEPTION_HALT_VALIDATION THEN
4252: NULL;
4253: WHEN OTHERS THEN
4254: OKC_API.set_message(p_app_name => g_app_name,
4255: p_msg_name => g_unexpected_error,
4256: p_token1 => g_sqlcode_token,
4257: p_token1_value => sqlcode,
4258: p_token2 => g_sqlerrm_token,

Line 4260: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

4256: p_token1 => g_sqlcode_token,
4257: p_token1_value => sqlcode,
4258: p_token2 => g_sqlerrm_token,
4259: p_token2_value => sqlerrm);
4260: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
4261: END CREATE_IG_STARTEND;
4262:
4263: PROCEDURE UPDATE_IG_STARTEND(
4264: p_api_version IN NUMBER,

Line 4275: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

4271: l_api_name CONSTANT VARCHAR2(30) := 'UPDATE_IG_STARTEND';
4272: l_return_status VARCHAR2(1);
4273: l_igsv_ext_rec igsv_ext_rec_type := p_igsv_ext_rec;
4274: BEGIN
4275: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
4276: p_init_msg_list,
4277: '_PUB',
4278: x_return_status);
4279: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 4279: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4275: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
4276: p_init_msg_list,
4277: '_PUB',
4278: x_return_status);
4279: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4280: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4281: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4282: raise OKC_API.G_EXCEPTION_ERROR;
4283: END IF;

Line 4280: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

4276: p_init_msg_list,
4277: '_PUB',
4278: x_return_status);
4279: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4280: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4281: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4282: raise OKC_API.G_EXCEPTION_ERROR;
4283: END IF;
4284: -- Call user hook for BEFORE

Line 4281: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

4277: '_PUB',
4278: x_return_status);
4279: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4280: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4281: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4282: raise OKC_API.G_EXCEPTION_ERROR;
4283: END IF;
4284: -- Call user hook for BEFORE
4285: g_igsv_ext_rec := l_igsv_ext_rec;

Line 4282: raise OKC_API.G_EXCEPTION_ERROR;

4278: x_return_status);
4279: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4280: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4281: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4282: raise OKC_API.G_EXCEPTION_ERROR;
4283: END IF;
4284: -- Call user hook for BEFORE
4285: g_igsv_ext_rec := l_igsv_ext_rec;
4286: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 4287: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4283: END IF;
4284: -- Call user hook for BEFORE
4285: g_igsv_ext_rec := l_igsv_ext_rec;
4286: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4287: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4288: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4289: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4290: raise OKC_API.G_EXCEPTION_ERROR;
4291: END IF;

Line 4288: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

4284: -- Call user hook for BEFORE
4285: g_igsv_ext_rec := l_igsv_ext_rec;
4286: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4287: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4288: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4289: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4290: raise OKC_API.G_EXCEPTION_ERROR;
4291: END IF;
4292: l_igsv_ext_rec := migrate_igsv(l_igsv_ext_rec, g_igsv_ext_rec);

Line 4289: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

4285: g_igsv_ext_rec := l_igsv_ext_rec;
4286: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4287: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4288: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4289: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4290: raise OKC_API.G_EXCEPTION_ERROR;
4291: END IF;
4292: l_igsv_ext_rec := migrate_igsv(l_igsv_ext_rec, g_igsv_ext_rec);
4293: OKC_TIME_PVT.UPDATE_IG_STARTEND(

Line 4290: raise OKC_API.G_EXCEPTION_ERROR;

4286: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4287: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4288: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4289: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4290: raise OKC_API.G_EXCEPTION_ERROR;
4291: END IF;
4292: l_igsv_ext_rec := migrate_igsv(l_igsv_ext_rec, g_igsv_ext_rec);
4293: OKC_TIME_PVT.UPDATE_IG_STARTEND(
4294: p_api_version,

Line 4301: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4297: x_msg_count,
4298: x_msg_data,
4299: p_igsv_ext_rec,
4300: x_igsv_ext_rec);
4301: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4302: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4303: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4304: raise OKC_API.G_EXCEPTION_ERROR;
4305: END IF;

Line 4302: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

4298: x_msg_data,
4299: p_igsv_ext_rec,
4300: x_igsv_ext_rec);
4301: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4302: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4303: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4304: raise OKC_API.G_EXCEPTION_ERROR;
4305: END IF;
4306:

Line 4303: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

4299: p_igsv_ext_rec,
4300: x_igsv_ext_rec);
4301: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4302: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4303: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4304: raise OKC_API.G_EXCEPTION_ERROR;
4305: END IF;
4306:
4307: -- Call user hook for AFTER

Line 4304: raise OKC_API.G_EXCEPTION_ERROR;

4300: x_igsv_ext_rec);
4301: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4302: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4303: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4304: raise OKC_API.G_EXCEPTION_ERROR;
4305: END IF;
4306:
4307: -- Call user hook for AFTER
4308: g_igsv_ext_rec := x_igsv_ext_rec;

Line 4310: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4306:
4307: -- Call user hook for AFTER
4308: g_igsv_ext_rec := x_igsv_ext_rec;
4309: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
4310: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4311: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4312: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4313: raise OKC_API.G_EXCEPTION_ERROR;
4314: END IF;

Line 4311: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

4307: -- Call user hook for AFTER
4308: g_igsv_ext_rec := x_igsv_ext_rec;
4309: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
4310: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4311: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4312: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4313: raise OKC_API.G_EXCEPTION_ERROR;
4314: END IF;
4315: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 4312: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

4308: g_igsv_ext_rec := x_igsv_ext_rec;
4309: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
4310: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4311: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4312: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4313: raise OKC_API.G_EXCEPTION_ERROR;
4314: END IF;
4315: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4316: EXCEPTION

Line 4313: raise OKC_API.G_EXCEPTION_ERROR;

4309: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
4310: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4311: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4312: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4313: raise OKC_API.G_EXCEPTION_ERROR;
4314: END IF;
4315: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4316: EXCEPTION
4317: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 4315: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

4311: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4312: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4313: raise OKC_API.G_EXCEPTION_ERROR;
4314: END IF;
4315: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4316: EXCEPTION
4317: WHEN OKC_API.G_EXCEPTION_ERROR THEN
4318: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4319: (l_api_name,

Line 4317: WHEN OKC_API.G_EXCEPTION_ERROR THEN

4313: raise OKC_API.G_EXCEPTION_ERROR;
4314: END IF;
4315: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4316: EXCEPTION
4317: WHEN OKC_API.G_EXCEPTION_ERROR THEN
4318: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4319: (l_api_name,
4320: G_PKG_NAME,
4321: 'OKC_API.G_RET_STS_ERROR',

Line 4318: x_return_status := OKC_API.HANDLE_EXCEPTIONS

4314: END IF;
4315: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4316: EXCEPTION
4317: WHEN OKC_API.G_EXCEPTION_ERROR THEN
4318: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4319: (l_api_name,
4320: G_PKG_NAME,
4321: 'OKC_API.G_RET_STS_ERROR',
4322: x_msg_count,

Line 4321: 'OKC_API.G_RET_STS_ERROR',

4317: WHEN OKC_API.G_EXCEPTION_ERROR THEN
4318: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4319: (l_api_name,
4320: G_PKG_NAME,
4321: 'OKC_API.G_RET_STS_ERROR',
4322: x_msg_count,
4323: x_msg_data,
4324: '_PUB');
4325: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 4325: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

4321: 'OKC_API.G_RET_STS_ERROR',
4322: x_msg_count,
4323: x_msg_data,
4324: '_PUB');
4325: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
4326: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4327: (l_api_name,
4328: G_PKG_NAME,
4329: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 4326: x_return_status := OKC_API.HANDLE_EXCEPTIONS

4322: x_msg_count,
4323: x_msg_data,
4324: '_PUB');
4325: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
4326: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4327: (l_api_name,
4328: G_PKG_NAME,
4329: 'OKC_API.G_RET_STS_UNEXP_ERROR',
4330: x_msg_count,

Line 4329: 'OKC_API.G_RET_STS_UNEXP_ERROR',

4325: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
4326: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4327: (l_api_name,
4328: G_PKG_NAME,
4329: 'OKC_API.G_RET_STS_UNEXP_ERROR',
4330: x_msg_count,
4331: x_msg_data,
4332: '_PUB');
4333: WHEN OTHERS THEN

Line 4334: x_return_status := OKC_API.HANDLE_EXCEPTIONS

4330: x_msg_count,
4331: x_msg_data,
4332: '_PUB');
4333: WHEN OTHERS THEN
4334: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4335: (l_api_name,
4336: G_PKG_NAME,
4337: 'OTHERS',
4338: x_msg_count,

Line 4352: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

4348: x_msg_data OUT NOCOPY VARCHAR2,
4349: p_igsv_ext_tbl IN igsv_ext_tbl_type,
4350: x_igsv_ext_tbl OUT NOCOPY igsv_ext_tbl_type) IS
4351: i NUMBER := 0;
4352: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
4353: BEGIN
4354: x_return_status := OKC_API.G_RET_STS_SUCCESS;
4355: IF p_igsv_ext_tbl.COUNT > 0 THEN
4356: i := p_igsv_ext_tbl.FIRST;

Line 4354: x_return_status := OKC_API.G_RET_STS_SUCCESS;

4350: x_igsv_ext_tbl OUT NOCOPY igsv_ext_tbl_type) IS
4351: i NUMBER := 0;
4352: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
4353: BEGIN
4354: x_return_status := OKC_API.G_RET_STS_SUCCESS;
4355: IF p_igsv_ext_tbl.COUNT > 0 THEN
4356: i := p_igsv_ext_tbl.FIRST;
4357: LOOP
4358: UPDATE_IG_STARTEND(

Line 4366: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

4362: x_msg_count,
4363: x_msg_data,
4364: p_igsv_ext_tbl(i),
4365: x_igsv_ext_tbl(i));
4366: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
4367: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4368: x_return_status := l_return_status;
4369: raise G_EXCEPTION_HALT_VALIDATION;
4370: ELSE

Line 4367: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4363: x_msg_data,
4364: p_igsv_ext_tbl(i),
4365: x_igsv_ext_tbl(i));
4366: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
4367: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4368: x_return_status := l_return_status;
4369: raise G_EXCEPTION_HALT_VALIDATION;
4370: ELSE
4371: x_return_status := l_return_status;

Line 4382: OKC_API.set_message(p_app_name => g_app_name,

4378: EXCEPTION
4379: WHEN G_EXCEPTION_HALT_VALIDATION THEN
4380: NULL;
4381: WHEN OTHERS THEN
4382: OKC_API.set_message(p_app_name => g_app_name,
4383: p_msg_name => g_unexpected_error,
4384: p_token1 => g_sqlcode_token,
4385: p_token1_value => sqlcode,
4386: p_token2 => g_sqlerrm_token,

Line 4388: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

4384: p_token1 => g_sqlcode_token,
4385: p_token1_value => sqlcode,
4386: p_token2 => g_sqlerrm_token,
4387: p_token2_value => sqlerrm);
4388: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
4389: END UPDATE_IG_STARTEND;
4390:
4391: PROCEDURE DELETE_IG_STARTEND(
4392: p_api_version IN NUMBER,

Line 4402: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

4398: l_api_name CONSTANT VARCHAR2(30) := 'DELETE_IG_STARTEND';
4399: l_return_status VARCHAR2(1);
4400: l_igsv_ext_rec igsv_ext_rec_type := p_igsv_ext_rec;
4401: BEGIN
4402: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
4403: p_init_msg_list,
4404: '_PUB',
4405: x_return_status);
4406: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 4406: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4402: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
4403: p_init_msg_list,
4404: '_PUB',
4405: x_return_status);
4406: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4407: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4408: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4409: raise OKC_API.G_EXCEPTION_ERROR;
4410: END IF;

Line 4407: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

4403: p_init_msg_list,
4404: '_PUB',
4405: x_return_status);
4406: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4407: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4408: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4409: raise OKC_API.G_EXCEPTION_ERROR;
4410: END IF;
4411: -- Call user hook for BEFORE

Line 4408: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

4404: '_PUB',
4405: x_return_status);
4406: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4407: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4408: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4409: raise OKC_API.G_EXCEPTION_ERROR;
4410: END IF;
4411: -- Call user hook for BEFORE
4412: g_igsv_ext_rec := l_igsv_ext_rec;

Line 4409: raise OKC_API.G_EXCEPTION_ERROR;

4405: x_return_status);
4406: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4407: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4408: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4409: raise OKC_API.G_EXCEPTION_ERROR;
4410: END IF;
4411: -- Call user hook for BEFORE
4412: g_igsv_ext_rec := l_igsv_ext_rec;
4413: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 4414: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4410: END IF;
4411: -- Call user hook for BEFORE
4412: g_igsv_ext_rec := l_igsv_ext_rec;
4413: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4414: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4415: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4416: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4417: raise OKC_API.G_EXCEPTION_ERROR;
4418: END IF;

Line 4415: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

4411: -- Call user hook for BEFORE
4412: g_igsv_ext_rec := l_igsv_ext_rec;
4413: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4414: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4415: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4416: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4417: raise OKC_API.G_EXCEPTION_ERROR;
4418: END IF;
4419: OKC_TIME_PVT.DELETE_IG_STARTEND(

Line 4416: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

4412: g_igsv_ext_rec := l_igsv_ext_rec;
4413: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4414: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4415: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4416: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4417: raise OKC_API.G_EXCEPTION_ERROR;
4418: END IF;
4419: OKC_TIME_PVT.DELETE_IG_STARTEND(
4420: p_api_version,

Line 4417: raise OKC_API.G_EXCEPTION_ERROR;

4413: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4414: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4415: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4416: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4417: raise OKC_API.G_EXCEPTION_ERROR;
4418: END IF;
4419: OKC_TIME_PVT.DELETE_IG_STARTEND(
4420: p_api_version,
4421: p_init_msg_list,

Line 4426: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4422: x_return_status,
4423: x_msg_count,
4424: x_msg_data,
4425: p_igsv_ext_rec);
4426: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4427: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4428: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4429: raise OKC_API.G_EXCEPTION_ERROR;
4430: END IF;

Line 4427: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

4423: x_msg_count,
4424: x_msg_data,
4425: p_igsv_ext_rec);
4426: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4427: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4428: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4429: raise OKC_API.G_EXCEPTION_ERROR;
4430: END IF;
4431:

Line 4428: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

4424: x_msg_data,
4425: p_igsv_ext_rec);
4426: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4427: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4428: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4429: raise OKC_API.G_EXCEPTION_ERROR;
4430: END IF;
4431:
4432: -- Call user hook for AFTER

Line 4429: raise OKC_API.G_EXCEPTION_ERROR;

4425: p_igsv_ext_rec);
4426: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4427: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4428: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4429: raise OKC_API.G_EXCEPTION_ERROR;
4430: END IF;
4431:
4432: -- Call user hook for AFTER
4433: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');

Line 4434: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4430: END IF;
4431:
4432: -- Call user hook for AFTER
4433: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
4434: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4435: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4436: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4437: raise OKC_API.G_EXCEPTION_ERROR;
4438: END IF;

Line 4435: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

4431:
4432: -- Call user hook for AFTER
4433: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
4434: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4435: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4436: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4437: raise OKC_API.G_EXCEPTION_ERROR;
4438: END IF;
4439: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 4436: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

4432: -- Call user hook for AFTER
4433: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
4434: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4435: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4436: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4437: raise OKC_API.G_EXCEPTION_ERROR;
4438: END IF;
4439: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4440: EXCEPTION

Line 4437: raise OKC_API.G_EXCEPTION_ERROR;

4433: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
4434: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4435: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4436: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4437: raise OKC_API.G_EXCEPTION_ERROR;
4438: END IF;
4439: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4440: EXCEPTION
4441: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 4439: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

4435: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4436: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4437: raise OKC_API.G_EXCEPTION_ERROR;
4438: END IF;
4439: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4440: EXCEPTION
4441: WHEN OKC_API.G_EXCEPTION_ERROR THEN
4442: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4443: (l_api_name,

Line 4441: WHEN OKC_API.G_EXCEPTION_ERROR THEN

4437: raise OKC_API.G_EXCEPTION_ERROR;
4438: END IF;
4439: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4440: EXCEPTION
4441: WHEN OKC_API.G_EXCEPTION_ERROR THEN
4442: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4443: (l_api_name,
4444: G_PKG_NAME,
4445: 'OKC_API.G_RET_STS_ERROR',

Line 4442: x_return_status := OKC_API.HANDLE_EXCEPTIONS

4438: END IF;
4439: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4440: EXCEPTION
4441: WHEN OKC_API.G_EXCEPTION_ERROR THEN
4442: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4443: (l_api_name,
4444: G_PKG_NAME,
4445: 'OKC_API.G_RET_STS_ERROR',
4446: x_msg_count,

Line 4445: 'OKC_API.G_RET_STS_ERROR',

4441: WHEN OKC_API.G_EXCEPTION_ERROR THEN
4442: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4443: (l_api_name,
4444: G_PKG_NAME,
4445: 'OKC_API.G_RET_STS_ERROR',
4446: x_msg_count,
4447: x_msg_data,
4448: '_PUB');
4449: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 4449: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

4445: 'OKC_API.G_RET_STS_ERROR',
4446: x_msg_count,
4447: x_msg_data,
4448: '_PUB');
4449: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
4450: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4451: (l_api_name,
4452: G_PKG_NAME,
4453: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 4450: x_return_status := OKC_API.HANDLE_EXCEPTIONS

4446: x_msg_count,
4447: x_msg_data,
4448: '_PUB');
4449: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
4450: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4451: (l_api_name,
4452: G_PKG_NAME,
4453: 'OKC_API.G_RET_STS_UNEXP_ERROR',
4454: x_msg_count,

Line 4453: 'OKC_API.G_RET_STS_UNEXP_ERROR',

4449: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
4450: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4451: (l_api_name,
4452: G_PKG_NAME,
4453: 'OKC_API.G_RET_STS_UNEXP_ERROR',
4454: x_msg_count,
4455: x_msg_data,
4456: '_PUB');
4457: WHEN OTHERS THEN

Line 4458: x_return_status := OKC_API.HANDLE_EXCEPTIONS

4454: x_msg_count,
4455: x_msg_data,
4456: '_PUB');
4457: WHEN OTHERS THEN
4458: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4459: (l_api_name,
4460: G_PKG_NAME,
4461: 'OTHERS',
4462: x_msg_count,

Line 4475: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

4471: x_msg_count OUT NOCOPY NUMBER,
4472: x_msg_data OUT NOCOPY VARCHAR2,
4473: p_igsv_ext_tbl IN igsv_ext_tbl_type) IS
4474: i NUMBER := 0;
4475: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
4476: BEGIN
4477: x_return_status := OKC_API.G_RET_STS_SUCCESS;
4478: IF p_igsv_ext_tbl.COUNT > 0 THEN
4479: i := p_igsv_ext_tbl.FIRST;

Line 4477: x_return_status := OKC_API.G_RET_STS_SUCCESS;

4473: p_igsv_ext_tbl IN igsv_ext_tbl_type) IS
4474: i NUMBER := 0;
4475: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
4476: BEGIN
4477: x_return_status := OKC_API.G_RET_STS_SUCCESS;
4478: IF p_igsv_ext_tbl.COUNT > 0 THEN
4479: i := p_igsv_ext_tbl.FIRST;
4480: LOOP
4481: DELETE_IG_STARTEND(

Line 4488: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

4484: l_return_status,
4485: x_msg_count,
4486: x_msg_data,
4487: p_igsv_ext_tbl(i));
4488: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
4489: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4490: x_return_status := l_return_status;
4491: raise G_EXCEPTION_HALT_VALIDATION;
4492: ELSE

Line 4489: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4485: x_msg_count,
4486: x_msg_data,
4487: p_igsv_ext_tbl(i));
4488: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
4489: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4490: x_return_status := l_return_status;
4491: raise G_EXCEPTION_HALT_VALIDATION;
4492: ELSE
4493: x_return_status := l_return_status;

Line 4504: OKC_API.set_message(p_app_name => g_app_name,

4500: EXCEPTION
4501: WHEN G_EXCEPTION_HALT_VALIDATION THEN
4502: NULL;
4503: WHEN OTHERS THEN
4504: OKC_API.set_message(p_app_name => g_app_name,
4505: p_msg_name => g_unexpected_error,
4506: p_token1 => g_sqlcode_token,
4507: p_token1_value => sqlcode,
4508: p_token2 => g_sqlerrm_token,

Line 4510: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

4506: p_token1 => g_sqlcode_token,
4507: p_token1_value => sqlcode,
4508: p_token2 => g_sqlerrm_token,
4509: p_token2_value => sqlerrm);
4510: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
4511: END DELETE_IG_STARTEND;
4512:
4513: PROCEDURE LOCK_IG_STARTEND(
4514: p_api_version IN NUMBER,

Line 4538: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

4534: x_msg_count OUT NOCOPY NUMBER,
4535: x_msg_data OUT NOCOPY VARCHAR2,
4536: p_igsv_ext_tbl IN igsv_ext_tbl_type) IS
4537: i NUMBER := 0;
4538: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
4539: BEGIN
4540: x_return_status := OKC_API.G_RET_STS_SUCCESS;
4541: IF p_igsv_ext_tbl.COUNT > 0 THEN
4542: i := p_igsv_ext_tbl.FIRST;

Line 4540: x_return_status := OKC_API.G_RET_STS_SUCCESS;

4536: p_igsv_ext_tbl IN igsv_ext_tbl_type) IS
4537: i NUMBER := 0;
4538: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
4539: BEGIN
4540: x_return_status := OKC_API.G_RET_STS_SUCCESS;
4541: IF p_igsv_ext_tbl.COUNT > 0 THEN
4542: i := p_igsv_ext_tbl.FIRST;
4543: LOOP
4544: LOCK_IG_STARTEND(

Line 4551: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

4547: l_return_status,
4548: x_msg_count,
4549: x_msg_data,
4550: p_igsv_ext_tbl(i));
4551: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
4552: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4553: x_return_status := l_return_status;
4554: raise G_EXCEPTION_HALT_VALIDATION;
4555: ELSE

Line 4552: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4548: x_msg_count,
4549: x_msg_data,
4550: p_igsv_ext_tbl(i));
4551: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
4552: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4553: x_return_status := l_return_status;
4554: raise G_EXCEPTION_HALT_VALIDATION;
4555: ELSE
4556: x_return_status := l_return_status;

Line 4567: OKC_API.set_message(p_app_name => g_app_name,

4563: EXCEPTION
4564: WHEN G_EXCEPTION_HALT_VALIDATION THEN
4565: NULL;
4566: WHEN OTHERS THEN
4567: OKC_API.set_message(p_app_name => g_app_name,
4568: p_msg_name => g_unexpected_error,
4569: p_token1 => g_sqlcode_token,
4570: p_token1_value => sqlcode,
4571: p_token2 => g_sqlerrm_token,

Line 4573: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

4569: p_token1 => g_sqlcode_token,
4570: p_token1_value => sqlcode,
4571: p_token2 => g_sqlerrm_token,
4572: p_token2_value => sqlerrm);
4573: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
4574: END LOCK_IG_STARTEND;
4575:
4576: PROCEDURE VALID_IG_STARTEND(
4577: p_api_version IN NUMBER,

Line 4601: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

4597: x_msg_count OUT NOCOPY NUMBER,
4598: x_msg_data OUT NOCOPY VARCHAR2,
4599: p_igsv_ext_tbl IN igsv_ext_tbl_type) IS
4600: i NUMBER := 0;
4601: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
4602: BEGIN
4603: x_return_status := OKC_API.G_RET_STS_SUCCESS;
4604: IF p_igsv_ext_tbl.COUNT > 0 THEN
4605: i := p_igsv_ext_tbl.FIRST;

Line 4603: x_return_status := OKC_API.G_RET_STS_SUCCESS;

4599: p_igsv_ext_tbl IN igsv_ext_tbl_type) IS
4600: i NUMBER := 0;
4601: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
4602: BEGIN
4603: x_return_status := OKC_API.G_RET_STS_SUCCESS;
4604: IF p_igsv_ext_tbl.COUNT > 0 THEN
4605: i := p_igsv_ext_tbl.FIRST;
4606: LOOP
4607: VALID_IG_STARTEND(

Line 4614: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

4610: l_return_status,
4611: x_msg_count,
4612: x_msg_data,
4613: p_igsv_ext_tbl(i));
4614: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
4615: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4616: x_return_status := l_return_status;
4617: raise G_EXCEPTION_HALT_VALIDATION;
4618: ELSE

Line 4615: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4611: x_msg_count,
4612: x_msg_data,
4613: p_igsv_ext_tbl(i));
4614: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
4615: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4616: x_return_status := l_return_status;
4617: raise G_EXCEPTION_HALT_VALIDATION;
4618: ELSE
4619: x_return_status := l_return_status;

Line 4630: OKC_API.set_message(p_app_name => g_app_name,

4626: EXCEPTION
4627: WHEN G_EXCEPTION_HALT_VALIDATION THEN
4628: NULL;
4629: WHEN OTHERS THEN
4630: OKC_API.set_message(p_app_name => g_app_name,
4631: p_msg_name => g_unexpected_error,
4632: p_token1 => g_sqlcode_token,
4633: p_token1_value => sqlcode,
4634: p_token2 => g_sqlerrm_token,

Line 4636: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

4632: p_token1 => g_sqlcode_token,
4633: p_token1_value => sqlcode,
4634: p_token2 => g_sqlerrm_token,
4635: p_token2_value => sqlerrm);
4636: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
4637: END VALID_IG_STARTEND;
4638:
4639: ---The following procedures cater to handling of OKC_TIME_CYCLE
4640: --------------------------------------------------------------------------

Line 4725: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

4721: l_api_name CONSTANT VARCHAR2(30) := 'CREATE_CYCLE';
4722: l_return_status VARCHAR2(1);
4723: l_cylv_ext_rec cylv_ext_rec_type := p_cylv_ext_rec;
4724: BEGIN
4725: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
4726: p_init_msg_list,
4727: '_PUB',
4728: x_return_status);
4729: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 4729: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4725: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
4726: p_init_msg_list,
4727: '_PUB',
4728: x_return_status);
4729: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4730: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4731: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4732: raise OKC_API.G_EXCEPTION_ERROR;
4733: END IF;

Line 4730: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

4726: p_init_msg_list,
4727: '_PUB',
4728: x_return_status);
4729: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4730: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4731: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4732: raise OKC_API.G_EXCEPTION_ERROR;
4733: END IF;
4734: -- Call user hook for BEFORE

Line 4731: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

4727: '_PUB',
4728: x_return_status);
4729: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4730: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4731: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4732: raise OKC_API.G_EXCEPTION_ERROR;
4733: END IF;
4734: -- Call user hook for BEFORE
4735: g_cylv_ext_rec := l_cylv_ext_rec;

Line 4732: raise OKC_API.G_EXCEPTION_ERROR;

4728: x_return_status);
4729: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4730: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4731: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4732: raise OKC_API.G_EXCEPTION_ERROR;
4733: END IF;
4734: -- Call user hook for BEFORE
4735: g_cylv_ext_rec := l_cylv_ext_rec;
4736: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 4737: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4733: END IF;
4734: -- Call user hook for BEFORE
4735: g_cylv_ext_rec := l_cylv_ext_rec;
4736: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4737: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4738: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4739: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4740: raise OKC_API.G_EXCEPTION_ERROR;
4741: END IF;

Line 4738: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

4734: -- Call user hook for BEFORE
4735: g_cylv_ext_rec := l_cylv_ext_rec;
4736: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4737: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4738: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4739: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4740: raise OKC_API.G_EXCEPTION_ERROR;
4741: END IF;
4742: l_cylv_ext_rec := migrate_cylv(l_cylv_ext_rec, g_cylv_ext_rec);

Line 4739: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

4735: g_cylv_ext_rec := l_cylv_ext_rec;
4736: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4737: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4738: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4739: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4740: raise OKC_API.G_EXCEPTION_ERROR;
4741: END IF;
4742: l_cylv_ext_rec := migrate_cylv(l_cylv_ext_rec, g_cylv_ext_rec);
4743: OKC_TIME_PVT.CREATE_CYCLE(

Line 4740: raise OKC_API.G_EXCEPTION_ERROR;

4736: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4737: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4738: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4739: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4740: raise OKC_API.G_EXCEPTION_ERROR;
4741: END IF;
4742: l_cylv_ext_rec := migrate_cylv(l_cylv_ext_rec, g_cylv_ext_rec);
4743: OKC_TIME_PVT.CREATE_CYCLE(
4744: p_api_version,

Line 4751: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4747: x_msg_count,
4748: x_msg_data,
4749: p_cylv_ext_rec,
4750: x_cylv_ext_rec);
4751: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4752: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4753: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4754: raise OKC_API.G_EXCEPTION_ERROR;
4755: END IF;

Line 4752: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

4748: x_msg_data,
4749: p_cylv_ext_rec,
4750: x_cylv_ext_rec);
4751: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4752: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4753: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4754: raise OKC_API.G_EXCEPTION_ERROR;
4755: END IF;
4756:

Line 4753: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

4749: p_cylv_ext_rec,
4750: x_cylv_ext_rec);
4751: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4752: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4753: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4754: raise OKC_API.G_EXCEPTION_ERROR;
4755: END IF;
4756:
4757: -- Call user hook for AFTER

Line 4754: raise OKC_API.G_EXCEPTION_ERROR;

4750: x_cylv_ext_rec);
4751: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4752: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4753: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4754: raise OKC_API.G_EXCEPTION_ERROR;
4755: END IF;
4756:
4757: -- Call user hook for AFTER
4758: g_cylv_ext_rec := x_cylv_ext_rec;

Line 4760: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4756:
4757: -- Call user hook for AFTER
4758: g_cylv_ext_rec := x_cylv_ext_rec;
4759: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
4760: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4761: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4762: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4763: raise OKC_API.G_EXCEPTION_ERROR;
4764: END IF;

Line 4761: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

4757: -- Call user hook for AFTER
4758: g_cylv_ext_rec := x_cylv_ext_rec;
4759: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
4760: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4761: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4762: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4763: raise OKC_API.G_EXCEPTION_ERROR;
4764: END IF;
4765: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 4762: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

4758: g_cylv_ext_rec := x_cylv_ext_rec;
4759: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
4760: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4761: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4762: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4763: raise OKC_API.G_EXCEPTION_ERROR;
4764: END IF;
4765: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4766: EXCEPTION

Line 4763: raise OKC_API.G_EXCEPTION_ERROR;

4759: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
4760: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4761: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4762: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4763: raise OKC_API.G_EXCEPTION_ERROR;
4764: END IF;
4765: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4766: EXCEPTION
4767: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 4765: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

4761: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4762: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4763: raise OKC_API.G_EXCEPTION_ERROR;
4764: END IF;
4765: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4766: EXCEPTION
4767: WHEN OKC_API.G_EXCEPTION_ERROR THEN
4768: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4769: (l_api_name,

Line 4767: WHEN OKC_API.G_EXCEPTION_ERROR THEN

4763: raise OKC_API.G_EXCEPTION_ERROR;
4764: END IF;
4765: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4766: EXCEPTION
4767: WHEN OKC_API.G_EXCEPTION_ERROR THEN
4768: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4769: (l_api_name,
4770: G_PKG_NAME,
4771: 'OKC_API.G_RET_STS_ERROR',

Line 4768: x_return_status := OKC_API.HANDLE_EXCEPTIONS

4764: END IF;
4765: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4766: EXCEPTION
4767: WHEN OKC_API.G_EXCEPTION_ERROR THEN
4768: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4769: (l_api_name,
4770: G_PKG_NAME,
4771: 'OKC_API.G_RET_STS_ERROR',
4772: x_msg_count,

Line 4771: 'OKC_API.G_RET_STS_ERROR',

4767: WHEN OKC_API.G_EXCEPTION_ERROR THEN
4768: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4769: (l_api_name,
4770: G_PKG_NAME,
4771: 'OKC_API.G_RET_STS_ERROR',
4772: x_msg_count,
4773: x_msg_data,
4774: '_PUB');
4775: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 4775: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

4771: 'OKC_API.G_RET_STS_ERROR',
4772: x_msg_count,
4773: x_msg_data,
4774: '_PUB');
4775: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
4776: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4777: (l_api_name,
4778: G_PKG_NAME,
4779: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 4776: x_return_status := OKC_API.HANDLE_EXCEPTIONS

4772: x_msg_count,
4773: x_msg_data,
4774: '_PUB');
4775: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
4776: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4777: (l_api_name,
4778: G_PKG_NAME,
4779: 'OKC_API.G_RET_STS_UNEXP_ERROR',
4780: x_msg_count,

Line 4779: 'OKC_API.G_RET_STS_UNEXP_ERROR',

4775: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
4776: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4777: (l_api_name,
4778: G_PKG_NAME,
4779: 'OKC_API.G_RET_STS_UNEXP_ERROR',
4780: x_msg_count,
4781: x_msg_data,
4782: '_PUB');
4783: WHEN OTHERS THEN

Line 4784: x_return_status := OKC_API.HANDLE_EXCEPTIONS

4780: x_msg_count,
4781: x_msg_data,
4782: '_PUB');
4783: WHEN OTHERS THEN
4784: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4785: (l_api_name,
4786: G_PKG_NAME,
4787: 'OTHERS',
4788: x_msg_count,

Line 4802: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

4798: x_msg_data OUT NOCOPY VARCHAR2,
4799: p_cylv_ext_tbl IN cylv_ext_tbl_type,
4800: x_cylv_ext_tbl OUT NOCOPY cylv_ext_tbl_type) IS
4801: i NUMBER := 0;
4802: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
4803: BEGIN
4804: x_return_status := OKC_API.G_RET_STS_SUCCESS;
4805: IF p_cylv_ext_tbl.COUNT > 0 THEN
4806: i := p_cylv_ext_tbl.FIRST;

Line 4804: x_return_status := OKC_API.G_RET_STS_SUCCESS;

4800: x_cylv_ext_tbl OUT NOCOPY cylv_ext_tbl_type) IS
4801: i NUMBER := 0;
4802: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
4803: BEGIN
4804: x_return_status := OKC_API.G_RET_STS_SUCCESS;
4805: IF p_cylv_ext_tbl.COUNT > 0 THEN
4806: i := p_cylv_ext_tbl.FIRST;
4807: LOOP
4808: CREATE_CYCLE(

Line 4816: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

4812: x_msg_count,
4813: x_msg_data,
4814: p_cylv_ext_tbl(i),
4815: x_cylv_ext_tbl(i));
4816: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
4817: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4818: x_return_status := l_return_status;
4819: raise G_EXCEPTION_HALT_VALIDATION;
4820: ELSE

Line 4817: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4813: x_msg_data,
4814: p_cylv_ext_tbl(i),
4815: x_cylv_ext_tbl(i));
4816: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
4817: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4818: x_return_status := l_return_status;
4819: raise G_EXCEPTION_HALT_VALIDATION;
4820: ELSE
4821: x_return_status := l_return_status;

Line 4832: OKC_API.set_message(p_app_name => g_app_name,

4828: EXCEPTION
4829: WHEN G_EXCEPTION_HALT_VALIDATION THEN
4830: NULL;
4831: WHEN OTHERS THEN
4832: OKC_API.set_message(p_app_name => g_app_name,
4833: p_msg_name => g_unexpected_error,
4834: p_token1 => g_sqlcode_token,
4835: p_token1_value => sqlcode,
4836: p_token2 => g_sqlerrm_token,

Line 4838: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

4834: p_token1 => g_sqlcode_token,
4835: p_token1_value => sqlcode,
4836: p_token2 => g_sqlerrm_token,
4837: p_token2_value => sqlerrm);
4838: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
4839: END CREATE_CYCLE;
4840:
4841: PROCEDURE UPDATE_CYCLE(
4842: p_api_version IN NUMBER,

Line 4853: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

4849: l_api_name CONSTANT VARCHAR2(30) := 'UPDATE_CYCLE';
4850: l_return_status VARCHAR2(1);
4851: l_cylv_ext_rec cylv_ext_rec_type := p_cylv_ext_rec;
4852: BEGIN
4853: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
4854: p_init_msg_list,
4855: '_PUB',
4856: x_return_status);
4857: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 4857: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4853: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
4854: p_init_msg_list,
4855: '_PUB',
4856: x_return_status);
4857: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4858: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4859: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4860: raise OKC_API.G_EXCEPTION_ERROR;
4861: END IF;

Line 4858: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

4854: p_init_msg_list,
4855: '_PUB',
4856: x_return_status);
4857: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4858: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4859: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4860: raise OKC_API.G_EXCEPTION_ERROR;
4861: END IF;
4862: -- Call user hook for BEFORE

Line 4859: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

4855: '_PUB',
4856: x_return_status);
4857: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4858: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4859: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4860: raise OKC_API.G_EXCEPTION_ERROR;
4861: END IF;
4862: -- Call user hook for BEFORE
4863: g_cylv_ext_rec := l_cylv_ext_rec;

Line 4860: raise OKC_API.G_EXCEPTION_ERROR;

4856: x_return_status);
4857: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4858: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4859: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4860: raise OKC_API.G_EXCEPTION_ERROR;
4861: END IF;
4862: -- Call user hook for BEFORE
4863: g_cylv_ext_rec := l_cylv_ext_rec;
4864: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 4865: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4861: END IF;
4862: -- Call user hook for BEFORE
4863: g_cylv_ext_rec := l_cylv_ext_rec;
4864: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4865: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4866: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4867: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4868: raise OKC_API.G_EXCEPTION_ERROR;
4869: END IF;

Line 4866: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

4862: -- Call user hook for BEFORE
4863: g_cylv_ext_rec := l_cylv_ext_rec;
4864: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4865: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4866: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4867: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4868: raise OKC_API.G_EXCEPTION_ERROR;
4869: END IF;
4870: l_cylv_ext_rec := migrate_cylv(l_cylv_ext_rec, g_cylv_ext_rec);

Line 4867: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

4863: g_cylv_ext_rec := l_cylv_ext_rec;
4864: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4865: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4866: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4867: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4868: raise OKC_API.G_EXCEPTION_ERROR;
4869: END IF;
4870: l_cylv_ext_rec := migrate_cylv(l_cylv_ext_rec, g_cylv_ext_rec);
4871: OKC_TIME_PVT.UPDATE_CYCLE(

Line 4868: raise OKC_API.G_EXCEPTION_ERROR;

4864: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4865: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4866: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4867: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4868: raise OKC_API.G_EXCEPTION_ERROR;
4869: END IF;
4870: l_cylv_ext_rec := migrate_cylv(l_cylv_ext_rec, g_cylv_ext_rec);
4871: OKC_TIME_PVT.UPDATE_CYCLE(
4872: p_api_version,

Line 4879: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4875: x_msg_count,
4876: x_msg_data,
4877: p_cylv_ext_rec,
4878: x_cylv_ext_rec);
4879: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4880: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4881: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4882: raise OKC_API.G_EXCEPTION_ERROR;
4883: END IF;

Line 4880: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

4876: x_msg_data,
4877: p_cylv_ext_rec,
4878: x_cylv_ext_rec);
4879: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4880: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4881: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4882: raise OKC_API.G_EXCEPTION_ERROR;
4883: END IF;
4884:

Line 4881: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

4877: p_cylv_ext_rec,
4878: x_cylv_ext_rec);
4879: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4880: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4881: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4882: raise OKC_API.G_EXCEPTION_ERROR;
4883: END IF;
4884:
4885: -- Call user hook for AFTER

Line 4882: raise OKC_API.G_EXCEPTION_ERROR;

4878: x_cylv_ext_rec);
4879: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4880: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4881: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4882: raise OKC_API.G_EXCEPTION_ERROR;
4883: END IF;
4884:
4885: -- Call user hook for AFTER
4886: g_cylv_ext_rec := x_cylv_ext_rec;

Line 4888: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4884:
4885: -- Call user hook for AFTER
4886: g_cylv_ext_rec := x_cylv_ext_rec;
4887: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
4888: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4889: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4890: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4891: raise OKC_API.G_EXCEPTION_ERROR;
4892: END IF;

Line 4889: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

4885: -- Call user hook for AFTER
4886: g_cylv_ext_rec := x_cylv_ext_rec;
4887: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
4888: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4889: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4890: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4891: raise OKC_API.G_EXCEPTION_ERROR;
4892: END IF;
4893: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 4890: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

4886: g_cylv_ext_rec := x_cylv_ext_rec;
4887: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
4888: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4889: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4890: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4891: raise OKC_API.G_EXCEPTION_ERROR;
4892: END IF;
4893: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4894: EXCEPTION

Line 4891: raise OKC_API.G_EXCEPTION_ERROR;

4887: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
4888: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4889: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4890: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4891: raise OKC_API.G_EXCEPTION_ERROR;
4892: END IF;
4893: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4894: EXCEPTION
4895: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 4893: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

4889: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4890: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4891: raise OKC_API.G_EXCEPTION_ERROR;
4892: END IF;
4893: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4894: EXCEPTION
4895: WHEN OKC_API.G_EXCEPTION_ERROR THEN
4896: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4897: (l_api_name,

Line 4895: WHEN OKC_API.G_EXCEPTION_ERROR THEN

4891: raise OKC_API.G_EXCEPTION_ERROR;
4892: END IF;
4893: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4894: EXCEPTION
4895: WHEN OKC_API.G_EXCEPTION_ERROR THEN
4896: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4897: (l_api_name,
4898: G_PKG_NAME,
4899: 'OKC_API.G_RET_STS_ERROR',

Line 4896: x_return_status := OKC_API.HANDLE_EXCEPTIONS

4892: END IF;
4893: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
4894: EXCEPTION
4895: WHEN OKC_API.G_EXCEPTION_ERROR THEN
4896: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4897: (l_api_name,
4898: G_PKG_NAME,
4899: 'OKC_API.G_RET_STS_ERROR',
4900: x_msg_count,

Line 4899: 'OKC_API.G_RET_STS_ERROR',

4895: WHEN OKC_API.G_EXCEPTION_ERROR THEN
4896: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4897: (l_api_name,
4898: G_PKG_NAME,
4899: 'OKC_API.G_RET_STS_ERROR',
4900: x_msg_count,
4901: x_msg_data,
4902: '_PUB');
4903: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 4903: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

4899: 'OKC_API.G_RET_STS_ERROR',
4900: x_msg_count,
4901: x_msg_data,
4902: '_PUB');
4903: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
4904: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4905: (l_api_name,
4906: G_PKG_NAME,
4907: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 4904: x_return_status := OKC_API.HANDLE_EXCEPTIONS

4900: x_msg_count,
4901: x_msg_data,
4902: '_PUB');
4903: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
4904: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4905: (l_api_name,
4906: G_PKG_NAME,
4907: 'OKC_API.G_RET_STS_UNEXP_ERROR',
4908: x_msg_count,

Line 4907: 'OKC_API.G_RET_STS_UNEXP_ERROR',

4903: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
4904: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4905: (l_api_name,
4906: G_PKG_NAME,
4907: 'OKC_API.G_RET_STS_UNEXP_ERROR',
4908: x_msg_count,
4909: x_msg_data,
4910: '_PUB');
4911: WHEN OTHERS THEN

Line 4912: x_return_status := OKC_API.HANDLE_EXCEPTIONS

4908: x_msg_count,
4909: x_msg_data,
4910: '_PUB');
4911: WHEN OTHERS THEN
4912: x_return_status := OKC_API.HANDLE_EXCEPTIONS
4913: (l_api_name,
4914: G_PKG_NAME,
4915: 'OTHERS',
4916: x_msg_count,

Line 4930: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

4926: x_msg_data OUT NOCOPY VARCHAR2,
4927: p_cylv_ext_tbl IN cylv_ext_tbl_type,
4928: x_cylv_ext_tbl OUT NOCOPY cylv_ext_tbl_type) IS
4929: i NUMBER := 0;
4930: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
4931: BEGIN
4932: x_return_status := OKC_API.G_RET_STS_SUCCESS;
4933: IF p_cylv_ext_tbl.COUNT > 0 THEN
4934: i := p_cylv_ext_tbl.FIRST;

Line 4932: x_return_status := OKC_API.G_RET_STS_SUCCESS;

4928: x_cylv_ext_tbl OUT NOCOPY cylv_ext_tbl_type) IS
4929: i NUMBER := 0;
4930: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
4931: BEGIN
4932: x_return_status := OKC_API.G_RET_STS_SUCCESS;
4933: IF p_cylv_ext_tbl.COUNT > 0 THEN
4934: i := p_cylv_ext_tbl.FIRST;
4935: LOOP
4936: UPDATE_CYCLE(

Line 4944: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

4940: x_msg_count,
4941: x_msg_data,
4942: p_cylv_ext_tbl(i),
4943: x_cylv_ext_tbl(i));
4944: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
4945: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4946: x_return_status := l_return_status;
4947: raise G_EXCEPTION_HALT_VALIDATION;
4948: ELSE

Line 4945: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4941: x_msg_data,
4942: p_cylv_ext_tbl(i),
4943: x_cylv_ext_tbl(i));
4944: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
4945: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4946: x_return_status := l_return_status;
4947: raise G_EXCEPTION_HALT_VALIDATION;
4948: ELSE
4949: x_return_status := l_return_status;

Line 4960: OKC_API.set_message(p_app_name => g_app_name,

4956: EXCEPTION
4957: WHEN G_EXCEPTION_HALT_VALIDATION THEN
4958: NULL;
4959: WHEN OTHERS THEN
4960: OKC_API.set_message(p_app_name => g_app_name,
4961: p_msg_name => g_unexpected_error,
4962: p_token1 => g_sqlcode_token,
4963: p_token1_value => sqlcode,
4964: p_token2 => g_sqlerrm_token,

Line 4966: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

4962: p_token1 => g_sqlcode_token,
4963: p_token1_value => sqlcode,
4964: p_token2 => g_sqlerrm_token,
4965: p_token2_value => sqlerrm);
4966: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
4967: END UPDATE_CYCLE;
4968:
4969: PROCEDURE DELETE_CYCLE(
4970: p_api_version IN NUMBER,

Line 4980: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

4976: l_api_name CONSTANT VARCHAR2(30) := 'DELETE_CYCLE';
4977: l_return_status VARCHAR2(1);
4978: l_cylv_ext_rec cylv_ext_rec_type := p_cylv_ext_rec;
4979: BEGIN
4980: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
4981: p_init_msg_list,
4982: '_PUB',
4983: x_return_status);
4984: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 4984: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4980: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
4981: p_init_msg_list,
4982: '_PUB',
4983: x_return_status);
4984: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4985: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4986: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4987: raise OKC_API.G_EXCEPTION_ERROR;
4988: END IF;

Line 4985: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

4981: p_init_msg_list,
4982: '_PUB',
4983: x_return_status);
4984: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4985: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4986: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4987: raise OKC_API.G_EXCEPTION_ERROR;
4988: END IF;
4989: -- Call user hook for BEFORE

Line 4986: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

4982: '_PUB',
4983: x_return_status);
4984: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4985: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4986: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4987: raise OKC_API.G_EXCEPTION_ERROR;
4988: END IF;
4989: -- Call user hook for BEFORE
4990: g_cylv_ext_rec := l_cylv_ext_rec;

Line 4987: raise OKC_API.G_EXCEPTION_ERROR;

4983: x_return_status);
4984: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4985: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4986: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
4987: raise OKC_API.G_EXCEPTION_ERROR;
4988: END IF;
4989: -- Call user hook for BEFORE
4990: g_cylv_ext_rec := l_cylv_ext_rec;
4991: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 4992: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

4988: END IF;
4989: -- Call user hook for BEFORE
4990: g_cylv_ext_rec := l_cylv_ext_rec;
4991: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4992: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4993: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4994: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4995: raise OKC_API.G_EXCEPTION_ERROR;
4996: END IF;

Line 4993: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

4989: -- Call user hook for BEFORE
4990: g_cylv_ext_rec := l_cylv_ext_rec;
4991: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4992: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4993: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4994: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4995: raise OKC_API.G_EXCEPTION_ERROR;
4996: END IF;
4997: OKC_TIME_PVT.DELETE_CYCLE(

Line 4994: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

4990: g_cylv_ext_rec := l_cylv_ext_rec;
4991: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4992: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4993: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4994: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4995: raise OKC_API.G_EXCEPTION_ERROR;
4996: END IF;
4997: OKC_TIME_PVT.DELETE_CYCLE(
4998: p_api_version,

Line 4995: raise OKC_API.G_EXCEPTION_ERROR;

4991: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
4992: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
4993: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
4994: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
4995: raise OKC_API.G_EXCEPTION_ERROR;
4996: END IF;
4997: OKC_TIME_PVT.DELETE_CYCLE(
4998: p_api_version,
4999: p_init_msg_list,

Line 5004: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5000: x_return_status,
5001: x_msg_count,
5002: x_msg_data,
5003: p_cylv_ext_rec);
5004: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5005: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5006: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5007: raise OKC_API.G_EXCEPTION_ERROR;
5008: END IF;

Line 5005: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

5001: x_msg_count,
5002: x_msg_data,
5003: p_cylv_ext_rec);
5004: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5005: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5006: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5007: raise OKC_API.G_EXCEPTION_ERROR;
5008: END IF;
5009:

Line 5006: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

5002: x_msg_data,
5003: p_cylv_ext_rec);
5004: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5005: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5006: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5007: raise OKC_API.G_EXCEPTION_ERROR;
5008: END IF;
5009:
5010: -- Call user hook for AFTER

Line 5007: raise OKC_API.G_EXCEPTION_ERROR;

5003: p_cylv_ext_rec);
5004: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5005: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5006: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5007: raise OKC_API.G_EXCEPTION_ERROR;
5008: END IF;
5009:
5010: -- Call user hook for AFTER
5011: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');

Line 5012: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5008: END IF;
5009:
5010: -- Call user hook for AFTER
5011: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
5012: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5013: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5014: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5015: raise OKC_API.G_EXCEPTION_ERROR;
5016: END IF;

Line 5013: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

5009:
5010: -- Call user hook for AFTER
5011: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
5012: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5013: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5014: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5015: raise OKC_API.G_EXCEPTION_ERROR;
5016: END IF;
5017: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 5014: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

5010: -- Call user hook for AFTER
5011: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
5012: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5013: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5014: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5015: raise OKC_API.G_EXCEPTION_ERROR;
5016: END IF;
5017: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5018: EXCEPTION

Line 5015: raise OKC_API.G_EXCEPTION_ERROR;

5011: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
5012: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5013: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5014: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5015: raise OKC_API.G_EXCEPTION_ERROR;
5016: END IF;
5017: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5018: EXCEPTION
5019: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 5017: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

5013: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5014: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5015: raise OKC_API.G_EXCEPTION_ERROR;
5016: END IF;
5017: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5018: EXCEPTION
5019: WHEN OKC_API.G_EXCEPTION_ERROR THEN
5020: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5021: (l_api_name,

Line 5019: WHEN OKC_API.G_EXCEPTION_ERROR THEN

5015: raise OKC_API.G_EXCEPTION_ERROR;
5016: END IF;
5017: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5018: EXCEPTION
5019: WHEN OKC_API.G_EXCEPTION_ERROR THEN
5020: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5021: (l_api_name,
5022: G_PKG_NAME,
5023: 'OKC_API.G_RET_STS_ERROR',

Line 5020: x_return_status := OKC_API.HANDLE_EXCEPTIONS

5016: END IF;
5017: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5018: EXCEPTION
5019: WHEN OKC_API.G_EXCEPTION_ERROR THEN
5020: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5021: (l_api_name,
5022: G_PKG_NAME,
5023: 'OKC_API.G_RET_STS_ERROR',
5024: x_msg_count,

Line 5023: 'OKC_API.G_RET_STS_ERROR',

5019: WHEN OKC_API.G_EXCEPTION_ERROR THEN
5020: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5021: (l_api_name,
5022: G_PKG_NAME,
5023: 'OKC_API.G_RET_STS_ERROR',
5024: x_msg_count,
5025: x_msg_data,
5026: '_PUB');
5027: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 5027: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

5023: 'OKC_API.G_RET_STS_ERROR',
5024: x_msg_count,
5025: x_msg_data,
5026: '_PUB');
5027: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
5028: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5029: (l_api_name,
5030: G_PKG_NAME,
5031: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 5028: x_return_status := OKC_API.HANDLE_EXCEPTIONS

5024: x_msg_count,
5025: x_msg_data,
5026: '_PUB');
5027: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
5028: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5029: (l_api_name,
5030: G_PKG_NAME,
5031: 'OKC_API.G_RET_STS_UNEXP_ERROR',
5032: x_msg_count,

Line 5031: 'OKC_API.G_RET_STS_UNEXP_ERROR',

5027: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
5028: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5029: (l_api_name,
5030: G_PKG_NAME,
5031: 'OKC_API.G_RET_STS_UNEXP_ERROR',
5032: x_msg_count,
5033: x_msg_data,
5034: '_PUB');
5035: WHEN OTHERS THEN

Line 5036: x_return_status := OKC_API.HANDLE_EXCEPTIONS

5032: x_msg_count,
5033: x_msg_data,
5034: '_PUB');
5035: WHEN OTHERS THEN
5036: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5037: (l_api_name,
5038: G_PKG_NAME,
5039: 'OTHERS',
5040: x_msg_count,

Line 5053: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

5049: x_msg_count OUT NOCOPY NUMBER,
5050: x_msg_data OUT NOCOPY VARCHAR2,
5051: p_cylv_ext_tbl IN cylv_ext_tbl_type) IS
5052: i NUMBER := 0;
5053: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
5054: BEGIN
5055: x_return_status := OKC_API.G_RET_STS_SUCCESS;
5056: IF p_cylv_ext_tbl.COUNT > 0 THEN
5057: i := p_cylv_ext_tbl.FIRST;

Line 5055: x_return_status := OKC_API.G_RET_STS_SUCCESS;

5051: p_cylv_ext_tbl IN cylv_ext_tbl_type) IS
5052: i NUMBER := 0;
5053: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
5054: BEGIN
5055: x_return_status := OKC_API.G_RET_STS_SUCCESS;
5056: IF p_cylv_ext_tbl.COUNT > 0 THEN
5057: i := p_cylv_ext_tbl.FIRST;
5058: LOOP
5059: DELETE_CYCLE(

Line 5066: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

5062: l_return_status,
5063: x_msg_count,
5064: x_msg_data,
5065: p_cylv_ext_tbl(i));
5066: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
5067: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5068: x_return_status := l_return_status;
5069: raise G_EXCEPTION_HALT_VALIDATION;
5070: ELSE

Line 5067: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5063: x_msg_count,
5064: x_msg_data,
5065: p_cylv_ext_tbl(i));
5066: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
5067: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5068: x_return_status := l_return_status;
5069: raise G_EXCEPTION_HALT_VALIDATION;
5070: ELSE
5071: x_return_status := l_return_status;

Line 5082: OKC_API.set_message(p_app_name => g_app_name,

5078: EXCEPTION
5079: WHEN G_EXCEPTION_HALT_VALIDATION THEN
5080: NULL;
5081: WHEN OTHERS THEN
5082: OKC_API.set_message(p_app_name => g_app_name,
5083: p_msg_name => g_unexpected_error,
5084: p_token1 => g_sqlcode_token,
5085: p_token1_value => sqlcode,
5086: p_token2 => g_sqlerrm_token,

Line 5088: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

5084: p_token1 => g_sqlcode_token,
5085: p_token1_value => sqlcode,
5086: p_token2 => g_sqlerrm_token,
5087: p_token2_value => sqlerrm);
5088: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
5089: END DELETE_CYCLE;
5090:
5091: PROCEDURE LOCK_CYCLE(
5092: p_api_version IN NUMBER,

Line 5116: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

5112: x_msg_count OUT NOCOPY NUMBER,
5113: x_msg_data OUT NOCOPY VARCHAR2,
5114: p_cylv_ext_tbl IN cylv_ext_tbl_type) IS
5115: i NUMBER := 0;
5116: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
5117: BEGIN
5118: x_return_status := OKC_API.G_RET_STS_SUCCESS;
5119: IF p_cylv_ext_tbl.COUNT > 0 THEN
5120: i := p_cylv_ext_tbl.FIRST;

Line 5118: x_return_status := OKC_API.G_RET_STS_SUCCESS;

5114: p_cylv_ext_tbl IN cylv_ext_tbl_type) IS
5115: i NUMBER := 0;
5116: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
5117: BEGIN
5118: x_return_status := OKC_API.G_RET_STS_SUCCESS;
5119: IF p_cylv_ext_tbl.COUNT > 0 THEN
5120: i := p_cylv_ext_tbl.FIRST;
5121: LOOP
5122: LOCK_CYCLE(

Line 5129: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

5125: l_return_status,
5126: x_msg_count,
5127: x_msg_data,
5128: p_cylv_ext_tbl(i));
5129: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
5130: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5131: x_return_status := l_return_status;
5132: raise G_EXCEPTION_HALT_VALIDATION;
5133: ELSE

Line 5130: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5126: x_msg_count,
5127: x_msg_data,
5128: p_cylv_ext_tbl(i));
5129: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
5130: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5131: x_return_status := l_return_status;
5132: raise G_EXCEPTION_HALT_VALIDATION;
5133: ELSE
5134: x_return_status := l_return_status;

Line 5145: OKC_API.set_message(p_app_name => g_app_name,

5141: EXCEPTION
5142: WHEN G_EXCEPTION_HALT_VALIDATION THEN
5143: NULL;
5144: WHEN OTHERS THEN
5145: OKC_API.set_message(p_app_name => g_app_name,
5146: p_msg_name => g_unexpected_error,
5147: p_token1 => g_sqlcode_token,
5148: p_token1_value => sqlcode,
5149: p_token2 => g_sqlerrm_token,

Line 5151: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

5147: p_token1 => g_sqlcode_token,
5148: p_token1_value => sqlcode,
5149: p_token2 => g_sqlerrm_token,
5150: p_token2_value => sqlerrm);
5151: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
5152: END LOCK_CYCLE;
5153:
5154: PROCEDURE VALID_CYCLE(
5155: p_api_version IN NUMBER,

Line 5179: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

5175: x_msg_count OUT NOCOPY NUMBER,
5176: x_msg_data OUT NOCOPY VARCHAR2,
5177: p_cylv_ext_tbl IN cylv_ext_tbl_type) IS
5178: i NUMBER := 0;
5179: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
5180: BEGIN
5181: x_return_status := OKC_API.G_RET_STS_SUCCESS;
5182: IF p_cylv_ext_tbl.COUNT > 0 THEN
5183: i := p_cylv_ext_tbl.FIRST;

Line 5181: x_return_status := OKC_API.G_RET_STS_SUCCESS;

5177: p_cylv_ext_tbl IN cylv_ext_tbl_type) IS
5178: i NUMBER := 0;
5179: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
5180: BEGIN
5181: x_return_status := OKC_API.G_RET_STS_SUCCESS;
5182: IF p_cylv_ext_tbl.COUNT > 0 THEN
5183: i := p_cylv_ext_tbl.FIRST;
5184: LOOP
5185: VALID_CYCLE(

Line 5192: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

5188: l_return_status,
5189: x_msg_count,
5190: x_msg_data,
5191: p_cylv_ext_tbl(i));
5192: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
5193: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5194: x_return_status := l_return_status;
5195: raise G_EXCEPTION_HALT_VALIDATION;
5196: ELSE

Line 5193: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5189: x_msg_count,
5190: x_msg_data,
5191: p_cylv_ext_tbl(i));
5192: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
5193: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5194: x_return_status := l_return_status;
5195: raise G_EXCEPTION_HALT_VALIDATION;
5196: ELSE
5197: x_return_status := l_return_status;

Line 5208: OKC_API.set_message(p_app_name => g_app_name,

5204: EXCEPTION
5205: WHEN G_EXCEPTION_HALT_VALIDATION THEN
5206: NULL;
5207: WHEN OTHERS THEN
5208: OKC_API.set_message(p_app_name => g_app_name,
5209: p_msg_name => g_unexpected_error,
5210: p_token1 => g_sqlcode_token,
5211: p_token1_value => sqlcode,
5212: p_token2 => g_sqlerrm_token,

Line 5214: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

5210: p_token1 => g_sqlcode_token,
5211: p_token1_value => sqlcode,
5212: p_token2 => g_sqlerrm_token,
5213: p_token2_value => sqlerrm);
5214: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
5215: END VALID_CYCLE;
5216:
5217: --------------------------------------------------------------------------
5218: ---The following procedures cater to handling of OKC_TIME_SPAN

Line 5280: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

5276: l_api_name CONSTANT VARCHAR2(30) := 'CREATE_SPAN';
5277: l_return_status VARCHAR2(1);
5278: l_spnv_rec spnv_rec_type := p_spnv_rec;
5279: BEGIN
5280: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
5281: p_init_msg_list,
5282: '_PUB',
5283: x_return_status);
5284: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 5284: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5280: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
5281: p_init_msg_list,
5282: '_PUB',
5283: x_return_status);
5284: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5285: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5286: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
5287: raise OKC_API.G_EXCEPTION_ERROR;
5288: END IF;

Line 5285: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

5281: p_init_msg_list,
5282: '_PUB',
5283: x_return_status);
5284: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5285: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5286: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
5287: raise OKC_API.G_EXCEPTION_ERROR;
5288: END IF;
5289: -- Call user hook for BEFORE

Line 5286: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

5282: '_PUB',
5283: x_return_status);
5284: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5285: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5286: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
5287: raise OKC_API.G_EXCEPTION_ERROR;
5288: END IF;
5289: -- Call user hook for BEFORE
5290: g_spnv_rec := l_spnv_rec;

Line 5287: raise OKC_API.G_EXCEPTION_ERROR;

5283: x_return_status);
5284: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5285: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5286: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
5287: raise OKC_API.G_EXCEPTION_ERROR;
5288: END IF;
5289: -- Call user hook for BEFORE
5290: g_spnv_rec := l_spnv_rec;
5291: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 5292: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5288: END IF;
5289: -- Call user hook for BEFORE
5290: g_spnv_rec := l_spnv_rec;
5291: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
5292: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5293: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5294: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5295: raise OKC_API.G_EXCEPTION_ERROR;
5296: END IF;

Line 5293: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

5289: -- Call user hook for BEFORE
5290: g_spnv_rec := l_spnv_rec;
5291: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
5292: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5293: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5294: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5295: raise OKC_API.G_EXCEPTION_ERROR;
5296: END IF;
5297: l_spnv_rec := migrate_spnv(l_spnv_rec, g_spnv_rec);

Line 5294: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

5290: g_spnv_rec := l_spnv_rec;
5291: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
5292: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5293: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5294: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5295: raise OKC_API.G_EXCEPTION_ERROR;
5296: END IF;
5297: l_spnv_rec := migrate_spnv(l_spnv_rec, g_spnv_rec);
5298: OKC_TIME_PVT.CREATE_SPAN(

Line 5295: raise OKC_API.G_EXCEPTION_ERROR;

5291: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
5292: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5293: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5294: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5295: raise OKC_API.G_EXCEPTION_ERROR;
5296: END IF;
5297: l_spnv_rec := migrate_spnv(l_spnv_rec, g_spnv_rec);
5298: OKC_TIME_PVT.CREATE_SPAN(
5299: p_api_version,

Line 5306: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5302: x_msg_count,
5303: x_msg_data,
5304: p_spnv_rec,
5305: x_spnv_rec);
5306: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5307: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5308: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5309: raise OKC_API.G_EXCEPTION_ERROR;
5310: END IF;

Line 5307: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

5303: x_msg_data,
5304: p_spnv_rec,
5305: x_spnv_rec);
5306: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5307: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5308: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5309: raise OKC_API.G_EXCEPTION_ERROR;
5310: END IF;
5311:

Line 5308: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

5304: p_spnv_rec,
5305: x_spnv_rec);
5306: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5307: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5308: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5309: raise OKC_API.G_EXCEPTION_ERROR;
5310: END IF;
5311:
5312: -- Call user hook for AFTER

Line 5309: raise OKC_API.G_EXCEPTION_ERROR;

5305: x_spnv_rec);
5306: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5307: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5308: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5309: raise OKC_API.G_EXCEPTION_ERROR;
5310: END IF;
5311:
5312: -- Call user hook for AFTER
5313: g_spnv_rec := x_spnv_rec;

Line 5315: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5311:
5312: -- Call user hook for AFTER
5313: g_spnv_rec := x_spnv_rec;
5314: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
5315: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5316: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5317: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5318: raise OKC_API.G_EXCEPTION_ERROR;
5319: END IF;

Line 5316: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

5312: -- Call user hook for AFTER
5313: g_spnv_rec := x_spnv_rec;
5314: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
5315: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5316: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5317: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5318: raise OKC_API.G_EXCEPTION_ERROR;
5319: END IF;
5320: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 5317: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

5313: g_spnv_rec := x_spnv_rec;
5314: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
5315: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5316: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5317: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5318: raise OKC_API.G_EXCEPTION_ERROR;
5319: END IF;
5320: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5321: EXCEPTION

Line 5318: raise OKC_API.G_EXCEPTION_ERROR;

5314: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
5315: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5316: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5317: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5318: raise OKC_API.G_EXCEPTION_ERROR;
5319: END IF;
5320: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5321: EXCEPTION
5322: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 5320: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

5316: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5317: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5318: raise OKC_API.G_EXCEPTION_ERROR;
5319: END IF;
5320: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5321: EXCEPTION
5322: WHEN OKC_API.G_EXCEPTION_ERROR THEN
5323: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5324: (l_api_name,

Line 5322: WHEN OKC_API.G_EXCEPTION_ERROR THEN

5318: raise OKC_API.G_EXCEPTION_ERROR;
5319: END IF;
5320: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5321: EXCEPTION
5322: WHEN OKC_API.G_EXCEPTION_ERROR THEN
5323: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5324: (l_api_name,
5325: G_PKG_NAME,
5326: 'OKC_API.G_RET_STS_ERROR',

Line 5323: x_return_status := OKC_API.HANDLE_EXCEPTIONS

5319: END IF;
5320: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5321: EXCEPTION
5322: WHEN OKC_API.G_EXCEPTION_ERROR THEN
5323: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5324: (l_api_name,
5325: G_PKG_NAME,
5326: 'OKC_API.G_RET_STS_ERROR',
5327: x_msg_count,

Line 5326: 'OKC_API.G_RET_STS_ERROR',

5322: WHEN OKC_API.G_EXCEPTION_ERROR THEN
5323: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5324: (l_api_name,
5325: G_PKG_NAME,
5326: 'OKC_API.G_RET_STS_ERROR',
5327: x_msg_count,
5328: x_msg_data,
5329: '_PUB');
5330: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 5330: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

5326: 'OKC_API.G_RET_STS_ERROR',
5327: x_msg_count,
5328: x_msg_data,
5329: '_PUB');
5330: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
5331: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5332: (l_api_name,
5333: G_PKG_NAME,
5334: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 5331: x_return_status := OKC_API.HANDLE_EXCEPTIONS

5327: x_msg_count,
5328: x_msg_data,
5329: '_PUB');
5330: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
5331: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5332: (l_api_name,
5333: G_PKG_NAME,
5334: 'OKC_API.G_RET_STS_UNEXP_ERROR',
5335: x_msg_count,

Line 5334: 'OKC_API.G_RET_STS_UNEXP_ERROR',

5330: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
5331: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5332: (l_api_name,
5333: G_PKG_NAME,
5334: 'OKC_API.G_RET_STS_UNEXP_ERROR',
5335: x_msg_count,
5336: x_msg_data,
5337: '_PUB');
5338: WHEN OTHERS THEN

Line 5339: x_return_status := OKC_API.HANDLE_EXCEPTIONS

5335: x_msg_count,
5336: x_msg_data,
5337: '_PUB');
5338: WHEN OTHERS THEN
5339: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5340: (l_api_name,
5341: G_PKG_NAME,
5342: 'OTHERS',
5343: x_msg_count,

Line 5357: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

5353: x_msg_data OUT NOCOPY VARCHAR2,
5354: p_spnv_tbl IN spnv_tbl_type,
5355: x_spnv_tbl OUT NOCOPY spnv_tbl_type) IS
5356: i NUMBER := 0;
5357: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
5358: BEGIN
5359: x_return_status := OKC_API.G_RET_STS_SUCCESS;
5360: IF p_spnv_tbl.COUNT > 0 THEN
5361: i := p_spnv_tbl.FIRST;

Line 5359: x_return_status := OKC_API.G_RET_STS_SUCCESS;

5355: x_spnv_tbl OUT NOCOPY spnv_tbl_type) IS
5356: i NUMBER := 0;
5357: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
5358: BEGIN
5359: x_return_status := OKC_API.G_RET_STS_SUCCESS;
5360: IF p_spnv_tbl.COUNT > 0 THEN
5361: i := p_spnv_tbl.FIRST;
5362: LOOP
5363: CREATE_SPAN(

Line 5371: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

5367: x_msg_count,
5368: x_msg_data,
5369: p_spnv_tbl(i),
5370: x_spnv_tbl(i));
5371: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
5372: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5373: x_return_status := l_return_status;
5374: raise G_EXCEPTION_HALT_VALIDATION;
5375: ELSE

Line 5372: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5368: x_msg_data,
5369: p_spnv_tbl(i),
5370: x_spnv_tbl(i));
5371: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
5372: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5373: x_return_status := l_return_status;
5374: raise G_EXCEPTION_HALT_VALIDATION;
5375: ELSE
5376: x_return_status := l_return_status;

Line 5387: OKC_API.set_message(p_app_name => g_app_name,

5383: EXCEPTION
5384: WHEN G_EXCEPTION_HALT_VALIDATION THEN
5385: NULL;
5386: WHEN OTHERS THEN
5387: OKC_API.set_message(p_app_name => g_app_name,
5388: p_msg_name => g_unexpected_error,
5389: p_token1 => g_sqlcode_token,
5390: p_token1_value => sqlcode,
5391: p_token2 => g_sqlerrm_token,

Line 5393: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

5389: p_token1 => g_sqlcode_token,
5390: p_token1_value => sqlcode,
5391: p_token2 => g_sqlerrm_token,
5392: p_token2_value => sqlerrm);
5393: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
5394: END CREATE_SPAN;
5395:
5396: PROCEDURE UPDATE_SPAN(
5397: p_api_version IN NUMBER,

Line 5408: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

5404: l_api_name CONSTANT VARCHAR2(30) := 'UPDATE_SPAN';
5405: l_return_status VARCHAR2(1);
5406: l_spnv_rec spnv_rec_type := p_spnv_rec;
5407: BEGIN
5408: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
5409: p_init_msg_list,
5410: '_PUB',
5411: x_return_status);
5412: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 5412: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5408: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
5409: p_init_msg_list,
5410: '_PUB',
5411: x_return_status);
5412: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5413: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5414: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
5415: raise OKC_API.G_EXCEPTION_ERROR;
5416: END IF;

Line 5413: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

5409: p_init_msg_list,
5410: '_PUB',
5411: x_return_status);
5412: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5413: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5414: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
5415: raise OKC_API.G_EXCEPTION_ERROR;
5416: END IF;
5417: -- Call user hook for BEFORE

Line 5414: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

5410: '_PUB',
5411: x_return_status);
5412: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5413: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5414: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
5415: raise OKC_API.G_EXCEPTION_ERROR;
5416: END IF;
5417: -- Call user hook for BEFORE
5418: g_spnv_rec := l_spnv_rec;

Line 5415: raise OKC_API.G_EXCEPTION_ERROR;

5411: x_return_status);
5412: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5413: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5414: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
5415: raise OKC_API.G_EXCEPTION_ERROR;
5416: END IF;
5417: -- Call user hook for BEFORE
5418: g_spnv_rec := l_spnv_rec;
5419: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 5420: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5416: END IF;
5417: -- Call user hook for BEFORE
5418: g_spnv_rec := l_spnv_rec;
5419: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
5420: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5421: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5422: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5423: raise OKC_API.G_EXCEPTION_ERROR;
5424: END IF;

Line 5421: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

5417: -- Call user hook for BEFORE
5418: g_spnv_rec := l_spnv_rec;
5419: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
5420: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5421: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5422: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5423: raise OKC_API.G_EXCEPTION_ERROR;
5424: END IF;
5425: l_spnv_rec := migrate_spnv(l_spnv_rec, g_spnv_rec);

Line 5422: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

5418: g_spnv_rec := l_spnv_rec;
5419: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
5420: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5421: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5422: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5423: raise OKC_API.G_EXCEPTION_ERROR;
5424: END IF;
5425: l_spnv_rec := migrate_spnv(l_spnv_rec, g_spnv_rec);
5426: OKC_TIME_PVT.UPDATE_SPAN(

Line 5423: raise OKC_API.G_EXCEPTION_ERROR;

5419: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
5420: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5421: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5422: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5423: raise OKC_API.G_EXCEPTION_ERROR;
5424: END IF;
5425: l_spnv_rec := migrate_spnv(l_spnv_rec, g_spnv_rec);
5426: OKC_TIME_PVT.UPDATE_SPAN(
5427: p_api_version,

Line 5434: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5430: x_msg_count,
5431: x_msg_data,
5432: p_spnv_rec,
5433: x_spnv_rec);
5434: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5435: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5436: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5437: raise OKC_API.G_EXCEPTION_ERROR;
5438: END IF;

Line 5435: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

5431: x_msg_data,
5432: p_spnv_rec,
5433: x_spnv_rec);
5434: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5435: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5436: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5437: raise OKC_API.G_EXCEPTION_ERROR;
5438: END IF;
5439:

Line 5436: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

5432: p_spnv_rec,
5433: x_spnv_rec);
5434: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5435: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5436: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5437: raise OKC_API.G_EXCEPTION_ERROR;
5438: END IF;
5439:
5440: -- Call user hook for AFTER

Line 5437: raise OKC_API.G_EXCEPTION_ERROR;

5433: x_spnv_rec);
5434: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5435: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5436: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5437: raise OKC_API.G_EXCEPTION_ERROR;
5438: END IF;
5439:
5440: -- Call user hook for AFTER
5441: g_spnv_rec := x_spnv_rec;

Line 5443: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5439:
5440: -- Call user hook for AFTER
5441: g_spnv_rec := x_spnv_rec;
5442: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
5443: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5444: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5445: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5446: raise OKC_API.G_EXCEPTION_ERROR;
5447: END IF;

Line 5444: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

5440: -- Call user hook for AFTER
5441: g_spnv_rec := x_spnv_rec;
5442: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
5443: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5444: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5445: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5446: raise OKC_API.G_EXCEPTION_ERROR;
5447: END IF;
5448: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 5445: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

5441: g_spnv_rec := x_spnv_rec;
5442: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
5443: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5444: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5445: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5446: raise OKC_API.G_EXCEPTION_ERROR;
5447: END IF;
5448: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5449: EXCEPTION

Line 5446: raise OKC_API.G_EXCEPTION_ERROR;

5442: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
5443: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5444: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5445: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5446: raise OKC_API.G_EXCEPTION_ERROR;
5447: END IF;
5448: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5449: EXCEPTION
5450: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 5448: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

5444: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5445: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5446: raise OKC_API.G_EXCEPTION_ERROR;
5447: END IF;
5448: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5449: EXCEPTION
5450: WHEN OKC_API.G_EXCEPTION_ERROR THEN
5451: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5452: (l_api_name,

Line 5450: WHEN OKC_API.G_EXCEPTION_ERROR THEN

5446: raise OKC_API.G_EXCEPTION_ERROR;
5447: END IF;
5448: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5449: EXCEPTION
5450: WHEN OKC_API.G_EXCEPTION_ERROR THEN
5451: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5452: (l_api_name,
5453: G_PKG_NAME,
5454: 'OKC_API.G_RET_STS_ERROR',

Line 5451: x_return_status := OKC_API.HANDLE_EXCEPTIONS

5447: END IF;
5448: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5449: EXCEPTION
5450: WHEN OKC_API.G_EXCEPTION_ERROR THEN
5451: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5452: (l_api_name,
5453: G_PKG_NAME,
5454: 'OKC_API.G_RET_STS_ERROR',
5455: x_msg_count,

Line 5454: 'OKC_API.G_RET_STS_ERROR',

5450: WHEN OKC_API.G_EXCEPTION_ERROR THEN
5451: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5452: (l_api_name,
5453: G_PKG_NAME,
5454: 'OKC_API.G_RET_STS_ERROR',
5455: x_msg_count,
5456: x_msg_data,
5457: '_PUB');
5458: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 5458: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

5454: 'OKC_API.G_RET_STS_ERROR',
5455: x_msg_count,
5456: x_msg_data,
5457: '_PUB');
5458: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
5459: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5460: (l_api_name,
5461: G_PKG_NAME,
5462: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 5459: x_return_status := OKC_API.HANDLE_EXCEPTIONS

5455: x_msg_count,
5456: x_msg_data,
5457: '_PUB');
5458: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
5459: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5460: (l_api_name,
5461: G_PKG_NAME,
5462: 'OKC_API.G_RET_STS_UNEXP_ERROR',
5463: x_msg_count,

Line 5462: 'OKC_API.G_RET_STS_UNEXP_ERROR',

5458: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
5459: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5460: (l_api_name,
5461: G_PKG_NAME,
5462: 'OKC_API.G_RET_STS_UNEXP_ERROR',
5463: x_msg_count,
5464: x_msg_data,
5465: '_PUB');
5466: WHEN OTHERS THEN

Line 5467: x_return_status := OKC_API.HANDLE_EXCEPTIONS

5463: x_msg_count,
5464: x_msg_data,
5465: '_PUB');
5466: WHEN OTHERS THEN
5467: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5468: (l_api_name,
5469: G_PKG_NAME,
5470: 'OTHERS',
5471: x_msg_count,

Line 5485: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

5481: x_msg_data OUT NOCOPY VARCHAR2,
5482: p_spnv_tbl IN spnv_tbl_type,
5483: x_spnv_tbl OUT NOCOPY spnv_tbl_type) IS
5484: i NUMBER := 0;
5485: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
5486: BEGIN
5487: x_return_status := OKC_API.G_RET_STS_SUCCESS;
5488: IF p_spnv_tbl.COUNT > 0 THEN
5489: i := p_spnv_tbl.FIRST;

Line 5487: x_return_status := OKC_API.G_RET_STS_SUCCESS;

5483: x_spnv_tbl OUT NOCOPY spnv_tbl_type) IS
5484: i NUMBER := 0;
5485: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
5486: BEGIN
5487: x_return_status := OKC_API.G_RET_STS_SUCCESS;
5488: IF p_spnv_tbl.COUNT > 0 THEN
5489: i := p_spnv_tbl.FIRST;
5490: LOOP
5491: UPDATE_SPAN(

Line 5499: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

5495: x_msg_count,
5496: x_msg_data,
5497: p_spnv_tbl(i),
5498: x_spnv_tbl(i));
5499: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
5500: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5501: x_return_status := l_return_status;
5502: raise G_EXCEPTION_HALT_VALIDATION;
5503: ELSE

Line 5500: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5496: x_msg_data,
5497: p_spnv_tbl(i),
5498: x_spnv_tbl(i));
5499: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
5500: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5501: x_return_status := l_return_status;
5502: raise G_EXCEPTION_HALT_VALIDATION;
5503: ELSE
5504: x_return_status := l_return_status;

Line 5515: OKC_API.set_message(p_app_name => g_app_name,

5511: EXCEPTION
5512: WHEN G_EXCEPTION_HALT_VALIDATION THEN
5513: NULL;
5514: WHEN OTHERS THEN
5515: OKC_API.set_message(p_app_name => g_app_name,
5516: p_msg_name => g_unexpected_error,
5517: p_token1 => g_sqlcode_token,
5518: p_token1_value => sqlcode,
5519: p_token2 => g_sqlerrm_token,

Line 5521: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

5517: p_token1 => g_sqlcode_token,
5518: p_token1_value => sqlcode,
5519: p_token2 => g_sqlerrm_token,
5520: p_token2_value => sqlerrm);
5521: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
5522: END UPDATE_SPAN;
5523:
5524: PROCEDURE DELETE_SPAN(
5525: p_api_version IN NUMBER,

Line 5535: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

5531: l_api_name CONSTANT VARCHAR2(30) := 'DELETE_SPAN';
5532: l_return_status VARCHAR2(1);
5533: l_spnv_rec spnv_rec_type := p_spnv_rec;
5534: BEGIN
5535: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
5536: p_init_msg_list,
5537: '_PUB',
5538: x_return_status);
5539: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 5539: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5535: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
5536: p_init_msg_list,
5537: '_PUB',
5538: x_return_status);
5539: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5540: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5541: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
5542: raise OKC_API.G_EXCEPTION_ERROR;
5543: END IF;

Line 5540: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

5536: p_init_msg_list,
5537: '_PUB',
5538: x_return_status);
5539: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5540: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5541: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
5542: raise OKC_API.G_EXCEPTION_ERROR;
5543: END IF;
5544: -- Call user hook for BEFORE

Line 5541: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

5537: '_PUB',
5538: x_return_status);
5539: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5540: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5541: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
5542: raise OKC_API.G_EXCEPTION_ERROR;
5543: END IF;
5544: -- Call user hook for BEFORE
5545: g_spnv_rec := l_spnv_rec;

Line 5542: raise OKC_API.G_EXCEPTION_ERROR;

5538: x_return_status);
5539: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5540: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5541: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
5542: raise OKC_API.G_EXCEPTION_ERROR;
5543: END IF;
5544: -- Call user hook for BEFORE
5545: g_spnv_rec := l_spnv_rec;
5546: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 5547: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5543: END IF;
5544: -- Call user hook for BEFORE
5545: g_spnv_rec := l_spnv_rec;
5546: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
5547: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5548: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5549: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5550: raise OKC_API.G_EXCEPTION_ERROR;
5551: END IF;

Line 5548: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

5544: -- Call user hook for BEFORE
5545: g_spnv_rec := l_spnv_rec;
5546: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
5547: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5548: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5549: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5550: raise OKC_API.G_EXCEPTION_ERROR;
5551: END IF;
5552: OKC_TIME_PVT.DELETE_SPAN(

Line 5549: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

5545: g_spnv_rec := l_spnv_rec;
5546: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
5547: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5548: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5549: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5550: raise OKC_API.G_EXCEPTION_ERROR;
5551: END IF;
5552: OKC_TIME_PVT.DELETE_SPAN(
5553: p_api_version,

Line 5550: raise OKC_API.G_EXCEPTION_ERROR;

5546: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
5547: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5548: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5549: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5550: raise OKC_API.G_EXCEPTION_ERROR;
5551: END IF;
5552: OKC_TIME_PVT.DELETE_SPAN(
5553: p_api_version,
5554: p_init_msg_list,

Line 5559: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5555: x_return_status,
5556: x_msg_count,
5557: x_msg_data,
5558: p_spnv_rec);
5559: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5560: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5561: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5562: raise OKC_API.G_EXCEPTION_ERROR;
5563: END IF;

Line 5560: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

5556: x_msg_count,
5557: x_msg_data,
5558: p_spnv_rec);
5559: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5560: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5561: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5562: raise OKC_API.G_EXCEPTION_ERROR;
5563: END IF;
5564:

Line 5561: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

5557: x_msg_data,
5558: p_spnv_rec);
5559: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5560: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5561: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5562: raise OKC_API.G_EXCEPTION_ERROR;
5563: END IF;
5564:
5565: -- Call user hook for AFTER

Line 5562: raise OKC_API.G_EXCEPTION_ERROR;

5558: p_spnv_rec);
5559: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5560: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5561: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5562: raise OKC_API.G_EXCEPTION_ERROR;
5563: END IF;
5564:
5565: -- Call user hook for AFTER
5566: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');

Line 5567: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5563: END IF;
5564:
5565: -- Call user hook for AFTER
5566: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
5567: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5568: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5569: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5570: raise OKC_API.G_EXCEPTION_ERROR;
5571: END IF;

Line 5568: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

5564:
5565: -- Call user hook for AFTER
5566: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
5567: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5568: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5569: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5570: raise OKC_API.G_EXCEPTION_ERROR;
5571: END IF;
5572: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 5569: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

5565: -- Call user hook for AFTER
5566: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
5567: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5568: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5569: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5570: raise OKC_API.G_EXCEPTION_ERROR;
5571: END IF;
5572: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5573: EXCEPTION

Line 5570: raise OKC_API.G_EXCEPTION_ERROR;

5566: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
5567: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5568: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5569: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5570: raise OKC_API.G_EXCEPTION_ERROR;
5571: END IF;
5572: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5573: EXCEPTION
5574: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 5572: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

5568: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5569: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5570: raise OKC_API.G_EXCEPTION_ERROR;
5571: END IF;
5572: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5573: EXCEPTION
5574: WHEN OKC_API.G_EXCEPTION_ERROR THEN
5575: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5576: (l_api_name,

Line 5574: WHEN OKC_API.G_EXCEPTION_ERROR THEN

5570: raise OKC_API.G_EXCEPTION_ERROR;
5571: END IF;
5572: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5573: EXCEPTION
5574: WHEN OKC_API.G_EXCEPTION_ERROR THEN
5575: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5576: (l_api_name,
5577: G_PKG_NAME,
5578: 'OKC_API.G_RET_STS_ERROR',

Line 5575: x_return_status := OKC_API.HANDLE_EXCEPTIONS

5571: END IF;
5572: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5573: EXCEPTION
5574: WHEN OKC_API.G_EXCEPTION_ERROR THEN
5575: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5576: (l_api_name,
5577: G_PKG_NAME,
5578: 'OKC_API.G_RET_STS_ERROR',
5579: x_msg_count,

Line 5578: 'OKC_API.G_RET_STS_ERROR',

5574: WHEN OKC_API.G_EXCEPTION_ERROR THEN
5575: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5576: (l_api_name,
5577: G_PKG_NAME,
5578: 'OKC_API.G_RET_STS_ERROR',
5579: x_msg_count,
5580: x_msg_data,
5581: '_PUB');
5582: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 5582: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

5578: 'OKC_API.G_RET_STS_ERROR',
5579: x_msg_count,
5580: x_msg_data,
5581: '_PUB');
5582: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
5583: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5584: (l_api_name,
5585: G_PKG_NAME,
5586: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 5583: x_return_status := OKC_API.HANDLE_EXCEPTIONS

5579: x_msg_count,
5580: x_msg_data,
5581: '_PUB');
5582: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
5583: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5584: (l_api_name,
5585: G_PKG_NAME,
5586: 'OKC_API.G_RET_STS_UNEXP_ERROR',
5587: x_msg_count,

Line 5586: 'OKC_API.G_RET_STS_UNEXP_ERROR',

5582: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
5583: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5584: (l_api_name,
5585: G_PKG_NAME,
5586: 'OKC_API.G_RET_STS_UNEXP_ERROR',
5587: x_msg_count,
5588: x_msg_data,
5589: '_PUB');
5590: WHEN OTHERS THEN

Line 5591: x_return_status := OKC_API.HANDLE_EXCEPTIONS

5587: x_msg_count,
5588: x_msg_data,
5589: '_PUB');
5590: WHEN OTHERS THEN
5591: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5592: (l_api_name,
5593: G_PKG_NAME,
5594: 'OTHERS',
5595: x_msg_count,

Line 5608: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

5604: x_msg_count OUT NOCOPY NUMBER,
5605: x_msg_data OUT NOCOPY VARCHAR2,
5606: p_spnv_tbl IN spnv_tbl_type) IS
5607: i NUMBER := 0;
5608: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
5609: BEGIN
5610: x_return_status := OKC_API.G_RET_STS_SUCCESS;
5611: IF p_spnv_tbl.COUNT > 0 THEN
5612: i := p_spnv_tbl.FIRST;

Line 5610: x_return_status := OKC_API.G_RET_STS_SUCCESS;

5606: p_spnv_tbl IN spnv_tbl_type) IS
5607: i NUMBER := 0;
5608: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
5609: BEGIN
5610: x_return_status := OKC_API.G_RET_STS_SUCCESS;
5611: IF p_spnv_tbl.COUNT > 0 THEN
5612: i := p_spnv_tbl.FIRST;
5613: LOOP
5614: DELETE_SPAN(

Line 5621: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

5617: l_return_status,
5618: x_msg_count,
5619: x_msg_data,
5620: p_spnv_tbl(i));
5621: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
5622: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5623: x_return_status := l_return_status;
5624: raise G_EXCEPTION_HALT_VALIDATION;
5625: ELSE

Line 5622: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5618: x_msg_count,
5619: x_msg_data,
5620: p_spnv_tbl(i));
5621: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
5622: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5623: x_return_status := l_return_status;
5624: raise G_EXCEPTION_HALT_VALIDATION;
5625: ELSE
5626: x_return_status := l_return_status;

Line 5637: OKC_API.set_message(p_app_name => g_app_name,

5633: EXCEPTION
5634: WHEN G_EXCEPTION_HALT_VALIDATION THEN
5635: NULL;
5636: WHEN OTHERS THEN
5637: OKC_API.set_message(p_app_name => g_app_name,
5638: p_msg_name => g_unexpected_error,
5639: p_token1 => g_sqlcode_token,
5640: p_token1_value => sqlcode,
5641: p_token2 => g_sqlerrm_token,

Line 5643: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

5639: p_token1 => g_sqlcode_token,
5640: p_token1_value => sqlcode,
5641: p_token2 => g_sqlerrm_token,
5642: p_token2_value => sqlerrm);
5643: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
5644: END DELETE_SPAN;
5645:
5646: PROCEDURE LOCK_SPAN(
5647: p_api_version IN NUMBER,

Line 5671: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

5667: x_msg_count OUT NOCOPY NUMBER,
5668: x_msg_data OUT NOCOPY VARCHAR2,
5669: p_spnv_tbl IN spnv_tbl_type) IS
5670: i NUMBER := 0;
5671: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
5672: BEGIN
5673: x_return_status := OKC_API.G_RET_STS_SUCCESS;
5674: IF p_spnv_tbl.COUNT > 0 THEN
5675: i := p_spnv_tbl.FIRST;

Line 5673: x_return_status := OKC_API.G_RET_STS_SUCCESS;

5669: p_spnv_tbl IN spnv_tbl_type) IS
5670: i NUMBER := 0;
5671: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
5672: BEGIN
5673: x_return_status := OKC_API.G_RET_STS_SUCCESS;
5674: IF p_spnv_tbl.COUNT > 0 THEN
5675: i := p_spnv_tbl.FIRST;
5676: LOOP
5677: LOCK_SPAN(

Line 5684: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

5680: l_return_status,
5681: x_msg_count,
5682: x_msg_data,
5683: p_spnv_tbl(i));
5684: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
5685: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5686: x_return_status := l_return_status;
5687: raise G_EXCEPTION_HALT_VALIDATION;
5688: ELSE

Line 5685: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5681: x_msg_count,
5682: x_msg_data,
5683: p_spnv_tbl(i));
5684: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
5685: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5686: x_return_status := l_return_status;
5687: raise G_EXCEPTION_HALT_VALIDATION;
5688: ELSE
5689: x_return_status := l_return_status;

Line 5700: OKC_API.set_message(p_app_name => g_app_name,

5696: EXCEPTION
5697: WHEN G_EXCEPTION_HALT_VALIDATION THEN
5698: NULL;
5699: WHEN OTHERS THEN
5700: OKC_API.set_message(p_app_name => g_app_name,
5701: p_msg_name => g_unexpected_error,
5702: p_token1 => g_sqlcode_token,
5703: p_token1_value => sqlcode,
5704: p_token2 => g_sqlerrm_token,

Line 5706: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

5702: p_token1 => g_sqlcode_token,
5703: p_token1_value => sqlcode,
5704: p_token2 => g_sqlerrm_token,
5705: p_token2_value => sqlerrm);
5706: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
5707: END LOCK_SPAN;
5708:
5709: PROCEDURE VALID_SPAN(
5710: p_api_version IN NUMBER,

Line 5734: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

5730: x_msg_count OUT NOCOPY NUMBER,
5731: x_msg_data OUT NOCOPY VARCHAR2,
5732: p_spnv_tbl IN spnv_tbl_type) IS
5733: i NUMBER := 0;
5734: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
5735: BEGIN
5736: x_return_status := OKC_API.G_RET_STS_SUCCESS;
5737: IF p_spnv_tbl.COUNT > 0 THEN
5738: i := p_spnv_tbl.FIRST;

Line 5736: x_return_status := OKC_API.G_RET_STS_SUCCESS;

5732: p_spnv_tbl IN spnv_tbl_type) IS
5733: i NUMBER := 0;
5734: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
5735: BEGIN
5736: x_return_status := OKC_API.G_RET_STS_SUCCESS;
5737: IF p_spnv_tbl.COUNT > 0 THEN
5738: i := p_spnv_tbl.FIRST;
5739: LOOP
5740: VALID_SPAN(

Line 5747: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

5743: l_return_status,
5744: x_msg_count,
5745: x_msg_data,
5746: p_spnv_tbl(i));
5747: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
5748: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5749: x_return_status := l_return_status;
5750: raise G_EXCEPTION_HALT_VALIDATION;
5751: ELSE

Line 5748: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5744: x_msg_count,
5745: x_msg_data,
5746: p_spnv_tbl(i));
5747: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
5748: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5749: x_return_status := l_return_status;
5750: raise G_EXCEPTION_HALT_VALIDATION;
5751: ELSE
5752: x_return_status := l_return_status;

Line 5763: OKC_API.set_message(p_app_name => g_app_name,

5759: EXCEPTION
5760: WHEN G_EXCEPTION_HALT_VALIDATION THEN
5761: NULL;
5762: WHEN OTHERS THEN
5763: OKC_API.set_message(p_app_name => g_app_name,
5764: p_msg_name => g_unexpected_error,
5765: p_token1 => g_sqlcode_token,
5766: p_token1_value => sqlcode,
5767: p_token2 => g_sqlerrm_token,

Line 5769: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

5765: p_token1 => g_sqlcode_token,
5766: p_token1_value => sqlcode,
5767: p_token2 => g_sqlerrm_token,
5768: p_token2_value => sqlerrm);
5769: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
5770: END VALID_SPAN;
5771: --------------------------------------------------------------------------
5772: ---The following procedures cater to handling of OKC_TIME_TIME_CODE_UNITS
5773: --------------------------------------------------------------------------

Line 5851: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

5847: l_api_name CONSTANT VARCHAR2(30) := 'CREATE_TIME_CODE_UNITS';
5848: l_return_status VARCHAR2(1);
5849: l_tcuv_rec tcuv_rec_type := p_tcuv_rec;
5850: BEGIN
5851: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
5852: p_init_msg_list,
5853: '_PUB',
5854: x_return_status);
5855: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 5855: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5851: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
5852: p_init_msg_list,
5853: '_PUB',
5854: x_return_status);
5855: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5856: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5857: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
5858: raise OKC_API.G_EXCEPTION_ERROR;
5859: END IF;

Line 5856: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

5852: p_init_msg_list,
5853: '_PUB',
5854: x_return_status);
5855: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5856: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5857: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
5858: raise OKC_API.G_EXCEPTION_ERROR;
5859: END IF;
5860: -- Call user hook for BEFORE

Line 5857: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

5853: '_PUB',
5854: x_return_status);
5855: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5856: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5857: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
5858: raise OKC_API.G_EXCEPTION_ERROR;
5859: END IF;
5860: -- Call user hook for BEFORE
5861: g_tcuv_rec := l_tcuv_rec;

Line 5858: raise OKC_API.G_EXCEPTION_ERROR;

5854: x_return_status);
5855: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5856: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5857: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
5858: raise OKC_API.G_EXCEPTION_ERROR;
5859: END IF;
5860: -- Call user hook for BEFORE
5861: g_tcuv_rec := l_tcuv_rec;
5862: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 5863: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5859: END IF;
5860: -- Call user hook for BEFORE
5861: g_tcuv_rec := l_tcuv_rec;
5862: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
5863: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5864: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5865: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5866: raise OKC_API.G_EXCEPTION_ERROR;
5867: END IF;

Line 5864: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

5860: -- Call user hook for BEFORE
5861: g_tcuv_rec := l_tcuv_rec;
5862: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
5863: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5864: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5865: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5866: raise OKC_API.G_EXCEPTION_ERROR;
5867: END IF;
5868: l_tcuv_rec := migrate_tcuv(l_tcuv_rec, g_tcuv_rec);

Line 5865: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

5861: g_tcuv_rec := l_tcuv_rec;
5862: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
5863: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5864: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5865: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5866: raise OKC_API.G_EXCEPTION_ERROR;
5867: END IF;
5868: l_tcuv_rec := migrate_tcuv(l_tcuv_rec, g_tcuv_rec);
5869: OKC_TIME_PVT.CREATE_TIME_CODE_UNITS(

Line 5866: raise OKC_API.G_EXCEPTION_ERROR;

5862: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
5863: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5864: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5865: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5866: raise OKC_API.G_EXCEPTION_ERROR;
5867: END IF;
5868: l_tcuv_rec := migrate_tcuv(l_tcuv_rec, g_tcuv_rec);
5869: OKC_TIME_PVT.CREATE_TIME_CODE_UNITS(
5870: p_api_version,

Line 5877: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5873: x_msg_count,
5874: x_msg_data,
5875: p_tcuv_rec,
5876: x_tcuv_rec);
5877: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5878: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5879: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5880: raise OKC_API.G_EXCEPTION_ERROR;
5881: END IF;

Line 5878: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

5874: x_msg_data,
5875: p_tcuv_rec,
5876: x_tcuv_rec);
5877: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5878: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5879: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5880: raise OKC_API.G_EXCEPTION_ERROR;
5881: END IF;
5882:

Line 5879: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

5875: p_tcuv_rec,
5876: x_tcuv_rec);
5877: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5878: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5879: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5880: raise OKC_API.G_EXCEPTION_ERROR;
5881: END IF;
5882:
5883: -- Call user hook for AFTER

Line 5880: raise OKC_API.G_EXCEPTION_ERROR;

5876: x_tcuv_rec);
5877: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5878: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5879: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5880: raise OKC_API.G_EXCEPTION_ERROR;
5881: END IF;
5882:
5883: -- Call user hook for AFTER
5884: g_tcuv_rec := x_tcuv_rec;

Line 5886: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5882:
5883: -- Call user hook for AFTER
5884: g_tcuv_rec := x_tcuv_rec;
5885: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
5886: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5887: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5888: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5889: raise OKC_API.G_EXCEPTION_ERROR;
5890: END IF;

Line 5887: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

5883: -- Call user hook for AFTER
5884: g_tcuv_rec := x_tcuv_rec;
5885: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
5886: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5887: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5888: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5889: raise OKC_API.G_EXCEPTION_ERROR;
5890: END IF;
5891: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 5888: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

5884: g_tcuv_rec := x_tcuv_rec;
5885: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
5886: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5887: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5888: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5889: raise OKC_API.G_EXCEPTION_ERROR;
5890: END IF;
5891: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5892: EXCEPTION

Line 5889: raise OKC_API.G_EXCEPTION_ERROR;

5885: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
5886: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5887: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5888: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5889: raise OKC_API.G_EXCEPTION_ERROR;
5890: END IF;
5891: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5892: EXCEPTION
5893: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 5891: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

5887: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5888: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5889: raise OKC_API.G_EXCEPTION_ERROR;
5890: END IF;
5891: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5892: EXCEPTION
5893: WHEN OKC_API.G_EXCEPTION_ERROR THEN
5894: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5895: (l_api_name,

Line 5893: WHEN OKC_API.G_EXCEPTION_ERROR THEN

5889: raise OKC_API.G_EXCEPTION_ERROR;
5890: END IF;
5891: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5892: EXCEPTION
5893: WHEN OKC_API.G_EXCEPTION_ERROR THEN
5894: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5895: (l_api_name,
5896: G_PKG_NAME,
5897: 'OKC_API.G_RET_STS_ERROR',

Line 5894: x_return_status := OKC_API.HANDLE_EXCEPTIONS

5890: END IF;
5891: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
5892: EXCEPTION
5893: WHEN OKC_API.G_EXCEPTION_ERROR THEN
5894: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5895: (l_api_name,
5896: G_PKG_NAME,
5897: 'OKC_API.G_RET_STS_ERROR',
5898: x_msg_count,

Line 5897: 'OKC_API.G_RET_STS_ERROR',

5893: WHEN OKC_API.G_EXCEPTION_ERROR THEN
5894: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5895: (l_api_name,
5896: G_PKG_NAME,
5897: 'OKC_API.G_RET_STS_ERROR',
5898: x_msg_count,
5899: x_msg_data,
5900: '_PUB');
5901: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 5901: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

5897: 'OKC_API.G_RET_STS_ERROR',
5898: x_msg_count,
5899: x_msg_data,
5900: '_PUB');
5901: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
5902: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5903: (l_api_name,
5904: G_PKG_NAME,
5905: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 5902: x_return_status := OKC_API.HANDLE_EXCEPTIONS

5898: x_msg_count,
5899: x_msg_data,
5900: '_PUB');
5901: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
5902: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5903: (l_api_name,
5904: G_PKG_NAME,
5905: 'OKC_API.G_RET_STS_UNEXP_ERROR',
5906: x_msg_count,

Line 5905: 'OKC_API.G_RET_STS_UNEXP_ERROR',

5901: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
5902: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5903: (l_api_name,
5904: G_PKG_NAME,
5905: 'OKC_API.G_RET_STS_UNEXP_ERROR',
5906: x_msg_count,
5907: x_msg_data,
5908: '_PUB');
5909: WHEN OTHERS THEN

Line 5910: x_return_status := OKC_API.HANDLE_EXCEPTIONS

5906: x_msg_count,
5907: x_msg_data,
5908: '_PUB');
5909: WHEN OTHERS THEN
5910: x_return_status := OKC_API.HANDLE_EXCEPTIONS
5911: (l_api_name,
5912: G_PKG_NAME,
5913: 'OTHERS',
5914: x_msg_count,

Line 5928: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

5924: x_msg_data OUT NOCOPY VARCHAR2,
5925: p_tcuv_tbl IN tcuv_tbl_type,
5926: x_tcuv_tbl OUT NOCOPY tcuv_tbl_type) IS
5927: i NUMBER := 0;
5928: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
5929: BEGIN
5930: x_return_status := OKC_API.G_RET_STS_SUCCESS;
5931: IF p_tcuv_tbl.COUNT > 0 THEN
5932: i := p_tcuv_tbl.FIRST;

Line 5930: x_return_status := OKC_API.G_RET_STS_SUCCESS;

5926: x_tcuv_tbl OUT NOCOPY tcuv_tbl_type) IS
5927: i NUMBER := 0;
5928: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
5929: BEGIN
5930: x_return_status := OKC_API.G_RET_STS_SUCCESS;
5931: IF p_tcuv_tbl.COUNT > 0 THEN
5932: i := p_tcuv_tbl.FIRST;
5933: LOOP
5934: CREATE_TIME_CODE_UNITS(

Line 5942: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

5938: x_msg_count,
5939: x_msg_data,
5940: p_tcuv_tbl(i),
5941: x_tcuv_tbl(i));
5942: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
5943: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5944: x_return_status := l_return_status;
5945: raise G_EXCEPTION_HALT_VALIDATION;
5946: ELSE

Line 5943: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5939: x_msg_data,
5940: p_tcuv_tbl(i),
5941: x_tcuv_tbl(i));
5942: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
5943: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5944: x_return_status := l_return_status;
5945: raise G_EXCEPTION_HALT_VALIDATION;
5946: ELSE
5947: x_return_status := l_return_status;

Line 5958: OKC_API.set_message(p_app_name => g_app_name,

5954: EXCEPTION
5955: WHEN G_EXCEPTION_HALT_VALIDATION THEN
5956: NULL;
5957: WHEN OTHERS THEN
5958: OKC_API.set_message(p_app_name => g_app_name,
5959: p_msg_name => g_unexpected_error,
5960: p_token1 => g_sqlcode_token,
5961: p_token1_value => sqlcode,
5962: p_token2 => g_sqlerrm_token,

Line 5964: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

5960: p_token1 => g_sqlcode_token,
5961: p_token1_value => sqlcode,
5962: p_token2 => g_sqlerrm_token,
5963: p_token2_value => sqlerrm);
5964: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
5965: END CREATE_TIME_CODE_UNITS;
5966:
5967: PROCEDURE UPDATE_TIME_CODE_UNITS(
5968: p_api_version IN NUMBER,

Line 5979: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

5975: l_api_name CONSTANT VARCHAR2(30) := 'UPDATE_TIME_CODE_UNITS';
5976: l_return_status VARCHAR2(1);
5977: l_tcuv_rec tcuv_rec_type := p_tcuv_rec;
5978: BEGIN
5979: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
5980: p_init_msg_list,
5981: '_PUB',
5982: x_return_status);
5983: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 5983: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5979: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
5980: p_init_msg_list,
5981: '_PUB',
5982: x_return_status);
5983: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5984: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5985: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
5986: raise OKC_API.G_EXCEPTION_ERROR;
5987: END IF;

Line 5984: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

5980: p_init_msg_list,
5981: '_PUB',
5982: x_return_status);
5983: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5984: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5985: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
5986: raise OKC_API.G_EXCEPTION_ERROR;
5987: END IF;
5988: -- Call user hook for BEFORE

Line 5985: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

5981: '_PUB',
5982: x_return_status);
5983: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5984: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5985: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
5986: raise OKC_API.G_EXCEPTION_ERROR;
5987: END IF;
5988: -- Call user hook for BEFORE
5989: g_tcuv_rec := l_tcuv_rec;

Line 5986: raise OKC_API.G_EXCEPTION_ERROR;

5982: x_return_status);
5983: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5984: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5985: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
5986: raise OKC_API.G_EXCEPTION_ERROR;
5987: END IF;
5988: -- Call user hook for BEFORE
5989: g_tcuv_rec := l_tcuv_rec;
5990: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 5991: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

5987: END IF;
5988: -- Call user hook for BEFORE
5989: g_tcuv_rec := l_tcuv_rec;
5990: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
5991: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5992: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5993: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5994: raise OKC_API.G_EXCEPTION_ERROR;
5995: END IF;

Line 5992: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

5988: -- Call user hook for BEFORE
5989: g_tcuv_rec := l_tcuv_rec;
5990: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
5991: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5992: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5993: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5994: raise OKC_API.G_EXCEPTION_ERROR;
5995: END IF;
5996: l_tcuv_rec := migrate_tcuv(l_tcuv_rec, g_tcuv_rec);

Line 5993: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

5989: g_tcuv_rec := l_tcuv_rec;
5990: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
5991: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5992: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5993: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5994: raise OKC_API.G_EXCEPTION_ERROR;
5995: END IF;
5996: l_tcuv_rec := migrate_tcuv(l_tcuv_rec, g_tcuv_rec);
5997: OKC_TIME_PVT.UPDATE_TIME_CODE_UNITS(

Line 5994: raise OKC_API.G_EXCEPTION_ERROR;

5990: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
5991: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
5992: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
5993: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
5994: raise OKC_API.G_EXCEPTION_ERROR;
5995: END IF;
5996: l_tcuv_rec := migrate_tcuv(l_tcuv_rec, g_tcuv_rec);
5997: OKC_TIME_PVT.UPDATE_TIME_CODE_UNITS(
5998: p_api_version,

Line 6005: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6001: x_msg_count,
6002: x_msg_data,
6003: p_tcuv_rec,
6004: x_tcuv_rec);
6005: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6006: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6007: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6008: raise OKC_API.G_EXCEPTION_ERROR;
6009: END IF;

Line 6006: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

6002: x_msg_data,
6003: p_tcuv_rec,
6004: x_tcuv_rec);
6005: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6006: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6007: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6008: raise OKC_API.G_EXCEPTION_ERROR;
6009: END IF;
6010:

Line 6007: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

6003: p_tcuv_rec,
6004: x_tcuv_rec);
6005: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6006: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6007: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6008: raise OKC_API.G_EXCEPTION_ERROR;
6009: END IF;
6010:
6011: -- Call user hook for AFTER

Line 6008: raise OKC_API.G_EXCEPTION_ERROR;

6004: x_tcuv_rec);
6005: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6006: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6007: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6008: raise OKC_API.G_EXCEPTION_ERROR;
6009: END IF;
6010:
6011: -- Call user hook for AFTER
6012: g_tcuv_rec := x_tcuv_rec;

Line 6014: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6010:
6011: -- Call user hook for AFTER
6012: g_tcuv_rec := x_tcuv_rec;
6013: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
6014: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6015: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6016: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6017: raise OKC_API.G_EXCEPTION_ERROR;
6018: END IF;

Line 6015: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

6011: -- Call user hook for AFTER
6012: g_tcuv_rec := x_tcuv_rec;
6013: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
6014: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6015: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6016: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6017: raise OKC_API.G_EXCEPTION_ERROR;
6018: END IF;
6019: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 6016: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

6012: g_tcuv_rec := x_tcuv_rec;
6013: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
6014: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6015: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6016: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6017: raise OKC_API.G_EXCEPTION_ERROR;
6018: END IF;
6019: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6020: EXCEPTION

Line 6017: raise OKC_API.G_EXCEPTION_ERROR;

6013: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
6014: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6015: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6016: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6017: raise OKC_API.G_EXCEPTION_ERROR;
6018: END IF;
6019: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6020: EXCEPTION
6021: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 6019: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

6015: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6016: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6017: raise OKC_API.G_EXCEPTION_ERROR;
6018: END IF;
6019: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6020: EXCEPTION
6021: WHEN OKC_API.G_EXCEPTION_ERROR THEN
6022: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6023: (l_api_name,

Line 6021: WHEN OKC_API.G_EXCEPTION_ERROR THEN

6017: raise OKC_API.G_EXCEPTION_ERROR;
6018: END IF;
6019: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6020: EXCEPTION
6021: WHEN OKC_API.G_EXCEPTION_ERROR THEN
6022: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6023: (l_api_name,
6024: G_PKG_NAME,
6025: 'OKC_API.G_RET_STS_ERROR',

Line 6022: x_return_status := OKC_API.HANDLE_EXCEPTIONS

6018: END IF;
6019: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6020: EXCEPTION
6021: WHEN OKC_API.G_EXCEPTION_ERROR THEN
6022: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6023: (l_api_name,
6024: G_PKG_NAME,
6025: 'OKC_API.G_RET_STS_ERROR',
6026: x_msg_count,

Line 6025: 'OKC_API.G_RET_STS_ERROR',

6021: WHEN OKC_API.G_EXCEPTION_ERROR THEN
6022: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6023: (l_api_name,
6024: G_PKG_NAME,
6025: 'OKC_API.G_RET_STS_ERROR',
6026: x_msg_count,
6027: x_msg_data,
6028: '_PUB');
6029: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 6029: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

6025: 'OKC_API.G_RET_STS_ERROR',
6026: x_msg_count,
6027: x_msg_data,
6028: '_PUB');
6029: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
6030: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6031: (l_api_name,
6032: G_PKG_NAME,
6033: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 6030: x_return_status := OKC_API.HANDLE_EXCEPTIONS

6026: x_msg_count,
6027: x_msg_data,
6028: '_PUB');
6029: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
6030: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6031: (l_api_name,
6032: G_PKG_NAME,
6033: 'OKC_API.G_RET_STS_UNEXP_ERROR',
6034: x_msg_count,

Line 6033: 'OKC_API.G_RET_STS_UNEXP_ERROR',

6029: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
6030: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6031: (l_api_name,
6032: G_PKG_NAME,
6033: 'OKC_API.G_RET_STS_UNEXP_ERROR',
6034: x_msg_count,
6035: x_msg_data,
6036: '_PUB');
6037: WHEN OTHERS THEN

Line 6038: x_return_status := OKC_API.HANDLE_EXCEPTIONS

6034: x_msg_count,
6035: x_msg_data,
6036: '_PUB');
6037: WHEN OTHERS THEN
6038: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6039: (l_api_name,
6040: G_PKG_NAME,
6041: 'OTHERS',
6042: x_msg_count,

Line 6056: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

6052: x_msg_data OUT NOCOPY VARCHAR2,
6053: p_tcuv_tbl IN tcuv_tbl_type,
6054: x_tcuv_tbl OUT NOCOPY tcuv_tbl_type) IS
6055: i NUMBER := 0;
6056: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
6057: BEGIN
6058: x_return_status := OKC_API.G_RET_STS_SUCCESS;
6059: IF p_tcuv_tbl.COUNT > 0 THEN
6060: i := p_tcuv_tbl.FIRST;

Line 6058: x_return_status := OKC_API.G_RET_STS_SUCCESS;

6054: x_tcuv_tbl OUT NOCOPY tcuv_tbl_type) IS
6055: i NUMBER := 0;
6056: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
6057: BEGIN
6058: x_return_status := OKC_API.G_RET_STS_SUCCESS;
6059: IF p_tcuv_tbl.COUNT > 0 THEN
6060: i := p_tcuv_tbl.FIRST;
6061: LOOP
6062: UPDATE_TIME_CODE_UNITS(

Line 6070: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

6066: x_msg_count,
6067: x_msg_data,
6068: p_tcuv_tbl(i),
6069: x_tcuv_tbl(i));
6070: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
6071: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6072: x_return_status := l_return_status;
6073: raise G_EXCEPTION_HALT_VALIDATION;
6074: ELSE

Line 6071: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6067: x_msg_data,
6068: p_tcuv_tbl(i),
6069: x_tcuv_tbl(i));
6070: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
6071: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6072: x_return_status := l_return_status;
6073: raise G_EXCEPTION_HALT_VALIDATION;
6074: ELSE
6075: x_return_status := l_return_status;

Line 6086: OKC_API.set_message(p_app_name => g_app_name,

6082: EXCEPTION
6083: WHEN G_EXCEPTION_HALT_VALIDATION THEN
6084: NULL;
6085: WHEN OTHERS THEN
6086: OKC_API.set_message(p_app_name => g_app_name,
6087: p_msg_name => g_unexpected_error,
6088: p_token1 => g_sqlcode_token,
6089: p_token1_value => sqlcode,
6090: p_token2 => g_sqlerrm_token,

Line 6092: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

6088: p_token1 => g_sqlcode_token,
6089: p_token1_value => sqlcode,
6090: p_token2 => g_sqlerrm_token,
6091: p_token2_value => sqlerrm);
6092: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
6093: END UPDATE_TIME_CODE_UNITS;
6094:
6095: PROCEDURE DELETE_TIME_CODE_UNITS(
6096: p_api_version IN NUMBER,

Line 6106: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

6102: l_api_name CONSTANT VARCHAR2(30) := 'DELETE_TIME_CODE_UNITS';
6103: l_return_status VARCHAR2(1);
6104: l_tcuv_rec tcuv_rec_type := p_tcuv_rec;
6105: BEGIN
6106: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
6107: p_init_msg_list,
6108: '_PUB',
6109: x_return_status);
6110: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 6110: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6106: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
6107: p_init_msg_list,
6108: '_PUB',
6109: x_return_status);
6110: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6111: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6112: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
6113: raise OKC_API.G_EXCEPTION_ERROR;
6114: END IF;

Line 6111: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

6107: p_init_msg_list,
6108: '_PUB',
6109: x_return_status);
6110: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6111: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6112: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
6113: raise OKC_API.G_EXCEPTION_ERROR;
6114: END IF;
6115: -- Call user hook for BEFORE

Line 6112: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

6108: '_PUB',
6109: x_return_status);
6110: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6111: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6112: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
6113: raise OKC_API.G_EXCEPTION_ERROR;
6114: END IF;
6115: -- Call user hook for BEFORE
6116: g_tcuv_rec := l_tcuv_rec;

Line 6113: raise OKC_API.G_EXCEPTION_ERROR;

6109: x_return_status);
6110: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6111: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6112: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
6113: raise OKC_API.G_EXCEPTION_ERROR;
6114: END IF;
6115: -- Call user hook for BEFORE
6116: g_tcuv_rec := l_tcuv_rec;
6117: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 6118: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6114: END IF;
6115: -- Call user hook for BEFORE
6116: g_tcuv_rec := l_tcuv_rec;
6117: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
6118: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6119: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6120: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6121: raise OKC_API.G_EXCEPTION_ERROR;
6122: END IF;

Line 6119: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

6115: -- Call user hook for BEFORE
6116: g_tcuv_rec := l_tcuv_rec;
6117: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
6118: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6119: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6120: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6121: raise OKC_API.G_EXCEPTION_ERROR;
6122: END IF;
6123: OKC_TIME_PVT.DELETE_TIME_CODE_UNITS(

Line 6120: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

6116: g_tcuv_rec := l_tcuv_rec;
6117: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
6118: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6119: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6120: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6121: raise OKC_API.G_EXCEPTION_ERROR;
6122: END IF;
6123: OKC_TIME_PVT.DELETE_TIME_CODE_UNITS(
6124: p_api_version,

Line 6121: raise OKC_API.G_EXCEPTION_ERROR;

6117: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
6118: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6119: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6120: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6121: raise OKC_API.G_EXCEPTION_ERROR;
6122: END IF;
6123: OKC_TIME_PVT.DELETE_TIME_CODE_UNITS(
6124: p_api_version,
6125: p_init_msg_list,

Line 6130: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6126: x_return_status,
6127: x_msg_count,
6128: x_msg_data,
6129: p_tcuv_rec);
6130: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6131: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6132: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6133: raise OKC_API.G_EXCEPTION_ERROR;
6134: END IF;

Line 6131: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

6127: x_msg_count,
6128: x_msg_data,
6129: p_tcuv_rec);
6130: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6131: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6132: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6133: raise OKC_API.G_EXCEPTION_ERROR;
6134: END IF;
6135:

Line 6132: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

6128: x_msg_data,
6129: p_tcuv_rec);
6130: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6131: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6132: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6133: raise OKC_API.G_EXCEPTION_ERROR;
6134: END IF;
6135:
6136: -- Call user hook for AFTER

Line 6133: raise OKC_API.G_EXCEPTION_ERROR;

6129: p_tcuv_rec);
6130: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6131: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6132: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6133: raise OKC_API.G_EXCEPTION_ERROR;
6134: END IF;
6135:
6136: -- Call user hook for AFTER
6137: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');

Line 6138: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6134: END IF;
6135:
6136: -- Call user hook for AFTER
6137: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
6138: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6139: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6140: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6141: raise OKC_API.G_EXCEPTION_ERROR;
6142: END IF;

Line 6139: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

6135:
6136: -- Call user hook for AFTER
6137: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
6138: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6139: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6140: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6141: raise OKC_API.G_EXCEPTION_ERROR;
6142: END IF;
6143: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 6140: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

6136: -- Call user hook for AFTER
6137: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
6138: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6139: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6140: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6141: raise OKC_API.G_EXCEPTION_ERROR;
6142: END IF;
6143: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6144: EXCEPTION

Line 6141: raise OKC_API.G_EXCEPTION_ERROR;

6137: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
6138: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6139: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6140: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6141: raise OKC_API.G_EXCEPTION_ERROR;
6142: END IF;
6143: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6144: EXCEPTION
6145: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 6143: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

6139: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6140: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6141: raise OKC_API.G_EXCEPTION_ERROR;
6142: END IF;
6143: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6144: EXCEPTION
6145: WHEN OKC_API.G_EXCEPTION_ERROR THEN
6146: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6147: (l_api_name,

Line 6145: WHEN OKC_API.G_EXCEPTION_ERROR THEN

6141: raise OKC_API.G_EXCEPTION_ERROR;
6142: END IF;
6143: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6144: EXCEPTION
6145: WHEN OKC_API.G_EXCEPTION_ERROR THEN
6146: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6147: (l_api_name,
6148: G_PKG_NAME,
6149: 'OKC_API.G_RET_STS_ERROR',

Line 6146: x_return_status := OKC_API.HANDLE_EXCEPTIONS

6142: END IF;
6143: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6144: EXCEPTION
6145: WHEN OKC_API.G_EXCEPTION_ERROR THEN
6146: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6147: (l_api_name,
6148: G_PKG_NAME,
6149: 'OKC_API.G_RET_STS_ERROR',
6150: x_msg_count,

Line 6149: 'OKC_API.G_RET_STS_ERROR',

6145: WHEN OKC_API.G_EXCEPTION_ERROR THEN
6146: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6147: (l_api_name,
6148: G_PKG_NAME,
6149: 'OKC_API.G_RET_STS_ERROR',
6150: x_msg_count,
6151: x_msg_data,
6152: '_PUB');
6153: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 6153: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

6149: 'OKC_API.G_RET_STS_ERROR',
6150: x_msg_count,
6151: x_msg_data,
6152: '_PUB');
6153: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
6154: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6155: (l_api_name,
6156: G_PKG_NAME,
6157: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 6154: x_return_status := OKC_API.HANDLE_EXCEPTIONS

6150: x_msg_count,
6151: x_msg_data,
6152: '_PUB');
6153: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
6154: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6155: (l_api_name,
6156: G_PKG_NAME,
6157: 'OKC_API.G_RET_STS_UNEXP_ERROR',
6158: x_msg_count,

Line 6157: 'OKC_API.G_RET_STS_UNEXP_ERROR',

6153: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
6154: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6155: (l_api_name,
6156: G_PKG_NAME,
6157: 'OKC_API.G_RET_STS_UNEXP_ERROR',
6158: x_msg_count,
6159: x_msg_data,
6160: '_PUB');
6161: WHEN OTHERS THEN

Line 6162: x_return_status := OKC_API.HANDLE_EXCEPTIONS

6158: x_msg_count,
6159: x_msg_data,
6160: '_PUB');
6161: WHEN OTHERS THEN
6162: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6163: (l_api_name,
6164: G_PKG_NAME,
6165: 'OTHERS',
6166: x_msg_count,

Line 6179: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

6175: x_msg_count OUT NOCOPY NUMBER,
6176: x_msg_data OUT NOCOPY VARCHAR2,
6177: p_tcuv_tbl IN tcuv_tbl_type) IS
6178: i NUMBER := 0;
6179: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
6180: BEGIN
6181: x_return_status := OKC_API.G_RET_STS_SUCCESS;
6182: IF p_tcuv_tbl.COUNT > 0 THEN
6183: i := p_tcuv_tbl.FIRST;

Line 6181: x_return_status := OKC_API.G_RET_STS_SUCCESS;

6177: p_tcuv_tbl IN tcuv_tbl_type) IS
6178: i NUMBER := 0;
6179: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
6180: BEGIN
6181: x_return_status := OKC_API.G_RET_STS_SUCCESS;
6182: IF p_tcuv_tbl.COUNT > 0 THEN
6183: i := p_tcuv_tbl.FIRST;
6184: LOOP
6185: DELETE_TIME_CODE_UNITS(

Line 6192: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

6188: l_return_status,
6189: x_msg_count,
6190: x_msg_data,
6191: p_tcuv_tbl(i));
6192: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
6193: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6194: x_return_status := l_return_status;
6195: raise G_EXCEPTION_HALT_VALIDATION;
6196: ELSE

Line 6193: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6189: x_msg_count,
6190: x_msg_data,
6191: p_tcuv_tbl(i));
6192: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
6193: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6194: x_return_status := l_return_status;
6195: raise G_EXCEPTION_HALT_VALIDATION;
6196: ELSE
6197: x_return_status := l_return_status;

Line 6208: OKC_API.set_message(p_app_name => g_app_name,

6204: EXCEPTION
6205: WHEN G_EXCEPTION_HALT_VALIDATION THEN
6206: NULL;
6207: WHEN OTHERS THEN
6208: OKC_API.set_message(p_app_name => g_app_name,
6209: p_msg_name => g_unexpected_error,
6210: p_token1 => g_sqlcode_token,
6211: p_token1_value => sqlcode,
6212: p_token2 => g_sqlerrm_token,

Line 6214: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

6210: p_token1 => g_sqlcode_token,
6211: p_token1_value => sqlcode,
6212: p_token2 => g_sqlerrm_token,
6213: p_token2_value => sqlerrm);
6214: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
6215: END DELETE_TIME_CODE_UNITS;
6216:
6217: PROCEDURE LOCK_TIME_CODE_UNITS(
6218: p_api_version IN NUMBER,

Line 6242: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

6238: x_msg_count OUT NOCOPY NUMBER,
6239: x_msg_data OUT NOCOPY VARCHAR2,
6240: p_tcuv_tbl IN tcuv_tbl_type) IS
6241: i NUMBER := 0;
6242: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
6243: BEGIN
6244: x_return_status := OKC_API.G_RET_STS_SUCCESS;
6245: IF p_tcuv_tbl.COUNT > 0 THEN
6246: i := p_tcuv_tbl.FIRST;

Line 6244: x_return_status := OKC_API.G_RET_STS_SUCCESS;

6240: p_tcuv_tbl IN tcuv_tbl_type) IS
6241: i NUMBER := 0;
6242: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
6243: BEGIN
6244: x_return_status := OKC_API.G_RET_STS_SUCCESS;
6245: IF p_tcuv_tbl.COUNT > 0 THEN
6246: i := p_tcuv_tbl.FIRST;
6247: LOOP
6248: LOCK_TIME_CODE_UNITS(

Line 6255: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

6251: l_return_status,
6252: x_msg_count,
6253: x_msg_data,
6254: p_tcuv_tbl(i));
6255: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
6256: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6257: x_return_status := l_return_status;
6258: raise G_EXCEPTION_HALT_VALIDATION;
6259: ELSE

Line 6256: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6252: x_msg_count,
6253: x_msg_data,
6254: p_tcuv_tbl(i));
6255: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
6256: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6257: x_return_status := l_return_status;
6258: raise G_EXCEPTION_HALT_VALIDATION;
6259: ELSE
6260: x_return_status := l_return_status;

Line 6271: OKC_API.set_message(p_app_name => g_app_name,

6267: EXCEPTION
6268: WHEN G_EXCEPTION_HALT_VALIDATION THEN
6269: NULL;
6270: WHEN OTHERS THEN
6271: OKC_API.set_message(p_app_name => g_app_name,
6272: p_msg_name => g_unexpected_error,
6273: p_token1 => g_sqlcode_token,
6274: p_token1_value => sqlcode,
6275: p_token2 => g_sqlerrm_token,

Line 6277: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

6273: p_token1 => g_sqlcode_token,
6274: p_token1_value => sqlcode,
6275: p_token2 => g_sqlerrm_token,
6276: p_token2_value => sqlerrm);
6277: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
6278: END LOCK_TIME_CODE_UNITS;
6279:
6280: PROCEDURE VALID_TIME_CODE_UNITS(
6281: p_api_version IN NUMBER,

Line 6305: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

6301: x_msg_count OUT NOCOPY NUMBER,
6302: x_msg_data OUT NOCOPY VARCHAR2,
6303: p_tcuv_tbl IN tcuv_tbl_type) IS
6304: i NUMBER := 0;
6305: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
6306: BEGIN
6307: x_return_status := OKC_API.G_RET_STS_SUCCESS;
6308: IF p_tcuv_tbl.COUNT > 0 THEN
6309: i := p_tcuv_tbl.FIRST;

Line 6307: x_return_status := OKC_API.G_RET_STS_SUCCESS;

6303: p_tcuv_tbl IN tcuv_tbl_type) IS
6304: i NUMBER := 0;
6305: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
6306: BEGIN
6307: x_return_status := OKC_API.G_RET_STS_SUCCESS;
6308: IF p_tcuv_tbl.COUNT > 0 THEN
6309: i := p_tcuv_tbl.FIRST;
6310: LOOP
6311: VALID_TIME_CODE_UNITS(

Line 6318: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

6314: l_return_status,
6315: x_msg_count,
6316: x_msg_data,
6317: p_tcuv_tbl(i));
6318: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
6319: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6320: x_return_status := l_return_status;
6321: raise G_EXCEPTION_HALT_VALIDATION;
6322: ELSE

Line 6319: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6315: x_msg_count,
6316: x_msg_data,
6317: p_tcuv_tbl(i));
6318: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
6319: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6320: x_return_status := l_return_status;
6321: raise G_EXCEPTION_HALT_VALIDATION;
6322: ELSE
6323: x_return_status := l_return_status;

Line 6334: OKC_API.set_message(p_app_name => g_app_name,

6330: EXCEPTION
6331: WHEN G_EXCEPTION_HALT_VALIDATION THEN
6332: NULL;
6333: WHEN OTHERS THEN
6334: OKC_API.set_message(p_app_name => g_app_name,
6335: p_msg_name => g_unexpected_error,
6336: p_token1 => g_sqlcode_token,
6337: p_token1_value => sqlcode,
6338: p_token2 => g_sqlerrm_token,

Line 6340: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

6336: p_token1 => g_sqlcode_token,
6337: p_token1_value => sqlcode,
6338: p_token2 => g_sqlerrm_token,
6339: p_token2_value => sqlerrm);
6340: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
6341: END VALID_TIME_CODE_UNITS;
6342:
6343: --------------------------------------------------------------------------
6344: ---The following procedures cater to handling of OKC_TIME_RESOLVED_TIMEVALUES

Line 6403: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

6399: l_api_name CONSTANT VARCHAR2(30) := 'CREATE_RESOLVED_TIMEVALUES';
6400: l_return_status VARCHAR2(1);
6401: l_rtvv_rec rtvv_rec_type := p_rtvv_rec;
6402: BEGIN
6403: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
6404: p_init_msg_list,
6405: '_PUB',
6406: x_return_status);
6407: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 6407: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6403: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
6404: p_init_msg_list,
6405: '_PUB',
6406: x_return_status);
6407: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6408: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6409: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
6410: raise OKC_API.G_EXCEPTION_ERROR;
6411: END IF;

Line 6408: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

6404: p_init_msg_list,
6405: '_PUB',
6406: x_return_status);
6407: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6408: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6409: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
6410: raise OKC_API.G_EXCEPTION_ERROR;
6411: END IF;
6412: -- Call user hook for BEFORE

Line 6409: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

6405: '_PUB',
6406: x_return_status);
6407: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6408: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6409: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
6410: raise OKC_API.G_EXCEPTION_ERROR;
6411: END IF;
6412: -- Call user hook for BEFORE
6413: g_rtvv_rec := l_rtvv_rec;

Line 6410: raise OKC_API.G_EXCEPTION_ERROR;

6406: x_return_status);
6407: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6408: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6409: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
6410: raise OKC_API.G_EXCEPTION_ERROR;
6411: END IF;
6412: -- Call user hook for BEFORE
6413: g_rtvv_rec := l_rtvv_rec;
6414: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 6415: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6411: END IF;
6412: -- Call user hook for BEFORE
6413: g_rtvv_rec := l_rtvv_rec;
6414: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
6415: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6416: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6417: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6418: raise OKC_API.G_EXCEPTION_ERROR;
6419: END IF;

Line 6416: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

6412: -- Call user hook for BEFORE
6413: g_rtvv_rec := l_rtvv_rec;
6414: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
6415: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6416: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6417: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6418: raise OKC_API.G_EXCEPTION_ERROR;
6419: END IF;
6420: l_rtvv_rec := migrate_rtvv(l_rtvv_rec, g_rtvv_rec);

Line 6417: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

6413: g_rtvv_rec := l_rtvv_rec;
6414: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
6415: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6416: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6417: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6418: raise OKC_API.G_EXCEPTION_ERROR;
6419: END IF;
6420: l_rtvv_rec := migrate_rtvv(l_rtvv_rec, g_rtvv_rec);
6421: OKC_TIME_PVT.CREATE_RESOLVED_TIMEVALUES(

Line 6418: raise OKC_API.G_EXCEPTION_ERROR;

6414: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
6415: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6416: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6417: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6418: raise OKC_API.G_EXCEPTION_ERROR;
6419: END IF;
6420: l_rtvv_rec := migrate_rtvv(l_rtvv_rec, g_rtvv_rec);
6421: OKC_TIME_PVT.CREATE_RESOLVED_TIMEVALUES(
6422: p_api_version,

Line 6429: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6425: x_msg_count,
6426: x_msg_data,
6427: p_rtvv_rec,
6428: x_rtvv_rec);
6429: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6430: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6431: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6432: raise OKC_API.G_EXCEPTION_ERROR;
6433: END IF;

Line 6430: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

6426: x_msg_data,
6427: p_rtvv_rec,
6428: x_rtvv_rec);
6429: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6430: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6431: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6432: raise OKC_API.G_EXCEPTION_ERROR;
6433: END IF;
6434:

Line 6431: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

6427: p_rtvv_rec,
6428: x_rtvv_rec);
6429: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6430: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6431: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6432: raise OKC_API.G_EXCEPTION_ERROR;
6433: END IF;
6434:
6435: -- Call user hook for AFTER

Line 6432: raise OKC_API.G_EXCEPTION_ERROR;

6428: x_rtvv_rec);
6429: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6430: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6431: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6432: raise OKC_API.G_EXCEPTION_ERROR;
6433: END IF;
6434:
6435: -- Call user hook for AFTER
6436: g_rtvv_rec := x_rtvv_rec;

Line 6438: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6434:
6435: -- Call user hook for AFTER
6436: g_rtvv_rec := x_rtvv_rec;
6437: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
6438: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6439: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6440: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6441: raise OKC_API.G_EXCEPTION_ERROR;
6442: END IF;

Line 6439: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

6435: -- Call user hook for AFTER
6436: g_rtvv_rec := x_rtvv_rec;
6437: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
6438: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6439: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6440: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6441: raise OKC_API.G_EXCEPTION_ERROR;
6442: END IF;
6443: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 6440: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

6436: g_rtvv_rec := x_rtvv_rec;
6437: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
6438: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6439: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6440: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6441: raise OKC_API.G_EXCEPTION_ERROR;
6442: END IF;
6443: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6444: EXCEPTION

Line 6441: raise OKC_API.G_EXCEPTION_ERROR;

6437: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
6438: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6439: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6440: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6441: raise OKC_API.G_EXCEPTION_ERROR;
6442: END IF;
6443: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6444: EXCEPTION
6445: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 6443: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

6439: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6440: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6441: raise OKC_API.G_EXCEPTION_ERROR;
6442: END IF;
6443: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6444: EXCEPTION
6445: WHEN OKC_API.G_EXCEPTION_ERROR THEN
6446: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6447: (l_api_name,

Line 6445: WHEN OKC_API.G_EXCEPTION_ERROR THEN

6441: raise OKC_API.G_EXCEPTION_ERROR;
6442: END IF;
6443: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6444: EXCEPTION
6445: WHEN OKC_API.G_EXCEPTION_ERROR THEN
6446: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6447: (l_api_name,
6448: G_PKG_NAME,
6449: 'OKC_API.G_RET_STS_ERROR',

Line 6446: x_return_status := OKC_API.HANDLE_EXCEPTIONS

6442: END IF;
6443: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6444: EXCEPTION
6445: WHEN OKC_API.G_EXCEPTION_ERROR THEN
6446: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6447: (l_api_name,
6448: G_PKG_NAME,
6449: 'OKC_API.G_RET_STS_ERROR',
6450: x_msg_count,

Line 6449: 'OKC_API.G_RET_STS_ERROR',

6445: WHEN OKC_API.G_EXCEPTION_ERROR THEN
6446: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6447: (l_api_name,
6448: G_PKG_NAME,
6449: 'OKC_API.G_RET_STS_ERROR',
6450: x_msg_count,
6451: x_msg_data,
6452: '_PUB');
6453: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 6453: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

6449: 'OKC_API.G_RET_STS_ERROR',
6450: x_msg_count,
6451: x_msg_data,
6452: '_PUB');
6453: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
6454: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6455: (l_api_name,
6456: G_PKG_NAME,
6457: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 6454: x_return_status := OKC_API.HANDLE_EXCEPTIONS

6450: x_msg_count,
6451: x_msg_data,
6452: '_PUB');
6453: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
6454: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6455: (l_api_name,
6456: G_PKG_NAME,
6457: 'OKC_API.G_RET_STS_UNEXP_ERROR',
6458: x_msg_count,

Line 6457: 'OKC_API.G_RET_STS_UNEXP_ERROR',

6453: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
6454: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6455: (l_api_name,
6456: G_PKG_NAME,
6457: 'OKC_API.G_RET_STS_UNEXP_ERROR',
6458: x_msg_count,
6459: x_msg_data,
6460: '_PUB');
6461: WHEN OTHERS THEN

Line 6462: x_return_status := OKC_API.HANDLE_EXCEPTIONS

6458: x_msg_count,
6459: x_msg_data,
6460: '_PUB');
6461: WHEN OTHERS THEN
6462: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6463: (l_api_name,
6464: G_PKG_NAME,
6465: 'OTHERS',
6466: x_msg_count,

Line 6480: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

6476: x_msg_data OUT NOCOPY VARCHAR2,
6477: p_rtvv_tbl IN rtvv_tbl_type,
6478: x_rtvv_tbl OUT NOCOPY rtvv_tbl_type) IS
6479: i NUMBER := 0;
6480: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
6481: BEGIN
6482: x_return_status := OKC_API.G_RET_STS_SUCCESS;
6483: IF p_rtvv_tbl.COUNT > 0 THEN
6484: i := p_rtvv_tbl.FIRST;

Line 6482: x_return_status := OKC_API.G_RET_STS_SUCCESS;

6478: x_rtvv_tbl OUT NOCOPY rtvv_tbl_type) IS
6479: i NUMBER := 0;
6480: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
6481: BEGIN
6482: x_return_status := OKC_API.G_RET_STS_SUCCESS;
6483: IF p_rtvv_tbl.COUNT > 0 THEN
6484: i := p_rtvv_tbl.FIRST;
6485: LOOP
6486: CREATE_RESOLVED_TIMEVALUES(

Line 6494: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

6490: x_msg_count,
6491: x_msg_data,
6492: p_rtvv_tbl(i),
6493: x_rtvv_tbl(i));
6494: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
6495: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6496: x_return_status := l_return_status;
6497: raise G_EXCEPTION_HALT_VALIDATION;
6498: ELSE

Line 6495: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6491: x_msg_data,
6492: p_rtvv_tbl(i),
6493: x_rtvv_tbl(i));
6494: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
6495: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6496: x_return_status := l_return_status;
6497: raise G_EXCEPTION_HALT_VALIDATION;
6498: ELSE
6499: x_return_status := l_return_status;

Line 6510: OKC_API.set_message(p_app_name => g_app_name,

6506: EXCEPTION
6507: WHEN G_EXCEPTION_HALT_VALIDATION THEN
6508: NULL;
6509: WHEN OTHERS THEN
6510: OKC_API.set_message(p_app_name => g_app_name,
6511: p_msg_name => g_unexpected_error,
6512: p_token1 => g_sqlcode_token,
6513: p_token1_value => sqlcode,
6514: p_token2 => g_sqlerrm_token,

Line 6516: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

6512: p_token1 => g_sqlcode_token,
6513: p_token1_value => sqlcode,
6514: p_token2 => g_sqlerrm_token,
6515: p_token2_value => sqlerrm);
6516: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
6517: END CREATE_RESOLVED_TIMEVALUES;
6518:
6519: PROCEDURE UPDATE_RESOLVED_TIMEVALUES(
6520: p_api_version IN NUMBER,

Line 6531: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

6527: l_api_name CONSTANT VARCHAR2(30) := 'UPDATE_RESOLVED_TIMEVALUES';
6528: l_return_status VARCHAR2(1);
6529: l_rtvv_rec rtvv_rec_type := p_rtvv_rec;
6530: BEGIN
6531: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
6532: p_init_msg_list,
6533: '_PUB',
6534: x_return_status);
6535: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 6535: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6531: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
6532: p_init_msg_list,
6533: '_PUB',
6534: x_return_status);
6535: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6536: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6537: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
6538: raise OKC_API.G_EXCEPTION_ERROR;
6539: END IF;

Line 6536: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

6532: p_init_msg_list,
6533: '_PUB',
6534: x_return_status);
6535: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6536: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6537: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
6538: raise OKC_API.G_EXCEPTION_ERROR;
6539: END IF;
6540: -- Call user hook for BEFORE

Line 6537: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

6533: '_PUB',
6534: x_return_status);
6535: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6536: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6537: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
6538: raise OKC_API.G_EXCEPTION_ERROR;
6539: END IF;
6540: -- Call user hook for BEFORE
6541: g_rtvv_rec := l_rtvv_rec;

Line 6538: raise OKC_API.G_EXCEPTION_ERROR;

6534: x_return_status);
6535: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6536: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6537: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
6538: raise OKC_API.G_EXCEPTION_ERROR;
6539: END IF;
6540: -- Call user hook for BEFORE
6541: g_rtvv_rec := l_rtvv_rec;
6542: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 6543: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6539: END IF;
6540: -- Call user hook for BEFORE
6541: g_rtvv_rec := l_rtvv_rec;
6542: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
6543: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6544: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6545: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6546: raise OKC_API.G_EXCEPTION_ERROR;
6547: END IF;

Line 6544: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

6540: -- Call user hook for BEFORE
6541: g_rtvv_rec := l_rtvv_rec;
6542: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
6543: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6544: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6545: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6546: raise OKC_API.G_EXCEPTION_ERROR;
6547: END IF;
6548: l_rtvv_rec := migrate_rtvv(l_rtvv_rec, g_rtvv_rec);

Line 6545: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

6541: g_rtvv_rec := l_rtvv_rec;
6542: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
6543: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6544: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6545: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6546: raise OKC_API.G_EXCEPTION_ERROR;
6547: END IF;
6548: l_rtvv_rec := migrate_rtvv(l_rtvv_rec, g_rtvv_rec);
6549: OKC_TIME_PVT.UPDATE_RESOLVED_TIMEVALUES(

Line 6546: raise OKC_API.G_EXCEPTION_ERROR;

6542: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
6543: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6544: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6545: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6546: raise OKC_API.G_EXCEPTION_ERROR;
6547: END IF;
6548: l_rtvv_rec := migrate_rtvv(l_rtvv_rec, g_rtvv_rec);
6549: OKC_TIME_PVT.UPDATE_RESOLVED_TIMEVALUES(
6550: p_api_version,

Line 6557: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6553: x_msg_count,
6554: x_msg_data,
6555: p_rtvv_rec,
6556: x_rtvv_rec);
6557: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6558: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6559: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6560: raise OKC_API.G_EXCEPTION_ERROR;
6561: END IF;

Line 6558: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

6554: x_msg_data,
6555: p_rtvv_rec,
6556: x_rtvv_rec);
6557: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6558: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6559: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6560: raise OKC_API.G_EXCEPTION_ERROR;
6561: END IF;
6562:

Line 6559: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

6555: p_rtvv_rec,
6556: x_rtvv_rec);
6557: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6558: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6559: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6560: raise OKC_API.G_EXCEPTION_ERROR;
6561: END IF;
6562:
6563: -- Call user hook for AFTER

Line 6560: raise OKC_API.G_EXCEPTION_ERROR;

6556: x_rtvv_rec);
6557: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6558: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6559: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6560: raise OKC_API.G_EXCEPTION_ERROR;
6561: END IF;
6562:
6563: -- Call user hook for AFTER
6564: g_rtvv_rec := x_rtvv_rec;

Line 6566: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6562:
6563: -- Call user hook for AFTER
6564: g_rtvv_rec := x_rtvv_rec;
6565: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
6566: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6567: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6568: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6569: raise OKC_API.G_EXCEPTION_ERROR;
6570: END IF;

Line 6567: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

6563: -- Call user hook for AFTER
6564: g_rtvv_rec := x_rtvv_rec;
6565: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
6566: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6567: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6568: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6569: raise OKC_API.G_EXCEPTION_ERROR;
6570: END IF;
6571: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 6568: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

6564: g_rtvv_rec := x_rtvv_rec;
6565: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
6566: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6567: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6568: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6569: raise OKC_API.G_EXCEPTION_ERROR;
6570: END IF;
6571: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6572: EXCEPTION

Line 6569: raise OKC_API.G_EXCEPTION_ERROR;

6565: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
6566: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6567: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6568: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6569: raise OKC_API.G_EXCEPTION_ERROR;
6570: END IF;
6571: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6572: EXCEPTION
6573: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 6571: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

6567: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6568: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6569: raise OKC_API.G_EXCEPTION_ERROR;
6570: END IF;
6571: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6572: EXCEPTION
6573: WHEN OKC_API.G_EXCEPTION_ERROR THEN
6574: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6575: (l_api_name,

Line 6573: WHEN OKC_API.G_EXCEPTION_ERROR THEN

6569: raise OKC_API.G_EXCEPTION_ERROR;
6570: END IF;
6571: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6572: EXCEPTION
6573: WHEN OKC_API.G_EXCEPTION_ERROR THEN
6574: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6575: (l_api_name,
6576: G_PKG_NAME,
6577: 'OKC_API.G_RET_STS_ERROR',

Line 6574: x_return_status := OKC_API.HANDLE_EXCEPTIONS

6570: END IF;
6571: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6572: EXCEPTION
6573: WHEN OKC_API.G_EXCEPTION_ERROR THEN
6574: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6575: (l_api_name,
6576: G_PKG_NAME,
6577: 'OKC_API.G_RET_STS_ERROR',
6578: x_msg_count,

Line 6577: 'OKC_API.G_RET_STS_ERROR',

6573: WHEN OKC_API.G_EXCEPTION_ERROR THEN
6574: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6575: (l_api_name,
6576: G_PKG_NAME,
6577: 'OKC_API.G_RET_STS_ERROR',
6578: x_msg_count,
6579: x_msg_data,
6580: '_PUB');
6581: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 6581: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

6577: 'OKC_API.G_RET_STS_ERROR',
6578: x_msg_count,
6579: x_msg_data,
6580: '_PUB');
6581: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
6582: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6583: (l_api_name,
6584: G_PKG_NAME,
6585: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 6582: x_return_status := OKC_API.HANDLE_EXCEPTIONS

6578: x_msg_count,
6579: x_msg_data,
6580: '_PUB');
6581: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
6582: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6583: (l_api_name,
6584: G_PKG_NAME,
6585: 'OKC_API.G_RET_STS_UNEXP_ERROR',
6586: x_msg_count,

Line 6585: 'OKC_API.G_RET_STS_UNEXP_ERROR',

6581: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
6582: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6583: (l_api_name,
6584: G_PKG_NAME,
6585: 'OKC_API.G_RET_STS_UNEXP_ERROR',
6586: x_msg_count,
6587: x_msg_data,
6588: '_PUB');
6589: WHEN OTHERS THEN

Line 6590: x_return_status := OKC_API.HANDLE_EXCEPTIONS

6586: x_msg_count,
6587: x_msg_data,
6588: '_PUB');
6589: WHEN OTHERS THEN
6590: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6591: (l_api_name,
6592: G_PKG_NAME,
6593: 'OTHERS',
6594: x_msg_count,

Line 6608: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

6604: x_msg_data OUT NOCOPY VARCHAR2,
6605: p_rtvv_tbl IN rtvv_tbl_type,
6606: x_rtvv_tbl OUT NOCOPY rtvv_tbl_type) IS
6607: i NUMBER := 0;
6608: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
6609: BEGIN
6610: x_return_status := OKC_API.G_RET_STS_SUCCESS;
6611: IF p_rtvv_tbl.COUNT > 0 THEN
6612: i := p_rtvv_tbl.FIRST;

Line 6610: x_return_status := OKC_API.G_RET_STS_SUCCESS;

6606: x_rtvv_tbl OUT NOCOPY rtvv_tbl_type) IS
6607: i NUMBER := 0;
6608: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
6609: BEGIN
6610: x_return_status := OKC_API.G_RET_STS_SUCCESS;
6611: IF p_rtvv_tbl.COUNT > 0 THEN
6612: i := p_rtvv_tbl.FIRST;
6613: LOOP
6614: UPDATE_RESOLVED_TIMEVALUES(

Line 6622: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

6618: x_msg_count,
6619: x_msg_data,
6620: p_rtvv_tbl(i),
6621: x_rtvv_tbl(i));
6622: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
6623: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6624: x_return_status := l_return_status;
6625: raise G_EXCEPTION_HALT_VALIDATION;
6626: ELSE

Line 6623: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6619: x_msg_data,
6620: p_rtvv_tbl(i),
6621: x_rtvv_tbl(i));
6622: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
6623: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6624: x_return_status := l_return_status;
6625: raise G_EXCEPTION_HALT_VALIDATION;
6626: ELSE
6627: x_return_status := l_return_status;

Line 6638: OKC_API.set_message(p_app_name => g_app_name,

6634: EXCEPTION
6635: WHEN G_EXCEPTION_HALT_VALIDATION THEN
6636: NULL;
6637: WHEN OTHERS THEN
6638: OKC_API.set_message(p_app_name => g_app_name,
6639: p_msg_name => g_unexpected_error,
6640: p_token1 => g_sqlcode_token,
6641: p_token1_value => sqlcode,
6642: p_token2 => g_sqlerrm_token,

Line 6644: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

6640: p_token1 => g_sqlcode_token,
6641: p_token1_value => sqlcode,
6642: p_token2 => g_sqlerrm_token,
6643: p_token2_value => sqlerrm);
6644: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
6645: END UPDATE_RESOLVED_TIMEVALUES;
6646:
6647: PROCEDURE DELETE_RESOLVED_TIMEVALUES(
6648: p_api_version IN NUMBER,

Line 6658: l_return_status := OKC_API.START_ACTIVITY(l_api_name,

6654: l_api_name CONSTANT VARCHAR2(30) := 'DELETE_RESOLVED_TIMEVALUES';
6655: l_return_status VARCHAR2(1);
6656: l_rtvv_rec rtvv_rec_type := p_rtvv_rec;
6657: BEGIN
6658: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
6659: p_init_msg_list,
6660: '_PUB',
6661: x_return_status);
6662: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

Line 6662: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6658: l_return_status := OKC_API.START_ACTIVITY(l_api_name,
6659: p_init_msg_list,
6660: '_PUB',
6661: x_return_status);
6662: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6663: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6664: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
6665: raise OKC_API.G_EXCEPTION_ERROR;
6666: END IF;

Line 6663: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

6659: p_init_msg_list,
6660: '_PUB',
6661: x_return_status);
6662: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6663: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6664: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
6665: raise OKC_API.G_EXCEPTION_ERROR;
6666: END IF;
6667: -- Call user hook for BEFORE

Line 6664: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN

6660: '_PUB',
6661: x_return_status);
6662: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6663: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6664: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
6665: raise OKC_API.G_EXCEPTION_ERROR;
6666: END IF;
6667: -- Call user hook for BEFORE
6668: g_rtvv_rec := l_rtvv_rec;

Line 6665: raise OKC_API.G_EXCEPTION_ERROR;

6661: x_return_status);
6662: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6663: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6664: ELSIF (l_return_status = OKC_API.G_RET_STS_ERROR) THEN
6665: raise OKC_API.G_EXCEPTION_ERROR;
6666: END IF;
6667: -- Call user hook for BEFORE
6668: g_rtvv_rec := l_rtvv_rec;
6669: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');

Line 6670: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6666: END IF;
6667: -- Call user hook for BEFORE
6668: g_rtvv_rec := l_rtvv_rec;
6669: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
6670: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6671: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6672: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6673: raise OKC_API.G_EXCEPTION_ERROR;
6674: END IF;

Line 6671: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

6667: -- Call user hook for BEFORE
6668: g_rtvv_rec := l_rtvv_rec;
6669: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
6670: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6671: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6672: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6673: raise OKC_API.G_EXCEPTION_ERROR;
6674: END IF;
6675: OKC_TIME_PVT.DELETE_RESOLVED_TIMEVALUES(

Line 6672: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

6668: g_rtvv_rec := l_rtvv_rec;
6669: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
6670: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6671: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6672: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6673: raise OKC_API.G_EXCEPTION_ERROR;
6674: END IF;
6675: OKC_TIME_PVT.DELETE_RESOLVED_TIMEVALUES(
6676: p_api_version,

Line 6673: raise OKC_API.G_EXCEPTION_ERROR;

6669: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'B');
6670: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6671: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6672: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6673: raise OKC_API.G_EXCEPTION_ERROR;
6674: END IF;
6675: OKC_TIME_PVT.DELETE_RESOLVED_TIMEVALUES(
6676: p_api_version,
6677: p_init_msg_list,

Line 6682: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6678: x_return_status,
6679: x_msg_count,
6680: x_msg_data,
6681: p_rtvv_rec);
6682: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6683: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6684: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6685: raise OKC_API.G_EXCEPTION_ERROR;
6686: END IF;

Line 6683: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

6679: x_msg_count,
6680: x_msg_data,
6681: p_rtvv_rec);
6682: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6683: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6684: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6685: raise OKC_API.G_EXCEPTION_ERROR;
6686: END IF;
6687:

Line 6684: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

6680: x_msg_data,
6681: p_rtvv_rec);
6682: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6683: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6684: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6685: raise OKC_API.G_EXCEPTION_ERROR;
6686: END IF;
6687:
6688: -- Call user hook for AFTER

Line 6685: raise OKC_API.G_EXCEPTION_ERROR;

6681: p_rtvv_rec);
6682: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6683: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6684: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6685: raise OKC_API.G_EXCEPTION_ERROR;
6686: END IF;
6687:
6688: -- Call user hook for AFTER
6689: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');

Line 6690: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6686: END IF;
6687:
6688: -- Call user hook for AFTER
6689: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
6690: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6691: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6692: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6693: raise OKC_API.G_EXCEPTION_ERROR;
6694: END IF;

Line 6691: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;

6687:
6688: -- Call user hook for AFTER
6689: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
6690: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6691: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6692: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6693: raise OKC_API.G_EXCEPTION_ERROR;
6694: END IF;
6695: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

Line 6692: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN

6688: -- Call user hook for AFTER
6689: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
6690: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6691: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6692: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6693: raise OKC_API.G_EXCEPTION_ERROR;
6694: END IF;
6695: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6696: EXCEPTION

Line 6693: raise OKC_API.G_EXCEPTION_ERROR;

6689: okc_util.call_user_hook(x_return_status, g_pkg_name, l_api_name, 'A');
6690: IF (x_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6691: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6692: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6693: raise OKC_API.G_EXCEPTION_ERROR;
6694: END IF;
6695: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6696: EXCEPTION
6697: WHEN OKC_API.G_EXCEPTION_ERROR THEN

Line 6695: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);

6691: raise OKC_API.G_EXCEPTION_UNEXPECTED_ERROR;
6692: ELSIF (x_return_status = OKC_API.G_RET_STS_ERROR) THEN
6693: raise OKC_API.G_EXCEPTION_ERROR;
6694: END IF;
6695: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6696: EXCEPTION
6697: WHEN OKC_API.G_EXCEPTION_ERROR THEN
6698: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6699: (l_api_name,

Line 6697: WHEN OKC_API.G_EXCEPTION_ERROR THEN

6693: raise OKC_API.G_EXCEPTION_ERROR;
6694: END IF;
6695: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6696: EXCEPTION
6697: WHEN OKC_API.G_EXCEPTION_ERROR THEN
6698: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6699: (l_api_name,
6700: G_PKG_NAME,
6701: 'OKC_API.G_RET_STS_ERROR',

Line 6698: x_return_status := OKC_API.HANDLE_EXCEPTIONS

6694: END IF;
6695: OKC_API.END_ACTIVITY(x_msg_count, x_msg_data);
6696: EXCEPTION
6697: WHEN OKC_API.G_EXCEPTION_ERROR THEN
6698: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6699: (l_api_name,
6700: G_PKG_NAME,
6701: 'OKC_API.G_RET_STS_ERROR',
6702: x_msg_count,

Line 6701: 'OKC_API.G_RET_STS_ERROR',

6697: WHEN OKC_API.G_EXCEPTION_ERROR THEN
6698: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6699: (l_api_name,
6700: G_PKG_NAME,
6701: 'OKC_API.G_RET_STS_ERROR',
6702: x_msg_count,
6703: x_msg_data,
6704: '_PUB');
6705: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

Line 6705: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN

6701: 'OKC_API.G_RET_STS_ERROR',
6702: x_msg_count,
6703: x_msg_data,
6704: '_PUB');
6705: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
6706: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6707: (l_api_name,
6708: G_PKG_NAME,
6709: 'OKC_API.G_RET_STS_UNEXP_ERROR',

Line 6706: x_return_status := OKC_API.HANDLE_EXCEPTIONS

6702: x_msg_count,
6703: x_msg_data,
6704: '_PUB');
6705: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
6706: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6707: (l_api_name,
6708: G_PKG_NAME,
6709: 'OKC_API.G_RET_STS_UNEXP_ERROR',
6710: x_msg_count,

Line 6709: 'OKC_API.G_RET_STS_UNEXP_ERROR',

6705: WHEN OKC_API.G_EXCEPTION_UNEXPECTED_ERROR THEN
6706: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6707: (l_api_name,
6708: G_PKG_NAME,
6709: 'OKC_API.G_RET_STS_UNEXP_ERROR',
6710: x_msg_count,
6711: x_msg_data,
6712: '_PUB');
6713: WHEN OTHERS THEN

Line 6714: x_return_status := OKC_API.HANDLE_EXCEPTIONS

6710: x_msg_count,
6711: x_msg_data,
6712: '_PUB');
6713: WHEN OTHERS THEN
6714: x_return_status := OKC_API.HANDLE_EXCEPTIONS
6715: (l_api_name,
6716: G_PKG_NAME,
6717: 'OTHERS',
6718: x_msg_count,

Line 6731: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

6727: x_msg_count OUT NOCOPY NUMBER,
6728: x_msg_data OUT NOCOPY VARCHAR2,
6729: p_rtvv_tbl IN rtvv_tbl_type) IS
6730: i NUMBER := 0;
6731: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
6732: BEGIN
6733: x_return_status := OKC_API.G_RET_STS_SUCCESS;
6734: IF p_rtvv_tbl.COUNT > 0 THEN
6735: i := p_rtvv_tbl.FIRST;

Line 6733: x_return_status := OKC_API.G_RET_STS_SUCCESS;

6729: p_rtvv_tbl IN rtvv_tbl_type) IS
6730: i NUMBER := 0;
6731: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
6732: BEGIN
6733: x_return_status := OKC_API.G_RET_STS_SUCCESS;
6734: IF p_rtvv_tbl.COUNT > 0 THEN
6735: i := p_rtvv_tbl.FIRST;
6736: LOOP
6737: DELETE_RESOLVED_TIMEVALUES(

Line 6744: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

6740: l_return_status,
6741: x_msg_count,
6742: x_msg_data,
6743: p_rtvv_tbl(i));
6744: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
6745: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6746: x_return_status := l_return_status;
6747: raise G_EXCEPTION_HALT_VALIDATION;
6748: ELSE

Line 6745: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6741: x_msg_count,
6742: x_msg_data,
6743: p_rtvv_tbl(i));
6744: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
6745: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6746: x_return_status := l_return_status;
6747: raise G_EXCEPTION_HALT_VALIDATION;
6748: ELSE
6749: x_return_status := l_return_status;

Line 6760: OKC_API.set_message(p_app_name => g_app_name,

6756: EXCEPTION
6757: WHEN G_EXCEPTION_HALT_VALIDATION THEN
6758: NULL;
6759: WHEN OTHERS THEN
6760: OKC_API.set_message(p_app_name => g_app_name,
6761: p_msg_name => g_unexpected_error,
6762: p_token1 => g_sqlcode_token,
6763: p_token1_value => sqlcode,
6764: p_token2 => g_sqlerrm_token,

Line 6766: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

6762: p_token1 => g_sqlcode_token,
6763: p_token1_value => sqlcode,
6764: p_token2 => g_sqlerrm_token,
6765: p_token2_value => sqlerrm);
6766: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
6767: END DELETE_RESOLVED_TIMEVALUES;
6768:
6769: PROCEDURE LOCK_RESOLVED_TIMEVALUES(
6770: p_api_version IN NUMBER,

Line 6794: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

6790: x_msg_count OUT NOCOPY NUMBER,
6791: x_msg_data OUT NOCOPY VARCHAR2,
6792: p_rtvv_tbl IN rtvv_tbl_type) IS
6793: i NUMBER := 0;
6794: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
6795: BEGIN
6796: x_return_status := OKC_API.G_RET_STS_SUCCESS;
6797: IF p_rtvv_tbl.COUNT > 0 THEN
6798: i := p_rtvv_tbl.FIRST;

Line 6796: x_return_status := OKC_API.G_RET_STS_SUCCESS;

6792: p_rtvv_tbl IN rtvv_tbl_type) IS
6793: i NUMBER := 0;
6794: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
6795: BEGIN
6796: x_return_status := OKC_API.G_RET_STS_SUCCESS;
6797: IF p_rtvv_tbl.COUNT > 0 THEN
6798: i := p_rtvv_tbl.FIRST;
6799: LOOP
6800: LOCK_RESOLVED_TIMEVALUES(

Line 6807: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

6803: l_return_status,
6804: x_msg_count,
6805: x_msg_data,
6806: p_rtvv_tbl(i));
6807: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
6808: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6809: x_return_status := l_return_status;
6810: raise G_EXCEPTION_HALT_VALIDATION;
6811: ELSE

Line 6808: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6804: x_msg_count,
6805: x_msg_data,
6806: p_rtvv_tbl(i));
6807: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
6808: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6809: x_return_status := l_return_status;
6810: raise G_EXCEPTION_HALT_VALIDATION;
6811: ELSE
6812: x_return_status := l_return_status;

Line 6823: OKC_API.set_message(p_app_name => g_app_name,

6819: EXCEPTION
6820: WHEN G_EXCEPTION_HALT_VALIDATION THEN
6821: NULL;
6822: WHEN OTHERS THEN
6823: OKC_API.set_message(p_app_name => g_app_name,
6824: p_msg_name => g_unexpected_error,
6825: p_token1 => g_sqlcode_token,
6826: p_token1_value => sqlcode,
6827: p_token2 => g_sqlerrm_token,

Line 6829: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

6825: p_token1 => g_sqlcode_token,
6826: p_token1_value => sqlcode,
6827: p_token2 => g_sqlerrm_token,
6828: p_token2_value => sqlerrm);
6829: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
6830: END LOCK_RESOLVED_TIMEVALUES;
6831:
6832: PROCEDURE VALID_RESOLVED_TIMEVALUES(
6833: p_api_version IN NUMBER,

Line 6857: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;

6853: x_msg_count OUT NOCOPY NUMBER,
6854: x_msg_data OUT NOCOPY VARCHAR2,
6855: p_rtvv_tbl IN rtvv_tbl_type) IS
6856: i NUMBER := 0;
6857: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
6858: BEGIN
6859: x_return_status := OKC_API.G_RET_STS_SUCCESS;
6860: IF p_rtvv_tbl.COUNT > 0 THEN
6861: i := p_rtvv_tbl.FIRST;

Line 6859: x_return_status := OKC_API.G_RET_STS_SUCCESS;

6855: p_rtvv_tbl IN rtvv_tbl_type) IS
6856: i NUMBER := 0;
6857: l_return_status VARCHAR2(1) := OKC_API.G_RET_STS_SUCCESS;
6858: BEGIN
6859: x_return_status := OKC_API.G_RET_STS_SUCCESS;
6860: IF p_rtvv_tbl.COUNT > 0 THEN
6861: i := p_rtvv_tbl.FIRST;
6862: LOOP
6863: VALID_RESOLVED_TIMEVALUES(

Line 6870: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN

6866: l_return_status,
6867: x_msg_count,
6868: x_msg_data,
6869: p_rtvv_tbl(i));
6870: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
6871: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6872: x_return_status := l_return_status;
6873: raise G_EXCEPTION_HALT_VALIDATION;
6874: ELSE

Line 6871: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN

6867: x_msg_count,
6868: x_msg_data,
6869: p_rtvv_tbl(i));
6870: IF (l_return_status <> OKC_API.G_RET_STS_SUCCESS) THEN
6871: IF (l_return_status = OKC_API.G_RET_STS_UNEXP_ERROR) THEN
6872: x_return_status := l_return_status;
6873: raise G_EXCEPTION_HALT_VALIDATION;
6874: ELSE
6875: x_return_status := l_return_status;

Line 6886: OKC_API.set_message(p_app_name => g_app_name,

6882: EXCEPTION
6883: WHEN G_EXCEPTION_HALT_VALIDATION THEN
6884: NULL;
6885: WHEN OTHERS THEN
6886: OKC_API.set_message(p_app_name => g_app_name,
6887: p_msg_name => g_unexpected_error,
6888: p_token1 => g_sqlcode_token,
6889: p_token1_value => sqlcode,
6890: p_token2 => g_sqlerrm_token,

Line 6892: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;

6888: p_token1 => g_sqlcode_token,
6889: p_token1_value => sqlcode,
6890: p_token2 => g_sqlerrm_token,
6891: p_token2_value => sqlerrm);
6892: x_return_status := OKC_API.G_RET_STS_UNEXP_ERROR;
6893: END VALID_RESOLVED_TIMEVALUES;
6894: END OKC_TIME_PUB;