PO_SPD_BUDT_VW(SQL View) |
Index Back |
---|---|
Spend by PO date per BU |
SELECT A.BUYER_ID , A.FISCAL_YEAR , A.ACCOUNTING_PERIOD , MIN(A.PO_DT) , A.BUSINESS_UNIT , SUM(A.SCHED_COUNT) , SUM(A.TOTAL_SPENDING) , A.CURRENCY_CD , SUM(A.CONTRACT_AMT) , %Round(%DecMult(%DecDiv(SUM(A.CONTRACT_AMT), SUM(A.TOTAL_SPENDING)), 100), 2) PERCENTAGE , SUM(A.NON_CNTRCT_AMT) FROM PS_PO_SPND_POD_TTL A WHERE EXISTS ( SELECT 'X' FROM PS_PO_SPEND_BUYER B WHERE B.BUYER_ID = A.BUYER_ID AND B.REPORT_ENTITY = A.REPORT_ENTITY) GROUP BY A.BUYER_ID , A.FISCAL_YEAR , A.ACCOUNTING_PERIOD , A.BUSINESS_UNIT , A.CURRENCY_CD |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUYER_ID | Character(30) | VARCHAR2(30) NOT NULL | Buyer |
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 | PO_DT | Date(10) | DATE | Date |
5 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Prompt Table: %EDITTABLE |
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 | TOTAL_PCT | Number(6,2) | DECIMAL(5,2) NOT NULL | Total Percent |
11 | NON_CNTRCT_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Amount |