CS_CT_ACT_PO1(SQL View) |
Index Back |
---|---|
Contract Activity - POPurchase Order Contract Activity for Remote Node |
SELECT A.SETID , A.CNTRCT_ID , A.CNTRCT_LINE_NBR , MAX(F.CS_CNTRCT_ID_PR) , 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 , PS_CS_SND_PAR_XREF F 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 %Join(COMMON_KEYS, CNTRCT_HDR E, CS_SND_PAR_XREF F) AND F.CS_CAPTURE_ACTX <> 'N' GROUP BY A.SETID, A.CNTRCT_ID, A.CNTRCT_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 | CNTRCT_LINE_NBR | Number(5,0) | INTEGER NOT NULL | Buying Agreement Line Nbr |
4 | CS_CNTRCT_ID_PR | Character(30) | VARCHAR2(30) NOT NULL | Parent Contract ID |
5 | VENDOR_SETID | Character(5) | VARCHAR2(5) NOT NULL | Vendor SetID |
6 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
7 | 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 |
8 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
9 | MERCHANDISE_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Merchandise Amt F_KDHIL_R87H8 062804 MLM: Added new Line Amount Received Label |
10 | MERCH_AMT_CNTRCT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Amount In Contract Currency |
11 | 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 |
12 | CNTRCT_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Contract Status
A=Approved C=Closed H=On-Hold O=Open P=Pre-Approved X=Canceled |
13 | UNIT_OF_MEASURE | Character(3) | VARCHAR2(3) NOT NULL |
Used on an approval rule set.
MHR=Muti Hourly PER=Percentage SQF=Square Footage |
14 | QTY_PO | Number(16,4) | DECIMAL(15,4) NOT NULL | Purchase Order Quantity |