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

Tabela C6Z no Protheus

RESUMO POR CFOP

O que é a tabela C6Z no Protheus?

A tabela C6Z faz parte do sistema ERP Protheus da TOTVS e é utilizada para resumo por cfop.

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

Propriedades da Tabela

Propriedade Valor
X2_CHAVE C6Z
X2_PATH \DATA\
X2_ARQUIVO C6Z990
X2_NOME RESUMO POR CFOP
X2_NOMESPA RESUMEN POR CFOP
X2_NOMEENG SUMMARY BY CFOP
X2_ROTINA -
X2_MODO E
X2_MODOUN E
X2_MODOEMP E
X2_DELET 0
X2_TTS -
X2_UNICO C6Z_FILIAL+C6Z_ID+C6Z_CODCTA+C6Z_CFOP
X2_PYME S
X2_MODULO 84
X2_DISPLAY -
X2_SYSOBJ TAFA063
X2_USROBJ -
X2_POSLGT 1
X2_CLOB 1
X2_AUTREC 1
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_ 2000
R_E_C_D_E_L_ 0

Campos da Tabela C6Z (12 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_
C6Z 01 C6Z_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 - - - - N A R - - - - - - - - 033 - S - - N - N - - - 1 2 - - - 31862 0
C6Z 02 C6Z_ID C 6 0 ID ID ID Identificador Registro Identificador Registro Register Identifier @! - x x x x x x x x x x x x x x x GetSx8Num("C6Z","C6Z_ID") - 1 x - - - N V R - - - - - - - - - - S - - N - N - - - 1 2 - - - 31863 0
C6Z 03 C6Z_CODCTA C 36 0 Id.C.Contábi Id.C.Contabl Ledger Ac. I Indicador Conta Contábil Indicador Cuenta Contable Ledger Account Indicator - - x x x x x x x x x x x x x x x x - - 1 x - S - N A R - - - - - - - - 085 - S - - N - N - - - 1 2 - - - 31864 0
C6Z 04 C6Z_CTACTB C 60 0 Cta Contab Cta Contab Ledger Acc Conta Contábil Cuenta contable Ledger Account @! XFUNVldCmp("C1O",1) .And. XFUNVldUni("C6Z",2, C6Z->C6Z_CODCTA+ FWFLDGET("C6Z_CFOP")) x x x x x x x x x x x x x x x x XFUNRelac(39,'C6Z_CODCTA',1) C1OB 1 x - S - S A V - - - - - - - - - - S - - N - N - - - 1 2 - - - 31865 0
C6Z 05 C6Z_DCODCT C 220 0 Des.Cta.Cont Des.Cta.Cont Ledg. A. Des Des. Cont. Contábil Des. Cuent. Contable Ledger Account Des. @! - x x x x x x x x x x x x x x x x XFUNRelac(39,'C6Z_CODCTA') - 1 x - - - S V V - - - - - - - - - - S - - N - N - - - 1 2 - - - 31866 0
C6Z 06 C6Z_VLCONT N 16 2 Vlr.Contab. Vlr.Contab. Accoun. Vl. Valor Contábil Valor Contable Accounting Value @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 - - N - N - - - 1 2 - - - 31867 0
C6Z 07 C6Z_BASE N 16 2 B.Cálculo B.Calculo Calc. B. Base de Cálculo Base de Calculo Calculation Basis @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 - - N - N - - - 1 2 - - - 31868 0
C6Z 08 C6Z_IMPCRD N 16 2 Vl.Crdto.Deb Vl.Crdto.Deb Deb.Cred. Vl Vlr. Crdto/Debito Vlr. Crdto/Debito Cred/Debit Vl. @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 - - N - N - - - 1 2 - - - 31869 0
C6Z 09 C6Z_ISENNT N 16 2 Vl.Isen.NT Vl.Exen.NT NT Exem. Vl. Vlr. Isento / NT Vlr. Exento / NT NT / Exempt Vl. @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 - - N - N - - - 1 2 - - - 31870 0
C6Z 10 C6Z_OUTROS N 16 2 Vlr.Outros Vlr.Otros Other Vl. Vlr.Outros Valor Otros Other Value @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 - - N - N - - - 1 2 - - - 31871 0
C6Z 11 C6Z_CFOP C 6 0 Id. CFOP Id. CFOP CFOP Id. Indicador CFOP Indicador CFOP CFOP Indicator @! XFUNVldCmp("C0Y",3) .And. XFUNVldUni("C6Z",2, FWFLDGET("C6Z_CODCTA")+ M->C6Z_CFOP) x x x x x x x x x x x x x x x x - C0Y 1 x x - S - S A R - - - - - - - - - - S - - N - N - - - 1 1 - - - 31872 0
C6Z 12 C6Z_DCFOP C 220 0 Desc CFOP Desc CFOP CFOP descr Descricao CFOP Descripción CFOP Description CFOP @! - x x x x x x x x x x x x x x x x IF(!INCLUI.AND.!EMPTY(C6Z->C6Z_CFOP),POSICIONE("C0Y",3,xFilial("C0Y")+C6Z->C6Z_CFOP,"C0Y_CODIGO+' - '+C0Y_DESCRI"),"") - 1 x - - - N V V - - - - - - - - - - S - - N - N - - - 1 2 - - - 31873 0

Índices da Tabela C6Z (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_
C6Z 1 C6Z_FILIAL+C6Z_ID+C6Z_CODCTA+C6Z_CFOP ID + Id.C.Contábi + Id. CFOP ID + Id.C.Contabl + Id. CFOP ID + Ledger Ac. I + CFOP Id. S - - S 2 3 - 4716 0
C6Z 2 C6Z_FILIAL+C6Z_CODCTA+C6Z_CFOP Id.C.Contábi + Id. CFOP Id.C.Contabl + Id. CFOP Ledger Ac. I + CFOP Id. S - - S 2 3 - 4717 0

Perguntas frequentes

Para que serve a tabela C6Z no Protheus?

Ela é utilizada para resumo por cfop dentro do sistema ERP Protheus.

Como consultar os campos da tabela C6Z?

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

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

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

Exemplo de consulta SQL da tabela C6Z

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

SELECT
    C6Z_FILIAL,
    C6Z_ID,
    C6Z_CODCTA,
    C6Z_CTACTB,
    C6Z_DCODCT,
    C6Z_VLCONT,
    C6Z_BASE,
    C6Z_IMPCRD,
    C6Z_ISENNT,
    C6Z_OUTROS,
    C6Z_CFOP,
    C6Z_DCFOP
FROM C6Z
WHERE
    D_E_L_E_T_ = ' '
    AND C6Z_FILIAL = 'VALOR'
    AND C6Z_ID = 'VALOR'
    AND C6Z_CODCTA = 'VALOR'
    AND C6Z_CTACTB = 'VALOR'
    AND C6Z_DCODCT = 'VALOR'
    AND C6Z_VLCONT = 0
    AND C6Z_BASE = 0
    AND C6Z_IMPCRD = 0
    AND C6Z_ISENNT = 0
    AND C6Z_OUTROS = 0
    AND C6Z_CFOP = 'VALOR'
    AND C6Z_DCFOP = 'VALOR'