Dicionário Protheus
Início

Tabela CO4 no Protheus

Areas

O que é a tabela CO4 no Protheus?

A tabela CO4 faz parte do sistema ERP Protheus da TOTVS e é utilizada para areas.

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

Propriedades da Tabela

Propriedade Valor
X2_CHAVE CO4
X2_PATH \DATA\
X2_ARQUIVO CO4990
X2_NOME Areas
X2_NOMESPA Areas
X2_NOMEENG Areas
X2_ROTINA -
X2_MODO C
X2_MODOUN C
X2_MODOEMP C
X2_DELET 0
X2_TTS -
X2_UNICO CO4_FILIAL+CO4_CODARE
X2_PYME S
X2_MODULO 87
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_ 2533
R_E_C_D_E_L_ 0

Campos da Tabela CO4 (8 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_
CO4 01 CO4_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 - - 1 x - - - - - - - - - - - - - - 033 - S - - N N N - - - 1 2 - - - 39757 0
CO4 02 CO4_CODARE C 9 0 Cod. Area Cod. Area Area Cd Cod. Area Cod. Area Area Code @! (Vazio() .Or. ExistCpo("CTT")) .And. ExistChav("CO4") x x x x x x x x x x x x x x x x - CTT 1 x x - - - S A R - - - - - - INCLUI - 004 - S - - N N N - - - 1 1 - - - 39758 0
CO4 03 CO4_DESCR C 30 0 Descr. Area Descr. Area Area Desc. Descr. Area Descr. Area Area Description @! - x x x x x x x x x x x x x x x x - - 1 x x - - - S - - - - - - - - - - - - S - - N N N - - - 1 1 - - - 39759 0
CO4 04 CO4_USU1 C 6 0 Reponsavel 1 Reponsable 1 Reponsable 1 Usuario Responsavel 1 Usuario Responsable 1 Responsible User 1 @! Vazio() .Or. UsrExist(M->CO4_USU1) x x x x x x x x x x x x x x x x - USR 1 x - S - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 39760 0
CO4 05 CO4_NUSU1 C 15 0 Nome Resp. 1 Nomb Resp. 1 Answ 1 Name Nome Responsavel 1 Nombre Responsable 1 Responsible Name 1 @! - x x x x x x x x x x x x x x x x IIF(!INCLUI,UsrRetName(CO4->CO4_USU1),"") - 1 x - - - S V V - - - - - - - UsrRetName(CO4->CO4_USU1) - - S - - N N N - - - 1 2 - - - 39761 0
CO4 06 CO4_USU2 C 6 0 Reponsavel 2 Reponsable 2 Reponsible 2 Usuario Responsavel 2 Usuario Responsable 2 Responsible User 2 @! Vazio() .Or. UsrExist(M->CO4_USU2) x x x x x x x x x x x x x x x x - USR 1 x - S - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 39762 0
CO4 07 CO4_NUSU2 C 15 0 Nome Resp. 2 Nomb Resp. 2 Answ 2 Name Nome Responsavel 2 Nombre Responsable 2 Responsible Name 2 @! - x x x x x x x x x x x x x x x x IIF(!INCLUI,UsrRetName(CO4->CO4_USU2),"") - 1 x - - - - V V - - - - - - - UsrRetName(CO4->CO4_USU2) - - S - - N N N - - - 1 2 - - - 39763 0
CO4 08 CO4_ETAPAS C 60 0 Etapas Etapas Stages Etapas Etapas Stages @! - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 39764 0

Índices da Tabela CO4 (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_
CO4 1 CO4_FILIAL+CO4_CODARE Cod. Area Cod. Area Area Cd S - - S 2 3 - 6116 0
CO4 2 CO4_FILIAL+CO4_DESCR Descr. Area Descr. Area Area Desc. S - - S 2 3 - 6117 0
CO4 3 CO4_FILIAL+CO4_USU1 Reponsavel 1 Reponsable 1 Reponsable 1 S - - S 2 3 - 6118 0
CO4 4 CO4_FILIAL+CO4_USU2 Reponsavel 2 Reponsable 2 Reponsible 2 S - - S 2 3 - 6119 0

Perguntas frequentes

Para que serve a tabela CO4 no Protheus?

Ela é utilizada para areas dentro do sistema ERP Protheus.

Como consultar os campos da tabela CO4?

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

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

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

Exemplo de consulta SQL da tabela CO4

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

SELECT
    CO4_FILIAL,
    CO4_CODARE,
    CO4_DESCR,
    CO4_USU1,
    CO4_NUSU1,
    CO4_USU2,
    CO4_NUSU2,
    CO4_ETAPAS
FROM CO4
WHERE
    D_E_L_E_T_ = ' '
    AND CO4_FILIAL = 'VALOR'
    AND CO4_CODARE = 'VALOR'
    AND CO4_DESCR = 'VALOR'
    AND CO4_USU1 = 'VALOR'
    AND CO4_NUSU1 = 'VALOR'
    AND CO4_USU2 = 'VALOR'
    AND CO4_NUSU2 = 'VALOR'
    AND CO4_ETAPAS = 'VALOR'