CUST_OOB_VW(SQL View) |
Index Back |
---|---|
Out Of Balance Customers |
SELECT c.business_unit , c.cust_id , c.bal_amt , SUM(i.bal_amt_base) , c.currency_cd FROM ps_cust_data c , PS_ITEM i WHERE i.business_unit = c.business_unit AND i.cust_id = c.cust_id GROUP BY c.business_unit, c.cust_id, c.bal_amt, c.currency_cd HAVING c.bal_amt <> SUM(i.bal_amt_base) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Default Value: OPR_DEF_TBL_FS.BUSINESS_UNIT Prompt Table: SP_BUARDS_NONVW |
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 | BAL_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Item Balance |
4 | ITEM_TOTAL | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Item Total |
5 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |