ORD_HLD_CPT_VW2(SQL View) |
Index Back |
---|---|
Order HoldsThis view selects holds that would prevent a counter sale order from shipping in OM |
SELECT DISTINCT H.BUSINESS_UNIT , H.ORDER_NO , H.ORDER_INT_LINE_NO , H.SCHED_LINE_NBR , H.SEQ_NUM , H.HOLD_CD , H.STATUS_DT , H.HOLD_LEVEL , H.PASS_HOLD_LEVEL , H.PASS_HOLD_CD , H.MESSAGE_CD , S.DOC_REFNUM FROM PS_ORD_HOLD H , PS_ORD_SCHEDULE S , PS_ORD_LINE L , PS_PROD_INVITEM_VW I , PS_SET_CNTRL_REC SC , PS_MESSAGE_TBL M , PS_SET_CNTRL_REC SC1 WHERE %Join(COMMON_KEYS, ORD_SCHEDULE S, ORD_LINE L) AND L.PRODUCT_ID = I.PRODUCT_ID AND SC.RECNAME = 'PROD_ITEM' AND SC.SETCNTRLVALUE = L.BUSINESS_UNIT AND SC.SETID = I.SETID AND S.BUSINESS_UNIT = H.BUSINESS_UNIT AND S.ORDER_NO = H.ORDER_NO AND ( (H.ORDER_INT_LINE_NO = 0 AND H.SCHED_LINE_NBR = 0) OR (H.ORDER_INT_LINE_NO = L.ORDER_INT_LINE_NO AND H.SCHED_LINE_NBR = 0) ) AND SC1.RECNAME = 'MESSAGE_TBL' AND SC1.SETCNTRLVALUE = L.BUSINESS_UNIT AND SC1.SETID = M.SETID AND H.EFF_STATUS = 'A' AND H.HOLD_CD = M.HOLD_CD AND H.MESSAGE_CD = M.MESSAGE_CD AND H.STATUS_DT <= %CurrentDateIn AND ( (I.INVENTORY_ITEM = 'Y' AND S.DROP_SHIP_FLAG = 'N' AND (M.PASS_HOLD_TO_IS = 'N' OR M.PASS_HOLD_TO_IP = 'N') ) OR (S.DROP_SHIP_FLAG = 'Y' AND M.PASS_HOLD_TO_BI = 'N') OR (S.DROP_SHIP_FLAG = 'N' AND I.INVENTORY_ITEM = 'N' AND I.PRODUCT_KIT_FLAG = 'N' AND I.CFG_KIT_FLAG = 'N' AND M.PASS_HOLD_TO_BI = 'N') ) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Prompt Table: BUS_UNIT_TBL_OM |
2 | ORDER_NO | Character(10) | VARCHAR2(10) NOT NULL |
Identifies a customer order number that appears as a reference on a receivables pending item.
Date Initials Issue Description
022701 mv SP2 (F-CJORGENS-3) CSR Desktop
Prompt Table: ORD_HEADER |
3 | ORDER_INT_LINE_NO | Number(5,0) | INTEGER NOT NULL |
Order Line
Prompt Table: ORD_LINE |
4 | SCHED_LINE_NBR | Number(6,0) | INTEGER NOT NULL |
Schedule Line Number
Prompt Table: ORD_SCHEDULE |
5 | SEQ_NUM | Number(3,0) | SMALLINT NOT NULL | Sequence |
6 | HOLD_CD | Character(6) | VARCHAR2(6) NOT NULL |
Hold Code
Prompt Table: HOLD_CD |
7 | STATUS_DT | Date(10) | DATE NOT NULL | Status Date |
8 | HOLD_LEVEL | Character(1) | VARCHAR2(1) NOT NULL |
Hold Level
A=Arrival Date (sch) B=Bill To (hdr) C=Customer (hdr) D=No VAT Country Ship From F=Configurator Hold G=Freight H=Ship To (sch) K=No Prod Kit Comps (line) M=Min/Max Margin (sch) N=Min Selling Price (sch) O=SCN Line Max Amt (line) P=Product (line) Q=Min/Max Quantity (line) R=Credit Check (all) S=Sold To (hdr) T=Price Discrepancy (Sch) U=Cancel Hold V=VMI Order W=Customer Pick-up X=SCN Min/Max Qty (line) Y=FSS Customer Z=FSS Order |
9 | PASS_HOLD_LEVEL | Character(4) | VARCHAR2(4) NOT NULL |
Hold Code Level
CUST=Customer Hold HDR=Header Hold LINE=Line Hold PROD=Product Hold SCH=Schedule Hold SYS=System Holds |
10 | PASS_HOLD_CD | Character(6) | VARCHAR2(6) NOT NULL |
System Hold Code
Prompt Table: HOLD_CD |
11 | MESSAGE_CD | Character(6) | VARCHAR2(6) NOT NULL |
Message Code
Prompt Table: MESSAGE_TBL |
12 | DOC_REFNUM | Character(20) | VARCHAR2(20) NOT NULL | Counter sale document reference number |