PO_SPD_MGRBU_VW(SQL View) |
Index Back |
---|---|
Spend By total sched/BU/MGR |
SELECT A.REPORT_ENTITY , B.BUYER_MANAGER , B.BUYER_ID , A.FISCAL_YEAR , A.ACCOUNTING_PERIOD , SUM(A.SCHED_COUNT) , SUM(A.TOTAL_SPENDING) , A.CURRENCY_CD , SUM(A.CONTRACT_AMT) , SUM(A.NON_CNTRCT_AMT) , %Round(%DecMult(%DecDiv(SUM(A.CONTRACT_AMT), SUM(A.TOTAL_SPENDING)), 100), 2) PERCENTAGE FROM PS_PO_SPND_SCH_TTL A , PS_PO_MANAGER_TBL B WHERE A.BUYER_ID = B.BUYER_ID AND EXISTS ( SELECT 'X' FROM PS_PO_SPEND_BUYER C WHERE B.BUYER_MANAGER = C.BUYER_ID AND A.REPORT_ENTITY = C.REPORT_ENTITY) GROUP BY A.REPORT_ENTITY, B.BUYER_MANAGER, B.BUYER_ID , A.FISCAL_YEAR , A.ACCOUNTING_PERIOD , A.CURRENCY_CD |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | REPORT_ENTITY | Character(5) | VARCHAR2(5) NOT NULL | Reporting Entity ID |
2 | BUYER_MANAGER | Character(30) | VARCHAR2(30) NOT NULL | Buyer |
3 | BUYER_ID | Character(30) | VARCHAR2(30) NOT NULL | Buyer |
4 | FISCAL_YEAR | Number(4,0) | SMALLINT NOT NULL | Fiscal Year |
5 | 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. |
6 | PO_COUNT | Number(10,0) | DECIMAL(10) NOT NULL | PO Count by Business Unit |
7 | TOTAL_SPENDING | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Total Spending Amount |
8 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
9 | CNTRCT_GROSS_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Contract Gross Amount |
10 | NON_CNTRCT_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Amount |
11 | TOTAL_PCT | Number(6,2) | DECIMAL(5,2) NOT NULL | Total Percent |