GPBR_RISK_VW(SQL View) |
Index Back |
---|---|
Non Periodic Event 2240eSocial XML Framework View Table This record is used to generate informations for eSocial layout S-2240 |
SELECT B.GPBR_DRIVER_SEQ ,B.GPBR_DRV_SPLIT_SEQ ,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, A.GPBR_ES_PS )), ' ') ,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 ,A.GPBR_ES_PS ,A.ENV_OBSER_BRA ,A.DESCRLONG ,A.GPBR_EVENT ,WPLACE_LOC_BRA ,WPLACE_DESCR_BRA ,ESTAB_ID2_BRA FROM %Table(GPBR_STG_RISK) 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 | GPBR_DRIVER_SEQ | Number(30,0) | DECIMAL(30) NOT NULL | Driver Sequence |
2 | GPBR_DRV_SPLIT_SEQ | Number(20,0) | DECIMAL(20) NOT NULL | eSocial - Split Sequence |
3 | GPBR_EVENT_ID | Character(40) | VARCHAR2(40) NOT NULL | eSocial - Generate ID Number Governant |
4 | GPBR_RECT | Number(30,0) | DECIMAL(30) NOT NULL | eSocial Ind Calculation |
5 | GPBR_RECEIPT_NUM | Character(40) | VARCHAR2(40) NOT NULL | Receipt Num |
6 | GPBR_TP_ENV | Character(1) | VARCHAR2(1) NOT NULL | eSocial Environment Identification |
7 | GPBR_ISSUER | Number(1,0) | SMALLINT NOT NULL | eSocial Issuer |
8 | GPBR_VERSION | Character(9) | VARCHAR2(9) NOT NULL | eSocial version |
9 | GPBR_COMP_INS_TYPE | Character(1) | VARCHAR2(1) NOT NULL | eSocial Company Inscription Type |
10 | ESTAB_ID_BRA | Character(20) | VARCHAR2(20) NOT NULL | Establishment ID Brazil |
11 | NATIONAL_ID | Character(20) | VARCHAR2(20) NOT NULL | National ID |
12 | GPBR_NAT_ID | Character(11) | VARCHAR2(11) NOT NULL | eSocial National ID Number |
13 | GPBR_REG_ESOCIAL | Character(30) | VARCHAR2(30) NOT NULL | eSocial eSocial Register |
14 | GPBR_LABOR_CAT_CD | Character(3) | VARCHAR2(3) NOT NULL | eSocial Labor Category Legal Code |
15 | GPBR_ES_PS | Date(10) | DATE | eSocial on PeopleSoft Date |
16 | ENV_OBSER_BRA | Long Character | CLOB | ENV_OBSER_BRA |
17 | DESCRLONG | Long Character | CLOB | Long Description |
18 | GPBR_EVENT_CD | Character(6) | VARCHAR2(6) NOT NULL | eSocial - Event Code |
19 | WPLACE_LOC_BRA | Character(1) | VARCHAR2(1) NOT NULL |
Worplace location.
1=Employer Establishment 2=Service Taker Establishment 3=Third Party Establishment |
20 | WPLACE_DESCR_BRA | Character(100) | VARCHAR2(100) NOT NULL | Workplace description. |
21 | ESTAB_ID2_BRA | Character(20) | VARCHAR2(20) NOT NULL | Establishment ID Brazil |