VENDOR_VW2_LANG

(SQL View)
Index Back

Supplier Search Record

Used as a search record for several supplier related panel groups

SELECT VL.setid , VL.vendor_id , AL.ADDRESS_SEQ_NUM , AL.effdt , VL.language_cd , VL.vendor_name_short , VL.name1 , %Upper(VL.name1) , VL.NAME2 , AL.ADDRESS1 , %Upper(AL.ADDRESS1) , AL.CITY , %Upper(AL.CITY) , AL.NAME1_WTHD , %Upper(AL.NAME1_WTHD) FROM ps_vendor_lang VL , PS_VENDOR_ADDR_LNG AL WHERE AL.SETID = VL.SETID AND AL.VENDOR_ID = VL.VENDOR_ID AND AL.LANGUAGE_CD = VL.LANGUAGE_CD AND AL.EFFDT = ( SELECT MAX(C.EFFDT) FROM PS_VENDOR_ADDR C WHERE C.SETID = AL.SETID AND C.VENDOR_ID = AL.VENDOR_ID AND C.ADDRESS_SEQ_NUM = AL.ADDRESS_SEQ_NUM AND C.EFFDT <= %CurrentDateIn) UNION SELECT V.setid , V.vendor_id , A.ADDRESS_SEQ_NUM , A.effdt , VL.language_cd , VL.vendor_name_short , VL.name1 , %Upper(VL.name1) , VL.NAME2 , A.ADDRESS1 , %Upper(A.ADDRESS1) , A.CITY , %Upper(A.CITY) , A.NAME1_WTHD , %Upper(A.NAME1_WTHD) FROM PS_VENDOR V , ps_vendor_lang VL , ps_VENDOR_ADDR A WHERE VL.SETID = V.SETID AND VL.VENDOR_ID = V.VENDOR_ID AND A.SETID = VL.SETID AND A.VENDOR_ID = VL.VENDOR_ID AND A.EFFDT = ( SELECT MAX(C.EFFDT) FROM PS_VENDOR_ADDR C WHERE C.SETID = A.SETID AND C.VENDOR_ID = A.VENDOR_ID AND C.ADDRESS_SEQ_NUM = A.ADDRESS_SEQ_NUM AND C.EFFDT <= %CurrentDateIn) AND NOT EXISTS ( SELECT 1 FROM PS_VENDOR_ADDR_LNG WHERE SETID = A.SETID AND VENDOR_ID = A.VENDOR_ID AND ADDRESS_SEQ_NUM = A.ADDRESS_SEQ_NUM AND EFFDT = A.EFFDT AND LANGUAGE_CD = VL.LANGUAGE_CD) UNION SELECT V.setid , V.vendor_id , AL.ADDRESS_SEQ_NUM , AL.effdt , AL.language_cd , V.vendor_name_short , V.name1 , %Upper(V.name1) , V.NAME2 , AL.ADDRESS1 , %Upper(AL.ADDRESS1) , AL.CITY , %Upper(AL.CITY) , AL.NAME1_WTHD , %Upper(AL.NAME1_WTHD) FROM PS_VENDOR V , PS_VENDOR_ADDR_LNG AL WHERE AL.SETID = V.SETID AND AL.VENDOR_ID = V.VENDOR_ID AND AL.EFFDT = ( SELECT MAX(C.EFFDT) FROM PS_VENDOR_ADDR C WHERE C.SETID = AL.SETID AND C.VENDOR_ID = AL.VENDOR_ID AND C.ADDRESS_SEQ_NUM = AL.ADDRESS_SEQ_NUM AND C.EFFDT <= %CurrentDateIn) AND NOT EXISTS ( SELECT 1 FROM PS_VENDOR_LANG WHERE SETID = V.SETID AND VENDOR_ID = V.VENDOR_ID AND LANGUAGE_CD = AL.LANGUAGE_CD)

  • Related Language Record for VENDOR_SRCH_VW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 SETID Character(5) VARCHAR2(5) NOT NULL SetID

    Default Value: OPR_DEF_TBL_FS.SETID

    Prompt Table: SETID_TBL

    2 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier

    Default Value: NEXT

    3 ADDRESS_SEQ_NUM Number(5,0) INTEGER NOT NULL Address Sequence Number
    4 EFFDT Date(10) DATE Effective Date

    Default Value: %date

    5 LANGUAGE_CD Character(3) VARCHAR2(3) NOT NULL Language Code
    6 VENDOR_NAME_SHORT Character(14) VARCHAR2(14) NOT NULL Short Vendor Name
    7 NAME1 Character(40) VARCHAR2(40) NOT NULL Name 1
    8 NAME1_UPPER Character(40) VARCHAR2(40) NOT NULL Uppercase Name
    9 NAME2 Character(40) VARCHAR2(40) NOT NULL Name 2
    10 ADDRESS1 Character(55) VARCHAR2(55) NOT NULL Address 1
    11 ADDRESS1_UPPER Character(55) VARCHAR2(55) NOT NULL Uppercase Address
    12 CITY Character(30) VARCHAR2(30) NOT NULL City
    13 CITY_UPPER Character(30) VARCHAR2(30) NOT NULL Uppercase City
    14 NAME1_WTHD Character(40) VARCHAR2(40) NOT NULL Name 1
    15 NAME1_WTHD_UPPER Character(40) VARCHAR2(40) NOT NULL Uppercase Withhold Name