Dicionário Protheus
Início

Tabela GW2 no Protheus

CONTRATOS COM AUTONOMOS

O que é a tabela GW2 no Protheus?

A tabela GW2 faz parte do sistema ERP Protheus da TOTVS e é utilizada para contratos com autonomos.

Ela pertence ao dicionário de dados do Protheus (SX2) e armazena informações essenciais utilizadas em processos como cadastros, movimentações e integrações do sistema.

A tabela GW2 possui diversos campos (SX3), cada um com regras específicas como tipo, tamanho e validações, além de índices (SIX) que otimizam a performance das consultas.

Nesta página você pode consultar a estrutura completa da tabela GW2, incluindo todos os campos e índices relacionados.

Propriedades da Tabela

Propriedade Valor
X2_CHAVE GW2
X2_PATH \DATA\
X2_ARQUIVO GW2990
X2_NOME CONTRATOS COM AUTONOMOS
X2_NOMESPA CONTRATOS CON AUTONOMOS
X2_NOMEENG CONTRACT WITH AUTONOMOUS
X2_ROTINA -
X2_MODO E
X2_MODOUN E
X2_MODOEMP E
X2_DELET 0
X2_TTS -
X2_UNICO GW2_FILIAL+GW2_NRCONT
X2_PYME S
X2_MODULO 78
X2_DISPLAY -
X2_SYSOBJ -
X2_USROBJ -
X2_POSLGT 1
X2_CLOB 2
X2_AUTREC 2
X2_TAMFIL 2
X2_TAMUN 0
X2_TAMEMP 0
X2_STAMP 2
X2_INSDT 2
D_E_L_E_T_ -
R_E_C_N_O_ 5381
R_E_C_D_E_L_ 0

Campos da Tabela GW2 (84 campos)

