ITEM_DISP_VW1

(SQL View)
Index Back

SELECT M.BUSINESS_UNIT , M.CUST_ID , M.ITEM , M.ITEM_LINE , D.DISPUTE_AMOUNT , MAX(%DatePart(D.DISPUTE_DTTM)) FROM PS_ITEM_BASE_MVW M , PS_ITEM_DISP_T D , PS_AR_BUSET_MVW V WHERE M.BUSINESS_UNIT = D.BUSINESS_UNIT AND M.CUST_ID = D.CUST_ID AND M.ITEM = D.ITEM AND M.ITEM_LINE = D.ITEM_LINE AND M.ITEM_STATUS = 'C' AND D.DISPUTE_TRACKING = 'Y' AND D.DISPUTE_DT IS NOT NULL AND M.BUSINESS_UNIT = V.SETCNTRLVALUE AND D.DISPUTE_DTTM = ( SELECT MAX(E.DISPUTE_DTTM) FROM PS_ITEM_DISP_T E WHERE E.DISPUTE_TRACKING = 'Y' AND D.BUSINESS_UNIT = E.BUSINESS_UNIT AND D.CUST_ID = E.CUST_ID AND D.ITEM = E.ITEM AND D.ITEM_LINE = E.ITEM_LINE AND E.DISPUTE_DT IS NOT NULL) GROUP BY M.BUSINESS_UNIT, M.CUST_ID, M.ITEM, M.ITEM_LINE, D.DISPUTE_AMOUNT

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 CUST_ID Character(15) VARCHAR2(15) NOT NULL Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations.
3 ITEM Character(30) VARCHAR2(30) NOT NULL Uniquely identifies an invoice credit memo or debit memo. The item ID is also called the invoice number.
4 ITEM_LINE Number(6,0) INTEGER NOT NULL Item Line
5 DISPUTE_AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Specifies the amount of an item in dispute. This may represent only a portion of the full amount of an item.
6 DISPUTE_DT Date(10) DATE Specifies the date that an item was placed in dispute status.