SFA_LNDSBUPGVW2

(SQL View)
Index Back

Loan Disbursement upgrade

This view is designed to simplify population of SULA fields in Loan Disburement record with the data deom SFACOD_DISB.

SELECT A.EMPLID ,A.INSTITUTION ,A.AID_YEAR ,A.ACAD_CAREER ,A.LOAN_TYPE ,A.LN_APPL_SEQ ,A.ITEM_TYPE ,A.DISBURSEMENT_ID , E.SFA_CR_PMT_PER_DT , E.SFA_CR_ENRLMNTSTAT , E.SFA_CR_PROG_CIP_CD FROM PS_LOAN_DISBMNT A , PS_LOAN_ORIG_DTL B , PS_LOAN_DISB_ACTN C , PS_SFA_COD_AWARD D , PS_SFA_COD_DISB E , PS_SFA_COD_DOCUMNT F WHERE A.EMPLID = B.EMPLID AND A.INSTITUTION = B.INSTITUTION AND A.AID_YEAR=B.AID_YEAR AND A.ACAD_CAREER = B.ACAD_CAREER AND A.LOAN_TYPE = B.LOAN_TYPE AND A.LN_APPL_SEQ = B.LN_APPL_SEQ AND A.ITEM_TYPE = B.ITEM_TYPE AND A.LN_EXT_ACT_ID = ' ' AND A.EMPLID = C.EMPLID AND A.INSTITUTION = C.INSTITUTION AND A.AID_YEAR = C.AID_YEAR AND A.ACAD_CAREER = C.ACAD_CAREER AND A.LOAN_TYPE = C.LOAN_TYPE AND A.LN_APPL_SEQ = C.LN_APPL_SEQ AND A.ITEM_TYPE = C.ITEM_TYPE AND A.DISBURSEMENT_ID = C.DISBURSEMENT_ID AND C.LN_ACTION_CD IN ('N') AND C.LN_ACTION_STATUS IN('P') AND D.EMPLID = B.EMPLID AND D.SFA_CR_AWARD_YEAR = B.AID_YEAR AND D.SFA_CR_AWARD_ID = B.LN_APPL_ID AND D.SFA_CR_DOCUMENT_ID = E.SFA_CR_DOCUMENT_ID AND D.SFA_CR_RPT_SCHL_ID = E.SFA_CR_RPT_SCHL_ID AND D.SFA_CR_ATT_SCHL_ID = E.SFA_CR_ATT_SCHL_ID AND D.EMPLID = E.EMPLID AND D.SFA_CR_AWARD_NAME = E.SFA_CR_AWARD_NAME AND D.SFA_CR_AWARD_YEAR = E.SFA_CR_AWARD_YEAR AND D.SFA_CR_AWARD_NBR = E.SFA_CR_AWARD_NBR AND E.SFA_CR_DSB_RELEASE = 'false' AND E.SFA_CR_DISB_NBR = TO_NUMBER(A.LN_EXT_ANT_ID) AND TO_NUMBER(E.SFA_CR_DSB_SEQ_NBR) = C.DL_DISB_SEQ AND E.SFA_CR_DOCUMENT_ID = ( SELECT MAX (E1.SFA_CR_DOCUMENT_ID) FROM PS_SFA_COD_DISB E1 WHERE E1.SFA_CR_RPT_SCHL_ID = E.SFA_CR_RPT_SCHL_ID AND E1.SFA_CR_ATT_SCHL_ID = E.SFA_CR_ATT_SCHL_ID AND E1.EMPLID = E.EMPLID AND E1.SFA_CR_AWARD_NAME = E.SFA_CR_AWARD_NAME AND E1.SFA_CR_AWARD_YEAR = E.SFA_CR_AWARD_YEAR AND E1.SFA_CR_AWARD_NBR = E.SFA_CR_AWARD_NBR AND E1.SFA_CR_DISB_NBR = E.SFA_CR_DISB_NBR AND E1.SFA_CR_DSB_RELEASE = 'false' AND E1.SFA_CR_PMT_PER_DT > ' ' AND E1.SFA_CR_ENRLMNTSTAT > ' ' AND E1.SFA_CR_PROG_CIP_CD > ' ' ) AND D.SFA_CR_DOCUMENT_ID = F.SFA_CR_DOCUMENT_ID AND F.SFA_CR_DOC_TYPE IN (' ', 'RS') AND A.AID_YEAR >='2015'

  • Parent record: LOAN_ORIG_DTL
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID

    Prompt Table: PEOPLE_SRCH

    2 INSTITUTION Character(5) VARCHAR2(5) NOT NULL Academic Institution

    Prompt Table: INSTITUTION_TBL

    3 AID_YEAR Character(4) VARCHAR2(4) NOT NULL Aid Year

    Prompt Table: AID_YEAR_TBL

    4 ACAD_CAREER Character(4) VARCHAR2(4) NOT NULL Academic Career
    BAC=Bachelor (NLD)
    BBL=Vocational Coaching (NLD)
    BOL=Vocational Training (NLD)
    BUSN=Graduate Business
    CNED=Continuing Education
    CRED=Semester Credit
    EDU=Education (NLD)
    EXED=Extended Education
    GRAD=Graduate
    LAW=Law
    MEDS=Medical School
    NONA=Non Award
    PGRD=Postgraduate
    RSCH=Research
    TECH=Technical
    UENG=Undergraduate Engineering
    UGRD=Undergraduate
    VAVO=Advanced General Educ. (NLD)
    VETM=Veterinary Medicine

    Default Value: LOAN_ORIG_DTL.ACAD_CAREER

    5 LOAN_TYPE Character(4) VARCHAR2(4) NOT NULL Loan Type Cd
    6 LN_APPL_SEQ Number(2,0) SMALLINT NOT NULL Loan Application Seq Num

    Default Value: LOAN_ORIG_DTL.LN_APPL_SEQ

    7 ITEM_TYPE Character(12) VARCHAR2(12) NOT NULL Item Type

    Default Value: LOAN_ORIG_DTL.ITEM_TYPE

    Prompt Table: LN_ITEM_TBL

    8 DISBURSEMENT_ID Character(2) VARCHAR2(2) NOT NULL Disbursement ID
    9 SFA_CR_PMT_PER_DT Character(10) VARCHAR2(10) NOT NULL Payment Period Start Date
    10 SFA_CR_ENRLMNTSTAT Character(1) VARCHAR2(1) NOT NULL Enrollment Status
    11 SFA_CR_PROG_CIP_CD Character(20) VARCHAR2(20) NOT NULL Program CIP Code