CS_DOC_F_HST_VW(SQL View) |
Index Back |
---|---|
Contract Files History1/2008 CEL new view to be used within Purge History Files method in doc controller. |
SELECT DISTINCT CS_DOC_ID ,CS_DOC_TYPE , CS_VERSION , CS_AMENDMENT , SCM_ATTACH_ID , ATT_VERSION , CS_IMPORT_FLG FROM PS_CS_DOC_FILESHST A WHERE NOT EXISTS ( SELECT 'X' FROM PS_CS_DOC_HDR_HIST B WHERE A.CS_DOC_ID = B.CS_DOC_ID AND A.CS_VERSION = B.CS_VERSION AND A.CS_AMENDMENT = B.CS_AMENDMENT AND B.CS_DOC_ACTION = '09') |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | Character(25) | VARCHAR2(25) NOT NULL | Document ID | |
2 | 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 | Number(6,2) | DECIMAL(5,2) NOT NULL | Version | |
4 | Number(3,0) | SMALLINT NOT NULL | Amendment | |
5 | 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. |
6 | 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. |
7 | CS_IMPORT_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Imported Document
Y/N Table Edit Default Value: N |