CS_VNDC_PO_VW

(SQL View)
Index Back

Supplier Contact by PO

Date Initials Issue Description ========================================== 5/2007 CEL F-AHAYT-748L7 New view to support pulling over supplier contacts by PO

SELECT DISTINCT B.BUSINESS_UNIT , B.PO_ID , 'N' , A.CNTCT_SEQ_NUM , A.SETID , A.VENDOR_ID , A.ADDRESS_SEQ_NUM , %subrec(ADDRESS_SBR, C) , A.CONTACT_NAME , A.CONTACT_TITLE , A.EMAILID , A.OPRID_EXT , A.EXT_VIEW_ACCESS , A.EXT_PRIMARY_OWNER , A.CS_SIGNER_FLG , A.CS_SIGN_NBR , A.CS_SIGN_VISIBLE FROM PS_VENDOR_CNTCT A , PS_PO_HDR B , PS_VENDOR_ADDR C WHERE A.SETID = B.VENDOR_SETID AND A.VENDOR_ID = B.VENDOR_ID AND A.CONTACT_TYPE = 'C' AND A.EFFDT = ( SELECT MAX(SA.EFFDT) FROM PS_VENDOR_CNTCT SA WHERE SA.SETID = A.SETID AND SA.VENDOR_ID = A.VENDOR_ID AND SA.CNTCT_SEQ_NUM = A.CNTCT_SEQ_NUM AND SA.EFFDT <= %CurrentDateIn) AND A.EFF_STATUS = 'A' AND A.SETID = C.SETID AND A.VENDOR_ID = C.VENDOR_ID AND A.ADDRESS_SEQ_NUM = C.ADDRESS_SEQ_NUM AND C.EFFDT = ( SELECT MAX(SC.EFFDT) FROM PS_VENDOR_ADDR SC WHERE SC.SETID = C.SETID AND SC.VENDOR_ID = C.VENDOR_ID AND SC.ADDRESS_SEQ_NUM = C.ADDRESS_SEQ_NUM AND SC.EFFDT <= %CurrentDateIn) AND C.EFF_STATUS = 'A'

  • Parent record: VNDR_CNTCT_SCR
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
    2 PO_ID Character(10) VARCHAR2(10) NOT NULL Purchase Order
    3 CS_EXT_CNTCT_FLG Character(1) VARCHAR2(1) NOT NULL External Contact

    Y/N Table Edit

    Default Value: N

    4 CNTCT_SEQ_NUM Number(5,0) INTEGER NOT NULL Contact Sequence Number
    5 VENDOR_SETID Character(5) VARCHAR2(5) NOT NULL Vendor SetID
    6 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
    7 ADDRESS_SEQ_NUM Number(5,0) INTEGER NOT NULL Address Sequence Number
    8 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country

    Prompt Table: COUNTRY_TBL

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

    Prompt Table: %EDIT_STATE

    22 POSTAL Character(12) VARCHAR2(12) NOT NULL Postal
    23 GEO_CODE Character(11) VARCHAR2(11) NOT NULL Geo Code
    24 IN_CITY_LIMIT Character(1) VARCHAR2(1) NOT NULL In City Limit

    Y/N Table Edit

    25 CONTACT_NAME Character(50) VARCHAR2(50) NOT NULL The individual contact name associated with a given bank/counterparty.
    26 CONTACT_TITLE Character(35) VARCHAR2(35) NOT NULL The professional title for a given bank/counterparty contact person.
    27 EMAILID Character(70) VARCHAR2(70) NOT NULL A user's E-mail address
    28 OPRID_EXT Character(30) VARCHAR2(30) NOT NULL External user

    Prompt Table: VENDOR_OPR_VW

    29 EXT_VIEW_ACCESS Character(1) VARCHAR2(1) NOT NULL Document access bu external users

    Y/N Table Edit

    Default Value: Y

    30 EXT_PRIMARY_OWNER Character(1) VARCHAR2(1) NOT NULL Primary owner for external collaboration

    Y/N Table Edit

    Default Value: N

    31 CS_SIGNER_FLG Character(1) VARCHAR2(1) NOT NULL Contract Signer

    Y/N Table Edit

    Default Value: N

    32 CS_SIGN_NBR Number(3,0) SMALLINT NOT NULL Order of signatures
    33 CS_SIGN_VISIBLE Character(1) VARCHAR2(1) NOT NULL Visibile/invisible digital signatures

    Y/N Table Edit

    Default Value: N