37: close csr_request;
38:
39: --
40: if v_not_unique then
41: hr_utility.set_message (801,'PER_7350_OUT_LETTER_EXISTS');
42: hr_utility.raise_error;
43: end if;
44: --
45: end check_request_unique;
38:
39: --
40: if v_not_unique then
41: hr_utility.set_message (801,'PER_7350_OUT_LETTER_EXISTS');
42: hr_utility.raise_error;
43: end if;
44: --
45: end check_request_unique;
46: --
62: request_lines_not_exist := c%notfound;
63: close c;
64: --
65: if request_lines_not_exist then
66: hr_utility.set_message (801,'PER_7351_OUT_LETTER_NO_LINES');
67: hr_utility.raise_error;
68: end if;
69: --
70: hr_utility.set_location('PER_LETTER_REQUESTS_PKG.check_request_lines', 1);
63: close c;
64: --
65: if request_lines_not_exist then
66: hr_utility.set_message (801,'PER_7351_OUT_LETTER_NO_LINES');
67: hr_utility.raise_error;
68: end if;
69: --
70: hr_utility.set_location('PER_LETTER_REQUESTS_PKG.check_request_lines', 1);
71: --
66: hr_utility.set_message (801,'PER_7351_OUT_LETTER_NO_LINES');
67: hr_utility.raise_error;
68: end if;
69: --
70: hr_utility.set_location('PER_LETTER_REQUESTS_PKG.check_request_lines', 1);
71: --
72: end check_request_lines;
73: --
74: PROCEDURE confirm_delete_lines (X_letter_request_id in NUMBER,
92: X_request_lines_exist := TRUE;
93: end if;
94: close c;
95: --
96: hr_utility.set_location('PER_LETTER_REQUESTS_PKG.confirm_delete_lines', 1);
97: --
98: end confirm_delete_lines;
99: --
100: PROCEDURE Insert_Row(X_Rowid IN OUT nocopy VARCHAR2,
140: --
141: OPEN C;
142: FETCH C INTO X_Rowid;
143: if (C%NOTFOUND) then
144: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
145: hr_utility.set_message_token('PROCEDURE','Insert_Row');
146: hr_utility.set_message_token('STEP','1');
147: hr_utility.raise_error;
148: end if;
141: OPEN C;
142: FETCH C INTO X_Rowid;
143: if (C%NOTFOUND) then
144: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
145: hr_utility.set_message_token('PROCEDURE','Insert_Row');
146: hr_utility.set_message_token('STEP','1');
147: hr_utility.raise_error;
148: end if;
149: CLOSE C;
142: FETCH C INTO X_Rowid;
143: if (C%NOTFOUND) then
144: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
145: hr_utility.set_message_token('PROCEDURE','Insert_Row');
146: hr_utility.set_message_token('STEP','1');
147: hr_utility.raise_error;
148: end if;
149: CLOSE C;
150: END Insert_Row;
143: if (C%NOTFOUND) then
144: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
145: hr_utility.set_message_token('PROCEDURE','Insert_Row');
146: hr_utility.set_message_token('STEP','1');
147: hr_utility.raise_error;
148: end if;
149: CLOSE C;
150: END Insert_Row;
151: --
171: --
172: OPEN C;
173: FETCH C INTO Recinfo;
174: if (C%NOTFOUND) then
175: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
176: hr_utility.set_message_token('PROCEDURE','Lock_Row');
177: hr_utility.set_message_token('STEP','1');
178: hr_utility.raise_error;
179: end if;
172: OPEN C;
173: FETCH C INTO Recinfo;
174: if (C%NOTFOUND) then
175: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
176: hr_utility.set_message_token('PROCEDURE','Lock_Row');
177: hr_utility.set_message_token('STEP','1');
178: hr_utility.raise_error;
179: end if;
180: CLOSE C;
173: FETCH C INTO Recinfo;
174: if (C%NOTFOUND) then
175: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
176: hr_utility.set_message_token('PROCEDURE','Lock_Row');
177: hr_utility.set_message_token('STEP','1');
178: hr_utility.raise_error;
179: end if;
180: CLOSE C;
181: --
174: if (C%NOTFOUND) then
175: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
176: hr_utility.set_message_token('PROCEDURE','Lock_Row');
177: hr_utility.set_message_token('STEP','1');
178: hr_utility.raise_error;
179: end if;
180: CLOSE C;
181: --
182: Recinfo.request_status := rtrim(Recinfo.request_status);
233: event_id = X_Event_ID
234: WHERE rowid = X_rowid;
235: --
236: if (SQL%NOTFOUND) then
237: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
238: hr_utility.set_message_token('PROCEDURE','Update_Row');
239: hr_utility.set_message_token('STEP','1');
240: hr_utility.raise_error;
241: end if;
234: WHERE rowid = X_rowid;
235: --
236: if (SQL%NOTFOUND) then
237: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
238: hr_utility.set_message_token('PROCEDURE','Update_Row');
239: hr_utility.set_message_token('STEP','1');
240: hr_utility.raise_error;
241: end if;
242: --
235: --
236: if (SQL%NOTFOUND) then
237: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
238: hr_utility.set_message_token('PROCEDURE','Update_Row');
239: hr_utility.set_message_token('STEP','1');
240: hr_utility.raise_error;
241: end if;
242: --
243: END Update_Row;
236: if (SQL%NOTFOUND) then
237: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
238: hr_utility.set_message_token('PROCEDURE','Update_Row');
239: hr_utility.set_message_token('STEP','1');
240: hr_utility.raise_error;
241: end if;
242: --
243: END Update_Row;
244: --
264: DELETE FROM per_letter_request_lines
265: WHERE letter_Request_Id = X_letter_request_id;
266: --
267: if (SQL%NOTFOUND) then
268: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
269: hr_utility.set_message_token('PROCEDURE','Delete_Row');
270: hr_utility.set_message_token('STEP','1');
271: hr_utility.raise_error;
272: end if;
265: WHERE letter_Request_Id = X_letter_request_id;
266: --
267: if (SQL%NOTFOUND) then
268: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
269: hr_utility.set_message_token('PROCEDURE','Delete_Row');
270: hr_utility.set_message_token('STEP','1');
271: hr_utility.raise_error;
272: end if;
273: --
266: --
267: if (SQL%NOTFOUND) then
268: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
269: hr_utility.set_message_token('PROCEDURE','Delete_Row');
270: hr_utility.set_message_token('STEP','1');
271: hr_utility.raise_error;
272: end if;
273: --
274: end if;
267: if (SQL%NOTFOUND) then
268: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
269: hr_utility.set_message_token('PROCEDURE','Delete_Row');
270: hr_utility.set_message_token('STEP','1');
271: hr_utility.raise_error;
272: end if;
273: --
274: end if;
275: --
276: DELETE FROM per_letter_requests
277: WHERE rowid = X_Rowid;
278: --
279: if (SQL%NOTFOUND) then
280: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
281: hr_utility.set_message_token('PROCEDURE','Delete_Row');
282: hr_utility.set_message_token('STEP','1');
283: hr_utility.raise_error;
284: end if;
277: WHERE rowid = X_Rowid;
278: --
279: if (SQL%NOTFOUND) then
280: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
281: hr_utility.set_message_token('PROCEDURE','Delete_Row');
282: hr_utility.set_message_token('STEP','1');
283: hr_utility.raise_error;
284: end if;
285: --
278: --
279: if (SQL%NOTFOUND) then
280: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
281: hr_utility.set_message_token('PROCEDURE','Delete_Row');
282: hr_utility.set_message_token('STEP','1');
283: hr_utility.raise_error;
284: end if;
285: --
286: END Delete_Row;
279: if (SQL%NOTFOUND) then
280: hr_utility.set_message(801,'HR_6153_ALL_PROCEDURE_FAIL');
281: hr_utility.set_message_token('PROCEDURE','Delete_Row');
282: hr_utility.set_message_token('STEP','1');
283: hr_utility.raise_error;
284: end if;
285: --
286: END Delete_Row;
287: --