ORD_SCN_HDR_VW

(SQL View)
Index Back

Sales Contract Hdr by Sold To

Date Init. Issue # Description 01/03/01 JJM R-SGATIG-ZV65C Changed SQL to use new tables

SELECT DISTINCT C.SETID , C.SOLD_TO_CUST_ID , C.CNTRCT_ID , A.START_DT , A.GRACE_END_DT , A.DESCR , C.CUSTOMER_GROUP , D.PRODUCT_ID , A.DEFAULT_CNTRCT , A.CONTRACT_TYPE_ID FROM PS_SCON_HDR A , PS_SCON_CUST_CGRP C , PS_SCON_PROD_PGRP D WHERE A.SETID = C.SETID AND A.CNTRCT_ID = C.CNTRCT_ID AND C.SETID = D.SETID AND C.CNTRCT_ID = D.CNTRCT_ID AND A.SCON_STATUS = 'A'

  • Related Language Record: ORD_SCNHDRV_LNG
  • # 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: SP_SETID_NONVW

    2 SOLD_TO_CUST_ID Character(15) VARCHAR2(15) NOT NULL Sold To Customer

    Prompt Table: CUST_SLD_VW

    3 CNTRCT_ID Character(25) VARCHAR2(25) NOT NULL Buying Agreement ID
    4 EFFDT Date(10) DATE Effective Date
    5 GRACE_END_DT Date(10) DATE Grace End Date
    6 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    7 CUSTOMER_GROUP Character(10) VARCHAR2(10) NOT NULL Customer Group

    Prompt Table: CUSTGP_SCON_VW

    8 PRODUCT_ID Character(18) VARCHAR2(18) NOT NULL Product ID
    9 DEFAULT_CNTRCT Character(1) VARCHAR2(1) NOT NULL Default Contract

    Y/N Table Edit

    Default Value: N

    10 CONTRACT_TYPE_ID Character(6) VARCHAR2(6) NOT NULL Buying Agreement Type

    Prompt Table: CONTRACT_TYPE