X3_ARQUIVO X3_ORDEM X3_CAMPO X3_TIPO X3_TAMANHO X3_DECIMAL X3_TITULO X3_TITSPA X3_TITENG X3_DESCRIC X3_DESCSPA X3_DESCENG X3_PICTURE X3_VALID X3_USADO X3_RELACAO X3_F3 X3_NIVEL X3_RESERV X3_CHECK X3_TRIGGER X3_PROPRI X3_BROWSE X3_VISUAL X3_CONTEXT X3_OBRIGAT X3_VLDUSER X3_CBOX X3_CBOXSPA X3_CBOXENG X3_PICTVAR X3_WHEN X3_INIBRW X3_GRPSXG X3_FOLDER X3_PYME X3_CONDSQL X3_CHKSQL X3_IDXSRV X3_ORTOGRA X3_IDXFLD X3_TELA X3_PICBRV X3_AGRUP X3_POSLGT X3_MODAL X3_CHKSUM X3_ADDSUM D_E_L_E_T_ R_E_C_N_O_ R_E_C_D_E_L_
GW2 01 GW2_FILIAL C 2 0 Filial Sucursal Branch Filial do Sistema Sucursal de Sistema System Branch - - x x x x x x x x x x x x x x x - - 1 x - - - N A R - - - - - - - - 033 1 S - - N N N - - - 1 2 - - - 85885 0
GW2 02 GW2_NRCONT C 8 0 Nr Contrato Nr Contrato Contract No. Nr Contrato com Autonomo Nr Contrato con Autonomo Contract Number w/ Freela 99999999 - x x x x x x x x x x x x x x x x GETSXENUM("GW2","GW2_NRCONT") - 1 x xxx - - - S V R - - - - - - - - - 1 S - - N N N - - - 1 1 - - - 85886 0
GW2 03 GW2_SITCON C 1 0 Situacao Situacion Status Situacao Contrato Situacion Contrato Contract Status @! - x x x x x x x x x x x x x x x x "1" - 1 x xxx - - - S V R - - 1=Criado;2=Confirmado;3=Emitido;4=Cancelado 1=Creado;2=Confirmado;3=Emitido;4=Anulado 1=Created;2=Confirmed;3=Issued;4=Canceled - - - - 1 S - - N N N - - - 1 1 - - - 85887 0
GW2 04 GW2_DTCRIA D 8 0 Dt Criacao Fch Creacion Creation Dt Data de Criacao Fecha de Creacion Creation Date - - x x x x x x x x x x x x x x x x DDATABASE - 1 x x x - - - S V R - - - - - - - - - 1 S - - N N N - - - 1 2 - - - 85888 0
GW2 05 GW2_DTVENC D 8 0 Dt Vencto Fch Vencto Due Dt Data Vencimento Fecha Vencimiento Due Date - - x x x x x x x x x x x x x x x x - - 1 x xxx - - - S A R - - - - - - - - - 1 S - - N N N - - - 1 1 - - - 85889 0
GW2 06 GW2_CDPROP C 14 0 Proprietario Propietario Owner Cod Proprietario Cod Propietario Owner Cd @! ExistCpo("GU3") x x x x x x x x x x x x x x x x - GU3AUT 1 x xxx - S - S A R - - - - - - - - 052 1 S - - N N N - - - 1 1 - - - 85890 0
GW2 07 GW2_NMABRV C 12 0 Nome Abrev Nombr Abrev Name Abrev Nome Abreviado/Apelido Nombre Abreviado/Apodo Short Name / Nickname @! - x x x x x x x x x x x x x x x x IF(!INCLUI,POSICIONE("GU3",1,XFILIAL("GU3")+M->GW2_CDPROP,"GU3_NMABRV"),"") - 1 xx x x - - - S V V - - - - - - - Posicione("GU3",1,xFilial("GU3")+GW2->GW2_CDPROP,"GU3_NMABRV") - 1 S - - N N N - - - 1 2 - - - 85891 0
GW2 08 GW2_QTDEIR N 2 0 Nr Depend. Nr Depend. Dependent Nr Nr Dependentes Nr Dependientes Number of Dependents 99 - x x x x x x x x x x x x x x x x - - 1 xx x x - - - N A R - - - - - - - - - 1 S - - N N N - - - 1 2 - - - 85892 0
GW2 09 GW2_CDMTR C 6 0 Motorista Conductor Driver Codigo Motorista Codigo Conductor Driver Code @! ExistCpo("GUU") x x x x x x x x x x x x x x x x - GUU 1 x x x - S - N A R - - - - - - - - 054 1 S - - N N N - - - 1 2 - - - 85893 0
GW2 10 GW2_NMMTR C 50 0 Nom Motorist Nom Conducto Driver Name Nome do Motorista Nombre del Conductor Driver Name @! - x x x x x x x x x x x x x x x x IF(!INCLUI,POSICIONE("GUU",1,XFILIAL("GUU")+GW2->GW2_CDMTR,"GUU_NMMTR"),"") - 1 xx x x - - - N V V - - - - - - - - - 1 S - - N N N - - - 1 2 - - - 85894 0
GW2 11 GW2_DTIMPR D 8 0 Dt Impressao Fc Impresion Print Dt Data Impressao. Fecha Impresion Print Date - - x x x x x x x x x x x x x x x x - - 1 x x x - - - S V R - - - - - - - - - 1 S - - N N N - - - 1 2 - - - 85895 0
GW2 12 GW2_VLMUDE N 12 2 Mult Atr Des Mult Atr Des Unl Del. Fin Multa Atraso Descarga Multa Atraso Descarga Unload Delay Fine @E 999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 xx x x - - - N A R - - - - - - - - - 1 S - - N N N - - - 1 2 - - - 85896 0
GW2 13 GW2_VLMUEN N 12 2 Multa Atr En Multa Atr En Lt.Del.Fine Multa Atrado na Entrega Multa Atraso en Entrega Late Delivery Fine @E 999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 xxxx x - - - N A R - - - - - - - - - 1 S - - N N N - - - 1 2 - - - 85897 0
GW2 14 GW2_CDVEI1 C 16 0 Veiculo 1 Vehiculo 1 Vehicle 1 Cod Veiculo 1 Codigo Vehiculo 1 Vehicle Cd 1 @! GFEExistC("GU8",1,M->GW2_CDVEI1,"GU8->GU8_SIT=='1'") x x x x x x x x x x x x x x x x - GU8 1 x xx x - S - N A R - - - - - - - - - 2 S - - N N N - - - 1 2 - - - 85898 0
GW2 15 GW2_PLACA1 C 8 0 Placa 1 Matricula 1 Plate 1 Placa do Veiculo 1 Matricula de Vehiculo 1 Vehicle Plate 1 @! - x x x x x x x x x x x x x x x x IF(!INCLUI,POSICIONE("GU8",1,XFILIAL("GU8")+GW2->GW2_CDVEI2,"GU8_PLACA"),"") - 1 xx x x - - - N V V - - - - - - - - - 2 S - - N N N - - - 1 2 - - - 85899 0
GW2 16 GW2_CDVEI2 C 16 0 Veiculo 2 Vehiculo 2 Vehicle 2 Cod Veiculo 2 Cod Vehiculo 2 Vehicle Cd 2 @! GFEExistC("GU8",1,M->GW2_CDVEI2,"GU8->GU8_SIT=='1'") x x x x x x x x x x x x x x x x - GU8 1 x xx x - S - N A R - - - - - - - - - 2 S - - N N N - - - 1 2 - - - 85900 0
GW2 17 GW2_PLACA2 C 8 0 Placa 2 Matricula 2 Plate 2 Placa do Veiculo 2. Matricula de Vehiculo 2. Vehicle Plate 2. @! - x x x x x x x x x x x x x x x x IF(!INCLUI,POSICIONE("GU8",1,XFILIAL("GU8")+GW2->GW2_CDVEI2,"GU8_PLACA"),"") - 1 xx x x - - - N V V - - - - - - - - - 2 S - - N N N - - - 1 2 - - - 85901 0
GW2 18 GW2_CDVEI3 C 16 0 Veiculo 3 Vehiculo 3 Vehicle 3 Cod Veiculo 3 Cod Vehiculo 3 Vehicle Cd 3 @! GFEExistC("GU8",1,M->GW2_CDVEI3,"GU8->GU8_SIT=='1'") x x x x x x x x x x x x x x x x - GU8 1 x xx x - S - N A R - - - - - - - - - 2 S - - N N N - - - 1 2 - - - 85902 0
GW2 19 GW2_PLACA3 C 8 0 Placa 3 Matricula 3 Plate 3 Placa do Veiculo 3 Matricula de Vehiculo 3 Vehicle Plate 3 @! - x x x x x x x x x x x x x x x x IF(!INCLUI,POSICIONE("GU8",1,XFILIAL("GU8")+GW2->GW2_CDVEI3,"GU8_PLACA"),"") - 1 xx x x - - - N V V - - - - - - - - - 2 S - - N N N - - - 1 2 - - - 85903 0
GW2 20 GW2_LOCCAR C 50 0 Local Carga Local Carga Load Place Local de Carregamento. Local de Carrega Loading Place @! - x x x x x x x x x x x x x x x x - - 1 x x x - - - N A R - - - - - - - - - 3 S - - N N N - - - 1 2 - - - 85904 0
GW2 21 GW2_LOCDES C 50 0 Loc Descarga Loc Descarga Unload Plac. Local de Descarga Local de Descarga Place of Unload @! - x x x x x x x x x x x x x x x x - - 1 x x x - - - N A R - - - - - - - - - 3 S - - N N N - - - 1 2 - - - 85905 0
GW2 22 GW2_RESCAR C 50 0 Resp Carga Resp Carga Cargo Respon Responsavel Carga Responsable Carga Responsible for Cargo @! - x x x x x x x x x x x x x x x x - - 1 x x x - - - N A R - - - - - - - - - 3 S - - N N N - - - 1 2 - - - 85906 0
GW2 23 GW2_RESDES C 30 0 Resp. Descar Resp. Descar Unload Respo Responsavel Descarga. Responsable Descarga. Responsible for Unload @! - x x x x x x x x x x x x x x x x - - 1 x x x - - - N A R - - - - - - - - - 3 S - - N N N - - - 1 2 - - - 85907 0
GW2 24 GW2_PZCARG C 12 0 Prz Carga Plz Carga Load Deadl. Prazo Carga Plazo Carga Load deadline @! - x x x x x x x x x x x x x x x x - - 1 x x x - - - N A R - - - - - - - - - 3 S - - N N N - - - 1 2 - - - 85908 0
GW2 25 GW2_PZDESC C 12 0 Prz Descarga Plz Descarga Unld Deadlin Prazo Descarga Plazo Descarga Unload Deadline @! - x x x x x x x x x x x x x x x x - - 1 x x x - - - N A R - - - - - - - - - 3 S - - N N N - - - 1 2 - - - 85909 0
GW2 26 GW2_QTENTR N 3 0 Nr Entregas Nr Entregas Deliv. Nmr Nr Entregas Nr Entregas Number os Deliveries 999 - x x x x x x x x x x x x x x x x - - 1 xx x x - - - N A R - - - - - - - - - 3 S - - N N N - - - 1 2 - - - 85910 0
GW2 27 GW2_PZENTR C 12 0 Prz Entrega Plz Entrega Delivery Dt. Prazo Entrega Plazo Entrega Delivery Date @! - x x x x x x x x x x x x x x x x - - 1 x x x - - - N A R - - - - - - - - - 3 S - - N N N - - - 1 2 - - - 85911 0
GW2 28 GW2_QTPESO N 13 5 Peso Peso Weight Peso Peso Weight @E 9,999,999.99999 Positivo() x x x x x x x x x x x x x x x x - - 1 xxxx x - - - N A R - - - - - - - - - 3 S - - N N N - - - 1 2 - - - 85912 0
GW2 29 GW2_QTDIST N 8 1 Distancia Distancia Distance Distancia Distancia Distance @E 999,999.9 - x x x x x x x x x x x x x x x x - - 1 xx x x - - - N A R - - - - - - - - - 3 S - - N N N - - - 1 2 - - - 85913 0
GW2 30 GW2_CIDORI C 7 0 Cidade Orig Ciudad Orig Orig City Cidade Origem Ciudad Origen Origin City 9999999 GFEExistC("GU7",1,M->GW2_CIDORI,"GU7->GU7_SIT=='1'") x x x x x x x x x x x x x x x x - GU7GUA 1 x xx x - S - N A R - - - - - - - - 053 3 S - - N N N - - - 1 2 - - - 85914 0
GW2 31 GW2_NMCIDO C 60 0 Cidade Orig Ciudad Orige Orig City Cidade Origem Ciudad Origen Origin City @! - x x x x x x x x x x x x x x x x IF(!INCLUI,POSICIONE("GU7",1,XFILIAL("GU7")+GW2->GW2_CIDORI,"GU7_NMCID"),"") - 1 xx x x - - - N V V - - - - - - - - - 3 S - - N N N - - - 1 2 - - - 85915 0
GW2 32 GW2_CIDDES C 7 0 Cidade Term Ciudad Term End City Cidade Término Ciudad Termino End City 9999999 GFEExistC("GU7",1,M->GW2_CIDDES,"GU7->GU7_SIT=='1'") x x x x x x x x x x x x x x x x - GU7GUA 1 x xx x - S - N A R - - - - - - - - 053 3 S - - N N N - - - 1 2 - - - 85916 0
GW2 33 GW2_NMCIDT C 60 0 Cidade Termi Ciudad Termi Final City Cidade Termino Ciudad Termino City Termino @! - x x x x x x x x x x x x x x x x IF(!INCLUI,POSICIONE("GU7",1,XFILIAL("GU7")+GW2->GW2_CIDDES,"GU7_NMCID"),"") - 1 xx x x - - - N V V - - - - - - - - - 3 S - - N N N - - - 1 2 - - - 85917 0
GW2 34 GW2_TEST1 C 30 0 Testemunha 1 Testigo 1 Witness 1 Nome da Testemunha 1 Nombre del Testigo 1 Witness 1 Name @! - x x x x x x x x x x x x x x x x - - 1 x x x - - - N A R - - - - - - - - - 3 S - - N N N - - - 1 2 - - - 85918 0
GW2 35 GW2_TEST2 C 30 0 Testemunha 2 Testigo 2 Witness 2 Nome da Testemunha 2 Nombre del Testigo 2 Witness 2 Name @! - x x x x x x x x x x x x x x x x - - 1 x x x - - - N A R - - - - - - - - - 3 S - - N N N - - - 1 2 - - - 85919 0
GW2 36 GW2_USUCRI C 50 0 Usuario Usuario User Usuario Criacao Usuario Creacion User Creation - - x x x x x x x x x x x x x x x x cUserName - 1 x x x - - - S V R - - - - - - - - - 4 S - - N N N - - - 1 2 - - - 85920 0
GW2 37 GW2_ACINT C 1 0 Acao de Int Accion Inte Integr.Actio Acao de Integracao Accion de Integracion Integration Action - - x x x x x x x x x x x x x x x x - - 1 xx x x - - - N V V - - 1=Financeiro;2=RH;3=Apropriacao Despesa 1=Financiero;2=RRHH;3=Apropriacion Gasto 1=Financial;2=HR;3=ExpenseAppropriation - - - - 4 S - - N N N - - - 1 2 - - - 85921 0
GW2 38 GW2_SITFIN C 1 0 Situacao Fin Situacion Fi Fin.Status Situacao Financeiro Situacion financiero Financial Status @! Pertence("123456") x x x x x x x x x x x x x x x x INTSITFIN() - 1 x xx x - - - N V R - - 1=Nao Enviado;2=Pendente;3=Rejeitado;4=Atualizado;5=Pendente Cancelamento;6=Não se Aplica 1=No enviado;2=Pendiente;3=Rechazado;4=Actualizado;5=Pendiente Anulación;6=No se aplica 1=Not Sent;2=Pending;3=Rejected;4=Updated;5=Cancellation Pending;6=Does Not Apply - - - - 4 S - - N N N - - - 1 2 - - - 85922 0
GW2 39 GW2_DTFIN D 8 0 Dt Env Finan Fch Env Fina FinanSend.Dt Data Envio ao Financeiro Fecha Envio a Financiero Date of Sending to Financ - - x x x x x x x x x x x x x x x x - - 1 x xx x - - - N V R - - - - - - - - - 4 S - - N N N - - - 1 2 - - - 85923 0
GW2 40 GW2_HRFIN C 5 0 Hr Env Finan Hr Env Finan Fin.Send Hr Hora Envio ao Financeiro Hora Envio a Financiero Send Hour to Financial 99:99 - x x x x x x x x x x x x x x x x - - 1 x xx x - - - N V R - - - - - - - - - 4 S - - N N N - - - 1 2 - - - 85924 0
GW2 41 GW2_USUFIN C 50 0 Usr Env Fin Usr Env Fin Fin.Send Usr Usuario Envio Financeiro Usuario Envio Financiero User Financial Send. - - x x x x x x x x x x x x x x x x - - 1 x xx x - - - N V R - - - - - - - - - 4 S - - N N N - - - 1 2 - - - 85925 0
GW2 42 GW2_SITRH C 1 0 Situacao RH Situacion RH HR Situation Situacao Recursos Humanos Situacion Recursos Humano Human Resources Situation @! Pertence("123456") x x x x x x x x x x x x x x x x INTSITRH() - 1 x xx x - - - N V R - - 1=Nao Enviado;2=Pendente;3=Rejeitado;4=Atualizado;5=Pendente Desatualização;6=Não se Aplica 1=No enviado;2=Pendiente;3=Rechazado;4=Actualizado;5=Pendiente Desactualización;6=No se aplica 1=Not Sent;2=Pending;3=Rejected;4=Updated;5=Outdating Pending;6=Does Not Apply - - - - 4 S - - N N N - - - 1 2 - - - 85926 0
GW2 43 GW2_DTRH D 8 0 Dt Env RH Fch Env RH HR Send. Dt Data Envio ao RH Fecha Envio a RRHH Date of Sending to HR - - x x x x x x x x x x x x x x x x - - 1 x xx x - - - N V R - - - - - - - - - 4 S - - N N N - - - 1 2 - - - 85927 0
GW2 44 GW2_HRRH C 5 0 Hr Env RH Hr Env RH HR Send Hr Hora Envio ao RH Hora Envio al RRHH Send Hour to HR 99:99 - x x x x x x x x x x x x x x x x - - 1 x xx x - - - N V R - - - - - - - - - 4 S - - N N N - - - 1 2 - - - 85928 0
GW2 45 GW2_USURH C 50 0 Usr Env RH Usr Env RH HR Send User Usuario Envio RH Usuario Envio RRHH User HR Send. - - x x x x x x x x x x x x x x x x - - 1 x xx x - - - N V R - - - - - - - - - 4 S - - N N N - - - 1 2 - - - 85929 0
GW2 46 GW2_SITREC C 1 0 Sit Receb Sit Recib Receipt Stat Situacao Recebedoria Situaci necebedoria Receipt Status @! Pertence("123456") x x x x x x x x x x x x x x x x "1" - 1 x xx x - - - N V R - - 1=Nao Enviado;2=Pendente;3=Rejeitado;4=Atualizado;5=Pendente Desatualização;6=Não se Aplica 1=No enviado;2=Pendiente;3=Rechazado;4=Actualizado;5=Pendiente desactualziacion;6=No se aplica 1=Not Sent;2=Pending;3=Rejected;4=Updated;5=Downgrade Pending;6=Non Applicable - - - - 4 S - - N N N - - - 1 2 - - - 85930 0
GW2 47 GW2_DTREC D 8 0 Dt Env Rec Fch Env Rec Dt Sent T.A. Data Envio Recebedoria Fecha Envio Rec. Date Sent Tax Authority - - x x x x x x x x x x x xx x x x - - 1 x xx x - - - N V R - - - - - - - - - 4 S - - N N N - - - 1 2 - - - 85931 0
GW2 48 GW2_HRREC C 5 0 Hr Env Rec Hr Env Rec Tm Sent T.A. Hora Envio Recebedoria Hora Envio Rec. Time Sent Tax Authority 99:99 - x x x x x x x x x x x xx x x x - - 1 x xx x - - - N V R - - - - - - - - - 4 S - - N N N - - - 1 2 - - - 85932 0
GW2 49 GW2_USUREC C 50 0 Usr Env Rec Usr Env Rec Us Sub TA Usuário Envio Recebedoria Usuario Envio Rec. User Subm. Tax Auth. - - x x x x x x x x x x x xx x x x - - 1 x xx x - - - N V R - - - - - - - - - 4 S - - N N N - - - 1 2 - - - 85933 0
GW2 50 GW2_DTCANC D 8 0 Dt Cancela Fch Anulacio Cancel Date Data Cancelamento Fecha de Anulacion Canceling Date - - x x x x x x x x x x x x x x x x - - 1 x x x - - - S V R - - - - - - - - - 4 S - - N N N - - - 1 2 - - - 85934 0
GW2 51 GW2_USUCAN C 50 0 Usuario Canc Usuario Anul Canc.User Usuario Cancelamento. Usuario Anulacion User Canceling. - - x x x x x x x x x x x x x x x x - - 1 x x x - - - N V R - - - - - - - - - 4 S - - N N N - - - 1 2 - - - 85935 0
GW2 52 GW2_OBS M 10 0 Observacoes Observacion Notes Observacoes Observaciones Notes - - x x x x x x x x x x x x x x x x - - 1 x x x - - - N A R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85936 0
GW2 53 GW2_VLBAIN N 12 2 Base INSS Base INSS INSS Base Base de cálculo INSS. Base de calculo INSS. INSS Calculation Base @E 999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 xxxx x - - - N V R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85937 0
GW2 54 GW2_VLBAIR N 12 5 Base IR Base IR Inc Tx Base Base IR Base IR Income Tax Base @E 999,999.99999 - x x x x x x x x x x x x x x x - - 1 xxxx x - - - S V R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85938 0
GW2 55 GW2_VLDEDP N 12 2 Desc Depend Desc Depend Depnt. Disc. Desconto Dependentes Descuento Dependientes Dependent Discount @E 999,999,999.99 - x x x x x x x x x x x x x x x - - 1 xxxx x - - - N V R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85939 0
GW2 56 GW2_VLINOE N 12 2 INSS Out Emp INSS Otr Emp INSS Oth Com INSS Outras Empresas INSS Otras Empresas INSS Other Companys @E 999,999,999.99 - x x x x x x x x x x x x x x x - - 1 xxxx x - - - N A R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85940 0
GW2 57 GW2_INSSPE N 12 2 INSS Periodo INSS Periodo Period INSS INSS do Periodo. INSS del Periodo. INSS Period @E 999,999,999.99 - x x x x x x x x x x x x x x x - - 1 xxxx x - - - N V R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85941 0
GW2 58 GW2_VLREIR N 12 2 VL DED IR VL DED IR IR Deduc.Val VL Deduzir Base IR VL Deducir Base IR Inc.Tax Bas. Deduct. Rate @E 999,999,999.99 - x x x x x x x x x x x x x x x - - 1 xxxx x - - - N A R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85942 0
GW2 59 GW2_VLFRET N 12 2 Frete Contr Flete Contr HiredFreight Frete Contratado Flete Contratado Hired Freight @E 999,999,999.99 - x x x x x x x x x x x x x x x - - 1 xxxx x - - - S V R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85943 0
GW2 60 GW2_VLADIC N 12 2 Adicionais Adicionales Additional Valor Adicional Valor Adicional Additional Value @E 999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 xxxx x - - - N V R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85944 0
GW2 61 GW2_VLDESC N 12 2 Descontos Descuentos Discounts Valor de Desconto. Valor de Descuento. Discount Value @E 999,999,999.99 - x x x x x x x x x x x x x x x - - 1 xxxx x - - - N V R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85945 0
GW2 62 GW2_VLSEST N 12 2 SEST/SENAT SEST/SENAT SEST/SENAT SEST/SENAT SEST/SENAT SEST/SENAT @E 999,999,999.99 - x x x x x x x x x x x x x x x - - 1 xxxx x - - - N V R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85946 0
GW2 63 GW2_VLISS N 12 2 ISS Recolher ISS Recoger ISS Payable ISS a Recolher ISS por Recoger ISS Payable @E 999,999,999.99 - x x x x x x x x x x x x x x x - - 1 xxxx x - - - N V R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85947 0
GW2 64 GW2_VLINSS N 12 2 INSS Terc re INSS Terc re INSS 3rd wit INSS Terceiro Retido INSS Tercero Retenido INSS Third Party Withheld @E 999,999,999.99 - x x x x x x x x x x x x x x x - - 1 xxxx x - - - S V R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85948 0
GW2 65 GW2_VLIRRF N 12 2 IRRF IRRF IRRF Valor IRRF Valor IRRF IRRF Value @E 999,999,999.99 - x x x x x x x x x x x x x x x - - 1 xxxx x - - - N V R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85949 0
GW2 66 GW2_VLLIQ N 12 2 VL Liquido VL Neto Net Value Valor Liquido Valor Neto Net Value @E 999,999,999.99 - x x x x x x x x x x x x x x x - - 1 xxxx x - - - S V R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85950 0
GW2 67 GW2_VLIMP N 12 2 VL Impostos VL Impuesto Tax Value Valor dos Impostos Valor de los Impuestos Tax Value @E 999,999,999.99 - x x x x x x x x x x x x x x x - - 1 xxxx x - - - S V R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85951 0
GW2 68 GW2_VLINEM N 12 2 INSS Pat Em INSS Pat Em INSS Comp Pt INSS parte Empresa INSS parte Empresa INSS Company part @E 999,999,999.99 - x x x x x x x x x x x x x x x - - 1 xxxx x - - - N V R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85952 0
GW2 69 GW2_DSINCD C 5 0 Cod INSS Emp Cod INSS Emp Co.INSS Code Cod Imposto INSS Empre Cod Impuesto INSS Empre Company INSS Tax Code - - x x x x x x x x x x x xx x x x GetNewPar("MV_DSINCD","") - 1 x xx x - - - N A V - - - - - - - - - - S - - S N N - - - 1 2 - - - 85953 0
GW2 70 GW2_DSINCL C 14 0 Cla INSS Emp Cla INSS Emp Co.INSSClass Class Imposto INSS Empres Clas Impuesto INSS Empre Company INSS Tax Class - - x x x x x x x x x x x xx x x x GetNewPar("MV_DSINCL","") - 1 x xx x - - - N A V - - - - - - - - - - S - - N N N - - - 1 2 - - - 85954 0
GW2 71 GW2_DSIACD C 5 0 Cod INSS Aut Cod INSS Aut Freel.INSSCd Cod Imposto INSS Autônomo Cod Impuesto INSS Auton. Freelancer INSS Tax Code - - x x x x x x x x x x x xx x x x GetNewPar("MV_DSIACD","") - 1 x xx x - - - N A V - - - - - - - - - - S - - N N N - - - 1 2 - - - 85955 0
GW2 72 GW2_DSIACL C 14 0 Cla INSS Aut Cla INSS Aut Freel.INSSCl Class INSS Autônomo Clas INSS Autonomo Freelancer INSS Tax Class - - x x x x x x x x x x x xx x x x GetNewPar("MV_DSIACL","") - 1 x xx x - - - N A V - - - - - - - - - - S - - N N N - - - 1 2 - - - 85956 0
GW2 73 GW2_DSSSCD C 5 0 C SEST/SENAT C SEST/SENAT SEST/SENAT C Cod SEST/SENAT Cod SEST/SENAT SEST/SENAT Code - - x x x x x x x x x x x xx x x x GetNewPar("MV_DSSSCD","") - 1 x xx x - - - N A V - - - - - - - - - - S - - N N N - - - 1 2 - - - 85957 0
GW2 74 GW2_DSSSCL C 14 0 C SEST/SENAT C SEST/SENAT SEST/SENAT C Class SEST/SENAT Clas SEST/SENAT SEST/SENAT Class. - - x x x x x x x x x x x xx x x x GetNewPar("MV_DSSSCL","") - 1 x xx x - - - N A V - - - - - - - - - - S - - N N N - - - 1 2 - - - 85958 0
GW2 75 GW2_DSIRCD C 5 0 Cod IRRF Cod IRRF IRRF Code Código Imposto IRRF Codigo Impuesto IRRF IRRF Tax Code - - x x x x x x x x x x x xx x x x GetNewPar("MV_DSIRCD","") - 1 x xx x - - - N A V - - - - - - - - - - S - - N N N - - - 1 2 - - - 85959 0
GW2 76 GW2_DSIRCL C 14 0 Class IRR Clas IRR IRR Class Classificação Imp IRRF Clasificacion Imp IRRF IRRF Tax Class - - x x x x x x x x x x x xx x x x GetNewPar("MV_DSIRCL","") - 1 x xx x - - - N A V - - - - - - - - - - S - - N N N - - - 1 2 - - - 85960 0
GW2 77 GW2_DSISCD C 5 0 Cod ISS Ret Cod ISS Ret Withh.ISS Cd Código Imposto ISS Retido Codigo Impuesto ISS Ret Withheld ISS Tax Code - - x x x x x x x x x x x xx x x x GetNewPar("MV_DSISCD","") - 1 x xx x - - - N A V - - - - - - - - - - S - - N N N - - - 1 2 - - - 85961 0
GW2 78 GW2_DSISCL C 14 0 Cla ISS Ret Cla ISS Ret Withh.ISS Cl Class ISS Retido Clas. ISS Retenido Withheld ISS Tax Class - - x x x x x x x x x x x x x x x GetNewPar("MV_DSISCL","") - 1 - - - - N A V - - - - - - - - - - S - - N N N - - - 1 2 - - - 85962 0
GW2 79 GW2_DSESCO C 2 0 Espécie do C Esp.Contrato Tp.Contract Espécie do Contrato Especie de Contrato Type of Contract @! - x x x x x x x x x x x x x x x x GetNewPar("MV_DSESCO","") - 1 xxxx x - - - N V V - - - - - - - - - - S - - N N N - - - 1 2 - - - 85963 0
GW2 80 GW2_MOTFIN M 10 0 Mot Rej Fin Mt.Rech.Fin Fin.Rej.Rs. Mot. Rejeição Financeiro Motivo Rechazo Financiero Fin.Rejection Reason - - x x x x x x x x x x x x x x x x - - 1 x - - - S V R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85964 0
GW2 81 GW2_MOTRH M 10 0 Mot Rej Rh Mt.Rech.RRHH RH rej.Rs. Moto Rejeição RH Motivo Rechazo RRHH RH Rejection Reason - - x x x x x x x x x x x x x x x x - - 1 x - - - S V R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85965 0
GW2 82 GW2_MOTREC M 10 0 Mot Rej Rec Mt.Rech.Rec Rec.Rej.Rs. Mot. Rejeição Recebimento Mot.Rechazo Recibimiento Rec.Rejection Reason - - x x x x x x x x x x x x x x x x - - 1 x - - - S V R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85966 0
GW2 83 GW2_MATREX C 8 0 Mat Trad Ext Mat Trad Ext Ext.Trad.HO Matriz Traducao Externa Matriz traduccion externa Ext.Transl. Headoffice - - x x x x x x x x x x x x x x x x GetNewPar("MV_MATREX","") - 1 xx - - - N V V - - - - - - - - - - S - - N - N - - - 1 2 - - - 85967 0
GW2 84 GW2_CIOT C 12 0 CIOT CIOT CIOT Cd. Ident. Operacao trans Cd. Ident. Operac trans Trans Operation Ident Cd @! - x x x x x x x x x x x x x x x x - - 1 x - - - N A R - - - - - - - - - 1 S - - N - N - - - 1 2 - - - 85968 0

