The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT
OEOT.NAME
INTO L_ORDER_TYPE
FROM
OE_TRANSACTION_TYPES_TL OEOT
WHERE OEOT.TRANSACTION_TYPE_ID = P_ORDER_TYPE
AND OEOT.LANGUAGE = USERENV('LANG');
SELECT
OEOT.NAME
INTO L_LINE_TYPE
FROM
OE_TRANSACTION_TYPES_TL OEOT
WHERE OEOT.TRANSACTION_TYPE_ID = P_LINE_TYPE
AND OEOT.LANGUAGE = USERENV('LANG');
SELECT sob.name ,
sob.currency_code
INTO
l_company_name ,
l_functional_currency
FROM gl_sets_of_books sob,
fnd_currencies cur
WHERE sob.set_of_books_id = p_sob_id
AND sob.currency_code = cur.currency_code
;
SELECT cp.user_concurrent_program_name
INTO l_report_name
FROM FND_CONCURRENT_PROGRAMS_VL cp,
FND_CONCURRENT_REQUESTS cr
WHERE cr.request_id = P_CONC_REQUEST_ID
AND cp.application_id = cr.program_application_id
AND cp.concurrent_program_id = cr.concurrent_program_id
;
MODE="SELECT"
DISPLAY="ALL"
TABLEALIAS="SI"
');
SELECT MEANING
INTO l_meaning
FROM OE_LOOKUPS
WHERE LOOKUP_TYPE = 'ITEM_DISPLAY_CODE'
AND LOOKUP_CODE = substr(upper(p_item_description),1,1)
;
select sitems.description description
into v_description
from mtl_system_items_vl sitems
where sitems.customer_order_enabled_flag = 'Y'
and sitems.bom_item_type in (1,4)
and nvl(sitems.organization_id,0) = RP_DUMMY_ITEM
and sitems.inventory_item_id = Item_DspFormula.inventory_item_id1; --Bug2764262
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 = Item_DspFormula.ordered_item_id
and nvl(sitems.organization_id,0) = RP_DUMMY_ITEM
and sitems.inventory_item_id = Item_DspFormula.inventory_item_id1;
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 = Item_DspFormula.ordered_item
and items.cross_reference_type = Item_DspFormula.item_identifier_type
and nvl(sitems.organization_id,0) = RP_DUMMY_ITEM
and sitems.inventory_item_id = Item_DspFormula.inventory_item_id1;