The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT *
FROM MTL_OBJECT_GENEALOGY_INTERFACE mogi
WHERE mogi.group_id = p_interface_group_id
AND mogi.process_status = 'R';
select msi.eam_item_type into l_dummy
from mtl_serial_numbers msn, mtl_system_items msi
where msn.serial_number = genealogy_rec.serial_number
and msi.organization_id = genealogy_rec.organization_id
and msi.inventory_item_id = genealogy_rec.inventory_item_id
and msn.inventory_item_id = msi.inventory_item_id
and msi.organization_id = msn.current_organization_id;
INV_GENEALOGY_PUB.insert_genealogy(
p_api_version => l_api_version
, p_commit => fnd_api.g_true
, p_object_type => genealogy_rec.object_type
, p_parent_object_type => genealogy_rec.parent_object_type
, p_object_id => genealogy_rec.object_id
, p_object_number => genealogy_rec.serial_number
, p_inventory_item_id => genealogy_rec.inventory_item_id
, p_org_id => genealogy_rec.organization_id
, p_parent_object_id => genealogy_rec.parent_object_id
, p_parent_object_number => genealogy_rec.parent_serial_number
, p_parent_inventory_item_id => genealogy_rec.parent_inventory_item_id
, p_parent_org_id => genealogy_rec.parent_organization_id
, p_genealogy_origin => genealogy_rec.genealogy_origin
, p_genealogy_type => genealogy_rec.genealogy_type
, p_start_date_active => genealogy_rec.start_date_active
, p_end_date_active => genealogy_rec.end_date_active
, p_origin_txn_id => genealogy_rec.origin_txn_id
, p_update_txn_id => genealogy_rec.update_txn_id
, x_return_status => l_return_status
, x_msg_count => l_msg_count
, x_msg_data => l_msg_data);
, p_update_txn_id => genealogy_rec.update_txn_id
, p_from_eam => fnd_api.g_true
, x_return_status => l_return_status
, x_msg_count => l_msg_count
, x_msg_data => l_msg_data);
INV_GENEALOGY_PUB.update_genealogy(
p_api_version => l_api_version
, p_commit => fnd_api.g_true
, p_object_type => genealogy_rec.object_type
, p_object_id => genealogy_rec.object_id
, p_object_number => genealogy_rec.serial_number
, p_inventory_item_id => genealogy_rec.inventory_item_id
, p_org_id => genealogy_rec.organization_id
, p_genealogy_origin => genealogy_rec.genealogy_origin
, p_genealogy_type => genealogy_rec.genealogy_type
, p_end_date_active => genealogy_rec.end_date_active
, p_update_txn_id => genealogy_rec.update_txn_id
, x_return_status => l_return_status
, x_msg_count => l_msg_count
, x_msg_data => l_msg_data);
UPDATE MTL_OBJECT_GENEALOGY_INTERFACE mogi
SET mogi.process_status = 'E',
mogi.error_message = l_msg_data
WHERE mogi.group_id = p_interface_group_id and mogi.interface_header_id = genealogy_rec.interface_header_id;
UPDATE MTL_OBJECT_GENEALOGY_INTERFACE mogi
SET mogi.process_status = 'S'
WHERE mogi.group_id = p_interface_group_id and mogi.interface_header_id = genealogy_rec.interface_header_id;
UPDATE MTL_OBJECT_GENEALOGY_INTERFACE mogi
SET mogi.process_status = 'E',
mogi.error_message = l_msg_data
WHERE mogi.group_id = p_interface_group_id and mogi.interface_header_id = genealogy_rec.interface_header_id;
UPDATE MTL_OBJECT_GENEALOGY_INTERFACE mogi
SET mogi.process_status = 'E',
mogi.error_message = l_msg_data
WHERE mogi.group_id = p_interface_group_id and mogi.interface_header_id = genealogy_rec.interface_header_id;
DELETE FROM MTL_OBJECT_GENEALOGY_INTERFACE mogi
WHERE mogi.process_status = 'S' and
mogi.group_id = p_interface_group_id;
UPDATE MTL_OBJECT_GENEALOGY_INTERFACE mogi
SET mogi.process_status = 'E',
mogi.error_message = l_msg_data,
mogi.error_code = 9999
WHERE mogi.group_id = p_interface_group_id;