The following lines contain the word 'select', 'insert', 'update' or 'delete':
select sitems.description description
into v_description
from mtl_system_items_vl sitems
Where nvl(sitems.organization_id,0) = c_master_org_L
and sitems.inventory_item_id = inventory_item_id_L;
select citems.customer_item_number item,
nvl(citems.customer_item_desc,sitems.description) description
into v_item,v_description
from mtl_customer_items citems,
mtl_customer_item_xrefs cxref,
mtl_system_items_vl sitems
where citems.customer_item_id = cxref.customer_item_id
and cxref.inventory_item_id = sitems.inventory_item_id
and citems.customer_item_id = ordered_item_id_L
and nvl(sitems.organization_id,0) = c_master_org_L
and sitems.inventory_item_id = inventory_item_id_L;
select items.cross_reference item,
nvl(items.description,sitems.description) description
into v_item,v_description
from mtl_cross_reference_types xtypes,
mtl_cross_references items,
mtl_system_items_vl sitems
where xtypes.cross_reference_type = items.cross_reference_type
and items.inventory_item_id = sitems.inventory_item_id
and items.cross_reference = ordered_item_L
and items.cross_reference_type = item_identifier_type_L
and nvl(sitems.organization_id,0) = c_master_org_L
and sitems.inventory_item_id = inventory_item_id_L
-- Bug 3433353 Begin
and items.org_independent_flag = 'N'
and items.organization_id = c_master_org_L;
select items.cross_reference item,
nvl(items.description,sitems.description) description
into v_item,v_description
from mtl_cross_reference_types xtypes,
mtl_cross_references items,
mtl_system_items_vl sitems
where xtypes.cross_reference_type =
items.cross_reference_type
and items.inventory_item_id =
sitems.inventory_item_id
and items.cross_reference = ordered_item_L
and items.cross_reference_type = item_identifier_type_L
and nvl(sitems.organization_id,0) = c_master_org_L
and sitems.inventory_item_id = inventory_item_id_L
and items.org_independent_flag = 'Y';
SELECT
NAME
INTO SOB_NAME
FROM
GL_SETS_OF_BOOKS
WHERE SET_OF_BOOKS_ID = P_SOB_ID;
SELECT
MEANING
INTO ITEM_DISPLAY_MEANING
FROM
OE_LOOKUPS
WHERE LOOKUP_TYPE = 'ITEM_DISPLAY_CODE'
AND LOOKUP_CODE = P_FLEX_OR_DESC;
SELECT
LINE_ID
INTO LINE_ID
FROM
OE_ORDER_HOLDS
WHERE ORDER_HOLD_ID = P_ORDER_HOLD_ID;
SELECT
HEADER_ID
INTO HEADER_ID_VAR
FROM
OE_ORDER_HOLDS
WHERE HEADER_ID = HEADER_ID
AND LINE_ID is NULL
AND HOLD_RELEASE_ID is NULL;
SELECT
NVL(OE_SYS_PARAMETERS.VALUE('MASTER_ORGANIZATION_ID'
,MO_GLOBAL.GET_CURRENT_ORG_ID)
,0)
INTO V_MASTER_ORG
FROM
DUAL;