Got erro EAM_PROCESS_WO_PUB.PROCESS_WO! error code/message EAM_RES_TXN_TYPE_INVALID/Invalid Transact
Hi All,
I have got an erro when create an work order using EAM_PROCESS_WO_PUB.PROCESS_WO, the error code/message EAM_RES_TXN_TYPE_INVALID/Invalid Transaction Type for Resource.
When called PROCESS_WO, is passed the resource and the resouce instance together at first time... is it right?
select x.instance_id ,x.resource_id into g_eam_res_inst_rec0.instance_id ,g_eam_res_rec0.resource_id from per_all_people_f y, fnd_user w, BOM_DEPT_RES_INSTANCES_EMP_V x where w.employee_id = y.person_id and x.employee_number = y.employee_number and x.department_id = x_wr_row.work_request_owning_dept_id -- dept get previously and w.user_id = p_user_id; --paramater get previously g_eam_res_tbl0(1) := g_eam_res_rec0; g_eam_res_inst_tbl0(1) := g_eam_res_inst_rec0; --here I call process_wo passing records in line 14/15 EAM_PROCESS_WO_PUB.PROCESS_WO ( p_bo_identifier => 'EAM' , p_api_version_number => 1.0 , p_init_msg_list => TRUE , p_commit => 'N' , p_eam_wo_rec => g_eam_wo_rec1 , p_eam_op_tbl => g_eam_op_tbl0 , p_eam_op_network_tbl => g_eam_op_network_tbl0 , p_eam_res_tbl => g_eam_res_tbl0 , p_eam_res_inst_tbl => g_eam_res_inst_tbl0 ,