The following lines contain the word 'select', 'insert', 'update' or 'delete':
PROCEDURE RETRIEVE_LASTUPDATE_DATE
(p_user_name IN VARCHAR2
,p_page_id IN VARCHAR2
,p_session_id IN NUMBER default null
,x_last_update_date OUT NOCOPY VARCHAR2
,x_return_Status OUT NOCOPY VARCHAR2
,x_msg_count OUT NOCOPY NUMBER
,x_msg_data OUT NOCOPY VARCHAR2
)
IS
/* Bug 2551994 Modifications to default as of date to sysdate for every login */
CURSOR c_lastupdatedate IS
SELECT to_char(bua.last_update_date,'RRRR/MM/DD HH24:MI:SS')last_update_date
,bua.attribute_name, bua.session_value, bua.user_id, bua.session_id, bua.function_name
FROM bis_user_attributes bua, fnd_user fu
WHERE bua.page_id=p_page_id
AND bua.user_id = to_char(fu.user_id)
AND fu.user_name = p_user_name;
SELECT parameters
FROM fnd_form_functions
WHERE function_name = l_function_name and
instr(parameters,'pRequestType=P') > 0
and instr(parameters, 'pAsOfDate=') > 0;
for c_rec in c_lastupdatedate loop
if (c_rec.attribute_name = 'AS_OF_DATE') then
l_asof_date := c_rec.session_value;
x_last_update_date := c_rec.last_update_Date;
l_asofdate_func := 'select to_char('||l_asofdate_func||',''DD/MM/YYYY'') from dual';
update bis_user_attributes
set session_value = l_new_asofdate
,session_description = l_new_asofdate
, last_update_date = sysdate
where page_id=p_page_id
and user_id = l_user_id
and attribute_name = l_attribute_name;
x_last_update_date := to_char(sysdate,'RRRR/MM/DD HH24:MI:SS');
update bis_user_attributes
set session_value = to_char(sysdate,'DD/MM/YYYY')
,session_description = to_char(sysdate,'DD/MM/YYYY')
--As of Date 3094234--dd/mm/yyyy format
--set session_value = to_char(sysdate,'DD-MON-YYYY')
--,session_description = to_char(sysdate,'DD-MON-YYYY')
, last_update_date = sysdate
where page_id=p_page_id
and user_id = l_user_id
and attribute_name = l_attribute_name;
x_last_update_date := to_char(sysdate,'RRRR/MM/DD HH24:MI:SS');
SELECT bua.attribute_name, bua.session_description
FROM bis_user_attributes bua, fnd_user fu
WHERE bua.page_id=p_page_id AND
bua.user_id=to_char(fu.user_id) AND
fu.user_name = p_user_name
ORDER BY bua.attribute_name;
SELECT bua.attribute_name, bua.session_description
FROM bis_user_attributes bua
WHERE bua.page_id=p_page_id AND
bua.user_id=p_user_id
ORDER BY bua.attribute_name;
SELECT region_application_id, help_target
FROM ak_regions
WHERE region_code = pRegionCode ;
SELECT target_name
FROM fnd_help_targets
WHERE target_name = p_Function_Name ;
SELECT fa.APPLICATION_ID
FROM fnd_application fa
WHERE fa.APPLICATION_SHORT_NAME = SUBSTR(p_Function_Name,1,3) ;