AB_CREDITBU_LVW(SQL View) |
Index Back |
---|---|
Action List Credit Cross BU Vw |
SELECT DISTINCT c1.setid ,c1.cust_id , C1.LANGUAGE_CD , C1.name1 FROM ps_customer c , PS_CUSTOMER_LANG C1 , ps_cust_data D , PS_CUST_CREDIT O WHERE C.SETID = C1.SETID AND C.CUST_ID = C1.CUST_ID AND C.cust_status = 'A' AND C.bill_to_flg = 'Y' AND C.cust_level <> 'P' AND c.setid = ( SELECT setid FROM ps_set_cntrl_rec WHERE setcntrlvalue = D.business_unit AND recname = 'CUSTOMER' ) AND C.cust_id = D.cust_id AND O.setid = C.setid AND d.cust_id = O.cust_id AND O.effdt = ( SELECT MAX(effdt) FROM PS_CUST_CREDIT WHERE setid = O.setid AND cust_id = O.cust_id AND effdt <= %CurrentDateIn AND eff_status = 'A' ) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
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 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
4 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |