Dicionário Protheus
Início

Tabela DVC no Protheus

Tabela de Ajustes

O que é a tabela DVC no Protheus?

A tabela DVC faz parte do sistema ERP Protheus da TOTVS e é utilizada para tabela de ajustes.

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 DVC 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 DVC, incluindo todos os campos e índices relacionados.

Propriedades da Tabela

Propriedade Valor
X2_CHAVE DVC
X2_PATH \DATA\
X2_ARQUIVO DVC990
X2_NOME Tabela de Ajustes
X2_NOMESPA Tabla de ajustes
X2_NOMEENG Adjustments Table
X2_ROTINA -
X2_MODO C
X2_MODOUN E
X2_MODOEMP E
X2_DELET 0
X2_TTS -
X2_UNICO -
X2_PYME S
X2_MODULO 43
X2_DISPLAY DVC_FILIAL+DVC_TABFRE+DVC_TIPTAB+DVC_SEQTAB+DVC_LOJCLI+DVC_SERVIC+DVC_CDRORI+DVC_CDRDES+DVC_CODPRO
X2_SYSOBJ TMSA750
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_ 3563
R_E_C_D_E_L_ 0

Campos da Tabela DVC (22 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_
DVC 01 DVC_FILIAL C 2 0 Filial Sucursal Branch Filial Sucursal Branch - - x x x x x x x x x x x x x x x - - 1 - - - - - - - - - - - - - - - 033 - S - - N N N - - - 1 2 - - - 55731 0
DVC 02 DVC_TABFRE C 4 0 Tab Frete Tab Flete Freight Tb. Tabela de Frete Tabla de Flete Freight Table @! ExistCpo("DTL",M->DVC_TABFRE+AllTrim(M->DVC_TIPTAB)) x x x x x x xx x x x x x x x x x - - 1 x xx - - - S V - - - - - - - - - - - S - - N N N - - - 1 1 - - - 55732 0
DVC 03 DVC_DESTAB C 50 0 Descricao Descripcion Description Descricao Descripcion Description @! - x x x x x x x x x x x x x x x x Posicione('DTL',1,xFilial('DTL')+IIf(INCLUI,M->(DVC_TABFRE+DVC_TIPTAB),DVC->(DVC_TABFRE+DVC_TIPTAB)),'DTL_DESCRI') - 1 xx x - - - S V V - - - - - - - Posicione('DTL',1,xFilial('DTL')+DVC->DVC_TABFRE+DVC->DVC_TIPTAB,'DTL_DESCRI') - - S - - N - N - - - 1 2 - - - 55733 0
DVC 04 DVC_TIPTAB C 2 0 Tipo Tipo Type Tipo da Tabela de Frete Tipo de Tabla de Flete Freight Table Type @! ExistCpo("SX5","M5"+M->DVC_TIPTAB) .And. ExistCpo("DTL",M->DVC_TABFRE+M->DVC_TIPTAB) x x x x x x xx x x x x x x x x x - M5 1 xx - - - S V - - - - - - - - - - - S - - N N N - - - 1 1 - - - 55734 0
DVC 05 DVC_DESTIP C 30 0 Desc. Tipo Desc. Tipo Desc. Type Descricao Tipo da Tabela Descripcion Tipo da Tabel Tp Table Description @! - x x x x x x xx x x x x x x x x Tabela("M5",IIf(INCLUI,M->DVC_TIPTAB,DVC->DVC_TIPTAB),.F.) - 1 x xx - - - S V V - - - - - - - Tabela("M5",DVC->DVC_TIPTAB,.F.) - - S - - N N N - - - 1 1 - - - 55735 0
DVC 06 DVC_SEQTAB C 2 0 Sequencia Secuencia Sequence Sequencia da Tabela Secuencia de la Tabla Table Sequence @! - x x x x x x xx x x x x x x x x "00" - 1 x xx - - - S V - - - - - - - - - - - S - - N N N - - - 1 1 - - - 55736 0
DVC 07 DVC_CODCLI C 6 0 Cod.Cliente Cod.Cliente Cod.Customer Cliente Cliente Customer @! ExistCpo("SA1",M->DVC_CODCLI+ALLTRIM(M->DVC_LOJCLI)) .And. TMSA011Vld() .And. TM011SeqTab() x x x x x x xx x x x x x x x x - SA1 1 x xx - S - - - - - - - - - - TMA011WheCli() - 001 - S - - N N N - - - 1 1 - - - 55737 0
DVC 08 DVC_LOJCLI C 2 0 Loja Cliente Tienda Clien Loja Custome Loja do Cliente Tienda del Cliente Customer Store @! ExistCpo("SA1",M->DVC_CODCLI+M->DVC_LOJCLI) .And. TMSA011Vld() .And. TM011SeqTab() x x x x x x xx x x x x x x x x - - 1 x xx - S - - - - - - - - - - TMA011WheCli() - 002 - S - - N N N - - - 1 1 - - - 55738 0
DVC 09 DVC_NOMCLI C 50 0 Nome Cliente Nom Cliente Custm.Name Nome do Cliente Nombre del Cliente Customer Name @! - x x x x x x xx x x x x x x x x Iif(Inclui,"",Posicione("SA1",1,xFilial("SA1")+DVC->DVC_CODCLI+DVC->DVC_LOJCLI,"A1_NOME")) - 1 x x - - - - V V - - - - - - - Posicione("SA1",1,xFilial("SA1")+DVC->DVC_CODCLI+DVC->DVC_LOJCLI,"A1_NOME") 175 - S - - N N N - - - 1 2 - - - 55739 0
DVC 10 DVC_SERVIC C 3 0 Servico Servicio Service Servico Servicio Service @! Tmsa011Vld() .And. TM011SeqTab() x x x x x x xx x x x x x x x x - DLR 1 x x - S - S - - - - - - - - TMSA011Whe() - 012 - S - - N N N - - - 1 2 - - - 55740 0
DVC 11 DVC_DESSER C 30 0 Desc.Servico Desc.Servici Service Desc Descricao Servico Descripcion Servicio Service Desc. @! - x x x x x x xx x x x x x x x x If(Inclui,"",Tabela("L4",DVC->DVC_SERVIC,.F.)) - 1 x x x - - - S V V - - - - - - - Tabela("L4",DVC->DVC_SERVIC,.F.) - - S - - N N N - - - 1 2 - - - 55741 0
DVC 12 DVC_CDRORI C 6 0 Cod.Reg.Ori. Cod.Reg.Ori. Orig.Reg.Cd. Regiao de Origem Region de Origen Origin Region @! ExistCpo("DUY",M->DVC_CDRORI,1) .And. TMSA011Vld() x x x x x x xx x x x x x x x x x - DUY 1 xx - S - S - - - - - - - - TMSA011Whe() - - - S - - N N N - - - 1 1 - - - 55742 0
DVC 13 DVC_REGORI C 30 0 Reg.Origem Reg.Origen Origin Reg. Descricao Regiao Origem Descripcion Regiao Origem Descr. of Origin Region @! If(Inclui,"",TmsPesqRegiao("DVC_CDRORI","DVC_REGORI")) x x x x x x xx x x x x x x x x Iif(Inclui,"",Posicione("DUY",1,xFilial("DUY")+DVC->DVC_CDRORI,"DUY_DESCRI")) - 1 x x x - - - S V V - - - - - - - Posicione("DUY",1,xFilial("DUY")+DVC->DVC_CDRORI,"DUY_DESCRI") - - S - - N N N - - - 1 2 - - - 55743 0
DVC 14 DVC_CDRDES C 6 0 Cod.Reg.Des Cod.Reg.Des Des.Reg.Code Regiao Destino Region Destino Destination Region @! ExistCpo("DUY",M->DVC_CDRDES,1) .And. TMSA011Vld() x x x x x x xx x x x x x x x x x - DUY 1 xx - S - S - - - - - - - - TMSA011Whe() - - - S - - N N N - - - 1 1 - - - 55744 0
DVC 15 DVC_REGDES C 30 0 Reg.Destino Reg.Destino Dest. Region Descricao Regiao Destino Descripcion Region Destin Descr. of Destin. Region @! If(Inclui,"",TmsPesqRegiao("DVC_CDRDES","DVC_REGDES")) x x x x x x xx x x x x x x x x Iif(Inclui,"",Posicione("DUY",1,xFilial("DUY")+DVC->DVC_CDRDES,"DUY_DESCRI")) - 1 x x x - - - S V V - - - - - - - Posicione("DUY",1,xFilial("DUY")+DVC->DVC_CDRDES,"DUY_DESCRI") - - S - - N N N - - - 1 2 - - - 55745 0
DVC 16 DVC_CODPRO C 15 0 Cod. Produto Cod. Product Product Code Produto Producto Product @! Tmsa011Vld() .And. TM011SeqTab() x x x x x x xx x x x x x x x x - SB1 1 x x - S - S - - - - - - - - TMSA011Whe() - 030 - S - - N N N - - - 1 2 - - - 55746 0
DVC 17 DVC_DESPRO C 50 0 Desc.Produto Desc.Product Product Desc Descricao Produto Descripcion Produto Product Desc. @! - x x x x x x xx x x x x x x x x If(Inclui,"",Posicione("SB1",1,xFilial("SB1")+DVC->DVC_CODPRO,"B1_DESC")) - 1 x x x - - - S V V - - - - - - - Posicione("SB1",1,xFilial("SB1")+DVC->DVC_CODPRO,"B1_DESC") 171 - S - - N N N - - - 1 2 - - - 55747 0
DVC 18 DVC_TIPFRE C 1 0 Tipo Frete Tipo Flete Freight Type Tipo do Frete Tipo del Flete Freight Type @! Pertence("12") x x x x x x xx x x x x x x x x - - 1 xxx - - - N A V - - 1=CIF;2=FOB 1=CIF;2=FOB 1=CIF;2=FOB - - - - - S - - N N N - - - 1 1 - - - 55748 0
DVC 19 DVC_VIGCON C 1 0 Vig.Contrato Vig.Contrato Contr.Eff.Dt Vigencia do Contrato Vigencia del Contrato Contract Effective Date @! Pertence("12") x x x x x x xx x x x x x x x x "1" - 1 xxx - - - N A V - - 1=Atual;2=Proxima 1=Actual;2=Proxima 1=Current;2=Next - - - - - S - - N N N - - - 1 1 - - - 55749 0
DVC 20 DVC_MOEDA N 2 0 Moeda Moneda Currency Moeda Moneda Currency 99 - x x x x x x xx x x x x x x x x Posicione('DTL',1,xFilial('DTL')+Iif(Inclui,M->(DVC_TABFRE+DVC_TIPTAB),DVC->(DVC_TABFRE+DVC_TIPTAB)),'DTL_MOEDA') - 1 xx - - - - V V - - - - - - - - - - S - - N N N - - - 1 2 - - - 55750 0
DVC 21 DVC_CODNEG C 2 0 Cod Negociac Cod Negociac Negot. Code Código da Negociação Codigo de negociacion Negotiation Code @! (Vazio() .Or. Existcpo("DDB")) .And. TMSA011Vld() x x x x x x x x x x x x x x x x - DDB1 1 xx - S - S A R - - - - - - TMSA011Whe() - 119 - S - - N - N - - - 1 2 - - - 55751 0
DVC 22 DVC_DESNEG C 30 0 Desc Neg Ctr Desc Neg Con Ctr Neg Desc Descr Negociação Contrato Descr Negociac. Contrato Contract Negotiation Desc @! - x x x x x x x x x x x x x x x x IIF(INCLUI,"",POSICIONE("DDB",1,XFILIAL("DDB") + DVC->DVC_CODNEG,"DDB_DESCRI")) - 1 xx - - - S V V - - - - - - - POSICIONE("DDB",1,XFILIAL("DDB") + DVC->DVC_CODNEG,"DDB_DESCRI") - - S - - N - N - - - 1 2 - - - 55752 0

Índices da Tabela DVC (8 í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_
DVC 1 DVC_FILIAL+DVC_TABFRE+DVC_TIPTAB+DVC_CDRORI+DVC_CDRDES+DVC_CODCLI+DVC_LOJCLI+DVC_SEQTAB+DVC_CODPRO+DVC_SERVIC+DVC_CODNEG Tab Frete + Tipo + Cod.Reg.Ori. + Cod.Reg.Des + Cod.Cliente + Loja Cli Tab Flete + Tipo + Cod.Reg.Ori. + Cod.Reg.Des + Cod.Cliente + Tienda C Freight Tb. + Type + Orig.Reg.Cd. + Des.Reg.Code + Cod.Customer + Loja S DTL+XXX+DUY+DUY+SA1+XXX+XXX+SB1+DLJ - S 2 3 - 8536 0
DVC 2 DVC_FILIAL+DVC_CODCLI+DVC_LOJCLI+DVC_TABFRE+DVC_TIPTAB+DVC_CDRORI+DVC_CDRDES+DVC_CODPRO+DVC_SERVIC+DVC_SEQTAB Cod.Cliente + Loja Cliente + Tab Frete + Tipo + Cod.Reg.Ori. + Cod.Reg Cod.Cliente + Tienda Clien + Tab Flete + Tipo + Cod.Reg.Ori. + Cod.Reg Cod.Customer + Loja Custome + Freight Tb. + Type + Orig.Reg.Cd. + Des. S SA1+XXX+DTL+XXX+DUY+DUY+SB1+DLJ+XXX - S 2 3 - 8537 0
DVC 3 DVC_FILIAL+DVC_CODCLI+DVC_LOJCLI+DVC_CDRORI+DVC_CDRDES+DVC_TABFRE+DVC_TIPTAB+DVC_SEQTAB+DVC_CODPRO+DVC_SERVIC Cod.Cliente + Loja Cliente + Cod.Reg.Ori. + Cod.Reg.Des + Tab Frete + Cod.Cliente + Tienda Clien + Cod.Reg.Ori. + Cod.Reg.Des + Tab Flete + Cod.Customer + Loja Custome + Orig.Reg.Cd. + Des.Reg.Code + Freight Tb S SA1+XXX+DUY+DUY+DTL+XXX+XXX+SB1+DLJ - S 2 3 - 8538 0
DVC 4 DVC_FILIAL+DVC_CDRORI+DVC_CDRDES+DVC_TABFRE+DVC_TIPTAB+DVC_SEQTAB+DVC_CODPRO+DVC_SERVIC Cod.Reg.Ori. + Cod.Reg.Des + Tab Frete + Tipo + Sequencia + Cod. Produ Cod.Reg.Ori. + Cod.Reg.Des + Tab Flete + Tipo + Secuencia + Cod. Produ Orig.Reg.Cd. + Des.Reg.Code + Freight Tb. + Type + Sequence + Product S DUY+DUY+DTL+XXX+XXX+SB1+DLJ - S 2 3 - 8539 0
DVC 5 DVC_FILIAL+DVC_SEQTAB+DVC_CODCLI+DVC_LOJCLI+DVC_TABFRE+DVC_CDRORI+DVC_CDRDES Sequencia + Cod.Cliente + Loja Cliente + Tab Frete + Cod.Reg.Ori. + Co Secuencia + Cod.Cliente + Tienda Clien + Tab Flete + Cod.Reg.Ori. + Co Sequence + Cod.Customer + Loja Custome + Freight Tb. + Orig.Reg.Cd. + S XXX+SA1+XXX+DTL+DUY+DUY - S 2 3 - 8540 0
DVC 6 DVC_FILIAL+DVC_TABFRE+DVC_TIPTAB+DVC_CODCLI+DVC_LOJCLI+DVC_CDRORI+DVC_CDRDES+DVC_SEQTAB Tab Frete + Tipo + Cod.Cliente + Loja Cliente + Cod.Reg.Ori. + Cod.Reg Tab Flete + Tipo + Cod.Cliente + Tienda Clien + Cod.Reg.Ori. + Cod.Reg Freight Tb. + Type + Cod.Customer + Loja Custome + Orig.Reg.Cd. + Des. S DLJ+DTL+XXX - S 2 3 - 8541 0
DVC 7 DVC_FILIAL+DVC_CODCLI+DVC_LOJCLI+DVC_TABFRE+DVC_TIPTAB+DVC_CDRORI+DVC_CDRDES+DVC_CODPRO+DVC_CODNEG+DVC_SERVIC+DVC_SEQTAB Cod.Cliente + Loja Cliente + Tab Frete + Tipo + Cod.Reg.Ori. + Cod.Reg Cod.Cliente + Tienda Clien + Tab Flete + Tipo + Cod.Reg.Ori. + Cod.Reg Cod.Customer + Loja Custome + Freight Tb. + Type + Orig.Reg.Cd. + Des. S - - S 2 3 - 8542 0
DVC 8 DVC_FILIAL+DVC_TABFRE+DVC_TIPTAB+DVC_CDRORI+DVC_CDRDES+DVC_CODCLI+DVC_LOJCLI+DVC_SEQTAB+DVC_CODPRO+DVC_CODNEG+DVC_SERVIC Tab Frete + Tipo + Cod.Reg.Ori. + Cod.Reg.Des + Cod.Cliente + Loja Cli Tab Flete + Tipo + Cod.Reg.Ori. + Cod.Reg.Des + Cod.Cliente + Tienda C Freight Tb. + Type + Orig.Reg.Cd. + Des.Reg.Code + Cod.Customer + Loja S - - S 2 3 - 8543 0

Perguntas frequentes

Para que serve a tabela DVC no Protheus?

Ela é utilizada para tabela de ajustes dentro do sistema ERP Protheus.

Como consultar os campos da tabela DVC?

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

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

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