The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT id, date_transaction_occurred, transaction_date
FROM OKL_TRX_CONTRACTS
WHERE khr_id = p_khr_id
AND tsu_code = 'PROCESSED'
AND tcn_type = p_tcn_type
AND representation_type = G_PRIMARY;
SELECT txl.id, txl.amount, txl.currency_code
FROM OKL_TXL_CNTRCT_LNS txl, OKL_TRX_CONTRACTS trx
WHERE trx.khr_id = p_khr_id
AND txl.tcn_id = trx.id
AND txl.tcn_id = p_tcn_id --trx.id
AND trx.tsu_code = 'PROCESSED'
AND trx.tcn_type = p_tcn_type
AND trx.representation_type = G_PRIMARY;
SELECT id, date_transaction_occurred, transaction_date
FROM OKL_TRX_CONTRACTS
WHERE khr_id = p_khr_id
AND tsu_code = 'PROCESSED'
AND (tcn_type = 'PSP' OR tcn_type = 'PGL')
AND representation_type = G_PRIMARY;
SELECT txl.id, txl.amount, txl.currency_code
FROM OKL_TXL_CNTRCT_LNS txl, OKL_TRX_CONTRACTS trx
WHERE trx.khr_id = p_khr_id
AND txl.tcn_id = trx.id
AND txl.tcn_id = p_tcn_id --trx.id
AND trx.tsu_code = 'PROCESSED'
AND (trx.tcn_type = 'PSP' OR trx.tcn_type = 'PGL')
AND trx.representation_type = G_PRIMARY;
SELECT id
FROM OKC_K_HEADERS_ALL_B
WHERE CONTRACT_NUMBER = p_ctr_num;
Okl_Trx_Contracts_Pub.update_trx_contracts
(p_api_version => p_api_version,
p_init_msg_list => p_init_msg_list,
x_return_status => l_return_status,
x_msg_count => x_msg_count,
x_msg_data => x_msg_data,
p_tcnv_tbl => l_tcnv_tbl,
x_tcnv_tbl => x_tcnv_tbl);