EAM PM Schedule Upload – Oracle EBS SQL Report
Oracle E-Business Suite SQL report from the Enginatics Library powered by Blitz Report™.
Overview
Create and update preventive maintenance schedules of assets: the schedule header, its activities, its day interval, runtime meter and list date rules, and optional last service readings per meter.
A schedule spans several rows, which repeat the Organization Code, Schedule Name, Asset Number and Activity and stay together. The header is processed once per schedule; further rows add activities (Act columns), rules (Rule columns) and last service readings (Lsi columns). If no Act Activity is entered for a new Rule Based schedule, the header Activity is its first activity. Whether a schedule has the rules its type needs is checked for the whole schedule on upload.
Schedules are saved as the Preventive Maintenance form saves them: a changed rule is updated in place, Delete Rule removes it, and a rule row without a rule id is added. Rule Last Service Reading is derived from the last service information on save, and Act Last Svc Start and Act Last Svc End show the dates that work order completion records; all three are read-only.
Every schedule needs an Asset Number. Asset group schedule templates are not downloaded and cannot be uploaded.
In Create, Update mode, Update Activities, Update Rules and Update Last Service include those rows in the download. Update Activities defaults to Yes.
Set Name takes an existing set name, or a new one together with Set Name Description, End Date and Local Flag, which the upload creates.
Uploading a schedule does not create work orders: run the concurrent program Generate Preventive Maintenance Work Orders afterwards.
Run this report in Excel in seconds: download Blitz Report™ free (your first 30 reports are free) or try it in the online demo.
Report Parameters
Upload Mode, Organization, Update Activities, Update Rules, Update Last Service
Oracle EBS Tables Used
eam_pm_activities, eam_pm_schedulings, csi_item_instances, mtl_eam_asset_activities, mtl_system_items_b_kfv, mtl_parameters, eam_pm_set_names, eam_wo_statuses_v, xxen_report_org_access, eam_pm_scheduling_rules, csi_counters_vl, eam_pm_last_service, wip_entities
Report Categories
Related Reports
EAM PM Schedule Upload 11i, EAM Work Orders, EAM Work Orders 11i, INV Items, EAM Asset Activity Association Upload, INV Item Upload, INV Item Upload 11i, EAM Asset Number Upload
Running This SQL Without Blitz Report
The SQL source can be run in any SQL client. Some Oracle EBS SQL reports in this library use functions from the utility package xxen_util – install it first. Blitz Report™ adds parameters, Excel output with pivots, scheduling and security on top.
Download & Import Options
| Resource | Link |
|---|---|
| Excel Example Output | Example |
| Blitz Report™ XML Import | EAM_PM_Schedule_Upload.xml |
| SQL Source | EAM PM Schedule Upload.sql |
| Full Report on Enginatics | www.enginatics.com/reports/eam-pm-schedule-upload/ |
Case Study & Technical Analysis: EAM PM Schedule Upload
Executive Summary
This upload creates and updates Oracle Enterprise Asset Management preventive maintenance schedules. A schedule covers the header for an asset or asset group, its activity group, its scheduling rules and optional last service readings. Maintenance planners use it to set up or revise the service plan for a plant’s equipment in one workbook, rather than through the Preventive Maintenance form asset by asset. It is used by EAM administrators and planners who maintain large fleets of meter-based and calendar-based services. The template runs in Excel through Blitz Report.
Business Challenge
- Large service plans: Each asset can carry several activities, each with its own interval, and maintaining them one at a time is slow.
- Mixed scheduling rules: Runtime or meter intervals, day intervals and fixed list dates must be combined correctly on one schedule.
- Continuity of service history: Last service readings and dates determine when the next service falls due, and they must be carried into the new schedule.
- Set name governance: Schedules that share a set name must reference a consistent set, which may need to be created on the fly.
The Solution
- Row model by column group: A row can hold header values, an activity entry, a scheduling rule and a last service reading, and the upload infers the level from the populated columns.
- Activity entries: Each Act Activity column adds an activity to a rule-based schedule, with its interval multiple and repeat flag.
- Scheduling rules: Day Interval, Runtime Meter and List Date rules are added, changed in place, or removed with Delete Rule.
- Last service readings: Last service readings are uploaded per meter, and the last service dates recorded by work order completion are shown read only.
- Set name creation: A new Set Name can be entered with its description, end date and local flag, and the upload creates it.
Technical Architecture (High Level)
Primary Tables
EAM_PM_SCHEDULINGS: the PM schedule header, with type, scheduling method, rescheduling point, base date, base reading and effectivity dates.EAM_PM_ACTIVITIES: the activity associations of each schedule, with the activity association id.EAM_PM_SCHEDULING_RULES: the day interval, meter and list date rules attached to a schedule.EAM_PM_LAST_SERVICE: the last service readings and previous readings per meter and work order job.EAM_PM_SET_NAMES: the PM set names.MTL_EAM_ASSET_ACTIVITIES: the activities defined for an asset.CSI_ITEM_INSTANCESandMTL_SYSTEM_ITEMS_B_KFV: the asset instance and the asset group or activity item.CSI_COUNTERS_VL: the meters used by runtime rules and last service readings.EAM_WO_STATUSES_VandWIP_ENTITIES: the work order status for generation and the job for a last service reading.
Logical Relationships
EAM_PM_SCHEDULINGSis the header source. Its activity association id falls back to the first activity of the schedule when none is set.- The header joins to
CSI_ITEM_INSTANCESfor asset maintenance objects, and toMTL_SYSTEM_ITEMS_B_KFVfor asset groups. - The activity joins through
MTL_EAM_ASSET_ACTIVITIESto the activity item, on activity association and organization. - Rule rows join
EAM_PM_SCHEDULING_RULESto the header on schedule id, and the meter joins toCSI_COUNTERS_VLas an outer join. - Last service rows join
EAM_PM_LAST_SERVICEon the activity association, and the job joins toWIP_ENTITIESas an outer join. - The three row sets are combined with UNION ALL, and each set is included only when its update flag is Y.
Parameters & Filtering
- Upload Mode: selects Create, or Create, Update to download existing schedules.
- Organization: restricts the schedules to one organization, limited to those the responsibility can access.
- Update Activities: includes the activity rows in the download, and defaults to Yes.
- Update Rules: includes the scheduling rule rows in the download.
- Update Last Service: includes the last service rows in the download.
Performance & Optimization
- The organization test on
ORG_ACCESS_VIEWlimits every block to the organizations the responsibility can access. - Each child block is included only when its parameter is Y, so a header-only download does not read rules or last service data.
- The activity lookup falls back to a minimum activity association id per schedule, which gives each schedule one deterministic header row.
FAQ
Q: Why do my work orders not appear after I upload a schedule? A: Uploading a schedule does not generate work orders. Run the Create Preventive Maintenance Work Order concurrent program after the upload.
Q: How do I remove a scheduling rule? A: Set Delete Rule on the rule row. A changed rule is updated in place, and a rule row without a rule id is added.
Useful Links
- Blitz Report™ – World’s Fastest Oracle EBS Reporting Tool
- Oracle Discoverer Replacement – Import Worksheets into Blitz Report™
- Oracle EBS Reporting Toolkits by Blitz Report™
- Blitz Report™ FAQ & Community Q&A
- Supply Chain Hub by Blitz Report™
- Blitz Report™ Customer Case Studies
- Oracle EBS Reporting Blog
- Oracle EBS Reporting Resource Centre
© Enginatics GmbH