RTV_PO_SHIP_VW

(SQL View)
Index Back

PO Line Ship View for RTV


SELECT S.BUSINESS_UNIT , S.PO_ID , S.LINE_NBR , S.SCHED_NBR , S.BUSINESS_UNIT_IN , C.CATEGORY_CD , L.CATEGORY_ID , 'N' , S.CURRENCY_CD , S.CURRENCY_CD_BASE , L.DESCR254_MIXED , S.DISTRIB_MTHD_FLG , S.DUE_DT , H.ERS_ACTION , L.INSPECT_CD , L.INV_ITEM_ID , L.ITM_SETID , S.MERCHANDISE_AMT , S.OP_SEQUENCE , S.ORIG_PROM_DT , H.PO_DT , H.PO_STATUS , S.PRICE_PO , S.PRODUCTION_ID , S.QTY_PO , 0 , S.QTY_RECV_TOL_PCT , L.RECV_REQ , L.RELEASE_NBR , S.REVISION , S.SHIPTO_ID , S.SHIP_TYPE_ID , L.UNIT_OF_MEASURE , H.VENDOR_ID , H.VENDOR_SETID , H.VNDR_LOC , %subrec(PUR_USR_SHP_SBR, S) FROM PS_PO_HDR H , PS_PO_LINE L , PS_PO_LINE_SHIP S , PS_ITM_CAT_TBL C , PS_INSTALLATION_PO I WHERE (H.PO_STATUS IN ('C', 'D') OR (H.CHNG_ORD_BATCH > 0 AND H.PO_STATUS IN( 'O','A','PA', 'C') )) AND H.BUSINESS_UNIT = L.BUSINESS_UNIT AND H.PO_ID = L.PO_ID AND L.BUSINESS_UNIT = S.BUSINESS_UNIT AND L.PO_ID = S.PO_ID AND L.LINE_NBR = S.LINE_NBR AND L.RECV_REQ <> 'Y' AND L.AMT_ONLY_FLG = 'N' AND (S.SHIP_TO_CUST_ID = ' ' OR (S.BUSINESS_UNIT_OM <> ' ' AND S.ORDER_NO <> ' ' AND S.SHIP_TO_CUST_ID <> ' ')) AND L.ITM_SETID = C.SETID AND L.CATEGORY_ID = C.CATEGORY_ID AND C.CATEGORY_TYPE = I.CATEGORY_TYPE AND C.EFFDT = ( SELECT MAX(C2.EFFDT) FROM PS_ITM_CAT_TBL C2 WHERE C.SETID = C2.SETID AND C.CATEGORY_TYPE = C2.CATEGORY_TYPE AND C.CATEGORY_CD = C2.CATEGORY_CD AND C2.EFFDT <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT_PO Character(5) VARCHAR2(5) NOT NULL PO Business Unit
2 PO_ID Character(10) VARCHAR2(10) NOT NULL Purchase Order
3 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
4 SCHED_NBR Number(3,0) SMALLINT NOT NULL Schedule Number
5 BUSINESS_UNIT_IN Character(5) VARCHAR2(5) NOT NULL Inventory Unit
6 CATEGORY_CD Character(18) VARCHAR2(18) NOT NULL Category Code

Prompt Table: %EDITTABLE26

7 CATEGORY_ID Character(5) VARCHAR2(5) NOT NULL Category ID
8 CB_SELECT_PO Character(1) VARCHAR2(1) NOT NULL Select PO Schedule Checkbox

Y/N Table Edit

Default Value: N

9 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
10 CURRENCY_CD_BASE Character(3) VARCHAR2(3) NOT NULL Business Unit Base Currency
11 DESCR254_MIXED Character(254) VARCHAR2(254) NOT NULL Description
12 DISTRIB_MTHD_FLG Character(1) VARCHAR2(1) NOT NULL Distribute by
A=Amount
Q=Quantity
13 DUE_DT Date(10) DATE Specifies the date that a transaction is due. It is a generic field used in multiple PeopleSoft applications including Receivables Payables and Purchasing. For example it represents the date that payment is due for a voucher or the date that a scheduled shipment is due to be received.
14 ERS_ACTION Character(1) VARCHAR2(1) NOT NULL ERS Action
N=No
Y=Yes
15 INSPECT_CD Character(1) VARCHAR2(1) NOT NULL Inspection Required
N=No
Y=Yes
16 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
17 ITM_SETID Character(5) VARCHAR2(5) NOT NULL Item SetID
18 MERCHANDISE_AMT_PO Signed Number(28,3) DECIMAL(26,3) NOT NULL PO Merchandise Amount
19 OP_SEQUENCE Number(4,0) SMALLINT NOT NULL Operation Sequence
20 ORIG_PROM_DT Date(10) DATE Original Promise Date
21 PO_DT Date(10) DATE Date
22 PO_STATUS Character(2) VARCHAR2(2) NOT NULL PO Status
A=Approved
C=Complete
D=Dispatched
DA=Denied
I=Initial
LD=Line Denied
O=Open
PA=Pending Approval/Approved
PX=Pending Cancel
X=Canceled
23 PRICE_PO Signed Number(17,5) DECIMAL(15,5) NOT NULL Purchase Order Price
24 PRODUCTION_ID Character(10) VARCHAR2(10) NOT NULL Production ID
25 QTY_PO Number(16,4) DECIMAL(15,4) NOT NULL Purchase Order Quantity
26 QTY_PRIOR_RECEIPT Number(16,4) DECIMAL(15,4) NOT NULL Prior Receipt Qty
27 QTY_RECV_TOL_PCT Number(6,2) DECIMAL(5,2) NOT NULL Qty Rcvd Tolerance %
28 RECV_REQ Character(1) VARCHAR2(1) NOT NULL Receiving Required
N=Optional
X=Do Not
Y=Required
29 RELEASE_NBR Number(5,0) INTEGER NOT NULL Release Number
30 REVISION Character(4) VARCHAR2(4) NOT NULL 01/27/2000 RML Added "As of" label
31 SHIPTO_ID Character(10) VARCHAR2(10) NOT NULL Ship To Location

Prompt Table: SHIPTO_TBL

32 SHIP_TYPE_ID Character(10) VARCHAR2(10) NOT NULL Ship Via Code
33 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
34 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
35 VENDOR_SETID Character(5) VARCHAR2(5) NOT NULL Vendor SetID
36 VNDR_LOC Character(10) VARCHAR2(10) NOT NULL Vendor Location
37 USER_SCHED_CHAR1 Character(1) VARCHAR2(1) NOT NULL Custom Character 1
38 CUSTOM_C100_C1 Character(100) VARCHAR2(100) NOT NULL Custom Field 1
39 CUSTOM_C100_C2 Character(100) VARCHAR2(100) NOT NULL Custom Field 2
40 CUSTOM_C100_C3 Character(100) VARCHAR2(100) NOT NULL Custom Field 3
41 CUSTOM_DATE_C1 Date(10) DATE Custom Date 1
42 CUSTOM_DATE_C2 Date(10) DATE Custom Date 2
43 CUSTOM_C1_C Character(1) VARCHAR2(1) NOT NULL Custom Character 2