The following lines contain the word 'select', 'insert', 'update' or 'delete':
fv_utility.debug_mesg(fnd_log.level_statement, l_module_name, 'SELECT from fv_system_parameters');
SELECT fsp.factsi_customer_attribute,
fsp.factsi_vendor_attribute
INTO p_customer_attribute,
p_vendor_attribute
FROM fv_system_parameters fsp;
l_select_stmt VARCHAR2(1024);
SELECT gps.period_year,
gps.period_num
INTO p_period_year,
p_from_period_num
FROM gl_period_statuses gps
WHERE gps.application_id = 101
AND gps.ledger_id = p_ledger_id --g_set_of_books_id
AND gps.period_name = p_from_period;
l_location := l_module_name||'select_gl_period_statuses1';
l_location := l_module_name||'select_gl_period_statuses1';
SELECT gps.period_year,
gps.period_num
INTO l_period_year,
p_to_period_num
FROM gl_period_statuses gps
WHERE gps.application_id = 101
AND gps.ledger_id = p_ledger_id --g_set_of_books_id
AND gps.period_name = p_to_period;
l_location := l_module_name||'select_gl_period_statuses1';
l_location := l_module_name||'select_gl_period_statuses1';
l_select_stmt := 'SELECT vendor_type_lookup_code vendor_type, '||
l_vendor_attribute||' elimnation_id '||
'FROM po_vendors
WHERE vendor_id = :p_vendor_or_cust_id';
l_select_stmt := 'SELECT customer_class_code vendor_type, '||
l_customer_attribute||' elimnation_id '||
'FROM ra_customers
WHERE customer_id = :p_vendor_or_cust_id';
dbms_sql.parse(l_cursor_id, l_select_stmt, dbms_sql.v7);
l_location := l_module_name||'select_gl_period_statuses1';
SELECT concurrent_program_name
INTO g_conc_program_name
FROM fnd_concurrent_programs fcp
WHERE fcp.concurrent_program_id = g_conc_program_id;
l_location := l_module_name||'select_fnd_concurrent_programs';
FOR sob_rec IN (SELECT set_of_books_id
FROM fv_facts1_run
WHERE fiscal_year = l_period_year)
LOOP
UPDATE fv_facts1_line_balances ffpb
SET ffpb.party_classification = l_vendor_type,
ffpb.eliminations_dept =
DECODE (l_vendor_type, 'FEDERAL', SUBSTR(NVL(l_elimination_id, '00'), 1, 6), ' '),
g_ng_indicator = DECODE(l_vendor_type, 'FEDERAL', 'F', 'N')
WHERE ffpb.party_id = p_vendor_or_cust_id
AND ffpb.party_type = p_vendor_or_cust
AND ffpb.set_of_books_id = sob_rec.set_of_books_id
AND ffpb.period_year = l_period_year
AND ffpb.period_num BETWEEN l_from_period_num AND l_to_period_num;
'Updated fv_facts1_line_balances');
fv_utility.debug_mesg(fnd_log.level_statement, l_module_name,l_rows||' rows updated.');
l_location := l_module_name||'update_fv_facts1_line_balances';
fv_utility.log_mesg(fnd_log.level_statement, l_module_name, 'UPDATED '||l_tot_rows||' ROWS IN FV_FACTS1_LINE_BALANCES.');