The following lines contain the word 'select', 'insert', 'update' or 'delete':
Procedure insert_order_line(
p_ordline_id IN NUMBER,
p_processed IN VARCHAR2,
p_reprocess IN VARCHAR2,
p_hdr_id IN NUMBER,
p_ordnum IN NUMBER,
x_id OUT NOCOPY VARCHAR2,
x_rowid OUT NOCOPY VARCHAR2,
x_return_status OUT NOCOPY VARCHAR2
)
Is
l_init_msg_list VARCHAR2(1) := OKC_API.G_FALSE;
SAVEPOINT BEFORE_INSERT;
oks_rep_pub.insert_row(p_api_version => 1.0,
p_init_msg_list => l_init_msg_list,
x_return_status => l_return_status,
x_msg_count => l_msg_count,
x_msg_data => l_msg_data,
p_repv_rec => l_repv_rec ,
x_repv_rec => l_out_repv_rec);
select rowid into x_rowid
from oks_reprocessing
where id = x_id;
ROLLBACK to BEFORE_INSERT;
Procedure Update_Order_Lines(p_item IN VARCHAR2,
x_return_status OUT NOCOPY VARCHAR2)
Is
Cursor Get_Order_lines Is
Select id,object_version_number
From oks_reprocessing
Where reprocess_yn = 'Y'
And Conc_request_id is null;
oks_rep_pub.update_row(p_api_version => 1.0,
p_init_msg_list => 'T',
x_return_status => l_return_status,
x_msg_count => l_msg_count,
x_msg_data => l_msg_data,
p_repv_rec => l_repv_rec ,
x_repv_rec => l_new_repv_rec);
End Update_Order_Lines;
Select error_text
from oks_reprocessing
where id = p_id;