DCM_SUPPLIER

(SQL View)
Index Back

View of Suppliers

View of Suppliers for 3rd party systems

SELECT c.business_unit %Concat '.' %Concat a.vendor_id %Concat '.' %Concat b.vndr_loc , c.business_unit , a.setid , a.vendor_id , b.vndr_loc , a.name1 , a.name2 , a.vendor_name_short , f.xlatlongname , b.prim_addr_seq_num , d.emailid , %subrec(ADDRESS_SBR, d) , b.currency_cd , b.pymnt_terms_cd , g.vat_rgstrn_id , b.match_opt , b.recv_only_mtch_flg , a.comments_2000 , a.last_activity_dt FROM ps_vendor a , ps_vendor_loc b , ps_bus_unit_tbl_ap c , ps_bus_unit_opt_ap cc , ps_set_cntrl_rec ccc , PS_VENDOR_ADDR d , ps_set_cntrl_rec e , psxlatitem f , ps_dcm_vndr_vat_vw g WHERE c.business_unit = e.setcntrlvalue AND c.business_unit = ccc.setcntrlvalue AND ccc.rec_group_id = 'AP_01' AND ccc.recname = 'BUS_UNIT_OPT_AP' AND ccc.setid = cc.setid AND cc.effdt = ( SELECT MAX(zz.effdt) FROM ps_bus_unit_opt_ap zz WHERE zz.setid = cc.setid AND zz.effdt <= %CurrentDateIn) AND cc.eff_status = 'A' AND cc.enable_dcm_flg = 'Y' AND e.rec_group_id = 'FS_38' AND e.recname = 'VENDOR' AND e.setid = a.setid AND a.setid = g.setid AND a.vendor_id = g.vendor_id AND a.setid = b.setid AND a.vendor_id = b.vendor_id AND b.eff_status = 'A' AND b.effdt = ( SELECT MAX(bb.effdt) FROM ps_vendor_loc bb WHERE bb.setid = b.setid AND bb.vendor_id = b.vendor_id AND bb.vndr_loc = b.vndr_loc AND bb.effdt <= %CurrentDateIn) AND b.setid = d.setid AND b.vendor_id = d.vendor_id AND b.prim_addr_seq_num = d.address_seq_num AND d.eff_status = 'A' AND d.effdt = ( SELECT MAX(dd.effdt) FROM PS_VENDOR_ADDR dd WHERE dd.setid = d.setid AND dd.vendor_id = d.vendor_id AND dd.address_seq_num = d.address_seq_num AND dd.effdt <= %CurrentDateIn) AND f.fieldname = 'VENDOR_CLASS' AND f.fieldvalue = a.vendor_class AND f.eff_status = 'A' AND f.effdt = ( SELECT MAX(ff.effdt) FROM psxlatitem ff WHERE ff.fieldname = f.fieldname AND ff.fieldvalue = f.fieldvalue AND ff.effdt <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 DCM_SUPPLIER_KEY Character(27) VARCHAR2(27) NOT NULL Business Unit Concatenated with Supplier ID and Supplier Location to make a unique combination for third party systems.
2 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
3 VENDOR_SETID Character(5) VARCHAR2(5) NOT NULL Vendor SetID
4 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
5 VNDR_LOC Character(10) VARCHAR2(10) NOT NULL Vendor Location
6 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
7 NAME2 Character(40) VARCHAR2(40) NOT NULL Name 2
8 VENDOR_NAME_SHORT Character(14) VARCHAR2(14) NOT NULL Short Vendor Name
9 DCM_SUPPLIER_TYPE Character(30) VARCHAR2(30) NOT NULL Supplier Classification Description
10 ADDRESS_SEQ_NUM Number(5,0) INTEGER NOT NULL Address Sequence Number
11 EMAILID Character(70) VARCHAR2(70) NOT NULL A user's E-mail address
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 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
30 PYMNT_TERMS_CD Character(5) VARCHAR2(5) NOT NULL Specifies how the payment due date and discount due date are calculated. A payment terms code is associated with various business units bill-to customers vendors as well as sales orders purchase orders and vouchers.
31 VAT_RGSTRN_ID Character(20) VARCHAR2(20) NOT NULL VAT Registration ID
32 MATCH_OPT Character(1) VARCHAR2(1) NOT NULL Requires Matching
33 RECV_ONLY_MTCH_FLG Character(1) VARCHAR2(1) NOT NULL Receipt Only Match
34 DESCR2000 Long Character(2000) VARCHAR2(2000) Description whose maximum length is 2000 characters.
35 LAST_ACTIVITY_DT Date(10) DATE Last Activity Date