cel used on Coll Supply Schedules. Used to bring up Flex violations (does a distinct on the list of flex information since there could be a firmed and a fixed violation .. only want information to show up once.)

PO_FLEX_EXC_VW2

(SQL View)
Index Back

SELECT DISTINCT OPRID , VENDOR_SETID , VENDOR_ID , VNDR_LOC , ITM_SETID , INV_ITEM_ID , A.SCHED_GROUP_CD , BUSINESS_UNIT_IN , CATEGORY_CD , PO_SCHED_PRIORITY , %subrec(PO_CAP_FLEX_SBR,A) FROM PS_PO_FLEXD_SUM_VW A WHERE CHECK_BY = 'D' AND ( ( UPSIDE_FLG = 'Y' AND ((%DecDiv(%decmult(A.QTY_BASELINE,A.UPSIDE_PCT),100)) + A.QTY_BASELINE < A.QTY_PO)) OR (( DOWNSIDE_FLG = 'Y' AND A.QTY_BASELINE- (%DecDiv(%decmult(A.QTY_BASELINE,A.DOWNSIDE_PCT),100)) > A.QTY_PO)) ) AND NOT EXISTS ( SELECT 'X' FROM PS_PO_FLEX_EXC_VW1 B WHERE A.OPRID = B.OPRID AND A.VENDOR_SETID = B.VENDOR_SETID AND A.VENDOR_ID = B.VENDOR_ID AND A.ITM_SETID = B.ITM_SETID AND A.INV_ITEM_ID = B.INV_ITEM_ID AND A.SCHED_GROUP_CD = B.SCHED_GROUP_CD AND A.BUSINESS_UNIT_IN = B.BUSINESS_UNIT_IN)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
2 VENDOR_SETID Character(5) VARCHAR2(5) NOT NULL Vendor SetID
3 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
4 VNDR_LOC Character(10) VARCHAR2(10) NOT NULL Vendor Location
5 ITM_SETID Character(5) VARCHAR2(5) NOT NULL Item SetID
6 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
7 SCHED_GROUP_CD Character(6) VARCHAR2(6) NOT NULL 04/01/02 SCC CN#WV900-1.0: Supplier Collaboration - New Field
8 BUSINESS_UNIT_IN Character(5) VARCHAR2(5) NOT NULL Inventory Unit
9 CATEGORY_CD Character(18) VARCHAR2(18) NOT NULL Category Code
10 PO_SCHED_PRIORITY Character(2) VARCHAR2(2) NOT NULL Schedule Priority
10=High
20=Medium
30=Low
11 COLLAB_SCH_STATUS Character(2) VARCHAR2(2) NOT NULL 02/2001 cel WV-802-1.0 - Status of the supplier schedule
01=New
10=Current
20=Dispatched
30=Supplier Approved
40=Previous
50=History
12 DATETIME_COLLAB DateTime(26) TIMESTAMP 02/2001 cel WV-802-1.0. Datetime of when the line was approved by the supplier.
13 DATETIME_DISPATCH DateTime(26) TIMESTAMP 02/2001 cel WV-802-1.0
14 DATETIME_CREATE DateTime(26) TIMESTAMP 02/2001 cel WV-802-1.0.
15 SCHEDULE_START_DT Date(10) DATE 02/2001 cel WV-802-1.0
16 SCHEDULE_END_DT Date(10) DATE 02/2001 cel WV-802-1.0
17 UNIT_MEASURE_VNDR Character(3) VARCHAR2(3) NOT NULL Vendor Unit of Measure
18 DATETIME_APPLY DateTime(26) TIMESTAMP 08/27/01 SCC CN#WV840-1.0: Supplier Collaboration - New Field
19 INCLUDE_PO Character(1) VARCHAR2(1) NOT NULL Include PO Data
N=No
Y=Yes
20 DAYOFTHEWEEK Character(2) VARCHAR2(2) NOT NULL Day of the Week
1=Sunday
2=Monday
3=Tuesday
4=Wednesday
5=Thursday
6=Friday
7=Saturday
21 BUYER_ID_SEL Character(30) VARCHAR2(30) NOT NULL Buyer