PV_RTV_RECV_VW2(SQL View) |
Index Back |
---|
SELECT S.BUSINESS_UNIT , S.RECEIVER_ID , S.RECV_LN_NBR , S.RECV_SHIP_SEQ_NBR , S.BUSINESS_UNIT_PO , S.LINE_NBR , S.PO_ID , S.SCHED_NBR , S.MOVE_STAT_INV ,S.QTY_SH_ACCPT_VUOM , SUM(RTV.QTY_AM_RETRN_VUOM) FROM PS_RECV_HDR H , PS_RECV_LN_SHIP S , PS_RTV_LN_DISTRIB RTV WHERE S.BUSINESS_UNIT = RTV.BUSINESS_UNIT_RECV (+) AND S.RECEIVER_ID = RTV.RECEIVER_ID (+) AND S.RECV_LN_NBR = RTV.RECV_LN_NBR (+) AND S.RECV_SHIP_SEQ_NBR = RTV.RECV_SHIP_SEQ_NBR (+) AND S.PO_ID <> ' ' AND H.BUSINESS_UNIT = S.BUSINESS_UNIT AND H.RECEIVER_ID = S.RECEIVER_ID AND S.PRODUCTION_ID = ' ' AND S.OP_SEQUENCE = 0 AND H.RECV_STATUS <> 'X' AND S.AMT_ONLY_FLG = 'N' AND S.QTY_SH_ACCPT_VUOM <> 0 GROUP BY S.BUSINESS_UNIT , S.RECEIVER_ID , S.RECV_LN_NBR , S.RECV_SHIP_SEQ_NBR , S.BUSINESS_UNIT_PO , S.LINE_NBR , S.PO_ID , S.SCHED_NBR , S.QTY_SH_ACCPT_VUOM , S.MOVE_STAT_INV |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT_RECV | Character(5) | VARCHAR2(5) NOT NULL | Receiving Business Unit |
2 | RECEIVER_ID | Character(10) | VARCHAR2(10) NOT NULL | Receiver number |
3 | RECV_LN_NBR | Number(5,0) | INTEGER NOT NULL | Receipt Line |
4 | RECV_SHIP_SEQ_NBR | Number(3,0) | SMALLINT NOT NULL | Receiver Shipping Sequence |
5 | BUSINESS_UNIT_PO | Character(5) | VARCHAR2(5) NOT NULL | PO Business Unit |
6 | LINE_NBR | Number(5,0) | INTEGER NOT NULL | Line Number: 11/24/08 - Added TARGET label [PC product] |
7 | PO_ID | Character(10) | VARCHAR2(10) NOT NULL | Purchase Order |
8 | SCHED_NBR | Number(3,0) | SMALLINT NOT NULL | Schedule Number |
9 | MOVE_STAT_INV | Character(1) | VARCHAR2(1) NOT NULL |
MOVE_STAT_INV
M=Moved N=N/A P=Pending |
10 | QTY_SH_ACCPT_VUOM | Number(16,4) | DECIMAL(15,4) NOT NULL | Accept QTY in Supplier UOM |
11 | QTY_AM_RETRN_VUOM | Number(16,4) | DECIMAL(15,4) NOT NULL | Vendor Returned Qty |