The following lines contain the word 'select', 'insert', 'update' or 'delete':
select 'X'
into l_dummy
from csd_sc_work_entities
where service_code_id = p_sc_work_entity_rec.service_code_id
and (work_entity_type_code = p_sc_work_entity_rec.work_entity_type_code
and nvl(work_entity_id1, -999) = nvl(p_sc_work_entity_rec.work_entity_id1, -999)
and nvl(work_entity_id2, -999) = nvl(p_sc_work_entity_rec.work_entity_id2, -999)
and nvl(work_entity_id3, -999) = nvl(p_sc_work_entity_rec.work_entity_id3, -999));
select 'X'
into l_dummy
from org_organization_definitions
where organization_id = p_sc_work_entity_rec.work_entity_id3;
select 'X'
into l_dummy
from bom_bill_of_materials
where bill_sequence_id = p_sc_work_entity_rec.work_entity_id1;
select 'X'
into l_dummy
from bom_operational_routings
where routing_sequence_id = p_sc_work_entity_rec.work_entity_id2;
select 'X'
into l_dummy
from jtf_task_temp_groups_vl
where task_template_group_id = p_sc_work_entity_rec.work_entity_id1;
'Calling Insert_Row table handler');
CSD_SC_WORK_ENTITIES_PKG.Insert_Row
(px_sc_work_entity_id => x_sc_work_entity_id,
p_object_version_number => l_obj_ver_num,
p_service_code_id => p_sc_work_entity_rec.service_code_id,
p_work_entity_id1 => p_sc_work_entity_rec.work_entity_id1,
p_created_by => FND_GLOBAL.USER_ID,
p_creation_date => SYSDATE,
p_last_updated_by => FND_GLOBAL.USER_ID,
p_last_update_date => SYSDATE,
p_last_update_login => FND_GLOBAL.LOGIN_ID,
p_work_entity_type_code => p_sc_work_entity_rec.work_entity_type_code,
p_work_entity_id2 => p_sc_work_entity_rec.work_entity_id2,
p_work_entity_id3 => p_sc_work_entity_rec.work_entity_id3,
p_attribute_category => p_sc_work_entity_rec.attribute_category,
p_attribute1 => p_sc_work_entity_rec.attribute1,
p_attribute2 => p_sc_work_entity_rec.attribute2,
p_attribute3 => p_sc_work_entity_rec.attribute3,
p_attribute4 => p_sc_work_entity_rec.attribute4,
p_attribute5 => p_sc_work_entity_rec.attribute5,
p_attribute6 => p_sc_work_entity_rec.attribute6,
p_attribute7 => p_sc_work_entity_rec.attribute7,
p_attribute8 => p_sc_work_entity_rec.attribute8,
p_attribute9 => p_sc_work_entity_rec.attribute9,
p_attribute10 => p_sc_work_entity_rec.attribute10,
p_attribute11 => p_sc_work_entity_rec.attribute11,
p_attribute12 => p_sc_work_entity_rec.attribute12,
p_attribute13 => p_sc_work_entity_rec.attribute13,
p_attribute14 => p_sc_work_entity_rec.attribute14,
p_attribute15 => p_sc_work_entity_rec.attribute15
);
FND_LOG.STRING(lc_excep_level,lc_mod_name,'Others exception in CSD_SC_WORK_ENTITIES_PKG.Insert_Row Call :'||SubStr('Error '||TO_CHAR(SQLCODE)||': '||SQLERRM, 1,255));
'Returned from Insert_Row table handler');
/* procedure name: Update_SC_Work_Entity */
/* description : procedure used to update */
/* sc work entity */
/* */
/*--------------------------------------------------*/
PROCEDURE Update_SC_Work_Entity
(
p_api_version IN NUMBER,
p_commit IN VARCHAR2,
p_init_msg_list IN VARCHAR2,
p_validation_level IN NUMBER,
x_return_status OUT NOCOPY VARCHAR2,
x_msg_count OUT NOCOPY NUMBER,
x_msg_data OUT NOCOPY VARCHAR2,
p_sc_work_entity_rec IN SC_WORK_ENTITY_REC_TYPE,
x_obj_ver_number OUT NOCOPY NUMBER
) IS
-- CONSTANTS --
lc_debug_level CONSTANT NUMBER := FND_LOG.G_CURRENT_RUNTIME_LEVEL;
lc_mod_name CONSTANT VARCHAR2(100) := 'csd.plsql.csd_sc_work_entities_pvt.update_sc_work_entity';
lc_api_name CONSTANT VARCHAR2(30) := 'Update_SC_Work_Entity';
SAVEPOINT Update_SC_Work_Entity;
'Entered Update_SC_Work_Entity');
select 'X'
into l_dummy
from csd_sc_work_entities
where sc_work_entity_id = p_sc_work_entity_rec.sc_work_entity_id;
select object_version_number
into l_obj_ver_num
from csd_sc_work_entities
where sc_work_entity_id = p_sc_work_entity_rec.sc_work_entity_id;
select 'X'
into l_dummy
from csd_sc_work_entities
where sc_work_entity_id <> p_sc_work_entity_rec.sc_work_entity_id
and service_code_id = p_sc_work_entity_rec.service_code_id
and (work_entity_type_code = p_sc_work_entity_rec.work_entity_type_code
and nvl(work_entity_id1, -999) = nvl(p_sc_work_entity_rec.work_entity_id1, -999)
and nvl(work_entity_id2, -999) = nvl(p_sc_work_entity_rec.work_entity_id2, -999)
and nvl(work_entity_id3, -999) = nvl(p_sc_work_entity_rec.work_entity_id3, -999));
select 'X'
into l_dummy
from org_organization_definitions
where organization_id = p_sc_work_entity_rec.work_entity_id3;
select 'X'
into l_dummy
from bom_bill_of_materials
where bill_sequence_id = p_sc_work_entity_rec.work_entity_id1;
select 'X'
into l_dummy
from bom_operational_routings
where routing_sequence_id = p_sc_work_entity_rec.work_entity_id2;
select 'X'
into l_dummy
from jtf_task_temp_groups_vl
where task_template_group_id = p_sc_work_entity_rec.work_entity_id1;
'Calling Update_Row table handler');
CSD_SC_WORK_ENTITIES_PKG.Update_Row
(p_sc_work_entity_id => p_sc_work_entity_rec.sc_work_entity_id,
p_object_version_number => l_obj_ver_num + 1,
p_service_code_id => p_sc_work_entity_rec.service_code_id,
p_work_entity_id1 => p_sc_work_entity_rec.work_entity_id1,
p_created_by => FND_GLOBAL.USER_ID,
p_creation_date => SYSDATE,
p_last_updated_by => FND_GLOBAL.USER_ID,
p_last_update_date => SYSDATE,
p_last_update_login => FND_GLOBAL.LOGIN_ID,
p_work_entity_type_code => p_sc_work_entity_rec.work_entity_type_code,
p_work_entity_id2 => p_sc_work_entity_rec.work_entity_id2,
p_work_entity_id3 => p_sc_work_entity_rec.work_entity_id3,
p_attribute_category => p_sc_work_entity_rec.attribute_category,
p_attribute1 => p_sc_work_entity_rec.attribute1,
p_attribute2 => p_sc_work_entity_rec.attribute2,
p_attribute3 => p_sc_work_entity_rec.attribute3,
p_attribute4 => p_sc_work_entity_rec.attribute4,
p_attribute5 => p_sc_work_entity_rec.attribute5,
p_attribute6 => p_sc_work_entity_rec.attribute6,
p_attribute7 => p_sc_work_entity_rec.attribute7,
p_attribute8 => p_sc_work_entity_rec.attribute8,
p_attribute9 => p_sc_work_entity_rec.attribute9,
p_attribute10 => p_sc_work_entity_rec.attribute10,
p_attribute11 => p_sc_work_entity_rec.attribute11,
p_attribute12 => p_sc_work_entity_rec.attribute12,
p_attribute13 => p_sc_work_entity_rec.attribute13,
p_attribute14 => p_sc_work_entity_rec.attribute14,
p_attribute15 => p_sc_work_entity_rec.attribute15
);
FND_LOG.STRING(lc_excep_level,lc_mod_name,'Others exception in CSD_SC_WORK_ENTITIES_PKG.Update_Row Call :'||SubStr('Error '||TO_CHAR(SQLCODE)||': '||SQLERRM, 1,255));
'Returned from Update_Row table handler');
'Leaving Update_SC_Work_Entity');
ROLLBACK TO Update_SC_Work_Entity;
ROLLBACK TO Update_SC_Work_Entity;
ROLLBACK TO Update_SC_Work_Entity;
ROLLBACK TO Update_SC_Work_Entity;
ROLLBACK TO Update_SC_Work_Entity;
ROLLBACK TO Update_SC_Work_Entity;
ROLLBACK TO Update_SC_Work_Entity;
ROLLBACK TO Update_SC_Work_Entity;
ROLLBACK TO Update_SC_Work_Entity;
ROLLBACK TO Update_SC_Work_Entity;
ROLLBACK TO Update_SC_Work_Entity;
ROLLBACK TO Update_SC_Work_Entity;
ROLLBACK TO Update_SC_Work_Entity;
END Update_SC_Work_Entity;
/* procedure name: Delete_SC_Work_Entity */
/* description : procedure used to delete */
/* sc work entity */
/* */
/*--------------------------------------------------*/
PROCEDURE Delete_SC_Work_Entity
(
p_api_version IN NUMBER,
p_commit IN VARCHAR2,
p_init_msg_list IN VARCHAR2,
p_validation_level IN NUMBER,
x_return_status OUT NOCOPY VARCHAR2,
x_msg_count OUT NOCOPY NUMBER,
x_msg_data OUT NOCOPY VARCHAR2,
p_sc_work_entity_id IN NUMBER
) IS
-- CONSTANTS --
lc_debug_level CONSTANT NUMBER := FND_LOG.G_CURRENT_RUNTIME_LEVEL;
lc_mod_name CONSTANT VARCHAR2(100) := 'csd.plsql.csd_sc_work_entities_pvt.delete_sc_work_entity';
lc_api_name CONSTANT VARCHAR2(30) := 'Delete_SC_Work_Entity';
SAVEPOINT Delete_SC_Work_Entity;
'Entered Delete_SC_Work_Entity');
'Calling Delete_Row table handler');
CSD_SC_WORK_ENTITIES_PKG.Delete_Row
(p_sc_work_entity_id => p_sc_work_entity_id );
FND_LOG.STRING(lc_excep_level,lc_mod_name,'Others exception in CSD_SC_WORK_ENTITIES_PKG.Delete_Row Call :'||SubStr('Error '||TO_CHAR(SQLCODE)||': '||SQLERRM, 1,255));
'Returned from Delete_Row table handler');
'Leaving Delete_SC_Work_Entity');
ROLLBACK TO Delete_SC_Work_Entity;
ROLLBACK TO Delete_SC_Work_Entity;
ROLLBACK TO Delete_SC_Work_Entity;
END Delete_SC_Work_Entity;
p_last_updated_by => FND_GLOBAL.USER_ID,
p_last_update_date => SYSDATE,
p_last_update_login => FND_GLOBAL.LOGIN_ID,
p_work_entity_type_code => p_sc_work_entity_rec.work_entity_type_code,
p_work_entity_id2 => p_sc_work_entity_rec.work_entity_id2,
p_work_entity_id3 => p_sc_work_entity_rec.work_entity_id3,
p_attribute_category => p_sc_work_entity_rec.attribute_category,
p_attribute1 => p_sc_work_entity_rec.attribute1,
p_attribute2 => p_sc_work_entity_rec.attribute2,
p_attribute3 => p_sc_work_entity_rec.attribute3,
p_attribute4 => p_sc_work_entity_rec.attribute4,
p_attribute5 => p_sc_work_entity_rec.attribute5,
p_attribute6 => p_sc_work_entity_rec.attribute6,
p_attribute7 => p_sc_work_entity_rec.attribute7,
p_attribute8 => p_sc_work_entity_rec.attribute8,
p_attribute9 => p_sc_work_entity_rec.attribute9,
p_attribute10 => p_sc_work_entity_rec.attribute10,
p_attribute11 => p_sc_work_entity_rec.attribute11,
p_attribute12 => p_sc_work_entity_rec.attribute12,
p_attribute13 => p_sc_work_entity_rec.attribute13,
p_attribute14 => p_sc_work_entity_rec.attribute14,
p_attribute15 => p_sc_work_entity_rec.attribute15
*/
--
);