PO_RECV_SHIP_VW(SQL View) |
Index Back |
---|---|
PO Line Ship View |
SELECT S.BUSINESS_UNIT , S.PO_ID , S.LINE_NBR , S.SCHED_NBR , S.BUSINESS_UNIT_IN , C.CATEGORY_CD , L.CATEGORY_ID , 'N' , L.CONFIG_CODE , S.COUNTRY_SHIP_FROM , H.CURRENCY_CD , S.CURRENCY_CD_BASE , L.DESCR254_MIXED , ' ' , S.DISTRIB_MTHD_FLG , S.DUE_DT , S.DUE_TIME , H.ERS_ACTION , L.INSPECT_CD , L.INV_ITEM_ID , S.IST_TXN_FLG , L.ITM_ID_VNDR , L.ITM_SETID , ' ' , S.MATCH_LINE_OPT , S.MERCH_AMT_BSE , S.MERCHANDISE_AMT , S.MERCH_AMT_BSE , L.MFG_ID , L.MFG_ITM_ID , ' ' , S.OP_SEQUENCE , S.ORIG_PROM_DT , H.PO_DT , S.PRICE_PO , S.PRICE_PO_BSE , S.PRODUCTION_ID , S.QTY_PO , 0 , S.QTY_RECV_TOL_PCT , L.RELEASE_NBR , L.ROUTING_ID , S.SHIPTO_ID , S.SHIPTO_SETID , S.SHIP_TYPE_ID , L.UNIT_OF_MEASURE , H.VENDOR_ID , H.VENDOR_SETID , L.VNDR_CATALOG_ID , H.VNDR_LOC , S.REJECT_DAYS 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 = 'D' OR (H.CHNG_ORD_BATCH > 0 AND H.PO_STATUS = 'A' )) 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.CANCEL_STATUS = 'A' AND S.CANCEL_STATUS = 'A' 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_ID = C2.CATEGORY_ID AND C2.EFFDT <= %CurrentDateIn) AND ((S.QTY_PO > ( SELECT SUM(D.QTY_SH_NETRCV_VUOM) FROM PS_RECV_LN_SHIP D WHERE S.BUSINESS_UNIT = D.BUSINESS_UNIT_PO AND S.PO_ID = D.PO_ID AND S.LINE_NBR = D.LINE_NBR AND S.SCHED_NBR = D.SCHED_NBR)) OR NOT EXISTS ( SELECT 'X'FROM PS_RECV_LN_SHIP D WHERE S.BUSINESS_UNIT = D.BUSINESS_UNIT_PO AND S.PO_ID = D.PO_ID AND S.LINE_NBR = D.LINE_NBR AND S.SCHED_NBR = D.SCHED_NBR)) |
# | 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 | CONFIG_CODE | Character(50) | VARCHAR2(50) NOT NULL | Product Configurator |
10 | COUNTRY_IST_ORIGIN | Character(3) | VARCHAR2(3) NOT NULL | Intrastat Country of Origin |
11 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
12 | CURRENCY_CD_BASE | Character(3) | VARCHAR2(3) NOT NULL | Business Unit Base Currency |
13 | DESCR254_MIXED | Character(254) | VARCHAR2(254) NOT NULL | Description |
14 | DETAILS_PB | Character(1) | VARCHAR2(1) NOT NULL | Details |
15 | DISTRIB_MTHD_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Distribute by
A=Amount Q=Quantity |
16 | 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. |
17 | DUE_TIME | Time(15) | TIMESTAMP | Due Time |
18 | ERS_ACTION | Character(1) | VARCHAR2(1) NOT NULL |
ERS Action
N=No Y=Yes |
19 | INSPECT_CD | Character(1) | VARCHAR2(1) NOT NULL |
Inspection Required
N=No Y=Yes |
20 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
21 | IST_TXN_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Intrastat Transaction Flag
N=No Y=Yes Y/N Table Edit Default Value: N |
22 | ITM_ID_VNDR | Character(50) | VARCHAR2(50) NOT NULL | Vendor Item ID |
23 | ITM_SETID | Character(5) | VARCHAR2(5) NOT NULL | Item SetID |
24 | MANUFACTURER | Character(60) | VARCHAR2(60) NOT NULL | Manufacturer Name |
25 | MATCH_LINE_OPT | Character(1) | VARCHAR2(1) NOT NULL |
Match Line Option
E=ERS F=Full Match N=Don't Match |
26 | MERCH_AMT_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Base Merchandise Amount |
27 | MERCH_AMT_PO_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Merchandise Amt PO Base |
28 | MERCHANDISE_AMT_PO | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | PO Merchandise Amount |
29 | MFG_ID | Character(50) | VARCHAR2(50) NOT NULL | Manufacturer ID |
30 | MFG_ITM_ID | Character(50) | VARCHAR2(50) NOT NULL | Manufacturer's Item ID |
31 | MODEL | Character(30) | VARCHAR2(30) NOT NULL | Model |
32 | OP_SEQUENCE | Number(4,0) | SMALLINT NOT NULL | Operation Sequence |
33 | ORIG_PROM_DT | Date(10) | DATE | Original Promise Date |
34 | PO_DT | Date(10) | DATE | Date |
35 | PRICE_PO | Signed Number(17,5) | DECIMAL(15,5) NOT NULL | Purchase Order Price |
36 | PRICE_PO_BSE | Signed Number(17,5) | DECIMAL(15,5) NOT NULL | Price Base |
37 | PRODUCTION_ID | Character(10) | VARCHAR2(10) NOT NULL | Production ID |
38 | QTY_PO | Number(16,4) | DECIMAL(15,4) NOT NULL | Purchase Order Quantity |
39 | QTY_PRIOR_RECEIPT | Number(16,4) | DECIMAL(15,4) NOT NULL | Prior Receipt Qty |
40 | QTY_RECV_TOL_PCT | Number(6,2) | DECIMAL(5,2) NOT NULL | Qty Rcvd Tolerance % |
41 | RELEASE_NBR | Number(5,0) | INTEGER NOT NULL | Release Number |
42 | ROUTING_ID | Character(10) | VARCHAR2(10) NOT NULL |
Inspection Routing ID
Prompt Table: ROUTING_HDR |
43 | SHIPTO_ID | Character(10) | VARCHAR2(10) NOT NULL |
Ship To Location
Prompt Table: SHIPTO_TBL |
44 | SHIPTO_SETID | Character(5) | VARCHAR2(5) NOT NULL | ShipTo SetID |
45 | SHIP_TYPE_ID | Character(10) | VARCHAR2(10) NOT NULL | Ship Via Code |
46 | UNIT_OF_MEASURE | Character(3) | VARCHAR2(3) NOT NULL |
Used on an approval rule set.
MHR=Muti Hourly PER=Percentage SQF=Square Footage |
47 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
48 | VENDOR_SETID | Character(5) | VARCHAR2(5) NOT NULL | Vendor SetID |
49 | VNDR_CATALOG_ID | Character(20) | VARCHAR2(20) NOT NULL | Vendor's Catalog Number |
50 | VNDR_LOC | Character(10) | VARCHAR2(10) NOT NULL |
Vendor Location
Prompt Table: VNDR_LOC_ORD_VW |
51 | REJECT_DAYS | Number(3,0) | SMALLINT NOT NULL | Early Ship Rjct Days |