The following lines contain the word 'select', 'insert', 'update' or 'delete':
select sitems.concatenated_segments item,
sitems.description description
into v_item,v_description
from mtl_system_items_vl sitems
where sitems.customer_order_enabled_flag = 'Y'
and nvl(sitems.organization_id,0) = nvl(oe_sys_parameters.value('MASTER_ORGANIZATION_ID',mo_global.get_current_org_id()),0)
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) = nvl(oe_sys_parameters.value('MASTER_ORGANIZATION_ID',mo_global.get_current_org_id()),0)
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) = nvl(oe_sys_parameters.value('MASTER_ORGANIZATION_ID',mo_global.get_current_org_id()),0)
and sitems.inventory_item_id = inventory_item_id_L
--Bug 3433353 Being
and items.org_independent_flag = 'N'
and items.organization_id = nvl(oe_sys_parameters.value('MASTER_ORGANIZATION_ID',mo_global.get_current_org_id()),0);
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) = nvl(oe_sys_parameters.value('MASTER_ORGANIZATION_ID',mo_global.get_current_org_id()),0)
and sitems.inventory_item_id = inventory_item_id_L
and items.org_independent_flag = 'Y';
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="MSI"
');
SELECT MEANING
INTO l_meaning
FROM OE_LOOKUPS
WHERE LOOKUP_TYPE = 'ITEM_DISPLAY_CODE'
AND LOOKUP_CODE = substr(upper(p_print_description),1,1)
;
SELECT
MEANING
INTO LP_ORDER_BY_MEAN
FROM
OE_LOOKUPS
WHERE LOOKUP_CODE = UPPER(P_ORDER_BY)
AND LOOKUP_TYPE = 'OEXOEUBK ORDER BY';
SELECT
MEANING
INTO L_MEANING
FROM
OE_LOOKUPS
WHERE LOOKUP_TYPE = 'REPORT_ORDER_CATEGORY'
AND LOOKUP_CODE = P_ORDER_CATEGORY;
SELECT
MEANING
INTO L_MEANING
FROM
OE_LOOKUPS
WHERE LOOKUP_TYPE = 'REPORT_LINE_DISPLAY'
AND LOOKUP_CODE = P_LINE_CATEGORY;
SELECT
NVL(OE_SYS_PARAMETERS.VALUE('MASTER_ORGANIZATION_ID'
,MO_GLOBAL.GET_CURRENT_ORG_ID)
,0)
INTO V_MASTER_ORG
FROM
DUAL;
SELECT
UNIT_OF_MEASURE
INTO L_CHARGE_PERIODICITY
FROM
MTL_UNITS_OF_MEASURE_VL
WHERE UOM_CLASS = L_UOM_CLASS
AND UOM_CODE = CHARGE_PERIODICITY_CODE;