RS_MYASSGN_WO(SQL View) |
Index Back |
---|---|
My assignment in work order |
SELECT A.BUSINESS_UNIT_WO , A.WO_ID , A.WO_TASK_ID , A.SHOP_ID , A.CRAFT_ID ,A.RES_LN_NBR , A.ASSIGNMENT_ID , A.EMPLID , A1.START_DT , A1.END_DT ,A1.TIME_START ,A1.END_TIME , B.ASSIGN_STS , C.DESCR FROM %Table(RS_ASSIGNMENT) A , %Table(RS_ASSIGNDET_VW) A1 , %Table(RS_ASSGN_STS) B , %Table(RS_ASSGN_ST_TBL) C WHERE A.ASSIGNMENT_ID = A1.ASSIGNMENT_ID AND A.ASSIGNMENT_ID = B.ASSIGNMENT_ID AND A.SYSTEM_SOURCE = 'WM' AND B.LASTUPDDTTM = ( SELECT MAX(LASTUPDDTTM) FROM %Table(RS_ASSGN_STS) WHERE ASSIGNMENT_ID = A.ASSIGNMENT_ID) AND C.ASSIGN_STS = B.ASSIGN_STS |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT_WO | Character(5) | VARCHAR2(5) NOT NULL | Business Unit Work Order |
2 | WO_ID | Character(10) | VARCHAR2(10) NOT NULL | Work Order Identification |
3 | WO_TASK_ID | Number(5,0) | INTEGER NOT NULL | Task Number |
4 | SHOP_ID | Character(10) | VARCHAR2(10) NOT NULL | Shop Identification |
5 | CRAFT_ID | Character(16) | VARCHAR2(16) NOT NULL | Craft Identification |
6 | RES_LN_NBR | Number(5,0) | INTEGER NOT NULL | Resource Line No. |
7 | ASSIGNMENT_ID | Character(15) | VARCHAR2(15) NOT NULL | Work Assignment ID |
8 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
9 | START_DT | Date(10) | DATE | Start Date |
10 | END_DT | Date(10) | DATE | End Date |
11 | TIME_START | Time(15) | TIMESTAMP | Start Time |
12 | END_TIME | Time(15) | TIMESTAMP | End of Shift |
13 | ASSIGN_STS | Character(2) | VARCHAR2(2) NOT NULL |
Assignment Status
A=Assign C=Complete I=Interview P=Propose R=Reject S=Reserve V=Pending Approval X=Cancel |
14 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |