CST_SLD_INV_VW

(SQL View)
Index Back

Sold To Customers by SBU


SELECT A.SETID , B.SHIP_TO_CUST_ID , B.CUST_ID , C.NAME1 FROM PS_CUSTOMER A , PS_CUST_SHIPTO B , PS_CUSTOMER C WHERE A.SETID = B.SETID AND A.SETID = C.SETID AND A.CUST_ID = B.SHIP_TO_CUST_ID AND C.CUST_ID = B.CUST_ID AND A.SOLD_TO_FLG = 'Y' AND A.CUST_STATUS = 'A'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID

Default Value: OPR_DEF_TBL_FS.SETID

Prompt Table: SP_SETID_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 SHIP_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Ship To Customer
4 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1