CS_CT_ACT_RTV1(SQL View) |
Index Back |
---|---|
Contract Activity - ReturnReturn To Vendor (Supplier) Contract Activity for Remote Nodes |
SELECT A.SETID , A.CNTRCT_ID , A.CNTRCT_LINE_NBR , MAX(G.CS_CNTRCT_ID_PR) , MAX(F.VENDOR_SETID) , MAX(F.VENDOR_ID) , 'RTV' , MAX(D.CURRENCY_CD) , SUM(%Round(%DecMult(D.PRICE_PO, D.QTY_LN_RETRN_VUOM) , 3)) , MAX(F.CNTRCT_PROC_OPT) , MAX(F.CNTRCT_STATUS) , SUM(%Round(%DecDiv(%DecMult(D.PRICE_PO, D.QTY_LN_RETRN_VUOM) , %DecDiv(B.CNTRCT_RATE_DIV , B.CNTRCT_RATE_MULT)) , 3)) FROM %Table(CNTRCT_EVT_PO) A , %Table(PO_LINE) B , %Table(RECV_LN_SHIP) C , %Table(RTV_LN) D , %Table(RTV_HDR) E , %Table(CNTRCT_HDR) F , %Table(CS_SND_PAR_XREF) G WHERE %Join(COMMON_KEYS, CNTRCT_EVT_PO A, PO_LINE B) AND B.CANCEL_STATUS <> 'X' AND C.BUSINESS_UNIT_PO = B.BUSINESS_UNIT AND C.PO_ID = B.PO_ID AND C.LINE_NBR = B.LINE_NBR AND C.RECV_SHIP_STATUS <> 'X' AND D.BUSINESS_UNIT_RECV = C.BUSINESS_UNIT AND D.RECEIVER_ID = C.RECEIVER_ID AND D.RECV_LN_NBR = C.RECV_LN_NBR AND D.RECV_SHIP_SEQ_NBR = C.RECV_SHIP_SEQ_NBR AND D.RTV_LN_STATUS <> 'X' AND %Join(COMMON_KEYS, RTV_LN D, RTV_HDR E) AND %Join(COMMON_KEYS, CNTRCT_EVT_PO A, CNTRCT_HDR F) AND %Join(COMMON_KEYS, CNTRCT_HDR F, CS_SND_PAR_XREF G) AND G.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 | 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 |
11 | CNTRCT_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Contract Status
A=Approved C=Closed H=On-Hold O=Open P=Pre-Approved X=Canceled |
12 | MERCH_AMT_CNTRCT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Amount In Contract Currency |