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.
Document Details
GOAL
Type:
HOWTO
Status:
How to create PM Schedule Definition? PUBLISHED
Last Major
08-Jul-2019
Update:
30-Sep-2020
Last Update:
SOLUTION
Related Products
The script can be download from here.
Oracle Enterprise Asset
The below script can be used
Management
/* Information Centers
Enterprise Asset Management (Product ID 1142) - Create PM Schedule Name Information Center: Oracle
[API][Code Example] EAM_PMDEF_PUB.CREATE_PM_DEF - How to Create a PM Schedule Name (Doc ID 2025230.1) Enterprise Asset Management
[1411394.2]
Copyright (c) 2010-2015, Oracle Corporation. All rights reserved.
NAME
Document References
mrm_epb_create_pm_def.sql
[EAM] Enterprise Asset
DESCRIPTION Management Latest Patch Level f
Use API to
[API][Code Example]
PARAMETERS EAM_PMDEF_PUB.CREATE_PM_D
None
-- set serveroutput on
declare
in_pm_activities_tbl eam_pmdef_pub.pm_activities_grp_tbl_type;
in_pm_day_interval_rules_tbl eam_pmdef_pub.pm_rule_tbl_type;
[API][Code Example]
in_pm_runtime_rules_tbl eam_pmdef_pub.pm_rule_tbl_type;
EAM_PMDEF_PUB.UPDATE_PM_
a PM Schedule Name [2025233
in_empy_pm_list_date_rules_tbl eam_pmdef_pub.pm_rule_tbl_type;
API eam_pmdef_pub.update_p
out_msg_count NUMBER; [2561339.1]
-- in_pm_schedule_rec.pm_schedule_id := 7290;
in_pm_schedule_rec.name := 'MRM_API_PM_01';
in_pm_schedule_rec.set_name_id := 2002;
in_pm_schedule_rec.source_code := 'EAM';
in_pm_schedule_rec.source_line := '1';
in_pm_schedule_rec.type_code := 10;
in_pm_schedule_rec.scheduling_method_code := 10;
in_pm_schedule_rec.whichever_first := 'Y';
in_pm_schedule_rec.generate_wo_status := 1;
'N';
in_pm_schedule_rec.generate_next_work_order:=
in_pm_schedule_rec.maintenance_object_id := 3333000;
in_pm_schedule_rec.maintenance_object_type := 3;
in_pm_schedule_rec.non_scheduled_flag := 'Y';
in_pm_schedule_rec.interval_per_cycle := 1;
in_pm_schedule_rec.current_cycle := 1;
in_pm_schedule_rec.current_seq := 0;
in_pm_schedule_rec.auto_instantiation_flag := 'N';
in_pm_schedule_rec.day_tolerance := 3;
in_pm_schedule_rec.default_implement := 'Y';
https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=370246940402834&id=2025230.1&displayIndex=36&_afrWindowMode=0&… 1/2
10/21/21, 5:12 PM Document 2025230.1
in_pm_day_interval_rules_tbl(1).rule_type := 1;
in_pm_day_interval_rules_tbl(1).day_interval := 7;
in_pm_day_interval_rules_tbl(1).meter_id := NULL;
--in_pm_activities_tbl(1).pm_schedule_id := 7290;
50925;
in_pm_activities_tbl(1).activity_association_id :=
in_pm_activities_tbl(1).interval_multiple := 1;
'Y';
in_pm_activities_tbl(1).allow_repeat_in_cycle :=
in_pm_activities_tbl(1).next_service_start_date := null;
in_pm_activities_tbl(1).next_service_end_date := null;
in_pm_activities_tbl(2).activity_association_id := 85925;
in_pm_activities_tbl(2).interval_multiple := 7;
'Y';
in_pm_activities_tbl(2).allow_repeat_in_cycle :=
in_pm_activities_tbl(2).next_service_start_date := null;
in_pm_activities_tbl(2).next_service_end_date := null;
eam_pmdef_pub.create_pm_def
(
p_commit => fnd_api.g_false, -- G_FALSE is not COMMITing to the system directly. Manual COMMIT is
needed. G_TRUE does direct COMMIT
out_msg_count := fnd_msg_pub.count_msg;
end if;
FOR i IN 1 .. out_msg_count
LOOP
END IF;
EXCEPTION
end;
REFERENCES
NOTE:1938936.1 - [EAM] Enterprise Asset Management Latest Patch Level for R12 (12.1.X/12.2.X)
NOTE:2025233.1 - [API][Code Example] EAM_PMDEF_PUB.UPDATE_PM_DEF - How to Update a PM
Schedule Name
NOTE:2227081.1 - [API][Code Example] EAM_PMDEF_PUB.CREATE_PM_DEF - How to Create a PM Schedule Template
Attachments
Create PM Schedule (5.75 KB)
Related
Products
Oracle E-Business Suite > Asset Lifecycle Management > Asset Lifecycle Management > Oracle Enterprise Asset Management > PM > PM Engine
Keywords
API; DBMS_OUTPUT; EAM_PMDEF_PUB; FND_API; FND_GLOBAL; FND_MSG_PUB; SQLERRM; SYSTEM
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=370246940402834&id=2025230.1&displayIndex=36&_afrWindowMode=0&… 2/2