CNT_SUM_TILE_VW(SQL View) |
Index Back |
---|---|
Group Contract SummaryPO035 8/4/2016 JOHAN Group Contract Pivot Grid |
SELECT A.REPORT_ENTITY , A.FISCAL_YEAR , A.ACCOUNTING_PERIOD , A.CNTRCT_SETID , H.CNTRCT_ID , SUM(A.CONTRACT_AMT) , A.CURRENCY_CD , B.OPRID FROM PS_PO_SPND_CNT_TTL A , PS_OPR_DEF_RPT B , PS_CNTRCT_RELTN R , PS_CNTRCT_HDR H WHERE A.REPORT_ENTITY = B.REPORT_ENTITY AND A.CNTRCT_SETID = R.SETID AND A.CNTRCT_ID = R.CNTRCT_ID_CHILD AND R.SETID = H.SETID AND R.CNTRCT_ID = H.CNTRCT_ID AND R.VERSION_NBR = H.VERSION_NBR AND H.VERSION_STATUS = 'C' GROUP BY A.REPORT_ENTITY, A.FISCAL_YEAR, A.ACCOUNTING_PERIOD, A.CNTRCT_SETID, H.CNTRCT_ID, A.CURRENCY_CD, B.OPRID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | REPORT_ENTITY | Character(5) | VARCHAR2(5) NOT NULL | Reporting Entity ID |
2 | FISCAL_YEAR | Number(4,0) | SMALLINT NOT NULL | Fiscal Year |
3 | ACCOUNTING_PERIOD | Number(3,0) | SMALLINT NOT NULL | Identifies a time period to which you post transactions. Typically, an accounting period represents a month, but it can also represent a week, a day, or any user-defined interval. An accounting period has a beginning date and an ending date, and is defined in the calendar table. |
4 | CNTRCT_SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
5 | CNTRCT_ID | Character(25) | VARCHAR2(25) NOT NULL | Buying Agreement ID |
6 | CONTRACT_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Amount |
7 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
8 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |