The following lines contain the word 'select', 'insert', 'update' or 'delete':
select
nvl(poa_cm_evaluated_by_id, user_id),
nvl(poa_cm_evaluated_by, user_name)
into
l_employee_id,
l_emp_name
from
fnd_user
where
user_id = l_user_id;
select
nvl(poa_cm_custom_measure_code, lookup_code),
nvl(poa_cm_custom_measure, displayed_field)
into
l_cm_code,
l_custom_measure
from
po_lookup_codes
where
lookup_type = 'CUSTOM MEASURE' and
lookup_code = 'CUSTOMER SATISFACTION';
select nvl(poa_cm_period_type, t.period_type),
nvl(poa_cm_user_period_type, t.user_period_type),
nvl(poa_cm_period_name, p.period_name)
into l_period_type,
l_user_period_type,
l_period_name
from gl_periods p,
gl_period_types t,
financials_system_parameters f,
gl_sets_of_books b
where f.set_of_books_id = b.set_of_books_id
and b.accounted_period_type = p.period_type
and b.period_set_name = p.period_set_name
and p.period_type = t.period_type
and trunc(sysdate) >= trunc(p.start_date)
and trunc(sysdate) <= trunc(p.end_date);
select nvl(poa_cm_operating_unit, name)
into l_operating_unit
from hr_operating_units
where organization_id = l_org_id;
select decode(l_operating_unit, name, l_org_id, nvl(poa_cm_oper_unit_id, to_number(NULL)))
into l_oper_unit_id
from hr_operating_units
where organization_id = l_org_id;
if (submit_type == "Update")
f.POA_CM_SUBMIT_TYPE.value = "Update";
c_js_where_clause = " ORG_ID in (select ORG_ID from POA_CM_SITE_LOV_V where " +
" VENDOR_ID = " + f.POA_CM_SUPPLIER_ID.value.replace(/''/g,"''''") + " AND " +
" VENDOR_SITE_ID = " + f.POA_CM_SUPPLIER_SITE_ID.value.replace(/''/g,"''''") + ")";
c_js_where_clause = " ORG_ID in (select ORG_ID from POA_CM_SITE_LOV_V where " +
" VENDOR_NAME = ''" + f.POA_CM_SUPPLIER.value.replace(/''/g,"''''") + "'' AND " +
" VENDOR_SITE_ID = " + f.POA_CM_SUPPLIER_SITE_ID.value.replace(/''/g,"''''") + ")";
c_js_where_clause = " ORG_ID in (select ORG_ID from POA_CM_SITE_LOV_V where " +
" VENDOR_ID = " + f.POA_CM_SUPPLIER_ID.value.replace(/''/g,"''''") + " AND " +
" VENDOR_SITE_CODE = ''" + f.POA_CM_SUPPLIER_SITE.value.replace(/''/g,"''''") + "'')";
c_js_where_clause = " ORG_ID in (select ORG_ID from POA_CM_SITE_LOV_V where " +
" VENDOR_NAME = ''" + f.POA_CM_SUPPLIER.value.replace(/''/g,"''''") + "'' AND " +
" VENDOR_SITE_CODE = ''" + f.POA_CM_SUPPLIER_SITE.value.replace(/''/g,"''''") + "'')";
c_js_where_clause = " ORGANIZATION_ID in (select INVENTORY_ORGANIZATION_ID from FINANCIALS_SYSTEM_PARAMETERS)" +
" AND CATEGORY_ID = " + f.POA_CM_CATEGORY_ID.value.replace(/''/g,"''''");
c_js_where_clause = " ORGANIZATION_ID in (select INVENTORY_ORGANIZATION_ID from FINANCIALS_SYSTEM_PARAMETERS)" +
" AND COMMODITY = ''" + f.POA_CM_COMMODITY.value.replace(/''/g,"''''") + "''";
c_js_where_clause = " ORGANIZATION_ID in (select INVENTORY_ORGANIZATION_ID from FINANCIALS_SYSTEM_PARAMETERS)";
g_attribute_table.DELETE;