The following lines contain the word 'select', 'insert', 'update' or 'delete':
select org_id
from ozf_funds_all_b
where fund_id = p_id;
select b.fund_number , t.short_name , b.currency_code_tc , b.start_date_active , res.RESOURCE_NAME ,
b.fund_type
from ozf_funds_all_b b ,
ozf_funds_all_tl t ,
jtf_rs_resource_extns_tl res
where b.fund_id = p_fund_id
and b.fund_id = t.fund_id
and res.resource_id = b.owner
and userenv ( 'LANG' ) = t.language
and t.language = res.language;
SELECT fund_number, short_name, currency_code_tc, start_date_active,
owner_full_name,fund_type
FROM ozf_fund_details_v
WHERE fund_id = p_fund_id;
select b.fund_number , t.short_name , b.currency_code_tc , b.start_date_active , res.RESOURCE_NAME ,
b.fund_type
from ozf_funds_all_b b ,
ozf_funds_all_tl t ,
jtf_rs_resource_extns_tl res
where b.fund_id = p_fund_id
and b.fund_id = t.fund_id
and res.resource_id = b.owner
and userenv ( 'LANG' ) = t.language
and t.language = res.language;
SELECT fund_number, short_name, currency_code_tc, start_date_active,
owner_full_name, fund_type -- ,original_budget 01/28/2003 yzhao: requested amount is not original_budget
FROM ozf_fund_details_v
WHERE fund_id = p_fund_id;
SELECT fund_number, short_name, currency_code_tc, start_date_active, fund_type
FROM ozf_funds_all_vl
WHERE fund_id = p_fund_id;
select b.fund_number , t.short_name , b.currency_code_tc , b.start_date_active , res.RESOURCE_NAME ,
b.fund_type
from ozf_funds_all_b b ,
ozf_funds_all_tl t ,
jtf_rs_resource_extns_tl res
where b.fund_id = p_fund_id
and b.fund_id = t.fund_id
and res.resource_id = b.owner
and userenv ( 'LANG' ) = t.language
and t.language = res.language;
SELECT fund_number, short_name, currency_code_tc, start_date_active,
owner_full_name, fund_type
FROM ozf_fund_details_v
WHERE fund_id = p_fund_id;
SELECT fund_number, short_name, currency_code_tc, start_date_active, fund_type
FROM ozf_funds_all_vl
WHERE fund_id = p_fund_id;
SELECT short_name, custom_setup_id, original_budget, org_id, to_char(category_id),
start_date_active, end_date_active, owner, currency_code_tc, business_unit_id,
fund_number, fund_type
FROM ozf_funds_all_vl
WHERE fund_id = p_act_id;
SELECT b.text_value, b.number_value
FROM wf_routing_rules a, wf_routing_rule_attributes b
WHERE a.rule_id = b.rule_id
AND a.role = p_approver_name
AND TRUNC(sysdate) BETWEEN TRUNC(NVL(begin_date, sysdate -1)) AND
TRUNC(NVL(end_date,sysdate+1))
AND a.message_name = 'AMS_APPROVAL_REQUIRED_OZF'
AND b.name = 'AMS_AMOUNT';
PROCEDURE update_parbudget_status (
itemtype IN VARCHAR2,
itemkey IN VARCHAR2,
actid IN NUMBER,
funcmode IN VARCHAR2,
resultout OUT NOCOPY VARCHAR2
) IS
l_status_code VARCHAR2 (30);
l_api_name CONSTANT VARCHAR2 (30) := 'Update_ParBudget_Status';
l_update_status VARCHAR2 (12);
SELECT fund_type from ozf_funds_all_b where fund_id = l_fund_id;
SAVEPOINT update_parbudget_status ;
l_update_status :=
wf_engine.getitemattrtext (
itemtype=> itemtype,
itemkey=> itemkey,
aname => 'UPDATE_GEN_STATUS'
);
OZF_DEBUG_PVT.DEBUG_MO('OZF_Fund_Approval_PVT update_parbudget_status before setting context : fund_id '||l_fund_id);
IF l_update_status IN ('APPROVED', 'REJECTED') AND
(l_user_id IS NULL OR l_resp_id IS NULL OR l_appl_id IS NULL) THEN
l_update_status := NULL;
,aname => 'UPDATE_GEN_STATUS'
,avalue => l_update_status
);
,'update_parbudget_status'
,itemtype
,itemkey
,actid
,l_error_msg
);
ELSIF l_update_status IN ('APPROVED', 'REJECTED') THEN
--Bug 14725235
FND_GLOBAL.apps_initialize( user_id => l_user_id
, resp_id => l_resp_id
, resp_appl_id => l_appl_id
--, security_group_id => l_security_group_id
);
OZF_UTILITY_PVT.debug_message(FND_LOG.LEVEL_STATEMENT,'OZF','OZF_Fund_Approval_PVT update_parbudget_status l_fund_id : '||l_fund_id);
OZF_UTILITY_PVT.debug_message(FND_LOG.LEVEL_STATEMENT,'OZF','OZF_Fund_Approval_PVT update_parbudget_status l_org_id : '||l_org_id);
OZF_DEBUG_PVT.DEBUG_MO('OZF_Fund_Approval_PVT update_parbudget_status after setting context : fund_id '||l_fund_id);
IF l_update_status = 'APPROVED' THEN
l_next_status_id :=
wf_engine.getitemattrnumber (
itemtype=> itemtype,
itemkey=> itemkey,
aname => 'AMS_NEW_STAT_ID'
);
ozf_utility_pvt.debug_message ( l_full_name || l_update_status);
ELSIF l_update_status = 'REJECTED' THEN
l_next_status_id :=
wf_engine.getitemattrnumber (
itemtype=> itemtype,
itemkey=> itemkey,
aname => 'AMS_REJECT_STAT_ID'
);
|| l_update_status
);
ozf_funds_pvt.update_fund (
p_api_version=> l_api_version,
p_init_msg_list=> fnd_api.g_false,
p_validation_level => l_validation_level,
x_return_status=> l_return_status,
x_msg_count=> l_msg_count,
x_msg_data=> l_msg_data,
p_fund_rec=> l_fund_rec,
p_mode=> g_fund_mode
);
ozf_utility_pvt.debug_message(l_full_name || ' failed to update fund to status ' || l_status_code);
ROLLBACK TO update_parbudget_status ;
END update_parbudget_status;
l_api_name CONSTANT VARCHAR2 (30) := 'Update_ParBudget_Status';
l_update_status VARCHAR2 (12);
|| l_update_status
);
ozf_funds_pvt.update_fund (
p_api_version=> l_api_version,
p_init_msg_list=> fnd_api.g_false,
x_return_status=> l_return_status,
x_msg_count=> l_msg_count,
x_msg_data=> l_msg_data,
p_fund_rec=> l_fund_rec,
p_mode=> g_fund_mode
);
SELECT ozf2.owner, ozf1.owner
FROM ozf_funds_all_b ozf2, ozf_funds_all_b ozf1
WHERE ozf2.fund_id = ozf1.parent_fund_id
AND ozf1.fund_id = p_fund_id;