CS_PURCH_CMTVW

(SQL View)
Index Back

Purchasing Comment/Attachments

Date Initials Issue Description ========================================== 5 /2007 CEL F-AHAYT-748L7 view to pull over the Purch source comments and attachments

SELECT P.CS_DOC_ID , C.SCM_ATTACH_ID , C.ATT_VERSION , A.ATTACHUSERFILE , C.COMMENT_TYPE , P.BUSINESS_UNIT , D.CS_SOURCE_TRANS , C.SOURCE_LINE_NBR , C.PUBLIC_FLG , C.RECV_VIEW_FLG , C.VCHR_VIEW_FLG , C.PUBLIC_FLG_ATTACH , A.ATTACHUSERFILE FROM PS_PO_COMMENTS C , PS_CS_DOC_HDR D , PS_CS_DOC_PUR_KEYS P , PS_PV_ATTACHMENTS A WHERE P.CS_DOC_ID = D.CS_DOC_ID AND P.BUSINESS_UNIT = C.BUSINESS_UNIT AND P.PO_ID = C.PO_ID AND A.SCM_ATTACH_ID = C.SCM_ATTACH_ID AND A.ATT_VERSION = C.ATT_VERSION AND C.SCM_ATTACH_ID <> ' ' AND STATUS = 'A'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 CS_DOC_ID 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 ATTACHUSERFILE Character(64) VARCHAR2(64) NOT NULL Attached File
5 COMMENT_TYPE Character(3) VARCHAR2(3) NOT NULL Comment Type
BF=Bid Factor
CBF=Analysis Collab Bid Factor
HDR=Header
LIN=Line
SHP=Ship To Location
6 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
7 CS_SOURCE_TRANS Character(2) VARCHAR2(2) NOT NULL Source Transaction 03/22/07 cel F-AHAYT-748L7: Added Purchase Order (03) as a new source transaction 01/12/11 tbg SCMT-92-MDEM-04: Added RFx (04) as new source transaction for strat sourcing (doc authoring)
01=Ad Hoc
02=Purchasing Contracts
03=Purchase Orders
04=Sourcing Events
97=All Sources
98=Multiple Sources
99=Not Transactional
8 SOURCE_LINE_NBR Number(5,0) INTEGER NOT NULL Source Line Nbr
9 PUBLIC_FLG Character(1) VARCHAR2(1) NOT NULL Send to Vendor

Y/N Table Edit

10 RECV_VIEW_FLG Character(1) VARCHAR2(1) NOT NULL Shown at Receipt

Y/N Table Edit

Default Value: N

11 VCHR_VIEW_FLG Character(1) VARCHAR2(1) NOT NULL Shown at Voucher

Y/N Table Edit

Default Value: N

12 PUBLIC_FLG_ATTACH Character(1) VARCHAR2(1) NOT NULL Email to Supplier

Y/N Table Edit

Default Value: N

13 FILENAME Character(80) VARCHAR2(80) NOT NULL File Name