REFUND_HDR_VW

(SQL View)
Index Back

Refund approval view

Select refund_hdr rows of data that require a refund approval

SELECT a.business_unit , a.refund_nbr , a.emplid , b.name FROM PS_REFUND_HDR a , PS_SCC_PRI_NAME_VW b WHERE a.ref_appr_active_sw = 'Y' AND (a.ref_appr_sw_1 = 'P' OR a.ref_appr_sw_2 = 'P' OR a.ref_appr_sw_3 = 'P' ) AND a.emplid = b.emplid AND b.effdt = ( SELECT MAX (effdt) FROM PS_SCC_PRI_NAME_VW c WHERE b.emplid = c.emplid AND c.effdt <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Prompt Table: SP_BU_SF_NONVW

2 REFUND_NBR Number(12,0) DECIMAL(12) NOT NULL Refund Nbr
3 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
4 NAME Character(50) VARCHAR2(50) NOT NULL Name