The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT H.INVENTORY_ITEM_ID,
K.concatenated_segments, -- Item Number
H.parent_lot_number,
K.description,
H.lot_number,
I.organization_code,
H.organization_id,
H.revision,
H.subinventory,
MIL.concatenated_segments , -- Locator
H.disposition,
h.source,
h.sample_taken_cnt,
h.receipt_id,
H.RECEIPT_LINE_ID,
H.PO_HEADER_ID ,
H.PO_LINE_ID ,
H.SUPPLIER_ID ,
H.SUPPLIER_LOT_NO ,
E.test_id ,
F.spec_id ,
E.from_qty_uom,
E.to_qty_uom,
E.CURRENT_CONVERSION ,
E.PROPOSED_CONVERSION ,
E.from_qty_uom_base ,
E.to_qty_uom_base ,
E.PROPOSED_CONVERSION_BASE,
E.result_id
from GMD_UOM_CONVERSIONS E,
gmd_event_spec_disp F,
gmd_sampling_events H,
mtl_parameters I,
mtl_item_locations_kfv MIL,
mtl_system_items_kfv K
where e.EVENT_SPEC_DISP_ID = l_event_key and
e.EVENT_SPEC_DISP_ID = f.event_spec_disp_id and
f.sampling_event_id = h.SAMPLING_EVENT_ID and
I.organization_id = H.organization_id and
MIL.organization_id(+) = H.organization_id and
MIL.inventory_location_id(+) = H.locator_id and
K.organization_id = H.organization_id and
K.inventory_item_id = H.inventory_item_id and
e.recommended_ind = 'Y';
select spec_name , spec_vers, owner_id
from gmd_specifications
where spec_id = spec_id_in ;
select test_desc
from gmd_qc_tests
where test_id = test_id_in;
select vendor_name
from po_vendors
where vendor_id = vendor_id_in ;
select segment1
from po_headers_all
where po_header_id = po_header_in ;
select line_num
from po_lines_all
where po_line_id = po_line_in ;
select receipt_num
from rcv_shipment_headers
where shipment_header_id = receipt_in ;
select line_num
from rcv_shipment_lines
where shipment_line_id = receipt_line_in ;
select conversion_id
from MTL_LOT_UOM_CLASS_CONVERSIONS
where inventory_item_id = item_id_in
and organization_id = org_id_in
and lot_number = lot_number_in
and from_uom_code = from_uom_in
and to_uom_code = to_uom_in;
SELECT meaning
FROM fnd_lookup_values
WHERE lookup_TYPE = 'GMD_QC_SAMPLE_DISP'
AND language = USERENV('LANG')
AND lookup_code = disp_in ;
SELECT description
FROM fnd_lookup_values
WHERE lookup_TYPE like 'GMD_QC_SOURCE'
AND language = USERENV('LANG')
AND lookup_code = item_source_in ;
SELECT description
FROM fnd_lookup_values
WHERE lookup_TYPE like 'GMD_QC_MONITOR_RULE_TYPE'
AND language = USERENV('LANG')
AND lookup_code = mon_source_in ;
select LOT_CONTROL_CODE
from mtl_system_items_kfv
where inventory_item_id = item_no_in;
select lot_number
from mtl_lot_numbers
where parent_lot_number = l_parent_lot_number_in and
organization_id = l_organization_id_in and
inventory_item_id = l_item_id_in ;
select user_name
from fnd_user
where user_id = owner_id_in;
select UOM_CLASS from mtl_units_of_measure -- SCHANDRU INVCONV
where uom_code = uom_code_in ;
select nvl( text, '')
from wf_Resources where name = 'WF_ADMIN_ROLE'
and language = userenv('LANG') ;
select application_id into l_application_id
from fnd_application where application_short_name='GMD';
select user_name into l_user from fnd_user
where user_id=Approver.user_id;
select user_name into l_user from fnd_user
where user_id=ame_util.PERSONIDTOUSERID(Approver.person_id);
ame_api.updateApprovalStatus(applicationIdIn => l_application_id,
transactionIdIn => l_event_key,
approverIn => Approver,
transactionTypeIn => l_transaction_type,
forwardeeIn => ame_util.emptyApproverRecord);
ame_api.updateApprovalStatus(applicationIdIn => l_application_id,
transactionIdIn => l_event_key,
approverIn => Approver,
transactionTypeIn => l_transaction_type,
forwardeeIn => ame_util.emptyApproverRecord);
select application_id into l_application_id
from fnd_application where application_short_name='GMD';
select user_name into l_user from fnd_user
where user_id=Approver.user_id;
select user_name into l_user from fnd_user
where user_id=ame_util.PERSONIDTOUSERID(Approver.person_id);
ame_api.updateApprovalStatus(applicationIdIn => l_application_id,
transactionIdIn => l_event_key,
approverIn => Approver,
transactionTypeIn => l_transaction_type,
forwardeeIn => ame_util.emptyApproverRecord);