ORD_SOLDTO_LVW(SQL View) |
Index Back |
---|---|
Orders by soldto custidRelated language record for ORD_SOLDTO_VW |
SELECT c.setid , o.sold_to_cust_id , o.business_unit , o.order_no , c.language_cd , c.name1 FROM ps_customer_lang c , PS_ORD_HEADER o WHERE c.setid = ( SELECT setid FROM ps_set_cntrl_rec WHERE setcntrlvalue = o.business_unit AND recname = 'CUSTOMER_LANG') AND c.cust_id = o.sold_to_cust_id AND (o.order_type_cd = 'SO' OR (o.order_type_cd = 'QUO' AND o.quote_expire_dt >= %CurrentDateIn)) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | SOLD_TO_CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Sold To Customer |
3 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
4 | ORDER_NO | Character(10) | VARCHAR2(10) NOT NULL | Identifies a customer order number that appears as a reference on a receivables pending item. Date Initials Issue Description 022701 mv SP2 (F-CJORGENS-3) CSR Desktop |
5 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
6 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |