WM_SHOP_LOC_VW(SQL View) |
Index Back |
---|---|
Shop Location DataThis record is used to receive application message data for the shop location from FMS Work Management for a Work Order. |
SELECT A.SRVC_GRP_ID , A.BUSINESS_UNIT , A.SHOP_ID , A.EFFDT , A.DESCR , A.LOCATION , D.CITY , D.COUNTY , D.STATE , D.POSTAL , D.COUNTRY , D.BUILDING , D.FLOOR , D.SECTOR FROM PS_WM_SHOP_LOC2_VW A , PS_LOCATION_TBL D , PS_SET_CNTRL_REC E WHERE E.SETCNTRLVALUE = A.BUSINESS_UNIT AND E.RECNAME = 'LOCATION_TBL' AND D.SETID = E.SETID AND D.LOCATION = A.LOCATION AND D.EFFDT = ( SELECT MAX(D1.EFFDT) FROM PS_LOCATION_TBL D1 WHERE D1.SETID = D.SETID AND D1.LOCATION = D.LOCATION AND D1.EFFDT <= %CurrentDateIn) AND A.EFFDT <= %CurrentDateIn |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SRVC_GRP_ID | Character(10) | VARCHAR2(10) NOT NULL | The field contains the service group id used to identify the service location for a work order in FMS. |
2 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
3 | SHOP_ID | Character(10) | VARCHAR2(10) NOT NULL | This field contains the Shop ID to identify the service location for a work order in FMS. |
4 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
5 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
6 | LOCATION | Character(15) | VARCHAR2(15) NOT NULL | This field stores the Location Code. |
7 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
8 | COUNTY | Character(30) | VARCHAR2(30) NOT NULL | County |
9 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State |
10 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
11 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL | Country |
12 | BUILDING | Character(10) | VARCHAR2(10) NOT NULL | Building # |
13 | FLOOR | Character(10) | VARCHAR2(10) NOT NULL | Floor # |
14 | SECTOR | Character(10) | VARCHAR2(10) NOT NULL | Sector |