IN_DEL_CADR_VW

(SQL View)
Index Back

Customer Shipping Addresses


SELECT d.business_unit , d.demand_source , d.source_bus_unit , d.order_no , d.order_int_Line_no , d.sched_line_nbr , d.inv_item_id , d.demand_line_no , a.setid , a.cust_id , a.address_seq_num , %subrec(address_sbr,a) , c.name1 , c.name2 FROM PS_IN_DEMAND d , ps_cust_addr_seq s , ps_cust_address a , ps_customer c WHERE d.ship_to_cust_id = a.cust_id AND d.address_seq_num = a.address_seq_num AND d.ship_to_cust_id > ' ' AND s.setid = a.setid AND s.cust_id = a.cust_id AND s.address_seq_num = a.address_seq_num AND s.ship_to_addr = 'Y' AND %EffdtCheck(cust_address, a, (CASE WHEN d.ship_dttm IS NULL Then %DatePart(d.sched_dttm) else %DatePart(d.ship_dttm) end)) AND a.eff_status='A' AND %Join(COMMON_KEYS, customer c, cust_addr_seq s)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 DEMAND_SOURCE Character(2) VARCHAR2(2) NOT NULL Demand Source
IN=Material Request
OM=Sales Order
PL=Planning Requisition
PO=Purchase Order
PR=Purchasing Requisition
RT=Material Return
SF=Production Request
WM=Work Order
3 SOURCE_BUS_UNIT Character(5) VARCHAR2(5) NOT NULL Source Bus 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 ORDER_INT_LINE_NO Number(5,0) INTEGER NOT NULL Order Line
6 SCHED_LINE_NBR Number(6,0) INTEGER NOT NULL Schedule Line Number
7 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
8 DEMAND_LINE_NO Number(4,0) SMALLINT NOT NULL Demand Line No
9 SETID_CUST_SHIPTO Character(5) VARCHAR2(5) NOT NULL Shipto Cust SetID
10 SHIP_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Ship To Customer
11 ADDRESS_SEQ_NUM Number(5,0) INTEGER NOT NULL Address Sequence Number
12 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country

Prompt Table: COUNTRY_TBL

13 ADDRESS1 Character(55) VARCHAR2(55) NOT NULL Address 1
14 ADDRESS2 Character(55) VARCHAR2(55) NOT NULL Address 2
15 ADDRESS3 Character(55) VARCHAR2(55) NOT NULL Address 3
16 ADDRESS4 Character(55) VARCHAR2(55) NOT NULL Address 4
17 CITY Character(30) VARCHAR2(30) NOT NULL City
18 NUM1 Character(6) VARCHAR2(6) NOT NULL Number 1
19 NUM2 Character(6) VARCHAR2(6) NOT NULL Number 2
20 HOUSE_TYPE Character(2) VARCHAR2(2) NOT NULL House Type
AB=House Boat
WW=Trailer
21 ADDR_FIELD1 Character(2) VARCHAR2(2) NOT NULL Address Field 1
22 ADDR_FIELD2 Character(4) VARCHAR2(4) NOT NULL Address Field 2
23 ADDR_FIELD3 Character(4) VARCHAR2(4) NOT NULL Address Field 3
24 COUNTY Character(30) VARCHAR2(30) NOT NULL County
25 STATE Character(6) VARCHAR2(6) NOT NULL State

Prompt Table: %EDIT_STATE

26 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
27 GEO_CODE Character(11) VARCHAR2(11) NOT NULL Geo Code
28 IN_CITY_LIMIT Character(1) VARCHAR2(1) NOT NULL In City Limit

Y/N Table Edit

29 SHIP_CUST_NAME1 Character(40) VARCHAR2(40) NOT NULL Ship To Name
30 SHIP_CUST_NAME2 Character(40) VARCHAR2(40) NOT NULL Ship To Name 2