AR_SRCH_ATT_VW(SQL View) |
Index Back |
---|---|
Item Attachments for PTSFItem Attachment view used for search |
SELECT A.BUSINESS_UNIT , A.CUST_ID , A.ITEM , A.ITEM_LINE , A.SCM_ATTACH_ID , A.ATT_VERSION , B.SERVER_ID , B.SERVER_PATH , B.ATTACHSYSFILENAME , CASE WHEN SVR.PV_URL_ID = ' ' THEN %Substring(SVR.ATT_SRV_NAME,1 ,30) ELSE SVR.PV_URL_ID END FROM PS_PENDING_ITM_ATT A , PS_PV_ATTACHMENTS B , PS_PV_ATT_SERVERS SVR WHERE A.SCM_ATTACH_ID = B.SCM_ATTACH_ID AND A.ATT_VERSION = B.ATT_VERSION AND SVR.SERVER_ID = B.SERVER_ID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations. |
3 | ITEM | Character(30) | VARCHAR2(30) NOT NULL | Uniquely identifies an invoice credit memo or debit memo. The item ID is also called the invoice number. |
4 | ITEM_LINE | Number(6,0) | INTEGER NOT NULL | Item Line |
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 | SERVER_ID | Number(4,0) | SMALLINT NOT NULL |
File Server ID
Prompt Table: PV_ATT_SERVERS |
8 | SERVER_PATH | Character(254) | VARCHAR2(254) NOT NULL | For attached files already uploaded to an ftp server, the path under the ftp root directory in which the file is to be found. |
9 | ATTACHSYSFILENAME | Character(128) | VARCHAR2(128) NOT NULL | Unique Sys Filename |
10 | URL_ID | Character(30) | VARCHAR2(30) NOT NULL | URL Identifier (see PSURLDEFN). |