GM_EC_BUD_FA_2

(SQL View)
Index Back

Grants EDI Bud F&A

It is for the mapping of NIH 398 form II

SELECT A.ECTRANSID , A.ECQUEUEINSTANCE , A.OPRID , A.RUN_CNTL_ID , A.BUSINESS_UNIT , A.PROPOSAL_ID , A.VERSION_ID , A.SUB_PROP_NBR , B.DESCRSHORT , A.BUDGET_PERIOD_GM , A.FA_BASE_ID , SUM(A.SPONSOR_AMT) , A.RATE_EFFDT , A.FA_RATE_PCT , %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.ECTRANSID, A.ECQUEUEINSTANCE, A.OPRID, A.RUN_CNTL_ID, A.BUSINESS_UNIT, A.PROPOSAL_ID, A.VERSION_ID, A.SUB_PROP_NBR, B.DESCRSHORT, A.BUDGET_PERIOD_GM,A.FA_BASE_ID,RATE_EFFDT,A.FA_RATE_PCT

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 ECTRANSID Character(15) VARCHAR2(15) NOT NULL Electronic Commerce Transaction ID. Used in EDI Manager. One of three(3) Key Fields(ECTRANSID, ECTRANSINOUTSW, ECQUEUEINSTANCE) used in Electronic Commerce(EC) Staging Tables. ECTRANSID in EDI Manager identifies a transaction type(like "PO" for Purchase Orders)
2 ECQUEUEINSTANCE Number(9,0) DECIMAL(9) NOT NULL Electronic Commerce Queue Instance ID. Used in EDI Manager. One of three(3) Key Fields(ECTRANSID, ECTRANSINOUTSW, ECQUEUEINSTANCE) used in Electronic Commerce(EC) Staging Tables.
3 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
4 RUN_CNTL_ID Character(30) VARCHAR2(30) NOT NULL Run Control ID
5 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
6 PROPOSAL_ID Character(25) VARCHAR2(25) NOT NULL Proposal ID
7 VERSION_ID Character(7) VARCHAR2(7) NOT NULL Version ID
8 SUB_PROP_NBR Character(15) VARCHAR2(15) NOT NULL SUB_PROP_NBR
9 DESCRSHORT Character(10) VARCHAR2(10) NOT NULL Short Description
10 BUDGET_PERIOD_GM Number(3,0) SMALLINT NOT NULL BUDGET_PERIOD_GM
11 FA_BASE_ID Character(5) VARCHAR2(5) NOT NULL FA_BASE_ID
12 SPONSOR_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL SPONSOR_AMT
13 RATE_EFFDT Date(10) DATE Rate Effective Date
14 FA_RATE_PCT Number(6,2) DECIMAL(5,2) NOT NULL FA_RATE_PCT
15 FA_BASE_AMT Signed Number(12,2) DECIMAL(10,2) NOT NULL FA_BASE_AMT