Planejamentos do Projeto
A tabela AFK faz parte do sistema ERP Protheus da TOTVS e é utilizada para planejamentos do projeto.
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 AFK 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 AFK, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | AFK |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | AFK990 |
| X2_NOME | Planejamentos do Projeto |
| X2_NOMESPA | Planificaciones del Proyecto |
| X2_NOMEENG | Project Planning |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | AFK_FILIAL+AFK_PLANEJ |
| X2_PYME | S |
| X2_MODULO | 44 |
| X2_DISPLAY | AFK_DESCRI |
| 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_ | 219 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AFK | 01 | AFK_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 | - | - | - | N | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 3507 | 0 |
| AFK | 02 | AFK_DESCRI | C | 40 | 0 | Descricao | Descripcion | Description | Descricao do Planejamento | Descrip. de Planeamiento | Planning Description | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | S | N | N | - | - | - | 1 | 1 | - | - | - | 3508 | 0 |
| AFK | 03 | AFK_PROJET | C | 10 | 0 | Projeto | Proyecto | Project | Codigo do Projeto | Codigo de Proyecto | Project Code | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | - | - | - | - | - | - | - | - | - | - | 097 | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 3509 | 0 |
| AFK | 04 | AFK_PLANEJ | C | 6 | 0 | Cod. Planej. | Nro. Planeam | Plann.Code | Codigo do Planejamento | Codigo de Planeamiento | Planning Code | @! | ExistChav("AFK") | x x x x x x x x x x x x x x x xx | GetSXENum("AFK","AFK_PLANEJ") | - | 1 | xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 3510 | 0 |
| AFK | 05 | AFK_DATAI | D | 8 | 0 | Planej. De | De Planeam. | To Planning | Data Inicial Planejamento | Fecha Inic. Planeamiento | Planning Initial Date | - | PmsVldData() | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 3511 | 0 |
| AFK | 06 | AFK_DATAF | D | 8 | 0 | Planej. Ate | A Planeam. | From Plann. | Data Final Planejamento | Fecha Final Planeamiento | Planning Final Date | - | PmsVldData() | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 3512 | 0 |
| AFK | 07 | AFK_GERAC | D | 8 | 0 | Data Geracao | Fch.Generac. | Gener.Date | Data da Geracao | Fecha de Generacion | Generation Date | - | - | x x x x x x x x x x x x x x x x | dDataBase | - | 1 | xx | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 3513 | 0 |
| AFK | 08 | AFK_TRFDE | C | 12 | 0 | Tarefa De | De tarea | Task From | Considerar Tarefa De | Considerar tarea de | Consider Task From | @! | - | x x x x x x x x x x x x x x x x | - | AF9 | 1 | x x | - | - | - | S | - | - | - | - | - | - | - | - | PmsSetF3("AF9",2) | - | 014 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 3514 | 0 |
| AFK | 09 | AFK_TRFATE | C | 12 | 0 | Tarefa Ate | A tarea | Task To | Considerar Tarefa Ate | Considerar tarea a | Consider Task To | @! | - | x x x x x x x x x x x x x x x x | REPLICATE('Z',LEN(AFK->AFK_TRFATE)) | AF9 | 1 | x x | - | - | - | S | - | - | - | - | - | - | - | - | PmsSetF3("AF9",2) | - | 014 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 3515 | 0 |
| AFK | 10 | AFK_GRPDE | C | 4 | 0 | Do Grupo | De Grupo | To Group | Considera do Grupo | Considera desde el Grupo | Lower Limit Group | @! | - | x x x x x x x x x x x x x x x x | - | SBM | 1 | x x | - | - | - | S | - | - | - | - | - | - | - | - | - | - | 162 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 3516 | 0 |
| AFK | 11 | AFK_GRPATE | C | 4 | 0 | Ate o Grupo | A Grupo | From Group | Ate o Grupo | Hasta el Grupo | Upper Limit Group | @! | - | x x x x x x x x x x x x x x x x | Replicate('Z',LEN(AFK->AFK_GRPATE)) | SBM | 1 | x x | - | - | - | S | - | - | - | - | - | - | - | - | - | - | 162 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 3517 | 0 |
| AFK | 12 | AFK_PRDDE | C | 15 | 0 | Do Produto | De Producto | To Product | Considera do Produto | Considera desde Producto | Lower Limit Product | @! | - | x x x x x x x x x x x x x x x x | - | SB1 | 1 | x x | - | - | - | S | - | - | - | - | - | - | - | - | - | - | 030 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 3518 | 0 |
| AFK | 13 | AFK_PRDATE | C | 15 | 0 | Produto Ate | A Producto | From Product | Ate o Produto | Hasta el Producto | Upper Limit Product | @! | - | x x x x x x x x x x x x x x x x | REPLICATE('Z',LEN(AFK->AFK_PRDATE)) | SB1 | 1 | x x | - | - | - | S | - | - | - | - | - | - | - | - | - | - | 030 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 3519 | 0 |
| AFK | 14 | AFK_ALMOX | C | 20 | 0 | Cons.Armaz. | Cons.Deposit | Cons.Wareh. | Considerar Armazens | Considerar Depositos | Consider Warehouses | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | N | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 3520 | 0 |
| AFK | 15 | AFK_GRTDE | C | 5 | 0 | Grp.Trf. De | De Grp.Tarea | Task Grp. Fr | Grupo de Tarefas | Grupo de Tareas | Tasks Group | @! | - | x x x x x x x x x x x x x x x x | - | AE5 | 1 | xx x | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 3521 | 0 |
| AFK | 16 | AFK_GRTATE | C | 5 | 0 | Grp.Trf. Ate | A Grp.Tarea | Task Grp. To | Grupo de Tarefas | Grupo de Tareas | Tasks Group | @! | - | x x x x x x x x x x x x x x x x | REPLICATE('Z',LEN(AFK->AFK_GRTATE)) | AE5 | 1 | xx x | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 3522 | 0 |
| AFK | 17 | AFK_GERSA | C | 1 | 0 | Gera S.A. | Genera R.D. | Gener.W.R. | Gera Solic. ao Armazem. | Genera Requer.al Deposito | Gener.Warehouse Requisit. | - | Pertence("12") | x x x x x x x x x x x x x x x | "2" | - | 1 | x | - | - | - | N | - | - | - | - | 1=Sim;2=Nao | 1=Si;2=No | 1=Yes;2=No | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 3523 | 0 |
| AFK | 18 | AFK_TPPLAN | C | 1 | 0 | Tipo | Tipo | Type | Tipo de Planejamento | Tipo de Planificacion | Schedule Type | @! | - | x x x x x x x x x x x x x x x x | "1" | - | 1 | xx x | - | - | - | N | - | - | - | - | 1=Firme;2=Previsto | 1=Firme;2=Previsto | 1=Fixed;2=Estimated | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 3524 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AFK | 1 | AFK_FILIAL+AFK_PLANEJ | Cod. Planej. | Nro. Planeam | Plann.Code | S | - | - | S | 2 | 3 | - | 598 | 0 |
| AFK | 2 | AFK_FILIAL+AFK_PROJET+AFK_PLANEJ | Projeto + Cod. Planej. | Proyecto + Nro. Planeam | Project + Plann.Code | S | - | - | S | 2 | 3 | - | 599 | 0 |
| AFK | 3 | AFK_FILIAL+AFK_PROJET+AFK_DESCRI | Projeto + Descricao | Proyecto + Descripcion | Project + Description | S | - | - | S | 2 | 3 | - | 600 | 0 |
Ela é utilizada para planejamentos do projeto 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
AFK_FILIAL,
AFK_DESCRI,
AFK_PROJET,
AFK_PLANEJ,
AFK_DATAI,
AFK_DATAF,
AFK_GERAC,
AFK_TRFDE,
AFK_TRFATE,
AFK_GRPDE,
AFK_GRPATE,
AFK_PRDDE,
AFK_PRDATE,
AFK_ALMOX,
AFK_GRTDE,
AFK_GRTATE,
AFK_GERSA,
AFK_TPPLAN
FROM AFK
WHERE
D_E_L_E_T_ = ' '
AND AFK_FILIAL = 'VALOR'
AND AFK_DESCRI = 'VALOR'
AND AFK_PROJET = 'VALOR'
AND AFK_PLANEJ = 'VALOR'
AND AFK_DATAI BETWEEN '20260801' AND '20260831'
AND AFK_DATAF BETWEEN '20260801' AND '20260831'
AND AFK_GERAC BETWEEN '20260801' AND '20260831'
AND AFK_TRFDE = 'VALOR'
AND AFK_TRFATE = 'VALOR'
AND AFK_GRPDE = 'VALOR'
AND AFK_GRPATE = 'VALOR'
AND AFK_PRDDE = 'VALOR'
AND AFK_PRDATE = 'VALOR'
AND AFK_ALMOX = 'VALOR'
AND AFK_GRTDE = 'VALOR'
AND AFK_GRTATE = 'VALOR'
AND AFK_GERSA = 'VALOR'
AND AFK_TPPLAN = 'VALOR'