MRP Demandas
A tabela T4J faz parte do sistema ERP Protheus da TOTVS e é utilizada para mrp demandas.
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 T4J 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 T4J, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | T4J |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | T4J990 |
| X2_NOME | MRP Demandas |
| X2_NOMESPA | MRP Demandas |
| X2_NOMEENG | MRP demands |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | T4J_FILIAL+T4J_IDREG |
| X2_PYME | N |
| X2_MODULO | 10 |
| 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_ | 8967 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| T4J | 01 | T4J_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 | - | - | - | 1 | 2 | - | - | - | 150448 | 0 |
| T4J | 02 | T4J_DATA | D | 8 | 0 | Data | Fecha | Date | Data da demanda | Fecha de la demanda | Demand Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | - | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 150449 | 0 |
| T4J | 03 | T4J_PROD | C | 90 | 0 | Produto | Producto | Product | Produto | Producto | Product | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 150450 | 0 |
| T4J | 04 | T4J_REV | C | 3 | 0 | Revisão | Revisión | Review | Revisão | Revisión | Review | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 150451 | 0 |
| T4J | 05 | T4J_ORIGEM | C | 1 | 0 | Origem | Origen | Origin | Origem da demanda | Origen de la demanda | Origin of demand | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | - | - | - | - | - | 1=PlanoMestre;2=Previsão de Vendas;3=Pedido de Vendas;4=Empenho de Projeto;5=Arquivo;9=Manual | 1=PlanMaestro;2=Previsión de ventas;3=Pedido de ventas;4=Reserva de proyecto;5=Archivo;9=Manual | 1=MasterPlan;2=Sales Estimate;3=Sales Order;4=Project Allocation;5=File;9=Manual | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 150452 | 0 |
| T4J | 06 | T4J_DOC | C | 30 | 0 | Documento | Documento | Document | Documento da demanda | Documento de la demanda | Demand document | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 150453 | 0 |
| T4J | 07 | T4J_QUANT | N | 12 | 2 | Quantidade | Cantidad | Quantity | Quantidade | Cantidad | Quantity | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xxxx | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 150454 | 0 |
| T4J | 08 | T4J_LOCAL | C | 10 | 0 | Armazém | Almacén | Warehouse | Armazém | Almacén | Warehouse | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 150455 | 0 |
| T4J | 09 | T4J_PROC | C | 1 | 0 | Processado? | ¿Procesado? | Processed? | Flag de Processamento | Flag de procesamiento | Processing Flag | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 150456 | 0 |
| T4J | 10 | T4J_IDREG | C | 200 | 0 | ID Demanda | ID Demanda | Demand ID | Identificador da demanda | Identificador de la deman | Demand identifier | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 150457 | 0 |
| T4J | 11 | T4J_MOPC | M | 10 | 0 | Opcionais | Opcionales | Optional | Opcionais da demanda | Opcionales de la demanda | Optional of demand | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 150458 | 0 |
| T4J | 12 | T4J_ERPOPC | C | 80 | 0 | Opcional ERP | Opcional ERP | ERP Optional | Opcional do ERP | Opcional del ERP | ERP Optional | @!S40 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 150459 | 0 |
| T4J | 13 | T4J_ERPMOP | M | 10 | 0 | M. Opcional | M. Opcional | Optional M | Opcional MEMO da demanda | Opcional MEMO de la deman | Optional MEMO of demand | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 150460 | 0 |
| T4J | 14 | T4J_NRMRP | C | 6 | 0 | Nr. MRP | Nº MRP | MRP No. | Número Proc. MRP | Número Proc. MRP | MRP Proc Number | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 150461 | 0 |
| T4J | 15 | T4J_CODE | C | 15 | 0 | Cod.Demanda | Cód.Demanda | Demand Code | Código da Demanda | Código de la demanda | Demand code | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 150462 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| T4J | 1 | T4J_FILIAL+T4J_IDREG | ID Demanda | ID Demanda | Demand ID | S | - | - | S | 2 | 3 | - | 21391 | 0 |
| T4J | 2 | T4J_FILIAL+T4J_PROD+DTOS(T4J_DATA)+T4J_DOC | Produto + Data + Documento | Producto + Fecha + Documento | Product + Date + Document | S | - | - | S | 2 | 3 | - | 21392 | 0 |
Ela é utilizada para mrp demandas 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
T4J_FILIAL,
T4J_DATA,
T4J_PROD,
T4J_REV,
T4J_ORIGEM,
T4J_DOC,
T4J_QUANT,
T4J_LOCAL,
T4J_PROC,
T4J_IDREG,
T4J_MOPC,
T4J_ERPOPC,
T4J_ERPMOP,
T4J_NRMRP,
T4J_CODE
FROM T4J
WHERE
D_E_L_E_T_ = ' '
AND T4J_FILIAL = 'VALOR'
AND T4J_DATA BETWEEN '20260501' AND '20260531'
AND T4J_PROD = 'VALOR'
AND T4J_REV = 'VALOR'
AND T4J_ORIGEM = 'VALOR'
AND T4J_DOC = 'VALOR'
AND T4J_QUANT = 0
AND T4J_LOCAL = 'VALOR'
AND T4J_PROC = 'VALOR'
AND T4J_IDREG = 'VALOR'
AND T4J_ERPOPC = 'VALOR'
AND T4J_NRMRP = 'VALOR'
AND T4J_CODE = 'VALOR'