REQ_PO_INQ_VW1

(SQL View)
Index Back

Requisition/PO XRef


select a.business_unit, a.req_id, a.line_nbr, a.inv_item_id, a.descr254_mixed, b.sched_nbr, c.distrib_line_num, c.qty_req, c.distrib_ln_status, c.qty_open, c.amt_open from ps_req_line a, PS_REQ_LINE_SHIP b, ps_req_ln_distrib c where a.business_unit = b.business_unit and a.req_id = b.req_id and a.line_nbr = b.line_nbr and a.business_unit = c.business_unit and a.req_id = c.req_id and a.line_nbr = c.line_nbr and b.sched_nbr = c.sched_nbr and ((b.distrib_mthd_flg = 'A' and c.merchandise_amt = c.amt_open) or (b.distrib_mthd_flg = 'Q' and c.qty_open = c.qty_req))

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 REQ_ID Character(10) VARCHAR2(10) NOT NULL Requisition ID
3 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
4 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
5 DESCR254_MIXED Character(254) VARCHAR2(254) NOT NULL Description
6 SCHED_NBR Number(3,0) SMALLINT NOT NULL Schedule Number
7 DISTRIB_LINE_NUM Number(5,0) INTEGER NOT NULL Distribution Line
8 QTY_REQ Number(16,4) DECIMAL(15,4) NOT NULL Requisition Quantity
9 DISTRIB_LN_STATUS Character(1) VARCHAR2(1) NOT NULL Distribution Line Status
C=Closed
M=Mass Liquidated
O=Open
P=Unavailable for Sourcing
X=Canceled
10 QTY_OPEN Number(16,4) DECIMAL(15,4) NOT NULL Open Quantity
11 AMT_OPEN Signed Number(28,3) DECIMAL(26,3) NOT NULL Open Amount