The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT 1
FROM fnd_documents
WHERE document_id = p_document_id;
SELECT fnd_document_id , version_label
FROM edr_files_b
WHERE original_file_name = p_document_name
AND version_label = nvl(p_document_version, version_label)
order by version_label desc;
SELECT document_id
FROM fnd_documents_vl
WHERE file_name = p_document_name;
SELECT fnd_document_id
FROM edr_files_b
WHERE original_file_name = p_document_name;
SELECT category_id
FROM fnd_document_categories
WHERE name = p_document_category;
SELECT 1
FROM fnd_languages
WHERE language_code = p_language;
SELECT 1
FROM fnd_user
WHERE user_id = p_user_id;
SELECT file_data
FROM gr_upload_file_tmp
WHERE request_id = -12345;
SELECT gr_dispatch_history_s.nextval
FROM DUAL;
Delete from gr_upload_file_tmp where request_id = -12345;
P_LAST_UPDATED_BY => p_user_id,
P_LAST_UPDATE_LOGIN => NULL,
P_LAST_UPDATE_DATE => SYSDATE,
X_RETURN_STATUS => x_return_status,
X_MSG_DATA => x_msg_data);
INSERT INTO GR_DISPATCH_HISTORY (
dispatch_history_id ,
document_id ,
item ,
organization_id ,
inventory_item_id ,
recipient_id ,
recipient_site_id ,
date_sent ,
dispatch_method_code ,
creation_source ,
attribute_category ,
attribute1 ,
attribute2 ,
attribute3 ,
attribute4 ,
attribute5 ,
attribute6 ,
attribute7 ,
attribute8 ,
attribute9 ,
attribute10 ,
attribute11 ,
attribute12 ,
attribute13 ,
attribute14 ,
attribute15 ,
attribute16 ,
attribute17 ,
attribute18 ,
attribute19 ,
attribute20 ,
attribute21 ,
attribute22 ,
attribute23 ,
attribute24 ,
attribute25 ,
attribute26 ,
attribute27 ,
attribute28 ,
attribute29 ,
attribute30 ,
created_by ,
creation_date ,
last_updated_by ,
last_update_date ,
last_update_login
) VALUES (
l_dispatch_history_id ,
l_document_id ,
l_item ,
p_organization_id ,
l_inventory_item_id ,
p_recipient_id ,
p_recipient_site_id ,
p_date_sent ,
p_dispatch_method_code ,
p_creation_source ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL ,
p_user_id ,
sysdate ,
p_user_id,
sysdate,
-1);
select NVL(CAS_Number,' ')
into P_CAS_NO
from mtl_system_items_kfv
WHERE concatenated_segments = p_item
AND organization_id = p_organization_id ;
select NVL(ORGANIZATION_CODE,' ') into p_orgn_code
from MTL_PARAMETERS
where ORGANIZATION_ID = p_orgn_id;
select NVL(DESCRIPTION,' ') into p_item_desc
from MTL_SYSTEM_ITEMS
where INVENTORY_ITEM_ID = p_item_id
and ORGANIZATION_ID = p_orgn_id;