CS_ORIG_DOC_VW(SQL View) |
Index Back |
---|
SELECT CS_DOC_ID , A.SCM_ATTACH_ID , A.ATT_VERSION , A.CS_IMPORT_FLG FROM PS_CS_DOC_FILESHST A WHERE A.CS_AMENDMENT = 0 AND A.CS_DOC_TYPE = '001' AND A.CS_VERSION = ( SELECT MAX(B.CS_VERSION) FROM PS_CS_DOC_HDR_HIST B WHERE B.CS_DOC_ID = A.CS_DOC_ID AND B.CS_DOC_ACTION = '09' AND B.CS_AMENDMENT = 0) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | Character(25) | VARCHAR2(25) NOT NULL | Document ID | |
2 | 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. |
3 | 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. |
4 | CS_IMPORT_FLG | Character(1) | VARCHAR2(1) NOT NULL | Imported Document |