WM_PMSR_LOC_VW

(SQL View)
Index Back

PM location search VIEW


SELECT DISTINCT B.SETID , A.LOCATION , B.EFFDT , B.EFF_STATUS , B.DESCR , 'N' FROM PS_WM_PM_SCHD A , PS_LOCATION_VW B WHERE B.SETID = ( SELECT I.SETID FROM PS_SET_CNTRL_REC I WHERE I.SETCNTRLVALUE = A.BUSINESS_UNIT AND I.RECNAME = 'LOCATION_VW') AND B.LOCATION = A.LOCATION AND B.EFFDT = ( SELECT MAX (D.EFFDT) FROM PS_LOCATION_VW D WHERE D.SETID = B.SETID AND D.LOCATION = A.LOCATION AND D.EFFDT <= %CurrentDateIn)

  • Related Language Record: WM_PMSR_LOCVWML
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 SETID Character(5) VARCHAR2(5) NOT NULL SetID

    Default Value: OPR_DEF_TBL_FS.SETID

    Prompt Table: SP_SETID_NONVW

    2 LOCATION Character(10) VARCHAR2(10) NOT NULL Location Code

    Prompt Table: LOCATION_TBL

    3 EFFDT Date(10) DATE NOT NULL Effective Date

    Default Value: %date

    4 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
    A=Active
    I=Inactive

    Default Value: A

    5 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    6 CHECKED Character(1) VARCHAR2(1) NOT NULL Check box for Reason Code
    N=No
    Y=Yes

    Y/N Table Edit

    Default Value: N