Dicionário Protheus
Início
O Poder da Hiperautomação

Tabela CDV no Protheus

INFORMACOES ADICIONAIS DA APUR

O que é a tabela CDV no Protheus?

A tabela CDV faz parte do sistema ERP Protheus da TOTVS e é utilizada para informacoes adicionais da apur.

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

Propriedades da Tabela

Propriedade Valor
X2_CHAVE CDV
X2_PATH \DATA\
X2_ARQUIVO CDV990
X2_NOME INFORMACOES ADICIONAIS DA APUR
X2_NOMESPA INFORMAC.ADICION.DE CALCULO
X2_NOMEENG CALCULATION ADDIT.INFORMATION
X2_ROTINA -
X2_MODO E
X2_MODOUN E
X2_MODOEMP E
X2_DELET 0
X2_TTS -
X2_UNICO CDV_FILIAL+CDV_PERIOD+CDV_CODAJU+CDV_LIVRO+CDV_DOC+CDV_SERIE+CDV_CLIFOR+CDV_LOJA+CDV_CFOP+CDV_DESCR+CDV_ID
X2_PYME S
X2_MODULO 9
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_ 2216
R_E_C_D_E_L_ 0

Campos da Tabela CDV (32 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_
CDV 01 CDV_FILIAL C 2 0 Filial Sucursal Branch Filial do Sistema Sucursal del Sistema System Branch - - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - 033 - S - - N N N - - - 1 2 - - - 35124 0
CDV 02 CDV_PERIOD C 6 0 Per(AAAAMM) Per(AAAAMM) Per(YYYYMM) Periodo de apuracao (AAAA Periodo de calculo (AAAA Calculation Period (YYYY @! PerValido(M->CDV_PERIOD) x x x x x x x x x x x x x x x xx - - 1 x - - - S - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 35125 0
CDV 03 CDV_CODAJU C 8 0 Cod.Ajuste Cod.Ajuste Adjust. Cd. Cod.Ajuste Cod.Ajuste Adjustment Code @! existcpo('CDY') x x x x x x x x x x x x x x x xx - CDY 1 x x - S - S - - - - - - - - - - - - S - - N N N - - - 1 1 - - - 35126 0
CDV 04 CDV_DESCR C 254 0 Descrição Descripción Description Descrição do Ajuste Descripción del ajuste Adjustment description @! - x x x x x x x x x x x x x x x x - - 1 x - - - S - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 35127 0
CDV 05 CDV_LIVRO C 1 0 Nr. Livro Nr. Libro Book No. Numero do Livro Numero del Libro Number of Book @! - x x x x x x x x x x x x x x x x x - - 1 x xx - - - S A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 35128 0
CDV 06 CDV_VALOR N 14 2 Valor Valor Value Valor de referencia Valor de referencia Reference Value @E 99,999,999,999.99 Positivo() x x x x x x x x x x x x x x x x - - 1 x - - - S - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 35129 0
CDV 07 CDV_DOC C 9 0 Numero NF Numero Fact Ivc Number Numero NF Numero Factura Ivc Number @! - x x x x x x x x x x x x x x x x - - 1 x - - - S A - - - - - - - - - 018 - S - - N - N - - - 1 2 - - - 35130 0
CDV 08 CDV_SERIE C 3 0 Serie Serie Serial Serie Serie Serial !!! - x x x x x x x x x x x x x x x x - - 1 x - - - S A - - - - - - - - - 094 - S - - N - N - - - 1 2 - - - 35131 0
CDV 09 CDV_CLIFOR C 6 0 Cli/For Cli/Prov Cus/Sup Cli/For Cli/Prov Cust./Supl. @! - x x x x x x x x x x x x x x x x - - 1 x - - - S A - - - - - - - - - 001 - S - - N - N - - - 1 2 - - - 35132 0
CDV 10 CDV_LOJA C 2 0 Loja Tienda Shop Loja Tienda Shop @! - x x x x x x x x x x x x x x x x - - 1 x x - - - S A R - - - - - - - - 002 - S - - N - N - - - 1 2 - - - 35133 0
CDV 11 CDV_AUTO C 1 0 Apur.Auto Cálc.Auto Auto Calc Apur.Auto Cálc.Auto Auto Calculation @! Pertence(" 12S") x x x x x x x x x x x x x x x x "2" - 1 x - - - N V R - - 1=Calc.Sistema;2=Calc. Usuário; S=Apuração 1=Calc.Sistema;2=Calc. Usuario; S=Cálculo 1=System Calc.;2=User Calc.; S=Calculation - - - - - S - - N - N - - - 1 2 - - - 35134 0
CDV 12 CDV_CFOP C 5 0 CFOP CFOP CFOP CFOP CFOP CFOP @! ExistCpo('SX5','13'+M->CDV_CFOP) x x x x x x x x x x x x x x x x - 13 1 x - - - S A R - - - - - - - - - - S - - N - N - - - 1 1 - - - 35135 0
CDV 13 CDV_NUMITE C 4 0 Num. Item Nº Ítem Item No. Número Item Número del ítem Item Number @! - x x x x x x x x x x x x x x x x - - 1 xx - - - S A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 35136 0
CDV 14 CDV_SEQ C 3 0 Seq. Manut Sec. Manut Maint. Seq Sequência Manutenção Secuencia de mantenimient Maintenance Sequence @! - x x x x x x x x x x x x x x x x - - 1 xx - - - S V R - - - - - - - - - - S - - N - N - - - 1 2 - - - 35137 0
CDV 15 CDV_SDOC C 3 0 Série Doc. Serie Doc. Doc. Series Série do Documento Fiscal Serie del documento fisca Tax Document Series !!! - x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - 095 - S - - N - N - - - 1 2 - - - 35138 0
CDV 16 CDV_TPMOVI C 1 0 Tp movimento Tp Movimient Transaction Tipo de Movimento Tipo del movimiento Transaction type @! Pertence(" ES") x x x x x x x x x x x x x x x x - - 1 xx - - - S A R - - E=Entrada;S=Saída E=Entrada;S=Salida I=Input, O=Output - - - - - S - - N - N - - - 1 2 - - - 35139 0
CDV 17 CDV_ESPECI C 5 0 Espec. Doc. Clase Doc. Doc Type Espécie Documento Clase de documento Document Type @! EXISTCPO("SX5","42"+M->CDV_ESPECI) x x x x x x x x x x x x x x x x - 42 1 xx x - - - S A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 35140 0
CDV 18 CDV_FORMUL C 1 0 Formul. Prop Formul. Prop Own Form Formulátio Próprio Formulario propio Own Form @! Pertence(" SN") x x x x x x x x x x x x x x x x - - 1 xx - - - S A R - - S=Sim;N=Nao S=Sí;N=No S=Yes;N=No - - - - - S - - N - N - - - 1 2 - - - 35141 0
CDV 19 CDV_ID C 36 0 Chave Clave Key Chave Clave Key @! - x x x x x x x x x x x x x x x x FWUUID("CDV") - 1 x - - - N V R - - - - - - - - - - S - - N - N - - - 1 2 - - - 35142 0
CDV 20 CDV_NFE C 1 0 Gera NFE Genera FE Generate eIn Considera código para NFE Considera código para FE Consider code for eInvoic @! pertence(" 123") x x x x x x x x x x x x x x x x - - 1 xx x - - - N A R - - 1=SIM;2=Não;3=Não Gerar E115 1=SÍ;2=No;3=No generar E115 1=YES;2=No;3=Do Not Gen E115 - - - - - S - - N - N - - - 1 2 - - - 35143 0
CDV 21 CDV_ZERAVL C 1 0 Zera Valor ? ¿Val en cero Clear? Zera valor do campo 3 Valor en 0 del campo 3 Clear value of field 3 @! Pertence(" 12") x x x x x x x x x x x x x x x x "2" - 1 xx x - - - N A R - - 1=Sim;2=Não 1=Sí;2=No 1=Yes;2=No - - - - - S - - N - N - - - 1 2 - - - 35144 0
CDV 22 CDV_REGCAL C 6 0 Reg. Cálculo Rég. Cálculo Calc.Rule Regra de Cálculo Regla de cálculo Calculation Rule - existcpo("F2B") .Or. Vazio() x x x x x x x x x x x x x x x x - F2B 1 x - - - S A R - - - - - - - - 139 - S - - S - N - - - 1 2 - - - 35145 0
CDV 23 CDV_VLOUTR N 16 2 Vlr ICMS Out Val ICMS Oct Oth ICMS Val Considera Valor ICMS Outr Considera valor ICMS Otr Consider ICMS Value Other @E 9,999,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - S A R - - - - - - - - - - S - - S - N - - - 1 2 - - - 35146 0
CDV 24 CDV_CODMSG C 6 0 Cod Msg Lanc Cód Msj Asto Entry Msg Co Cod Msg Lancamento Cód Msj Asiento Entry Msg Code - Vazio().Or.ExistCpo('CJ8') x x x x x x x x x x x x x x x x - CJ8 1 x - - - S A R - - - - - - - - 139 - S - - S - N - - - 1 2 - - - 35147 0
CDV 25 CDV_CODCPL C 6 0 Cod Msg Comp Cód Msj Comp Comp Msg Cod Cod Msg Complementar Cód Msj Complement Complementary Msg Code - Vazio().Or.ExistCpo('CJ8') x x x x x x x x x x x x x x x x - CJ8 1 x - - - S A R - - - - - - - - 139 - S - - S - N - - - 1 2 - - - 35148 0
CDV 26 CDV_TXTDSC C 6 0 Cod Msg Desc Cód Msj Desc Descr Msg Co Cod Msg Descri Reg 0460 Cód Msj Descri Reg 0460 Reg Descr Msg Code 0460 - Vazio().Or.ExistCpo('CJ8') x x x x x x x x x x x x x x x x - CJ8 1 x - - - S A R - - - - - - - - 139 - S - - S - N - - - 1 2 - - - 35149 0
CDV 27 CDV_OPBASE C 2 0 Op. Base Op. Base Base Op. Opção de Base Opción de Base Base option @! - x x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N - N - - - 1 2 - - - 35150 0
CDV 28 CDV_IDMSG C 36 0 Id Msg CJL Id Msg CJL CJL Msg ID Amarracao Id Msg CDVxCJL Vínculo Id Msg CDVxCJL CDVxCJL Msg ID Binding @! - x x x x x x x x x x x x x x x x - - 1 x - - - N A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 35151 0
CDV 29 CDV_OPALIQ C 2 0 Op. Aliquota Op. Alícuota Rate Op. Opção de Aliquota Opción de alícuota Rate Option @! - x x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N - N - - - 1 2 - - - 35152 0
CDV 30 CDV_AGRLAN C 2 0 Agrup CodLan Agrup CodReg Group EntCod Agrupa Cod Lancto Agrupa Cód Regis Group Entity Code - - x x x x x x x x x x x x x x x x - - 1 x - - - S A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 35153 0
CDV 31 CDV_TPLANC C 1 0 Tipo Lanc Tipo Regis. Entry Type Tipo de Código de Lanc Tipo de código de Reg. Entry Code Type - Pertence("123 ") x x x x x x x x x x x x x x x x " " - 1 xx - - - - A R - - 1=Credito Presumido; 2=Isenção; 3=Redução de Base de Calculo; 1=Crédito previsto; 2=Exención; 3=Reducción de base de cálculo. 1=Presumed Credit; 2=Exemption; 3=Calculation Base Reduction; - - - - - S - - N - N - - - 1 2 - - - 35154 0
CDV 32 CDV_PCLANC N 6 2 Pc. Cod. Lan Porc. Cód. R Ent Code % Perc. utilizado pelo cód. Porc. utilizado por Cód. Perc. Used by Code @E 999.99 - x x x x x x x x x x x x x x x x 0 - 1 xx - - - - A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 35155 0

Índices da Tabela CDV (4 í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_
CDV 1 CDV_FILIAL+CDV_PERIOD+CDV_CODAJU+CDV_LIVRO+CDV_DOC+CDV_SERIE+CDV_CLIFOR+CDV_LOJA+CDV_CFOP Per(AAAAMM) + Cod.Ajuste + Nr. Livro + Numero NF + Serie + Cli/For + L Per(AAAAMM) + Cod.Ajuste + Nr. Libro + Numero Fact + Serie + Cli/Prov Per(YYYYMM) + Adjust. Cd. + Book No. + Ivc Number + Serial + Cus/Sup + S - - S 2 3 - 5385 0
CDV 2 CDV_FILIAL+CDV_PERIOD+CDV_LIVRO Per(AAAAMM) + Nr. Livro Per(AAAAMM) + Nr. Libro Per(YYYYMM) + Book No. S - - S 2 3 - 5386 0
CDV 3 CDV_FILIAL+CDV_PERIOD+CDV_CODAJU+CDV_CFOP Per(AAAAMM) + Cod.Ajuste + CFOP Per(AAAAMM) + Cod.Ajuste + CFOP Per(YYYYMM) + Adjust. Cd. + CFOP S - - S 2 3 - 5387 0
CDV 4 CDV_FILIAL+CDV_TPMOVI+CDV_ESPECI+CDV_FORMUL+CDV_DOC+CDV_SERIE+CDV_CLIFOR+CDV_LOJA+CDV_NUMITE+CDV_SEQ+CDV_CODAJU Tp movimento + Espec. Doc. + Formul. Prop + Numero NF + Serie + Cli/Fo Tp Movimient + Clase Doc. + Formul. Prop + Numero Fact + Serie + Cli/P Transaction + Doc Type + Own Form + Ivc Number + Serial + Cus/Sup + Sh S - - S 2 3 - 5388 0

Perguntas frequentes

Para que serve a tabela CDV no Protheus?

Ela é utilizada para informacoes adicionais da apur dentro do sistema ERP Protheus.

Como consultar os campos da tabela CDV?

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

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

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

Exemplo de consulta SQL da tabela CDV

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

SELECT
    CDV_FILIAL,
    CDV_PERIOD,
    CDV_CODAJU,
    CDV_DESCR,
    CDV_LIVRO,
    CDV_VALOR,
    CDV_DOC,
    CDV_SERIE,
    CDV_CLIFOR,
    CDV_LOJA,
    CDV_AUTO,
    CDV_CFOP,
    CDV_NUMITE,
    CDV_SEQ,
    CDV_SDOC,
    CDV_TPMOVI,
    CDV_ESPECI,
    CDV_FORMUL,
    CDV_ID,
    CDV_NFE,
    CDV_ZERAVL,
    CDV_REGCAL,
    CDV_VLOUTR,
    CDV_CODMSG,
    CDV_CODCPL,
    CDV_TXTDSC,
    CDV_OPBASE,
    CDV_IDMSG,
    CDV_OPALIQ,
    CDV_AGRLAN,
    CDV_TPLANC,
    CDV_PCLANC
FROM CDV
WHERE
    D_E_L_E_T_ = ' '
    AND CDV_FILIAL = 'VALOR'
    AND CDV_PERIOD = 'VALOR'
    AND CDV_CODAJU = 'VALOR'
    AND CDV_DESCR = 'VALOR'
    AND CDV_LIVRO = 'VALOR'
    AND CDV_VALOR = 0
    AND CDV_DOC = 'VALOR'
    AND CDV_SERIE = 'VALOR'
    AND CDV_CLIFOR = 'VALOR'
    AND CDV_LOJA = 'VALOR'
    AND CDV_AUTO = 'VALOR'
    AND CDV_CFOP = 'VALOR'
    AND CDV_NUMITE = 'VALOR'
    AND CDV_SEQ = 'VALOR'
    AND CDV_SDOC = 'VALOR'
    AND CDV_TPMOVI = 'VALOR'
    AND CDV_ESPECI = 'VALOR'
    AND CDV_FORMUL = 'VALOR'
    AND CDV_ID = 'VALOR'
    AND CDV_NFE = 'VALOR'
    AND CDV_ZERAVL = 'VALOR'
    AND CDV_REGCAL = 'VALOR'
    AND CDV_VLOUTR = 0
    AND CDV_CODMSG = 'VALOR'
    AND CDV_CODCPL = 'VALOR'
    AND CDV_TXTDSC = 'VALOR'
    AND CDV_OPBASE = 'VALOR'
    AND CDV_IDMSG = 'VALOR'
    AND CDV_OPALIQ = 'VALOR'
    AND CDV_AGRLAN = 'VALOR'
    AND CDV_TPLANC = 'VALOR'
    AND CDV_PCLANC = 0