CS_DOC_FILES_VW

(SQL View)
Index Back

Contract Files - id & names

Show file attachment ID, user file name and system file name

SELECT a.cs_doc_id , a.cs_doc_type , a.scm_attach_id , a.att_version , a.cs_import_flg , a.cs_file_format , a.cs_relxd_chkin , b.attachuserfile , b.attachsysfilename FROM PS_CS_DOC_FILES a , ps_pv_attachments b WHERE a.scm_attach_id = b.scm_attach_id AND a.att_version = b.att_version

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 CS_DOC_ID Character(25) VARCHAR2(25) NOT NULL Document ID
2 CS_DOC_TYPE Character(3) VARCHAR2(3) NOT NULL stores the file type -- main file, amendment, preview, throwaway Date Initials Issue Description ========================================== 06/2007 CEL F-AHAYT-25EQ8 added the external main and amendment types 7/2008 cel Added new executive summary file type. 9/30/2008 RMK Changed values 005 and 006 to 095 and 096, and added 010 for executive summary. This change is due to the search on file type using range (001-010 for non-attachment search, and 001-096 for attachment search)
001=Main Document
002=Amendment
003=Preview Document
004=Compare File
005=Document Attachment
006=Transaction Attachment
007=Config Selector
008=Main Signature Document
009=Amendment Signature File
010=Executive Summary
011=Exec-Sign
095=Document Attachment
096=Transaction Attachment
101=Main Document
102=Amendment Document
998=Main Document - ext collab
999=Amendment External Collab
3 SCM_ATTACH_ID Character(64) VARCHAR2(64) NOT NULL The unique ID of each file whose attachment was handled by the attachment utility. Unique across all attachments, all applications.
4 ATT_VERSION Number(3,0) SMALLINT NOT NULL The version of the attached file. Currently always 1, this field will find more use once the attachment utitlity starts supporting versioning of files.
5 CS_IMPORT_FLG Character(1) VARCHAR2(1) NOT NULL Imported Document

Y/N Table Edit

Default Value: N

6 CS_FILE_FORMAT Character(1) VARCHAR2(1) NOT NULL Created in 9.2 to indicate xml version - word xml vs. open
0=Imported or Signature Document
1=Word 2003 XML
2=Word Open XML
7 CS_RELXD_CHKIN Character(1) VARCHAR2(1) NOT NULL Relaxed CheckIn Used
8 ATTACHUSERFILE Character(64) VARCHAR2(64) NOT NULL Attached File
9 ATTACHSYSFILENAME Character(128) VARCHAR2(128) NOT NULL Unique Sys Filename