OMEC_SCHSHIP_VW(SQL View) |
Index Back |
---|---|
OM Ord Address Work DocOM Ord Address Work Doc Date Initials Issue Description 031501 dms SP2 (DI-EDWONG-14) CRM Integration |
SELECT sch.business_unit , sch.order_no , sch.order_int_line_no , sch.sched_line_nbr , sch.ship_to_cust_id , sch.address_seq_num , d.name1 , e.name1 , 'H' , hdr.source_cd , b.effdt , b.eff_status , sch.ship_from_bu , sch.sched_ship_dttm ,%subrec(ADDRESS_SBR,B) ,%subrec(BUS_PHONE_SBR,B) FROM ps_ord_schedule sch , ps_ord_header hdr , ps_cust_addr_seq a , ps_cust_address b , ps_set_cntrl_rec s , ps_customer d , ps_contact e , ps_contact_cust f WHERE s.setid = a.setid AND s.recname = 'CUST_ADDRESS' AND s.setcntrlvalue = sch.business_unit AND sch.ship_to_cust_id = a.cust_id AND sch.address_seq_num = a.address_seq_num AND hdr.business_unit = sch.business_unit AND hdr.order_no = sch.order_no AND a.setid = b.setid AND a.cust_id= b.cust_id AND a.address_seq_num = b.address_seq_num AND a.setid = d.setid AND a.cust_id= d.cust_id AND f.cust_id = d.cust_id AND f.customer_setid = d.setid AND f.cntct_seq_num = sch.cntct_seq_ship AND f.setid = e.setid AND f.contact_id = e.contact_id AND %EffdtCheck(contact e1, e, hdr.order_date) AND NOT EXISTS ( SELECT 'x' FROM PS_ORD_ADDR x WHERE x.business_unit = sch.business_unit AND x.order_no = sch.order_no AND x.order_int_line_no = sch.order_int_line_no AND x.sched_line_nbr = sch.sched_line_nbr AND x.cust_addr_type = 'H') |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | 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 |
3 | ORDER_INT_LINE_NO | Number(5,0) | INTEGER NOT NULL | Order Line |
4 | SCHED_LINE_NBR | Number(6,0) | INTEGER NOT NULL | Schedule Line Number |
5 | SHIP_TO_CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Ship To Customer |
6 | ADDRESS_SEQ_NUM | Number(5,0) | INTEGER NOT NULL | Address Sequence Number |
7 | CUST_NAME | Character(40) | VARCHAR2(40) NOT NULL | Name |
8 | CNTCT_NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Contact Name1 |
9 | CUST_ADDR_TYPE | Character(1) | VARCHAR2(1) NOT NULL |
Customer Address Type
H=Ship To Customer S=Sold To Customer |
10 | SOURCE_CD | Character(6) | VARCHAR2(6) NOT NULL | Source Code |
11 | EFFDT | Date(10) | DATE | Effective Date |
12 | EFF_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Effective Status
A=Active I=Inactive |
13 | SHIP_FROM_BU | Character(5) | VARCHAR2(5) NOT NULL | Ship from INV BU |
14 | SCHED_SHIP_DTTM | DateTime(26) | TIMESTAMP | Schedule Ship Datetime |
15 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL |
Country
Prompt Table: COUNTRY_TBL |
16 | ADDRESS1 | Character(55) | VARCHAR2(55) NOT NULL | Address 1 |
17 | ADDRESS2 | Character(55) | VARCHAR2(55) NOT NULL | Address 2 |
18 | ADDRESS3 | Character(55) | VARCHAR2(55) NOT NULL | Address 3 |
19 | ADDRESS4 | Character(55) | VARCHAR2(55) NOT NULL | Address 4 |
20 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
21 | NUM1 | Character(6) | VARCHAR2(6) NOT NULL | Number 1 |
22 | NUM2 | Character(6) | VARCHAR2(6) NOT NULL | Number 2 |
23 | HOUSE_TYPE | Character(2) | VARCHAR2(2) NOT NULL |
House Type
AB=House Boat WW=Trailer |
24 | ADDR_FIELD1 | Character(2) | VARCHAR2(2) NOT NULL | Address Field 1 |
25 | ADDR_FIELD2 | Character(4) | VARCHAR2(4) NOT NULL | Address Field 2 |
26 | ADDR_FIELD3 | Character(4) | VARCHAR2(4) NOT NULL | Address Field 3 |
27 | COUNTY | Character(30) | VARCHAR2(30) NOT NULL | County |
28 | STATE | Character(6) | VARCHAR2(6) NOT NULL |
State
Prompt Table: %EDIT_STATE |
29 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
30 | GEO_CODE | Character(11) | VARCHAR2(11) NOT NULL | Geo Code |
31 | IN_CITY_LIMIT | Character(1) | VARCHAR2(1) NOT NULL |
In City Limit
Y/N Table Edit |
32 | COUNTRY_CODE | Character(3) | VARCHAR2(3) NOT NULL | Int'l Prefix |
33 | PHONE | Character(24) | VARCHAR2(24) NOT NULL | Telephone |
34 | EXTENSION | Character(6) | VARCHAR2(6) NOT NULL | Phone Extension |
35 | FAX | Character(24) | VARCHAR2(24) NOT NULL | Fax Number |