The following lines contain the word 'select', 'insert', 'update' or 'delete':
-- Cursor C will select all approval-required notifications
-- whose recipient id is x_old_employee_id.
/* Commenting out since no longe rused in R11
CURSOR C is
SELECT notification_id, doc_type, object_id
FROM fnd_notifications
WHERE employee_id = x_old_employee_id
AND message_name = 'AWAITING_YOUR_APPROVAL'; */
PO_NOTIFICATIONS_SV2.update_po_notif (x_new_employee_id,
x_doc_type,
x_object_id);
-- Cursor C will select the approval-required notification
-- for this document.
/* Commenting out since no longe rused in R11
CURSOR C is
SELECT notification_id
FROM fnd_notifications
WHERE doc_type = x_doc_type
AND object_id = x_object_id
AND message_name = 'AWAITING_YOUR_APPROVAL'; */
PO_NOTIFICATIONS_SV2.update_po_notif (x_new_employee_id,
x_doc_type,
x_object_id);
PROCEDURE NAME: delete_from_fnd_notif
===========================================================================*/
PROCEDURE delete_from_fnd_notif (n_object_type_lookup_code IN VARCHAR2,
n_object_id IN NUMBER)
IS
x_doc_type VARCHAR2(30) := '';
SELECT doc_type
INTO x_doc_type
FROM fnd_notifications_v
WHERE object_id = n_object_id
AND doc_type IN ('PURCHASE', 'INTERNAL');
SELECT doc_type
INTO x_doc_type
FROM fnd_notifications_v
WHERE object_id = n_object_id
AND doc_type IN ('RELEASE', 'SCHEDULED');
SELECT doc_type
INTO x_doc_type
FROM fnd_notifications_v
WHERE object_id = n_object_id
AND doc_type = n_object_type_lookup_code;
PO_MESSAGE_S.SQL_ERROR('delete_fnd_notifications', x_progress, sqlcode);
po_notifications_sv1.delete_notif_by_id_type(n_object_id, x_doc_type);
PO_MESSAGE_S.SQL_ERROR('delete_from_fnd_notif', x_progress, sqlcode);
SELECT BLANKET_TOTAL_AMOUNT
INTO x_amount
FROM PO_HEADERS ph
WHERE ph.po_header_id = x_object_id;
SELECT FULL_NAME
INTO v_full_name
FROM HR_EMPLOYEES
WHERE EMPLOYEE_ID = x_emp_id;
select orig_system_id
from wf_users
where name = x_role_name
and orig_system not in ('HZ_PARTY', 'POS', 'ENG_LIST', 'CUST_CONT');
select orig_system_id
from wf_users
where orig_system = substr(x_role_name, 1, colon-1)
and orig_system_id = substr(x_role_name, colon+1)
and name = x_role_name
and orig_system not in ('POS', 'ENG_LIST', 'CUST_CONT');