Índices da Tabela GW2 (2 índices)

INDICE ORDEM CHAVE DESCRICAO DESCSPA DESCENG PROPRI F3 NICKNAME SHOWPESQ IX_VIRTUAL IX_VIRCUST D_E_L_E_T_ R_E_C_N_O_ R_E_C_D_E_L_
GW2 1 GW2_FILIAL+GW2_NRCONT Nr Contrato Nr Contrato Contract No. S - - S 2 3 - 12695 0
GW2 2 GW2_FILIAL+GW2_CDPROP+GW2_NRCONT Proprietario + Nr Contrato Propietario + Nr Contrato Owner + Contract No. S - - S 2 3 - 12696 0

Perguntas frequentes

Para que serve a tabela GW2 no Protheus?

Ela é utilizada para contratos com autonomos dentro do sistema ERP Protheus.

Como consultar os campos da tabela GW2?

Nesta página você pode visualizar todos os campos, incluindo tipo, tamanho e validações.

O que são os índices da tabela GW2?

Os índices são estruturas que melhoram a performance de busca e acesso aos dados dentro do Protheus.

Exemplo de consulta SQL da tabela GW2

Modelo de query gerado automaticamente com base na estrutura da tabela.

SELECT
    GW2_FILIAL,
    GW2_NRCONT,
    GW2_SITCON,
    GW2_DTCRIA,
    GW2_DTVENC,
    GW2_CDPROP,
    GW2_NMABRV,
    GW2_QTDEIR,
    GW2_CDMTR,
    GW2_NMMTR,
    GW2_DTIMPR,
    GW2_VLMUDE,
    GW2_VLMUEN,
    GW2_CDVEI1,
    GW2_PLACA1,
    GW2_CDVEI2,
    GW2_PLACA2,
    GW2_CDVEI3,
    GW2_PLACA3,
    GW2_LOCCAR,
    GW2_LOCDES,
    GW2_RESCAR,
    GW2_RESDES,
    GW2_PZCARG,
    GW2_PZDESC,
    GW2_QTENTR,
    GW2_PZENTR,
    GW2_QTPESO,
    GW2_QTDIST,
    GW2_CIDORI,
    GW2_NMCIDO,
    GW2_CIDDES,
    GW2_NMCIDT,
    GW2_TEST1,
    GW2_TEST2,
    GW2_USUCRI,
    GW2_ACINT,
    GW2_SITFIN,
    GW2_DTFIN,
    GW2_HRFIN,
    GW2_USUFIN,
    GW2_SITRH,
    GW2_DTRH,
    GW2_HRRH,
    GW2_USURH,
    GW2_SITREC,
    GW2_DTREC,
    GW2_HRREC,
    GW2_USUREC,
    GW2_DTCANC,
    GW2_USUCAN,
    GW2_OBS,
    GW2_VLBAIN,
    GW2_VLBAIR,
    GW2_VLDEDP,
    GW2_VLINOE,
    GW2_INSSPE,
    GW2_VLREIR,
    GW2_VLFRET,
    GW2_VLADIC,
    GW2_VLDESC,
    GW2_VLSEST,
    GW2_VLISS,
    GW2_VLINSS,
    GW2_VLIRRF,
    GW2_VLLIQ,
    GW2_VLIMP,
    GW2_VLINEM,
    GW2_DSINCD,
    GW2_DSINCL,
    GW2_DSIACD,
    GW2_DSIACL,
    GW2_DSSSCD,
    GW2_DSSSCL,
    GW2_DSIRCD,
    GW2_DSIRCL,
    GW2_DSISCD,
    GW2_DSISCL,
    GW2_DSESCO,
    GW2_MOTFIN,
    GW2_MOTRH,
    GW2_MOTREC,
    GW2_MATREX,
    GW2_CIOT
