OM_OPR_CUST_VW(SQL View) |
Index Back |
---|---|
User->Customer ViewList customers that are tied to user id. |
SELECT X.OPRID , Y.SETID , Y.CONTACT_ID , Y.CONTACT_FLAG , Z.CUSTOMER_SETID , Z.CUST_ID , Z.CNTCT_SEQ_NUM , Z.ADDRESS_SEQ_NUM , Z.BILL_TO_FLG , Z.SOLD_TO_FLG , Z.SHIP_TO_FLG , Z.BROKER_FLG , Z.CRSPD_CUST , Z.ADDRESS_MAINT , Z.ORDER_SAVE , Z.ALL_ORDERS_FLG FROM PSOPRALIAS X , PS_CONTACT Y , PS_CONTACT_CUST Z WHERE X.OPRALIASTYPE = 'CNT' AND X.SETID = Y.SETID AND X.CONTACT_ID = Y.CONTACT_ID AND %EffdtCheck(contact,Y,%CurrentDateIn) AND Y.EFF_STATUS='A' AND Y.SETID = Z.SETID AND Y.CONTACT_ID = Z.CONTACT_ID AND Y.EFFDT = Z.EFFDT |
# | 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 | CONTACT_ID | Character(15) | VARCHAR2(15) NOT NULL | Contact Identifier for Treasury Contacts |
4 | CONTACT_FLAG | Character(1) | VARCHAR2(1) NOT NULL |
An attribute that describes the specific purpose of a given bank/counterparty contact person.
E=External Contact I=Internal Contact |
5 | CUSTOMER_SETID | Character(5) | VARCHAR2(5) NOT NULL | Customer SetID |
6 | 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.
Prompt Table: CUST_ALL_CNT_VW |
7 | CNTCT_SEQ_NUM | Number(5,0) | INTEGER NOT NULL | Contact Sequence Number |
8 | ADDRESS_SEQ_NUM | Number(5,0) | INTEGER NOT NULL |
Address Sequence Number
Prompt Table: CUST_ADDR_CNE_V |
9 | BILL_TO_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Bill To Customer
N=No Y=Yes Y/N Table Edit Default Value: N |
10 | SOLD_TO_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Sold To Customer
Y/N Table Edit Default Value: N |
11 | SHIP_TO_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Ship To Customer
N=No Y=Yes Y/N Table Edit Default Value: N |
12 | BROKER_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Broker Customer
Y/N Table Edit Default Value: N |
13 | CRSPD_CUST | Character(1) | VARCHAR2(1) NOT NULL |
Correspondence Customer
Y/N Table Edit Default Value: N |
14 | ADDRESS_MAINT | Character(1) | VARCHAR2(1) NOT NULL |
Maintain Addresses
Y/N Table Edit Default Value: N |
15 | ORDER_SAVE | Character(1) | VARCHAR2(1) NOT NULL |
Order Save
Y/N Table Edit Default Value: N |
16 | ALL_ORDERS_FLG | Character(1) | VARCHAR2(1) NOT NULL |
All Orders Flag
N=No Y=Yes Default Value: N |