CS_CT_ACT_PO1P(SQL View) |
Index Back |
---|---|
Contract Activity - POPurchase Order Contract Activity for Parent Node 2/19/2008 RMK F-AHAYT-S60K7 Added cat_line_nbr and version_nbr as key field |
SELECT A.SETID , A.CNTRCT_ID , A.VERSION_NBR , A.CNTRCT_LINE_NBR , A.CAT_LINE_NBR , A.CNTRCT_ID , MAX(B.VENDOR_SETID) , MAX(B.VENDOR_ID) , 'PO' , MAX(B.CURRENCY_CD) , SUM(D.MERCHANDISE_AMT) , SUM(%Round(%DecDiv(D.MERCHANDISE_AMT , %DecDiv(C.CNTRCT_RATE_DIV , C.CNTRCT_RATE_MULT)) ,3)) , MAX(E.CNTRCT_PROC_OPT) , MAX(E.CNTRCT_STATUS) , MAX(C.UNIT_OF_MEASURE) , SUM(D.QTY_PO) FROM PS_CNTRCT_EVT_PO A , PS_PO_HDR B , PS_PO_LINE C , PS_PO_LINE_SHIP D , PS_CNTRCT_HDR E WHERE %Join(COMMON_KEYS, CNTRCT_EVT_PO A, PO_HDR B) AND %Join(COMMON_KEYS, CNTRCT_EVT_PO A, PO_LINE C) AND %Join(COMMON_KEYS, CNTRCT_EVT_PO A, PO_LINE_SHIP D) AND D.CANCEL_STATUS <> 'X' AND %Join(COMMON_KEYS, CNTRCT_EVT_PO A, CNTRCT_HDR E) AND A.CNTRCT_LINE_NBR = C.CNTRCT_LINE_NBR AND A.CAT_LINE_NBR = C.CAT_LINE_NBR GROUP BY A.SETID, A.CNTRCT_ID, A.VERSION_NBR, A.CNTRCT_LINE_NBR, A.CAT_LINE_NBR |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | CNTRCT_SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | CNTRCT_ID | Character(25) | VARCHAR2(25) NOT NULL | Buying Agreement ID |
3 | VERSION_NBR | Number(5,0) | INTEGER NOT NULL | Contract Version number |
4 | CNTRCT_LINE_NBR | Number(5,0) | INTEGER NOT NULL | Buying Agreement Line Nbr |
5 | CAT_LINE_NBR | Number(5,0) | INTEGER NOT NULL | Contract Category Line Number |
6 | CS_CNTRCT_ID_PR | Character(30) | VARCHAR2(30) NOT NULL | Parent Contract ID |
7 | VENDOR_SETID | Character(5) | VARCHAR2(5) NOT NULL | Vendor SetID |
8 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
9 | PRCR_DOC_TYPE | Character(3) | VARCHAR2(3) NOT NULL |
Document Type
CNT=Contract IUR=Inter Unit Receipt MSR=MSR PMT=Payment PO=Purchase Order RCV=Receipt REQ=Requisition RFQ=Request For Quote RTV=Return To Vendor (Supplier) SSE=Strategic Sourcing Event VOU=Voucher WO=Work Order |
10 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
11 | MERCHANDISE_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Merchandise Amt F_KDHIL_R87H8 062804 MLM: Added new Line Amount Received Label |
12 | MERCH_AMT_CNTRCT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Amount In Contract Currency |
13 | CNTRCT_PROC_OPT | Character(4) | VARCHAR2(4) NOT NULL |
Contract Process Option
AP=Recurring Voucher BPO=Release to Single PO Only DST=Distributor GN=General Contract GRPM=Group Multi Supplier GRPS=Group Single Supplier MFG=Manufacturer PADV=Prepaid Voucher w/ Advance PO PO=Purchase Order PPAY=Prepaid Voucher RPOV=Recurring PO Voucher SPP=Special Purpose |
14 | CNTRCT_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Contract Status
A=Approved C=Closed H=On-Hold O=Open P=Pre-Approved X=Canceled |
15 | UNIT_OF_MEASURE | Character(3) | VARCHAR2(3) NOT NULL |
Used on an approval rule set.
MHR=Muti Hourly PER=Percentage SQF=Square Footage |
16 | QTY_PO | Number(16,4) | DECIMAL(15,4) NOT NULL | Purchase Order Quantity |