LOCATION_INV_VW(SQL View) |
Index Back |
---|---|
View shows only setid,locationThis view shows only setid, location and descr |
SELECT DISTINCT C.BUSINESS_UNIT , A.SETID , A.LOCATION , A.DESCR FROM PS_LOCATION_TBL A , PS_SET_CNTRL_REC B , PS_BUS_UNIT_TBL_IN C WHERE C.BUSINESS_UNIT = B.SETCNTRLVALUE AND B.RECNAME = 'LOCATION_TBL' AND B.SETID = A.SETID AND A.EFFDT = ( SELECT MAX(L.EFFDT) FROM PS_LOCATION_TBL L WHERE L.SETID = A.SETID AND L.LOCATION = A.LOCATION AND L.EFFDT <= %CurrentDateIn) AND A.EFF_STATUS = 'A' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | ORIG_BU | Character(5) | VARCHAR2(5) NOT NULL | From Inventory Unit |
2 | SETID_LOCATION | Character(5) | VARCHAR2(5) NOT NULL | Location SetID |
3 | LOCATION | Character(10) | VARCHAR2(10) NOT NULL |
Location Code
Prompt Table: LOCATION_TBL |
4 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |