Atividade do Processo
A tabela CPG faz parte do sistema ERP Protheus da TOTVS e é utilizada para atividade do processo.
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 CPG 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 CPG, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | CPG |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | CPG990 |
| X2_NOME | Atividade do Processo |
| X2_NOMESPA | Actividad del proceso |
| X2_NOMEENG | Process Activity |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | CPG_FILIAL+CPG_CODPRC+CPG_ITEM |
| X2_PYME | S |
| X2_MODULO | 2 |
| 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_ | 2581 |
| R_E_C_D_E_L_ | 0 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CPG | 01 | CPG_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 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 40269 | 0 |
| CPG | 02 | CPG_CODPRC | C | 10 | 0 | Processo | Proceso | Process | Código do Processo | Codigo del Proceso | Process Code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 40270 | 0 |
| CPG | 03 | CPG_ITEM | C | 3 | 0 | Item | Item | Item | Item | Item | Item | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 40271 | 0 |
| CPG | 04 | CPG_EVENTO | C | 1 | 0 | Evento | Evento | Event | Evento | Evento | Event | @! | Pertence("12").And.CFGA115VPr() | x x x x x x x x x x x x x x x x | "1" | - | 1 | x | - | - | - | S | V | R | - | - | 1=Atividade;2=Sub-processo | 1=Actividad;2=Subproceso | 1=Activity;2=Sub-process | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 40272 | 0 |
| CPG | 05 | CPG_DESATV | C | 30 | 0 | Des.Atividad | Des.Activida | Activity Des | Descrição da Atividade | Descripcion de Actividad | Activity Description | - | CFG115Load('CPG') .And. A115VldEtp(a,b,c,d) | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 40273 | 0 |
| CPG | 06 | CPG_MODEL | C | 15 | 0 | Model MVC | Model MVC | MVC Model | Nome do Modelo MVC | Nombre del Modelo MVC | MVC Model Name | @! | ValType(FWLoadModel(FWFldGet('CPG_MODEL')))=='O' | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | FwFldGet('CPG_EVENTO')=='2' | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 40274 | 0 |
| CPG | 07 | CPG_VIEW | C | 15 | 0 | View MVC | View MVC | MVC View | Nome da View MVC | Nombre de la View MVC | MVC View Name | @! | ValType(FWLoadView(FWFldGet('CPG_VIEW')))=='O' | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | FwFldGet('CPG_EVENTO')=='2' | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 40275 | 0 |
| CPG | 08 | CPG_DECID1 | C | 3 | 0 | Positivo | Positivo | Positive | Fluxo quando positivo | Flujo cuando positivo | Flow when positive | @! | - | 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 | - | - | - | 40276 | 0 |
| CPG | 09 | CPG_DECID2 | C | 3 | 0 | Negativo | Negativo | Negative | Fluxo quando Negativo | Flujo cuando Negativo | Flow when negative | @! | - | 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 | - | - | - | 40277 | 0 |
| CPG | 10 | CPG_ATUPRT | L | 1 | 0 | Atu.Protheus | Act.Protheus | Upd.Protheus | Atualiza Protheus | Actualiza Protheus | Update Protheus | - | - | x x x x x x x x x x x x x x x x | .T. | - | 1 | x | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 40278 | 0 |
| CPG | 11 | CPG_FICHA | C | 10 | 0 | Fichário | Fichero | File | Código do Fichário | Codigo de Fichero | Binder Code | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 40279 | 0 |
| CPG | 12 | CPG_MECAT | C | 1 | 0 | Mec. Atrib. | Mec. Atrib. | Attr. Good | Mecanismo de Atribuicao | Mecanismo de atribución | Attrib. Mechanism | @! | Pertence("0123") .And. CFGLimCamp() | x x x x x x x x x x x x x x x x | "0" | - | 1 | x | - | - | - | S | A | R | - | - | 0=Nenhum;1=Grupo;2=Usuario;3=Campo | 0=Ninguno;1=Grupo;2=Usuario;3=Campo | 0=None;1=Group;2=User;3=Field | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 40280 | 0 |
| CPG | 13 | CPG_MAUSER | C | 6 | 0 | Usuario | Usuario | User | Usuario | Usuario | User | @! | - | x x x x x x x x x x x x x x x x | - | USR | 1 | x | - | S | - | N | A | R | - | - | - | - | - | - | FwFldGet("CPG_MECAT") == "2" | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 40281 | 0 |
| CPG | 14 | CPG_DESUSR | C | 40 | 0 | Desc. User | Desc. Usua. | User Desc. | Descricao do Usuario | Descripcion de Usuario | User Description | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 40282 | 0 |
| CPG | 15 | CPG_MAGRP | C | 6 | 0 | Grupo de Usr | Grupo de Usr | User Group | Grupo de Usuario | Grupo de Usuario | User Group | @! | - | x x x x x x x x x x x x x x x x | - | GRP | 1 | x | - | S | - | N | A | R | - | - | - | - | - | - | FwFldGet("CPG_MECAT") == "1" | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 40283 | 0 |
| CPG | 16 | CPG_MCPO | C | 10 | 0 | Campo | Campo | Field | Nome do Campo | Nombre del campo | Field Name | @! | - | 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 | - | - | - | 40284 | 0 |
| CPG | 17 | CPG_DESGRP | C | 40 | 0 | Desc. Grupo | Desc. Grupo | Group Desc. | Desc. do Grupo do Usuario | Desc. de Grupo de Usuario | User Group Desc. | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 40285 | 0 |
| CPG | 18 | CPG_ATVCOM | L | 1 | 0 | Atv. Compart | Act. Compart | Share Act | Atividade Compartilhada | Actividad Compartida | Shared Activity | - | CFG115AtvC(a,b,c,d) | 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 | - | - | - | 40286 | 0 |
| CPG | 19 | CPG_CONSEN | N | 3 | 0 | %Consenso | %Consenso | %Consense | %Consenso | %Consenso | %Consense | 999 | CFG115Cons(a,b,c,d) | 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 | - | - | - | 40287 | 0 |
| CPG | 20 | CPG_DESENG | C | 30 | 0 | Desc. Ing. | Desc. Ing. | Desc.Eng | Descrição Inglês | Descripcion Ingles | Description English | @! | - | 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 | - | - | - | 40288 | 0 |
| CPG | 21 | CPG_DESSPA | C | 30 | 0 | Desc. Esp. | Desc. Esp. | Spa. desc. | Descrição Espanhol | Descripcion Espanol | Description Spanish | @! | - | 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 | - | - | - | 40289 | 0 |
| CPG | 22 | CPG_DESPTG | C | 30 | 0 | Desc. Ptg | Desc. Ptg | Ptg Desc. | Desc. Português | Desc. Portugues | Description Portuguese | @! | - | 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 | - | - | - | 40290 | 0 |
| CPG | 23 | CPG_DSCATV | C | 1 | 0 | Desc. Atv. | Desc. Actv. | Activ Desc | Sempre Desce Atividade | Siempre baja actividad | Always Desc Activity | @! | PERTENCE("12") | x x x x x x x x x x x x x x x x | "2" | - | 1 | x | - | - | - | N | A | R | - | - | 1=Sim;2=Não; | 1=Sí;2=No; | 1=Yes;2=No | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 40291 | 0 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CPG | 1 | CPG_FILIAL+CPG_CODPRC+CPG_ITEM | Processo + Item | Proceso + Item | Process + Item | S | - | - | S | 2 | 3 | - | 6197 | 0 |
Ela é utilizada para atividade do processo dentro do sistema ERP Protheus.
Nesta página você pode visualizar todos os campos, incluindo tipo, tamanho e validações.
Os índices são estruturas que melhoram a performance de busca e acesso aos dados dentro do Protheus.