Professional Documents
Culture Documents
1
Last Login: October 21, 2021 3:22 PM IST sudhakar (Available) (0) Contact Us Help
PowerView is Off
Dashboard Knowledge Service Requests Patches & Updates Community
Give Feedback...
Copyright (c) 2021, Oracle. All rights reserved. Oracle Confidential.
EAM Work Order Creation and linking to Work request via API EAM_PROCESS_WO_PUB (Doc ID 1528701.1) To Bottom
Symptoms Yes
No
Cause
Solution
Document Details
References
Type:
PROBLEM
Status:
PUBLISHED
Last Major
12-Apr-2019
APPLIES TO: Update:
15-Sep-2020
Last Update:
Related Products
Oracle Enterprise Asset
SYMPTOMS Management
Document References
Expect WR to be linked
to the WO
Recently Viewed
STEPS
API To Complete &
-----------------------
Uncomplete EAM Work
The issue can be reproduced at will with the following steps: Orders [2460978.1]
1. Run script to call EAM_PROCESS_WO_PUB.PROCESS_WO
API To Update Status Of
2. API end successfully, but WO has no linked WR
EAM Work Orders
[1347261.1]
Oracle E-Business Suite
Electronic Technical
Reference Manual (eTRM),
Release 12.1 and 12.2
CAUSE [2736939.1]
Issue With DFF Copy From
OM To AR [2680728.1]
Issue was caused by the fact that you are passing i_eam_wo_rec.asset_number := null
Parameter i_eam_wo_rec.asset_number := null is is invalid, instead you need to pass a valid
asset number in accordance with FA: SCM: OM: How To: Pass
Order Management Header
asset number of maintenance_object_id entered (i.e. for maintenance_object_id=1768219, asset number is 'FL1010') EFF to Accounts Receivables
Also Work request request_number/request_id being passed needs to be WORK_REQUEST_STATUS_ID '3'.
Header DFF NON Global
Segments - Service Mapping
The cause of the issue is described in following bug: [2468109.1]
Show More
Bug 16290990 - EAM WORK ORDER CREATION THROUGH API
SOLUTION
NOTE: In the images below and/or the attached document, user details / company name / address / email / telephone
number represent a fictitious sample (based upon made up data used in the Oracle Demo Vision instance). Any similarity to
actual persons, living or dead, is purely coincidental and not intended in any manner.
Please find below the example used internally, which worked ok. Based on this example, you can create your own with the
appropriate values for the parameters:
declare
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=367562195241401&id=1528701.1&displayIndex=10&_afrWindowMode=0&… 1/4
10/21/21, 4:39 PM Document 1528701.1
EAM_PROCESS_WO_PUB.G_MISS_EAM_RES_INST_TBL;
i_eam_sub_res_tbl EAM_PROCESS_WO_PUB.eam_sub_res_tbl_type ;-- :=
EAM_PROCESS_WO_PUB.G_MISS_EAM_SUB_RES_TBL;
i_eam_res_usage_tbl EAM_PROCESS_WO_PUB.eam_res_usage_tbl_type ;-- :=
EAM_PROCESS_WO_PUB.G_MISS_EAM_RES_USAGE_TBL;
i_eam_mat_req_tbl EAM_PROCESS_WO_PUB.eam_mat_req_tbl_type ;-- :=
EAM_PROCESS_WO_PUB.G_MISS_EAM_MAT_REQ_TBL;
i_eam_direct_items_tbl EAM_PROCESS_WO_PUB.eam_direct_items_tbl_type; --:=
EAM_PROCESS_WO_PUB.G_MISS_EAM_DIRECT_ITEMS_TBL;
i_eam_wo_comp_rec EAM_PROCESS_WO_PUB.eam_wo_comp_rec_type ;-- :=
EAM_PROCESS_WO_PUB.G_MISS_EAM_WO_COMP_REC ;
i_eam_wo_quality_tbl EAM_PROCESS_WO_PUB.eam_wo_quality_tbl_type ;--:=
EAM_PROCESS_WO_PUB.G_MISS_EAM_WO_QUALITY_TBL;
i_eam_meter_reading_tbl EAM_PROCESS_WO_PUB.eam_meter_reading_tbl_type;-- :=
EAM_PROCESS_WO_PUB.G_MISS_EAM_METER_READING_TBL;
i_eam_counter_prop_tbl EAM_PROCESS_WO_PUB.eam_counter_prop_tbl_type ;-- :=
EAM_PROCESS_WO_PUB.G_MISS_EAM_COUNTER_PROP_TBL;
i_eam_wo_comp_rebuild_tbl EAM_PROCESS_WO_PUB.eam_wo_comp_rebuild_tbl_type;
-- := EAM_PROCESS_WO_PUB.G_MISS_EAM_WO_COMP_REBUILD_TBL;
i_eam_wo_comp_mr_read_tbl EAM_PROCESS_WO_PUB.eam_wo_comp_mr_read_tbl_type;
-- := EAM_PROCESS_WO_PUB.G_MISS_EAM_WO_COMP_MR_READ_TBL;
i_eam_op_comp_tbl EAM_PROCESS_WO_PUB.eam_op_comp_tbl_type;--:=
EAM_PROCESS_WO_PUB.G_MISS_EAM_OP_COMP_TBL;
i_eam_request_tbl EAM_PROCESS_WO_PUB.eam_request_tbl_type ;--:=
EAM_PROCESS_WO_PUB.G_MISS_EAM_REQUEST_TBL;
i_eam_permit_tbl EAM_PROCESS_PERMIT_PUB.eam_wp_tbl_type; -- new param for safety permit
i_eam_permit_wo_assoc_tbl EAM_PROCESS_PERMIT_PUB.eam_wp_association_tbl_type;
O_eam_wo_rec EAM_PROCESS_WO_PUB.eam_wo_rec_type;
O_eam_op_tbl EAM_PROCESS_WO_PUB.eam_op_tbl_type;
O_eam_op_network_tbl EAM_PROCESS_WO_PUB.eam_op_network_tbl_type;
O_eam_res_tbl EAM_PROCESS_WO_PUB.eam_res_tbl_type;
O_eam_res_inst_tbl EAM_PROCESS_WO_PUB.eam_res_inst_tbl_type;
O_eam_sub_res_tbl EAM_PROCESS_WO_PUB.eam_sub_res_tbl_type;
O_eam_res_usage_tbl EAM_PROCESS_WO_PUB.eam_res_usage_tbl_type;
O_eam_mat_req_tbl EAM_PROCESS_WO_PUB.eam_mat_req_tbl_type;
O_eam_direct_items_tbl EAM_PROCESS_WO_PUB.eam_direct_items_tbl_type;
O_eam_wo_comp_rec EAM_PROCESS_WO_PUB.eam_wo_comp_rec_type;
O_eam_wo_quality_tbl EAM_PROCESS_WO_PUB.eam_wo_quality_tbl_type;
O_eam_meter_reading_tbl EAM_PROCESS_WO_PUB.eam_meter_reading_tbl_type;
O_eam_counter_prop_tblOUT EAM_PROCESS_WO_PUB.eam_counter_prop_tbl_type;
O_eam_wo_comp_rebuild_tbl EAM_PROCESS_WO_PUB.eam_wo_comp_rebuild_tbl_type;
O_eam_wo_comp_mr_read_tbl EAM_PROCESS_WO_PUB.eam_wo_comp_mr_read_tbl_type;
O_eam_op_comp_tbl EAM_PROCESS_WO_PUB.eam_op_comp_tbl_type;
O_eam_request_tbl EAM_PROCESS_WO_PUB.eam_request_tbl_type;
O_return_status VARCHAR2(50);
O_msg_count NUMBER;
l_msg_count NUMBER;
msg_index NUMBER;
temp_err_mesg VARCHAR2(2000);
begin
i_eam_wo_rec.HEADER_ID := 1;
i_eam_wo_rec.BATCH_ID := 1;
i_eam_wo_rec.organization_id := 3159;
i_eam_wo_rec.owning_department := 487;
-- i_eam_wo_rec.VALIDATE_STRUCTURE := 'N';
-- i_eam_wo_rec.WORK_ORDER_TYPE := NULL;
i_eam_wo_rec.class_code := 'MaintWAC';
i_eam_wo_rec.status_type := 3 ;----wip_constants.released;
i_eam_wo_rec.date_released := sysdate;
i_eam_wo_rec.priority := null;
i_eam_wo_rec.MAINTENANCE_OBJECT_SOURCE := 1;
i_eam_wo_rec.MAINTENANCE_OBJECT_TYPE := 3;
i_eam_wo_rec.MAINTENANCE_OBJECT_ID := 1768219;
i_eam_wo_rec.scheduled_start_date := Sysdate-1;
i_eam_wo_rec.requested_start_date := Sysdate-1;
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=367562195241401&id=1528701.1&displayIndex=10&_afrWindowMode=0&… 2/4
10/21/21, 4:39 PM Document 1528701.1
i_eam_wo_rec.scheduled_completion_date := Sysdate-1;
i_eam_request_tbl(1).HEADER_ID := 1;
i_eam_request_tbl(1).BATCH_ID := 1;
i_eam_request_tbl(1).REQUEST_NUMBER := '30225' ;
i_eam_request_tbl(1).REQUEST_ID := 30225;
i_eam_request_tbl(1).TRANSACTION_TYPE := EAM_PROCESS_WO_PVT.G_OPR_CREATE;
i_eam_request_tbl(1).ORGANIZATION_ID := 3159;
i_eam_request_tbl(1).request_type := 1;
i_eam_request_tbl(1).WIP_ENTITY_NAME := 'Dev1-Test1' ;
--i_eam_request_tbl(1).WORK_REQUEST_STATUS_ID := 4;
EAM_PROCESS_WO_PUB.PROCESS_WO
( p_bo_identifier => 'EAM'
, p_api_version_number => 1.0
, p_init_msg_list => TRUE
, p_commit => 'Y'
, p_eam_wo_rec => i_eam_wo_rec
, p_eam_op_tbl => i_eam_op_tbl
, p_eam_op_network_tbl => i_eam_op_network_tbl
, p_eam_res_tbl => i_eam_res_tbl
, p_eam_res_inst_tbl => i_eam_res_inst_tbl
, p_eam_sub_res_tbl => i_eam_sub_res_tbl
, p_eam_res_usage_tbl => i_eam_res_usage_tbl
, p_eam_mat_req_tbl => i_eam_mat_req_tbl
, p_eam_direct_items_tbl => i_eam_direct_items_tbl
, p_eam_wo_comp_rec => i_eam_wo_comp_rec
, p_eam_wo_quality_tbl => i_eam_wo_quality_tbl
, p_eam_meter_reading_tbl => i_eam_meter_reading_tbl
, p_eam_counter_prop_tbl => i_eam_counter_prop_tbl
, p_eam_wo_comp_rebuild_tbl => i_eam_wo_comp_rebuild_tbl
, p_eam_wo_comp_mr_read_tbl => i_eam_wo_comp_mr_read_tbl
, p_eam_op_comp_tbl => i_eam_op_comp_tbl
, p_eam_request_tbl => i_eam_request_tbl
, p_eam_permit_tbl => i_eam_permit_tbl
, p_eam_permit_wo_assoc_tbl => i_eam_permit_wo_assoc_tbl
, x_eam_wo_rec => O_eam_wo_rec
, x_eam_op_tbl => O_eam_op_tbl
, x_eam_op_network_tbl => O_eam_op_network_tbl
, x_eam_res_tbl => O_eam_res_tbl
, x_eam_res_inst_tbl => O_eam_res_inst_tbl
, x_eam_sub_res_tbl => O_eam_sub_res_tbl
, x_eam_res_usage_tbl => O_eam_res_usage_tbl
, x_eam_mat_req_tbl => O_eam_mat_req_tbl
, x_eam_direct_items_tbl => O_eam_direct_items_tbl
, x_eam_wo_comp_rec => O_eam_wo_comp_rec
, x_eam_wo_quality_tbl => O_eam_wo_quality_tbl
, x_eam_meter_reading_tbl => O_eam_meter_reading_tbl
, x_eam_counter_prop_tbl => O_eam_counter_prop_tblOUT
, x_eam_wo_comp_rebuild_tbl => O_eam_wo_comp_rebuild_tbl
, x_eam_wo_comp_mr_read_tbl => O_eam_wo_comp_mr_read_tbl
, x_eam_op_comp_tbl => O_eam_op_comp_tbl
, x_eam_request_tbl => O_eam_request_tbl
, x_return_status => O_return_status
, x_msg_count => O_msg_count
, p_debug => 'Y'
, p_output_dir => '/tmp' /*use a directory from query output: select value from v$parameter where
name='utl_file_dir' if /tmp is not part of this query output*/
l_msg_count := fnd_msg_pub.count_msg;
IF(l_msg_count>0) THEN
msg_index := l_msg_count;
FOR i IN 1..l_msg_count LOOP
fnd_msg_pub.get
(p_msg_index => FND_MSG_PUB.G_NEXT,
p_encoded => 'F',
p_data => temp_err_mesg,
p_msg_index_out => msg_index);
dbms_output.put_line('Error:' || msg_index||':'||temp_err_mesg);
END LOOP;
END IF;
commit;
END;
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=367562195241401&id=1528701.1&displayIndex=10&_afrWindowMode=0&… 3/4
10/21/21, 4:39 PM Document 1528701.1
REFERENCES
BUG:16288456 -
Didn't find what you are looking for? Ask in Community...
Related
Products
Oracle E-Business Suite > Asset Lifecycle Management > Asset Lifecycle Management > Oracle Enterprise Asset Management > INTF > Work Order Interface
Keywords
EAM_PROCESS_WO_PUB; EAM_PROCESS_WO_PVT; WORK ORDER
Back to Top
Copyright (c) 2021, Oracle. All rights reserved. Legal Notices and Terms of Use Privacy Statement
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=367562195241401&id=1528701.1&displayIndex=10&_afrWindowMode=0&… 4/4