MODELOS DE ATENDIMENTO
A tabela SKA faz parte do sistema ERP Protheus da TOTVS e é utilizada para modelos de atendimento.
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 SKA 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 SKA, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | SKA |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | SKA990 |
| X2_NOME | MODELOS DE ATENDIMENTO |
| X2_NOMESPA | MODELOS DE ATENCION |
| X2_NOMEENG | SERVICE MODELS |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | KA_FILIAL+KA_CODIGO |
| X2_PYME | S |
| X2_MODULO | 13 |
| X2_DISPLAY | KA_CODIGO+KA_NOME |
| 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_ | 8368 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SKA | 01 | KA_CODIGO | C | 6 | 0 | Codigo | Codigo | Code | Codigo | Codigo | Code | 999999 | - | x x x x x x x x x x x x x x x x | IIF(INCLUI,TKNUMERO('SKA','KA_CODIGO'),'') | - | 1 | xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136828 | 0 |
| SKA | 02 | KA_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 | - | - | - | 136829 | 0 |
| SKA | 03 | KA_ENCTELA | C | 50 | 0 | Fecha Tela | Cierra Pant. | Close Screen | Funcao ao fechar a tela | Funcion al cerrar la pant | Function Close Window | - | ExistBlock(M->KA_ENCTELA) | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | - | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136830 | 0 |
| SKA | 04 | KA_PEBTNOK | C | 50 | 0 | OK Pressiona | OK Pulsa | Press OK | Funcao ao press. OK | Funcion al pulsar OK | Function press OK | - | ExistBlock(M->KA_PEBTNOK) | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | - | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136831 | 0 |
| SKA | 05 | KA_PEGDIT | C | 10 | 0 | Altera Item | Mod. Item | Change Item | Funcao ao alterar detalhe | Funcion al mod. detalle | Function change detail | - | ExistBlock(M->KA_PEGDIT) | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | - | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136832 | 0 |
| SKA | 06 | KA_PEHIST | C | 50 | 0 | Historico | Historial | History | Ao exibir historico | Al exhibir historial | Display History | - | ExistBlock(M->KA_PEHIST) | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | - | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136833 | 0 |
| SKA | 07 | KA_NMMAST | C | 30 | 0 | Cabecalho | Encabezam. | Heading | Nm do cabecalho de Atend. | Nm de encabezam. de Atenc | Service heading number | - | - | x x x x x x x x x x x x x x x x | IF(!INCLUI,POSICIONE('SX2', 1, SKA->KA_ALIMAST, 'X2NOME()'),'') | - | 1 | x xx | - | - | - | N | V | R | - | - | - | - | - | - | - | AllTrim(SKA->KA_ALIMAST)+'-'+Posicione('SX2', 1, SKA->KA_ALIMAST, 'X2NOME()') | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136834 | 0 |
| SKA | 08 | KA_NMDET | C | 30 | 0 | Detalhes | Detalles | Details | Nome dos detalhes de aten | Nombre detalles de aten | Service details name | - | - | x x x x x x x x x x x x x x x x | IF(!INCLUI,POSICIONE('SX2', 1, SKA->KA_ALIDET, 'X2NOME()'),'') | - | 1 | x xx | - | - | - | N | V | R | - | - | - | - | - | - | - | AllTrim(SKA->KA_ALIDET)+'-'+Posicione('SX2', 1, SKA->KA_ALIDET, 'X2NOME()') | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136835 | 0 |
| SKA | 09 | KA_CPCHAVE | C | 10 | 0 | Campo Chave | Campo Clave | Key Field | Nome do Campo da chave | Nombre Campo de la clave | Name of Key Field | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136836 | 0 |
| SKA | 10 | KA_CPIDXCH | C | 10 | 0 | Campo Indice | Campo Indice | Index Field | Nome do Campo do indice | Nombre de Campo de indice | Index field name | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136837 | 0 |
| SKA | 11 | KA_CPCONT | C | 10 | 0 | Contato | Contacto | Contact | Nome do campo de contato | Nombre campo de contacto | Contact field name | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136838 | 0 |
| SKA | 12 | KA_CPNMENT | C | 10 | 0 | Campo Entida | Campo Entid. | Entity Field | Nome do Campo da entidade | Nombre Campo de entidad | Name of Entity Field | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136839 | 0 |
| SKA | 13 | KA_CPGDINI | C | 10 | 0 | In.GetDados | In.GetDados | St.GetDados | Campo inicia por GetDados | Campo inicia por GetDados | Field starts by GetDados | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136840 | 0 |
| SKA | 14 | KA_CMPKEY | C | 10 | 0 | Cod Campanha | Cod.Campana | CampaignCod. | Campo para campanha | Campo para campana | Field for campaign | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136841 | 0 |
| SKA | 15 | KA_OPCODI | C | 10 | 0 | Tip Atendime | Tip Atencion | Service Type | Cmpo armazena tipo atend. | Cmp.almacena tipo atenc. | Field stores service type | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136842 | 0 |
| SKA | 16 | KA_REGCOD | C | 10 | 0 | Cod Atendime | Cod.Atencion | Service Code | Cmpo armazena cod atend. | Camp.almacena cod atencio | Field stores service code | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136843 | 0 |
| SKA | 17 | KA_NOME | C | 30 | 0 | Nome | Nombre | Name | Nome do modelo de atend. | Nomb. del modelo de aten. | Cust.serv.model name | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136844 | 0 |
| SKA | 18 | KA_ALIMAST | C | 10 | 0 | Tabela Cabec | Tabla Encab. | Head.Table | Nome da tabela cabecalho | Nombre tabla encabez. | Name of Heading Table | @X | - | 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 | N | - | - | - | 1 | 2 | - | - | - | 136845 | 0 |
| SKA | 19 | KA_ALIDET | C | 10 | 0 | Tabela Itens | Tabla Items | Item Table | Nome da tabela com itens | Nombre tabla con item | Name of Table with Items | - | - | 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 | N | - | - | - | 1 | 1 | - | - | - | 136846 | 0 |
| SKA | 20 | KA_ABRTELA | C | 50 | 0 | Abertura | Abertura | Opening | Abertura de Tela | Abertura de Pantalla | Screen Opening | - | ExistBlock(M->KA_ABRTELA) | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | - | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136847 | 0 |
| SKA | 21 | KA_CONTSEL | C | 50 | 0 | Selecao | Seleccion | Selection | Seleção do contato | Seleccion del contacto | Contact Selection | - | ExistBlock(M->KA_CONTSEL) | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | - | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136848 | 0 |
| SKA | 22 | KA_ANTGRAV | C | 50 | 0 | Ant. Gravar | Ant. Grabar | BeforeSaving | Funcao antes de gravar | Funcion antes de grabar | Function before saving | - | ExistBlock(M->KA_ANTGRAV) | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | - | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136849 | 0 |
| SKA | 23 | KA_APOGRAV | C | 50 | 0 | Apos Gravar | Desp. de Gra | After Saving | Funcao chamada apos grava | Func. accion. desp. grab. | Function after saving | - | ExistBlock(M->KA_APOGRAV) | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | - | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 136850 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SKA | 1 | KA_FILIAL+KA_CODIGO | Codigo | Codigo | Code | S | - | - | S | 2 | 3 | - | 19697 | 0 |
Ela é utilizada para modelos de atendimento 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.
Modelo de query gerado automaticamente com base na estrutura da tabela.
SELECT
KA_CODIGO,
KA_FILIAL,
KA_ENCTELA,
KA_PEBTNOK,
KA_PEGDIT,
KA_PEHIST,
KA_NMMAST,
KA_NMDET,
KA_CPCHAVE,
KA_CPIDXCH,
KA_CPCONT,
KA_CPNMENT,
KA_CPGDINI,
KA_CMPKEY,
KA_OPCODI,
KA_REGCOD,
KA_NOME,
KA_ALIMAST,
KA_ALIDET,
KA_ABRTELA,
KA_CONTSEL,
KA_ANTGRAV,
KA_APOGRAV
FROM SKA
WHERE
D_E_L_E_T_ = ' '
AND KA_CODIGO = 'VALOR'
AND KA_FILIAL = 'VALOR'
AND KA_ENCTELA = 'VALOR'
AND KA_PEBTNOK = 'VALOR'
AND KA_PEGDIT = 'VALOR'
AND KA_PEHIST = 'VALOR'
AND KA_NMMAST = 'VALOR'
AND KA_NMDET = 'VALOR'
AND KA_CPCHAVE = 'VALOR'
AND KA_CPIDXCH = 'VALOR'
AND KA_CPCONT = 'VALOR'
AND KA_CPNMENT = 'VALOR'
AND KA_CPGDINI = 'VALOR'
AND KA_CMPKEY = 'VALOR'
AND KA_OPCODI = 'VALOR'
AND KA_REGCOD = 'VALOR'
AND KA_NOME = 'VALOR'
AND KA_ALIMAST = 'VALOR'
AND KA_ALIDET = 'VALOR'
AND KA_ABRTELA = 'VALOR'
AND KA_CONTSEL = 'VALOR'
AND KA_ANTGRAV = 'VALOR'
AND KA_APOGRAV = 'VALOR'