FROM GW2
WHERE
    D_E_L_E_T_ = ' '
    AND GW2_FILIAL = 'VALOR'
    AND GW2_NRCONT = 'VALOR'
    AND GW2_SITCON = 'VALOR'
    AND GW2_DTCRIA BETWEEN '20260501' AND '20260531'
    AND GW2_DTVENC BETWEEN '20260501' AND '20260531'
    AND GW2_CDPROP = 'VALOR'
    AND GW2_NMABRV = 'VALOR'
    AND GW2_QTDEIR = 0
    AND GW2_CDMTR = 'VALOR'
    AND GW2_NMMTR = 'VALOR'
    AND GW2_DTIMPR BETWEEN '20260501' AND '20260531'
    AND GW2_VLMUDE = 0
    AND GW2_VLMUEN = 0
    AND GW2_CDVEI1 = 'VALOR'
    AND GW2_PLACA1 = 'VALOR'
    AND GW2_CDVEI2 = 'VALOR'
    AND GW2_PLACA2 = 'VALOR'
    AND GW2_CDVEI3 = 'VALOR'
    AND GW2_PLACA3 = 'VALOR'
    AND GW2_LOCCAR = 'VALOR'
    AND GW2_LOCDES = 'VALOR'
    AND GW2_RESCAR = 'VALOR'
    AND GW2_RESDES = 'VALOR'
    AND GW2_PZCARG = 'VALOR'
    AND GW2_PZDESC = 'VALOR'
    AND GW2_QTENTR = 0
    AND GW2_PZENTR = 'VALOR'
    AND GW2_QTPESO = 0
    AND GW2_QTDIST = 0
    AND GW2_CIDORI = 'VALOR'
    AND GW2_NMCIDO = 'VALOR'
    AND GW2_CIDDES = 'VALOR'
    AND GW2_NMCIDT = 'VALOR'
    AND GW2_TEST1 = 'VALOR'
    AND GW2_TEST2 = 'VALOR'
    AND GW2_USUCRI = 'VALOR'
    AND GW2_ACINT = 'VALOR'
    AND GW2_SITFIN = 'VALOR'
    AND GW2_DTFIN BETWEEN '20260501' AND '20260531'
    AND GW2_HRFIN = 'VALOR'
    AND GW2_USUFIN = 'VALOR'
    AND GW2_SITRH = 'VALOR'
    AND GW2_DTRH BETWEEN '20260501' AND '20260531'
    AND GW2_HRRH = 'VALOR'
    AND GW2_USURH = 'VALOR'
    AND GW2_SITREC = 'VALOR'
    AND GW2_DTREC BETWEEN '20260501' AND '20260531'
    AND GW2_HRREC = 'VALOR'
    AND GW2_USUREC = 'VALOR'
    AND GW2_DTCANC BETWEEN '20260501' AND '20260531'
    AND GW2_USUCAN = 'VALOR'
    AND GW2_VLBAIN = 0
    AND GW2_VLBAIR = 0
    AND GW2_VLDEDP = 0
    AND GW2_VLINOE = 0
    AND GW2_INSSPE = 0
    AND GW2_VLREIR = 0
    AND GW2_VLFRET = 0
    AND GW2_VLADIC = 0
    AND GW2_VLDESC = 0
    AND GW2_VLSEST = 0
    AND GW2_VLISS = 0
    AND GW2_VLINSS = 0
    AND GW2_VLIRRF = 0
    AND GW2_VLLIQ = 0
    AND GW2_VLIMP = 0
    AND GW2_VLINEM = 0
    AND GW2_DSINCD = 'VALOR'
    AND GW2_DSINCL = 'VALOR'
    AND GW2_DSIACD = 'VALOR'
    AND GW2_DSIACL = 'VALOR'
    AND GW2_DSSSCD = 'VALOR'
    AND GW2_DSSSCL = 'VALOR'
    AND GW2_DSIRCD = 'VALOR'
    AND GW2_DSIRCL = 'VALOR'
    AND GW2_DSISCD = 'VALOR'
    AND GW2_DSISCL = 'VALOR'
    AND GW2_DSESCO = 'VALOR'
    AND GW2_MATREX = 'VALOR'
    AND GW2_CIOT = 'VALOR'