INV_CST_SHP2_VW

(SQL View)
Index Back

Valid ShipTo for SoldTo by SBU

Copy of INV_CST_SHP_VW, except that: 1. Customer ID and Ship-To Customer ID fields used are CUST_ID and SHIP_TO_CUST_ID, instead of SL_CUST_ID and SL_SHIP_TO_CUST_ID 2. Set Control Field used is BUSINESS_UNIT instead of SL_SOURCE_BUS_UNIT

SELECT A.SETID ,A.CUST_ID ,A.SHIP_TO_CUST_ID ,B.NAME1 FROM %Table(CUST_SHIPTO) A , %Table(CUSTOMER) B , %Table(CUST_ADDRESS) C WHERE A.SETID = B.SETID AND A.SHIP_TO_CUST_ID = B.CUST_ID AND B.CUST_STATUS = 'A' AND B.CUST_ID = C.CUST_ID AND C.ADDRESS_SEQ_NUM = B.ADDRESS_SEQ_SHIP AND %EffdtCheck(CUST_ADDRESS, C, %CurrentDateIn) AND C.EFF_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