WM_WC_PENDPM_VW(SQL View) |
Index Back |
---|---|
WM Workcenter Overdur PMsWM Workcenter Overdur PMs |
SELECT DISTINCT A.BUSINESS_UNIT , A.PM_SCHD_ID , B.BUSINESS_UNIT_AM , B.ASSET_ID , G.TAG_NUMBER , G.SERIAL_ID , G.VIN , B.MAINT_TYPE , B.MAINT_LOOP_ID , B.LOCATION , A.SHOP_ID , B.DESCR100 , A.WO_TYPE , A.SRVC_GRP_ID , A.PRIORITY_CD , D.SCHEDULER_CODE , G.ASSET_TYPE , G.ASSET_SUBTYPE , G.ASSET_CRITICALITY , H.LOCATION , H.AREA_ID , G.MANUFACTURER , G.MODEL , G.PROD_VERSION FROM PS_WM_PM_SCHD_DTL A , PS_WM_PM_SCHD B , PS_WM_SHOP_SCHED_H E , PS_WM_SHOP_SCHEDLR D , PS_ASSET G , PS_ASSET_LOCATION H WHERE A.WM_PM_APPR_STATUS IN ('P') AND A.EFFDT = ( SELECT MAX(F.EFFDT) FROM PS_WM_PM_SCHD_DTL F WHERE F.BUSINESS_UNIT = A.BUSINESS_UNIT AND F.PM_SCHD_ID = A.PM_SCHD_ID AND F.EFFDT <= %CurrentDateIn) AND A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.PM_SCHD_ID = B.PM_SCHD_ID AND E.BUSINESS_UNIT = D.BUSINESS_UNIT AND E.SHOP_ID = A.SHOP_ID AND E.EFFDT = ( SELECT MAX(C.EFFDT) FROM PS_WM_SHOP_SCHED_H C WHERE C.BUSINESS_UNIT = D.BUSINESS_UNIT AND C.SHOP_ID = D.SHOP_ID AND C.EFFDT <= %CurrentDateIn) AND E.EFF_STATUS = 'A' AND D.BUSINESS_UNIT = B.BUSINESS_UNIT AND D.SHOP_ID = A.SHOP_ID AND D.EFFDT = E.EFFDT AND D.PRIMARY_FLG = 'Y' AND B.BUSINESS_UNIT_AM = G.BUSINESS_UNIT AND B.ASSET_ID = G.ASSET_ID AND G.BUSINESS_UNIT = H.BUSINESS_UNIT AND G.ASSET_ID = H.ASSET_ID AND H.EFFDT = ( SELECT MAX(I.EFFDT) FROM PS_ASSET_LOCATION I WHERE I.BUSINESS_UNIT = H.BUSINESS_UNIT AND I.ASSET_ID = H.ASSET_ID AND I.EFFDT <= %CurrentDateIn ) AND H.EFFSEQ = ( SELECT MIN(J.EFFSEQ) FROM PS_ASSET_LOCATION J WHERE J.BUSINESS_UNIT = H.BUSINESS_UNIT AND J.ASSET_ID = H.ASSET_ID AND J.EFFDT = H.EFFDT ) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Prompt Table: SP_BU_WM_NONVW |
2 | PM_SCHD_ID | Character(10) | VARCHAR2(10) NOT NULL | Preventive Maintenance Schedule ID |
3 | BUSINESS_UNIT_AM | Character(5) | VARCHAR2(5) NOT NULL | AM Business Unit |
4 | ASSET_ID | Character(12) | VARCHAR2(12) NOT NULL | Asset Identification |
5 | TAG_NUMBER | Character(12) | VARCHAR2(12) NOT NULL | Tag Number |
6 | SERIAL_ID | Character(20) | VARCHAR2(20) NOT NULL | Serial ID |
7 | VIN | Character(18) | VARCHAR2(18) NOT NULL | VIN |
8 | MAINT_TYPE | Character(10) | VARCHAR2(10) NOT NULL | This field is used for maintenance type |
9 | MAINT_LOOP_ID | Character(15) | VARCHAR2(15) NOT NULL | Maintenance Loop ID |
10 | LOCATION | Character(10) | VARCHAR2(10) NOT NULL | Location Code |
11 | SHOP_ID | Character(10) | VARCHAR2(10) NOT NULL | Shop Identification |
12 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
13 | WO_TYPE | Character(5) | VARCHAR2(5) NOT NULL | Work Order Type |
14 | SRVC_GRP_ID | Character(10) | VARCHAR2(10) NOT NULL | Service Group |
15 | PRIORITY_CD | Character(3) | VARCHAR2(3) NOT NULL | Priority Code |
16 | SCHEDULER_CODE | Character(10) | VARCHAR2(10) NOT NULL | Scheduler Code |
17 | ASSET_TYPE | Character(3) | VARCHAR2(3) NOT NULL |
Asset Type
010=IT Hardware 020=IT Software 040=Equipment 050=Property 060=Fleet 070=Machinery 080=Furniture 090=Facility 100=Intangible 200=Asset Retirement Obligations 999=Other |
18 | ASSET_SUBTYPE | Character(15) | VARCHAR2(15) NOT NULL | Asset Subtype |
19 | ASSET_CRITICALITY | Character(2) | VARCHAR2(2) NOT NULL | Asset Criticality |
20 | ASSET_LOCATION | Character(10) | VARCHAR2(10) NOT NULL | Asset Location |
21 | AREA_ID | Character(10) | VARCHAR2(10) NOT NULL | Area ID |
22 | MANUFACTURER | Character(60) | VARCHAR2(60) NOT NULL | Manufacturer Name |
23 | MODEL | Character(30) | VARCHAR2(30) NOT NULL | Model |
24 | PROD_VERSION | Character(10) | VARCHAR2(10) NOT NULL | Product Version |