PERS_BEN_SRCH(SQL View) |
Index Back |
---|---|
Benefits Person SearchThis is a main search view in Base Benefits components that only have PERSON at Level-0. It presents Benefit Record Nbr as a Listbox item, but is only keyed by EMPLID. |
SELECT SEC.OPRID , SEC.ROWSECCLASS , SEC.EMPLID ,SEC.NAME , SEC.NAME_PSFORMAT ,SEC.LAST_NAME_SRCH , SEC.MIDDLE_NAME , SEC.NAME_DISPLAY ,H.BENEFIT_RCD_NBR ,JOB.BUSINESS_UNIT ,JOB.SETID_DEPT ,JOB.DEPTID ,H.PER_ORG , %Sql(SCRTY_SEL_MILSBR, SEC, SEC) FROM PS_PERS_SRCH_GBL SEC , PS_PER_ORG_ASGN H , PS_PRIMARY_JOBS PRI , PS_JOB JOB WHERE SEC.EMPLID=H.EMPLID AND PRI.EMPLID=H.EMPLID AND SEC.EMPLID=PRI.EMPLID AND SEC.EMPL_RCD=H.EMPL_RCD AND JOB.EMPLID = SEC.EMPLID AND JOB.EMPL_RCD = SEC.EMPL_RCD AND (JOB.EFFDT>=%CurrentDateIn OR JOB.EFFDT= ( SELECT MAX(EFFDT) FROM PS_JOB JB1 WHERE JB1.EMPLID=JOB.EMPLID AND JB1.EMPL_RCD=JOB.EMPL_RCD AND JB1.EFFDT <= %CurrentDateIn) ) AND JOB.EFFSEQ = ( SELECT MAX(EFFSEQ) FROM PS_JOB JB2 WHERE JB2.EMPLID=JOB.EMPLID AND JB2.EMPL_RCD=JOB.EMPL_RCD AND JB2.EFFDT = JOB.EFFDT) AND JOB.BENEFIT_SYSTEM<>'OT' AND PRI.EMPLID=SEC.EMPLID AND PRI.EMPL_RCD=SEC.EMPL_RCD AND PRI.PRIMARY_JOB_APP='BN' AND PRI.PRIMARY_JOB_IND='Y' AND (PRI.EFFDT>=%CurrentDateIn OR PRI.EFFDT= ( SELECT MAX(P1.EFFDT) FROM PS_PRIMARY_JOBS P1 WHERE P1.EMPLID=PRI.EMPLID AND P1.EMPL_RCD=PRI.EMPL_RCD AND P1.PRIMARY_JOB_APP=PRI.PRIMARY_JOB_APP AND P1.EFFDT <= %CurrentDateIn) ) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
2 | ROWSECCLASS | Character(30) | VARCHAR2(30) NOT NULL | The class used to determine row level security |
3 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
4 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
5 | NAME_PSFORMAT | Character(50) | VARCHAR2(50) NOT NULL | A Person's name in the Peoplesoft Format (basically LN,FN MI |
6 | LAST_NAME_SRCH | Character(30) | VARCHAR2(30) NOT NULL | Last Name |
7 | MIDDLE_NAME | Character(30) | VARCHAR2(30) NOT NULL | MIDDLE_NAME |
8 | NAME_DISPLAY | Character(50) | VARCHAR2(50) NOT NULL | Display Name - name formatted for Display based on the Country |
9 | BENEFIT_RCD_NBR | Number(3,0) | SMALLINT NOT NULL | Specifies a sequence number associated with each of multiple concurrent jobs for a one employee. It is used to determine the applicable benefit program for each job. The first job entered for an employee is automatically assigned a Benefit Record Number of zero (0). This field is linked with EMPL_RCD#, the Employment Record Number. |
10 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
11 | SETID_DEPT | Character(5) | VARCHAR2(5) NOT NULL |
Department Set ID
Prompt Table: SETID_TBL |
12 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL |
Department
Prompt Table: PERS_DEPT_VW |
13 | PER_ORG | Character(3) | VARCHAR2(3) NOT NULL |
Defines the Organizational Relationship(s) that a Person has to the Organization. These are Employee, Contingent Worker, and Persons of Interest.
CWR=Contingent Worker EMP=Employee POI=Person of Interest |
14 | MILITARY_SERVICE | Character(8) | VARCHAR2(8) NOT NULL |
Military Service
Prompt Table: MIL_SERVICE_TBL |
15 | MIL_RANK | Character(5) | VARCHAR2(5) NOT NULL |
Military Rank
Prompt Table: MIL_RANK_TBL |
16 | MIL_WORN_RANK | Character(5) | VARCHAR2(5) NOT NULL |
Worn Rank
Prompt Table: MIL_RANK_TBL |