The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT b.user_id, b.user_name
FROM JTF_RS_RESOURCE_EXTNS a
, JTF_RS_RESOURCE_EXTNS b
WHERE b.source_id = a.source_mgr_id
AND a.user_id = p_user_id;
SELECT TO_CHAR(IEX_DEL_WF_S.NEXTVAL) INTO itemkey FROM dual;
select party_id,party_name into l_party_id,l_party_name from hz_parties
where party_id = (select party_id from iex_delinquencies_all where delinquency_id = p_delinquency_id);
select account_number into l_account_number from hz_cust_accounts
where cust_account_id = (select cust_account_id from iex_delinquencies_all where delinquency_id = p_delinquency_id);
select party_id,party_name into l_party_id,l_party_name from hz_parties
where party_id = (select party_id from iex_repossessions where repossession_id = p_repossession_id);
select account_number into l_account_number from hz_cust_accounts
where cust_account_id = (select cust_account_id from iex_repossessions where repossession_id = p_repossession_id);
select party_id,party_name into l_party_id,l_party_name from hz_parties
where party_id = (select party_id from iex_litigations where litigation_id = p_litigation_id);
select account_number into l_account_number from hz_cust_accounts
where cust_account_id = (select cust_account_id from iex_litigations where litigation_id = p_litigation_id);
select party_id,party_name into l_party_id,l_party_name from hz_parties
where party_id = (select party_id from iex_writeoffs where writeoff_id = p_writeoff_id);
select account_number into l_account_number from hz_cust_accounts
where cust_account_id = (select cust_account_id from iex_writeoffs where writeoff_id = p_writeoff_id);
select party_id,party_name into l_party_id,l_party_name from hz_parties
where party_id = (select party_id from iex_bankruptcies where bankruptcy_id = p_bankruptcy_id);
select account_number into l_account_number from hz_cust_accounts hc
where exists (select 1 from iex_bankruptcies bk where bankruptcy_id = p_bankruptcy_id
and attribute15 = 'ACCOUNT' and hc.cust_account_id = bk.cust_account_id);
SELECT user_name INTO l_user_name from JTF_RS_RESOURCE_EXTNS
WHERE user_id = p_user_id;
PROCEDURE update_approval_status(
itemtype IN VARCHAR2,
itemkey IN VARCHAR2,
actid IN NUMBER,
funcmode IN VARCHAR2,
result OUT NOCOPY VARCHAR2
) is
l_manager_name varchar2(60);
l_api_name VARCHAR2(100) := 'update_approval_status';
select cust_account_id
from hz_cust_accounts hz
where party_id = (select party_id from iex_bankruptcies
where bankruptcy_id = in_bankruptcy_id)
and hz.cust_account_id = (select decode(bc.attribute15,'ACCOUNT',bc.cust_account_id,hz.cust_account_id) from iex_bankruptcies bc
where bankruptcy_id = in_bankruptcy_id) -- add by bug 15935812
and status = 'A';
iex_debug_pub.logmessage ('IEX_WF_DEL_REQ_CREDIT_PUB: Starting update_approval_status......= ');
update IEX_DELINQUENCIES_ALL
set CREDIT_HOLD_APPROVED_FLAG = 'Y'
where delinquency_id = l_delinquency_id;
update IEX_REPOSSESSIONS
set CREDIT_HOLD_APPROVED_FLAG = 'Y'
where repossession_id = l_repossession_id;
update IEX_LITIGATIONS
set CREDIT_HOLD_APPROVED_FLAG = 'Y'
where litigation_id = l_litigation_id;
update IEX_WRITEOFFS
set CREDIT_HOLD_APPROVED_FLAG = 'Y'
where writeoff_id = l_writeoff_id;
update IEX_BANKRUPTCIES
set CREDIT_HOLD_APPROVED_FLAG = 'Y'
where bankruptcy_id = l_bankruptcy_id;
IEX_CREDIT_HOLD_API.UPDATE_CREDIT_HOLD
(p_api_version => 1.0,
p_init_msg_list => 'T',
p_commit => 'T',
p_account_id => l_acct_id_tbl(i),
p_site_id => null ,
p_credit_hold => 'Y',
x_return_status => l_return_status,
x_msg_count => l_msg_count,
x_msg_data => l_msg_data);
END update_approval_status;
procedure update_rejection_status(
itemtype IN VARCHAR2,
itemkey IN VARCHAR2,
actid IN NUMBER,
funcmode IN VARCHAR2,
result OUT NOCOPY VARCHAR2
) is
l_manager_name varchar2(60);
l_api_name VARCHAR2(100) := 'update_rejection_status';
update IEX_DELINQUENCIES_ALL
set CREDIT_HOLD_APPROVED_FLAG = 'N'
where delinquency_id = l_delinquency_id;
update IEX_REPOSSESSIONS
set CREDIT_HOLD_APPROVED_FLAG = 'N'
where repossession_id = l_repossession_id;
update IEX_LITIGATIONS
set CREDIT_HOLD_APPROVED_FLAG = 'N'
where litigation_id = l_litigation_id;
update IEX_WRITEOFFS
set CREDIT_HOLD_APPROVED_FLAG = 'N'
where writeoff_id = l_writeoff_id;
update IEX_BANKRUPTCIES
set CREDIT_HOLD_APPROVED_FLAG = 'N'
where bankruptcy_id = l_bankruptcy_id;
END update_rejection_status;