GM_EC_BUD_FA_V

(SQL View)
Index Back

Grants EDI Bud F&A

It is for the mapping of NIH 398 form II

SELECT A.OPRID , A.RUN_CNTL_ID , A.BUSINESS_UNIT , A.PROPOSAL_ID , A.VERSION_ID , A.BUDGET_PERIOD_GM , SUM(A.SPONSOR_AMT) , %Round(%DecDiv(A.FA_RATE_PCT,100), 4) , %Round(SUM(%DecMult(A.SPONSOR_AMT,%DecDiv(A.FA_RATE_PCT,100))),2) FROM PS_GM_EC_BUD_FA A , PS_GM_FA_RATE_TYPE B WHERE B.SETID=( SELECT SETID FROM PS_SET_CNTRL_REC G WHERE G.SETCNTRLVALUE=A.BUSINESS_UNIT AND G.RECNAME='GM_FA_RATE_TYPE') AND B.FA_RATE_TYPE=A.FA_RATE_TYPE AND B.EFFDT=( SELECT MAX(E.EFFDT) FROM PS_GM_FA_RATE_TYPE E WHERE E.SETID = B.SETID AND E.FA_RATE_TYPE = B.FA_RATE_TYPE AND E.EFFDT <= %CurrentDateIn) AND B.EFF_STATUS = 'A' GROUP BY A.OPRID, A.RUN_CNTL_ID, A.BUSINESS_UNIT, A.PROPOSAL_ID, A.VERSION_ID, A.BUDGET_PERIOD_GM,A.FA_RATE_PCT

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
2 RUN_CNTL_ID Character(30) VARCHAR2(30) NOT NULL Run Control ID
3 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
4 PROPOSAL_ID Character(25) VARCHAR2(25) NOT NULL Proposal ID
5 VERSION_ID Character(7) VARCHAR2(7) NOT NULL Version ID
6 BUDGET_PERIOD_GM Number(3,0) SMALLINT NOT NULL BUDGET_PERIOD_GM
7 SPONSOR_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL SPONSOR_AMT
8 FA_RATE_PCT_1 Number(6,4) DECIMAL(5,4) NOT NULL Facilities Admin Rate Per
9 FA_BASE_AMT Signed Number(12,2) DECIMAL(10,2) NOT NULL FA_BASE_AMT