AV_GIFT_P2VWLNG

(SQL View)
Index Back

Posted / Non Adjusted Gift VW

View which returns org gifts that have been posted, and have not been adjusted. Used on the adjust gift window as a prompt for GIFT_NO ========================================================= JM - Changed view on 01/27/00. Old view is below. Added an additional condition to the where clause. In addition to what was in the where clause a test was added to make sure that we're only grabbing the records where the av_sess_type is = 'G' or 'AG'. SELECT DISTINCT C.DESCR, A.EXT_ORG_ID, A.GIFT_NO, A.GIFT_AMT, A.GIFT_TYPE, A.GIFT_DT FROM PS_AV_GIFT_DTL A, PS_AV_SESSION_TBL B, PS_EXT_ORG_TBL C WHERE A.SESSION_NO = B.SESSION_NO AND B.SESS_STATUS = 'P' AND A.ADJUSTMENT_FLG = 'N' AND A.EXT_ORG_ID=C.EXT_ORG_ID AND A.SA_ID_TYPE='O' =========================================================

SELECT DISTINCT A.BUSINESS_UNIT ,A.CURRENCY_CD_ENTRY ,D.DESCR , A.EXT_ORG_ID , A.GIFT_NO , D.LANGUAGE_CD FROM PS_AV_GIFT_DTL A , PS_AV_SESSION_TBL B , PS_EXT_ORG_TBL C , PS_EXT_ORG_LANG D WHERE A.SESSION_NO = B.SESSION_NO AND B.AV_SESS_TYPE IN('G','AG') AND B.SESS_STATUS = 'P' AND A.ADJUSTMENT_FLG = 'N' AND A.EXT_ORG_ID=C.EXT_ORG_ID AND A.SA_ID_TYPE='O' AND %EffdtCheck(EXT_ORG_TBL C1, C, A.DATA_ENTRY_DT) AND C.EXT_ORG_ID = D.EXT_ORG_ID AND C.EFFDT = D.EFFDT

  • Related Language Record for AV_GIFT_P2_VW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
    2 CURRENCY_CD_ENTRY Character(3) VARCHAR2(3) NOT NULL Currency Code
    3 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    4 EXT_ORG_ID Character(11) VARCHAR2(11) NOT NULL External Org ID

    Prompt Table: EXT_ORG_TBL

    5 GIFT_NO Character(11) VARCHAR2(11) NOT NULL Gift Nbr
    6 LANGUAGE_CD Character(3) VARCHAR2(3) NOT NULL Language Code