VMI_CUSTSHP3_VW

(SQL View)
Index Back

VMI Ship To Customers

Active, and Effective dated list of VMI Ship To Customers

SELECT O.BUSINESS_UNIT , C.CUST_ID , C.NAME1 FROM PS_OM_BU_NONVW O ,PS_CUSTOMER C , PS_CUST_SHIPTO_OPT S , PS_SET_CNTRL_REC CN WHERE CN.SETCNTRLVALUE = O.BUSINESS_UNIT AND CN.RECNAME = 'CUSTOMER' AND CN.SETID = C.SETID AND C.SETID = S.SETID AND C.CUST_ID = S.CUST_ID AND C.CUST_STATUS = 'A' AND S.EFFDT = ( SELECT MAX(S_EFF.EFFDT) FROM PS_CUST_SHIPTO_OPT S_EFF WHERE S_EFF.SETID = S.SETID AND S_EFF.CUST_ID = S.CUST_ID AND S_EFF.EFFDT <= %CurrentDateIn) AND S.EFF_STATUS = 'A' AND S.VMI_CUST_FLG = 'Y'

# 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 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1