The following lines contain the word 'select', 'insert', 'update' or 'delete':
28-Feb-02 115.3 HDSHAH 2246791 Need to lock record before calling update_enrollment procedure.
26-nov-02 115.4 ARKASHYA 2684733 Included NOCOPY directive in the OUT and IN OUT parameters.
*/
--------------------------------------------------------------------------------
g_package varchar2(33) := ' ota_ilearning2.'; -- Global package name
select
max(booking_id) booking_id
from
ota_delegate_bookings TDB,
ota_events EVT,
ota_activity_versions OAV
where
OAV.rco_id = p_rco_id and
OAV.activity_version_id = EVT.activity_version_id and
EVT.event_id = TDB.event_id and
TDB.delegate_person_id = p_person_id and
TDB.business_group_id = p_business_group_id;
select
booking_status_type_id,
content_player_status,
object_version_number,
event_id,
date_booking_placed
from
ota_delegate_bookings
where
booking_id = l_booking_id;
select
finance_line_id,
object_version_number,
sequence_number,
date_raised,
finance_header_id
from
ota_finance_lines
where
booking_id = l_booking_id and
cancelled_flag = 'N' and
transfer_status = 'NT';
select
booking_status_type_id
from
ota_booking_status_types
where
type = 'A' and
default_flag = 'Y' and
active_flag = 'Y' and
business_group_id = p_business_group_id;
Select type
from ota_booking_status_types
where booking_status_type_id = p_status_type_id;
select object_version_number from
ota_finance_headers
where finance_header_id = p_finance_header_id;
,p_transaction_type => 'UPDATE' -- (Input)
); */
p_message := 'Successfully updated finance line ';
FND_FILE.PUT_LINE(FND_FILE.LOG,'The application could not update the finance line for RCO ID '|| p_rco_id ||
', Person ID ' || p_person_id || ', Booking ID-' ||
cur_booking_id.booking_id || ', and Finance Line ID-' || l_finance_line_id
|| '. Reason:' || hr_utility.get_message);
ota_tdb_api_upd2.update_enrollment
(p_booking_id => cur_booking_id.booking_id -- (Input)
,p_booking_status_type_id => l_booking_status_type_id -- (Input)
,p_object_version_number => l_ovn -- (In Out)
,p_event_id => l_cur_event_id -- (Input)
,p_content_player_status => p_status -- (Input)
,p_score => p_score -- (Input)
,p_total_training_time => p_time -- (Input)
,p_completed_content => p_complete -- (Input)
,p_total_content => p_total -- (Input)
,p_tfl_object_version_number => l_tfl_ovn -- (In Out)
,p_finance_line_id => l_tfl_finance_line_id -- (In Out)
);
ota_tdb_api_upd2.update_enrollment
(p_booking_id => cur_booking_id.booking_id -- (Input)
,p_booking_status_type_id => l_booking_status_type_id -- (Input)
,p_object_version_number => l_ovn -- (In Out)
,p_event_id => l_cur_event_id -- (Input)
,p_content_player_status => p_status -- (Input)
,p_score => p_score -- (Input)
,p_total_training_time => p_time -- (Input)
,p_completed_content => p_complete -- (Input)
,p_total_content => p_total -- (Input)
,p_tfl_object_version_number => l_tfl_ovn -- (In Out)
,p_finance_line_id => l_tfl_finance_line_id -- (In Out)
,p_date_status_changed => sysdate
,p_date_booking_placed => l_date_booking_placed);
FND_FILE.PUT_LINE(FND_FILE.LOG,'Successfully updated history for RCO ID - '|| p_rco_id ||
', Person ID ' || p_person_id || ', and Booking ID ' ||
cur_booking_id.booking_id ||'.');
p_message := 'Successfully updated history ';
FND_FILE.PUT_LINE(FND_FILE.LOG,'The application could not update history for RCO ID - '|| p_rco_id ||
', Person ID ' || p_person_id || ', and Booking ID ' ||
cur_booking_id.booking_id || '. REASON:' || hr_utility.get_message);
l_update varchar2(10);