CORPACT_AGE_VW

(SQL View)
Index Back

Aging by Corporate Account


select %substring(t.setid,1,5), t.tree_node, c.aging_id, c.aging_category, c.aging_amt, c.aging_cnt, d.base_currency from PSTREENODE t, ps_cust_aging c, ps_bu_crtcur_vw_ar d, pstreeleaf l where exists (select 'x' from ps_set_cntrl_rec where setid = t.setid and setcntrlvalue = c.business_unit and recname = 'CUSTOMER') and c.cust_id between l.range_from and l.range_to and t.tree_name = 'AR_CORPORATE_CUST' and t.effdt = (select max(effdt) from PSTREENODE where setid = t.setid and tree_name=t.tree_name and effdt <= %currentdatein) and t.tree_node_num > 1 and l.setid = t.setid and l.tree_name = t.tree_name and l.effdt = t.effdt and l.tree_node_num between t.tree_node_num and t.tree_node_num_end and d.business_unit = c.business_unit

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 CORP_CUST Character(20) VARCHAR2(20) NOT NULL Corporate Customer
3 AGING_ID Character(5) VARCHAR2(5) NOT NULL Aging ID

Prompt Table: AGING_TBL

4 AGING_CATEGORY Character(2) VARCHAR2(2) NOT NULL Aging Category

Prompt Table: AGING_CATEG_TBL

5 AGING_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Aging Amount
6 AGING_CNT Number(6,0) INTEGER NOT NULL Aging Count
7 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code