OM_OPR_BUCST_VW(SQL View) |
Index Back |
---|---|
User->Customer View w/BUList customers that are tied to user id. |
SELECT X.OPRID , Y.SETID , Y.CONTACT_ID , Y.CONTACT_FLAG , Z.CUSTOMER_SETID , %Substring(S.SETCNTRLVALUE , 1, 5) , 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 , PS_SET_CNTRL_REC S 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 AND S.RECNAME = 'CUSTOMER' AND S.SETID = Z.CUSTOMER_SETID |
# | 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 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
7 | 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 |
8 | CNTCT_SEQ_NUM | Number(5,0) | INTEGER NOT NULL | Contact Sequence Number |
9 | ADDRESS_SEQ_NUM | Number(5,0) | INTEGER NOT NULL |
Address Sequence Number
Prompt Table: CUST_ADDR_CNE_V |
10 | BILL_TO_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Bill To Customer
N=No Y=Yes Y/N Table Edit Default Value: N |
11 | SOLD_TO_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Sold To Customer
Y/N Table Edit Default Value: N |
12 | SHIP_TO_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Ship To Customer
N=No Y=Yes Y/N Table Edit Default Value: N |
13 | BROKER_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Broker Customer
Y/N Table Edit Default Value: N |
14 | CRSPD_CUST | Character(1) | VARCHAR2(1) NOT NULL |
Correspondence Customer
Y/N Table Edit Default Value: N |
15 | ADDRESS_MAINT | Character(1) | VARCHAR2(1) NOT NULL |
Maintain Addresses
Y/N Table Edit Default Value: N |
16 | ORDER_SAVE | Character(1) | VARCHAR2(1) NOT NULL |
Order Save
Y/N Table Edit Default Value: N |
17 | ALL_ORDERS_FLG | Character(1) | VARCHAR2(1) NOT NULL |
All Orders Flag
N=No Y=Yes Default Value: N |