The following lines contain the word 'select', 'insert', 'update' or 'delete':
g_rscv_rec.last_updated_by := p_rscv_rec.last_updated_by;
g_rscv_rec.last_update_date := p_rscv_rec.last_update_date;
g_rscv_rec.last_update_login := p_rscv_rec.last_update_login;
g_csov_rec.last_updated_by := p_csov_rec.last_updated_by;
g_csov_rec.last_update_date := p_csov_rec.last_update_date;
g_csov_rec.last_update_login := p_csov_rec.last_update_login;
select meaning
from fnd_lookups
where lookup_type = 'OKC_CONTACT_ROLE'
and lookup_code = p_cro_code;
select name
from jtf_objects_vl
where object_code = p_jtot_object_code;
select START_DATE+0.5
from okc_role_sources
where RLE_CODE = p_rle_code AND p_rle_code is not null
and nvl(end_date,sysdate)>=sysdate
UNION ALL
select START_DATE+0.5
from okc_role_sources
where p_rle_code is null
and nvl(end_date,sysdate)>=sysdate;
select count(start_date)
from okc_role_sources
where RLE_CODE = p_rle_code AND p_rle_code is not null
and d1 between start_date and NVL(end_date,d1)
group by RLE_CODE, buy_or_sell
having count(start_date) > 1
UNION ALL
select count(start_date)
from okc_role_sources
where p_rle_code is null
and d1 between start_date and NVL(end_date,d1)
group by RLE_CODE, buy_or_sell
having count(start_date) > 1;
select START_DATE+0.5
from okc_contact_sources
where RLE_CODE = p_rle_code AND p_rle_code is not null
and nvl(end_date,sysdate)>=sysdate
UNION ALL
select START_DATE+0.5
from okc_contact_sources
where p_rle_code is null
and nvl(end_date,sysdate)>=sysdate;
select count(start_date)
from okc_contact_sources
where RLE_CODE = p_rle_code and p_rle_code is not null
and d1 between start_date and NVL(end_date,d1)
group by RLE_CODE, CRO_CODE, buy_or_sell
having count(start_date) > 1
UNION ALL
select count(start_date)
from okc_contact_sources
where p_rle_code is null
and d1 between start_date and NVL(end_date,d1)
group by RLE_CODE, CRO_CODE, buy_or_sell
having count(start_date) > 1;
procedure update_role_source(p_api_version IN NUMBER,
p_init_msg_list IN VARCHAR2 ,
x_return_status OUT NOCOPY VARCHAR2,
x_msg_count OUT NOCOPY NUMBER,
x_msg_data OUT NOCOPY VARCHAR2,
p_rscv_rec IN rscv_rec_type,
x_rscv_rec OUT NOCOPY rscv_rec_type) is
l_api_name CONSTANT VARCHAR2(30) := 'update_role_source';
OKC_ROLE_SOURCE_PVT.update_role_source(p_api_version,
p_init_msg_list,
x_return_status,
x_msg_count,
x_msg_data,
g_rscv_rec,
x_rscv_rec);
end update_role_source;
procedure update_role_source(p_api_version IN NUMBER,
p_init_msg_list IN VARCHAR2 ,
x_return_status OUT NOCOPY VARCHAR2,
x_msg_count OUT NOCOPY NUMBER,
x_msg_data OUT NOCOPY VARCHAR2,
p_rscv_tbl IN rscv_tbl_type,
x_rscv_tbl OUT NOCOPY rscv_tbl_type) is
i NUMBER;
update_role_source(p_api_version=>p_api_version,
p_init_msg_list=>OKC_API.G_FALSE,
x_return_status=>l_return_status,
x_msg_count=>x_msg_count,
x_msg_data=>x_msg_data,
p_rscv_rec=>p_rscv_tbl(i),
x_rscv_rec=>x_rscv_tbl(i));
end update_role_source;
procedure update_contact_source(p_api_version IN NUMBER,
p_init_msg_list IN VARCHAR2 ,
x_return_status OUT NOCOPY VARCHAR2,
x_msg_count OUT NOCOPY NUMBER,
x_msg_data OUT NOCOPY VARCHAR2,
p_csov_rec IN csov_rec_type,
x_csov_rec OUT NOCOPY csov_rec_type) is
l_api_name CONSTANT VARCHAR2(30) := 'update_contact_source';
OKC_ROLE_SOURCE_PVT.update_contact_source(p_api_version,
p_init_msg_list,
x_return_status,
x_msg_count,
x_msg_data,
g_csov_rec,
x_csov_rec);
end update_contact_source;
procedure update_contact_source(p_api_version IN NUMBER,
p_init_msg_list IN VARCHAR2 ,
x_return_status OUT NOCOPY VARCHAR2,
x_msg_count OUT NOCOPY NUMBER,
x_msg_data OUT NOCOPY VARCHAR2,
p_csov_tbl IN csov_tbl_type,
x_csov_tbl OUT NOCOPY csov_tbl_type) is
i NUMBER;
update_contact_source(p_api_version=>p_api_version,
p_init_msg_list=>OKC_API.G_FALSE,
x_return_status=>l_return_status,
x_msg_count=>x_msg_count,
x_msg_data=>x_msg_data,
p_csov_rec=>p_csov_tbl(i),
x_csov_rec=>x_csov_tbl(i));
end update_contact_source;