BILL_TO_SEC_VW2(SQL View) |
Index Back |
---|---|
Bill To Customer Security ViewUsed for row-level security for batch processes. |
SELECT A.SETID , A.CONTACT_ID , B.CUSTOMER_SETID , B.CUST_ID FROM PSOPRALIAS A , PS_CONTACT_CUST B WHERE A.SETID = B.SETID AND A.CONTACT_ID = B.CONTACT_ID AND A.OPRALIASTYPE = 'CNT' AND A.OPRALIASVALUE = B.CONTACT_ID AND B.EFFDT = ( SELECT MAX(X.EFFDT) FROM PS_CONTACT X WHERE X.SETID = B.SETID AND X.CONTACT_ID = B.CONTACT_ID AND X.EFFDT <= %CurrentDateIn) AND B.EFF_STATUS = 'A' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | CONTACT_ID | Character(15) | VARCHAR2(15) NOT NULL | Contact Identifier for Treasury Contacts |
3 | CUSTOMER_SETID | Character(5) | VARCHAR2(5) NOT NULL | Customer SetID |
4 | 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. |