SPB_SUP_RGST_VW

(SQL View)
Index Back

Splr by Region/Service Type


SELECT DISTINCT B.SETID , A.REGION_CD ,B.ROLE_TYPE FROM PS_REGION_CD A , PS_SPB_REGSER_SPLR B ,PS_VENDOR_SPRO_VW D , PS_SET_CNTRL_GROUP SR , PS_SET_CNTRL_GROUP SV WHERE A.REGION_CD=B.REGION_CD AND B.VENDOR_ID <> ' ' AND B.VENDOR_ID = D.VENDOR_ID AND A.REGION_CD_TYPE = 'SPRS' AND A.EFF_STATUS = 'A' AND SR.SETCNTRLVALUE = B.SETID AND SR.REC_GROUP_ID = 'FS_37' AND SR.SETID = A.SETID AND SV.SETCNTRLVALUE = B.SETID AND SV.REC_GROUP_ID = 'FS_38' AND SV.SETID = D.SETID AND A.EFFDT = ( SELECT MAX(A_ED.EFFDT) FROM PS_REGION_CD A_ED WHERE A.SETID = A_ED.SETID AND A.REGION_CD_TYPE = A_ED.REGION_CD_TYPE AND A.REGION_CD = A_ED.REGION_CD AND A_ED.EFFDT <= %CurrentDateIn)

# 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 REGION_CD Character(10) VARCHAR2(10) NOT NULL Identifies the Sales Region. Populated on the Item Table to identify the Sales Region the Item is applied to.

Prompt Table: SPB_REGIONCD_VW
Set Control Field: SETID

3 ROLE_TYPE Character(6) VARCHAR2(6) NOT NULL Service Type
APR=Approver
MGR=Manager
OPR=Operator

Prompt Table: SPB_ROLTYP_R_VW
Set Control Field: SETID