GPBR_STG_HS_VW(SQL View) |
Index Back |
---|---|
Periodic eSocial H&SeSocial Stage Table This record is used to generate informations for eSocial layout S-2220 - Periodic eSocial - Health and Safety |
SELECT B.GPBR_DRIVER_SEQ , B.GPBR_DRV_SPLIT_SEQ ,A.EMPLID ,A.EMPL_RCD , A.GPBR_EVENT_CD , B.GPBR_EVENT_ID , A.GPBR_RECT , A.GPBR_RECEIPT_NUM , A.GPBR_TP_ENV , A.GPBR_ISSUER , %Coalesce((SELECT C.GPBR_VERSION FROM %Table(GPBR_EVNT_SETUP) C WHERE C.GPBR_EVENT_CD = B.GPBR_EVENT_CD AND %EffdtCheck(GPBR_EVNT_SETUP C1, C, %CurrentDateIn)), ' ') , A.GPBR_COMP_INS_TYPE , A.ESTAB_ID_BRA ,A.NATIONAL_ID ,A.GPBR_NAT_ID ,A.GPBR_REG_ESOCIAL ,A.GPBR_LABOR_CAT_CD FROM %Table(GPBR_STG_HAS) A ,%Table(GPBR_DRIVER_DAT) B WHERE A.GPBR_DRIVER_SEQ = B.GPBR_DRIVER_SEQ AND A.GPBR_DRV_SPLIT_SEQ = B.GPBR_DRV_SPLIT_SEQ AND B.GPBR_STATUS = 'XRDY' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | Number(30,0) | DECIMAL(30) NOT NULL | Driver Sequence | |
2 | Number(20,0) | DECIMAL(20) NOT NULL | eSocial - Split Sequence | |
3 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
4 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL | Empl Record |
5 | GPBR_EVENT_CD | Character(6) | VARCHAR2(6) NOT NULL | eSocial - Event Code |
6 | GPBR_EVENT_ID | Character(40) | VARCHAR2(40) NOT NULL | eSocial - Generate ID Number Governant |
7 | GPBR_RECT | Number(30,0) | DECIMAL(30) NOT NULL | eSocial Ind Calculation |
8 | GPBR_RECEIPT_NUM | Character(40) | VARCHAR2(40) NOT NULL | Receipt Num |
9 | GPBR_TP_ENV | Character(1) | VARCHAR2(1) NOT NULL | eSocial Environment Identification |
10 | GPBR_ISSUER | Number(1,0) | SMALLINT NOT NULL | eSocial Issuer |
11 | GPBR_VERSION | Character(9) | VARCHAR2(9) NOT NULL | eSocial version |
12 | GPBR_COMP_INS_TYPE | Character(1) | VARCHAR2(1) NOT NULL | eSocial Company Inscription Type |
13 | ESTAB_ID_BRA | Character(20) | VARCHAR2(20) NOT NULL | Establishment ID Brazil |
14 | NATIONAL_ID | Character(20) | VARCHAR2(20) NOT NULL | National ID |
15 | GPBR_NAT_ID | Character(11) | VARCHAR2(11) NOT NULL | eSocial National ID Number |
16 | GPBR_REG_ESOCIAL | Character(30) | VARCHAR2(30) NOT NULL | eSocial eSocial Register |
17 | GPBR_LABOR_CAT_CD | Character(3) | VARCHAR2(3) NOT NULL | eSocial Labor Category Legal Code |