TD_CUST_OPRVW

(SQL View)
Index Back

Promotion customer operator vw

Promotions customer secured view by operator

SELECT DISTINCT A.OPRID , D.SETID , A.CUST_ID , C.NAME1 , A.TD_TREE_ID FROM PS_TD_APPR_NODE_VW A , PS_CUSTOMER C , PS_TD_SETID_TBL D , PS_SET_CNTRL_REC F WHERE D.SETID = F.SETCNTRLVALUE AND F.RECNAME = 'CUSTOMER' AND F.SETID = A.SETID AND A.SETID = C.SETID AND A.CUST_ID = C.CUST_ID AND A.TD_TREE_ID = D.TD_TREE_ID_CUST AND %EffdtCheck(TD_TREE_HDR A_EFF, A, %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
2 SETID Character(5) VARCHAR2(5) NOT NULL SetID
3 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.
4 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
5 TD_TREE_ID Character(8) VARCHAR2(8) NOT NULL Tree ID