OM_MAX_DRN_VW1(SQL View) |
Index Back |
---|---|
Max Document Ref Num by IBUMax Shipped Doc Reference number by IBU |
SELECT S.BUSINESS_UNIT , S.ORDER_NO , MAX(D.DOC_REFNUM) FROM PS_ORD_SCHEDULE S , PS_ORD_DEPOSIT_ACT D , PS_CDR_RECEIPT C WHERE S.BUSINESS_UNIT = D.BUSINESS_UNIT AND S.CUST_DEPOSIT_ID = D.CUST_DEPOSIT_ID AND D.DEPOSIT_ACTION = '1' AND D.DEPOSIT_BU = C.DEPOSIT_BU AND D.RECEIPT_NBR = C.RECEIPT_NBR AND C.RECEIPT_STATUS IN ('HLD','NEW') GROUP BY S.BUSINESS_UNIT, S.ORDER_NO |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
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 |
3 | DOC_REFNUM | Character(20) | VARCHAR2(20) NOT NULL | Counter sale document reference number |