CUST_CORP_VW

(SQL View)
Index Back

WITH DIRECTREPORTS(SETID,CUST_ID,PARENT_CUST_ID) AS ( SELECT SETID ,CUST_ID ,CAST(PARENT_CUST_ID %CONCAT '-' AS VARCHAR(500)) FROM PS_CUSTOMER WHERE CUST_ID=CORPORATE_CUST_ID UNION ALL SELECT E.SETID ,E.CUST_ID ,CAST(D.PARENT_CUST_ID %CONCAT E.CUST_ID %CONCAT '-' AS VARCHAR(500)) FROM PS_CUSTOMER E , DIRECTREPORTS D WHERE E.SETID=D.SETID AND E.CORPORATE_CUST_ID =D.CUST_ID AND E.CORPORATE_CUST_ID <> E.CUST_ID ) SELECT SETID ,CUST_ID ,PARENT_CUST_ID FROM DIRECTREPORTS

# 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 PARENTS_ID Character(200) VARCHAR2(200) NOT NULL Parents id