Instrucao de Embarque
A tabela DXN faz parte do sistema ERP Protheus da TOTVS e é utilizada para instrucao de embarque.
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 DXN 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 DXN, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | DXN |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | DXN990 |
| X2_NOME | Instrucao de Embarque |
| X2_NOMESPA | Instruccion de Embarque |
| X2_NOMEENG | Shipment Instruction |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | DXN_FILIAL+DXN_CODIGO |
| X2_PYME | S |
| X2_MODULO | 67 |
| 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_ | 3643 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DXN | 01 | DXN_FILIAL | C | 2 | 0 | Filial | Sucursal | Branch | Filial do sistema | Suc. del Sistema | System branch | - | - | x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | N | A | R | - | - | - | - | - | - | INCLUI | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 57069 | 0 |
| DXN | 02 | DXN_CODIGO | C | 30 | 0 | Codigo | Codigo | Code | Codigo Inst. de Embarque | Codigo Inst. de Embarque | Shipment Inst. Code | @! | ExistChav("DXN") | x x x x x x x x x x x x x x x x | GetSXENum("DXN","DXN_CODIGO") | - | 1 | x xxx | - | - | - | S | A | R | - | - | - | - | - | - | INCLUI | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 57070 | 0 |
| DXN | 03 | DXN_CLIENT | C | 6 | 0 | Cliente | Cliente | Customer | Cliente Contrato | Cliente contrato | Contract Customer | @! | Vazio() .Or. ExistCpo("SA1",M->(DXN_CLIENT)+IF( !Empty( M->(DXN_LOJA) ), M->(DXP_LJCLI), ""), 1) | x x x x x x x x x x x x x x x x | - | SA1 | 1 | x x xxx | - | - | - | S | A | R | - | - | - | - | - | - | AGR740WHEN() | - | 001 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 57071 | 0 |
| DXN | 04 | DXN_LOJA | C | 2 | 0 | Loja | Tienda | Store | Loja do Cliente | Tienda del Cliente | Customer Store | @! | Vazio() .Or. ExistCpo("SA1",M->(DXN_CLIENT+DXN_LOJA)) | x x x x x x x x x x x x x x x x | - | - | 1 | x xxx | - | - | - | S | A | R | - | - | - | - | - | - | AGR740WHEN() | - | 002 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 57072 | 0 |
| DXN | 05 | DXN_SAFRA | C | 15 | 0 | Safra | Cosecha | Crop | Codigo da safra | Codigo de Cosecha | Crop Code | @! | Vazio() .Or. ExistCpo("NJU") | x x x x x x x x x x x x x x x x | - | NJU | 1 | x xxx | - | - | - | S | A | R | - | - | - | - | - | - | AGR740WHEN() | - | 130 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 57073 | 0 |
| DXN | 06 | DXN_IECLI | C | 30 | 0 | Nº I.E. Cli. | Nº I.E. Cli. | No.I.E.Clien | Nº Ins. Emb. do Cliente | Nº Ins. Emb. de Cliente | No.Ins. Emb. of Client | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 57074 | 0 |
| DXN | 07 | DXN_CODUNB | C | 2 | 0 | UN.Benef | UN.Mejora | Proc. Unit | Unidade de Beneficiamento | Unidad de la mejora | Processing Unit | @! | - | x x x x x x x x x x x x x x x | - | NKF | 1 | x x xx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 57075 | 0 |
| DXN | 08 | DXN_QTD | C | 5 | 0 | Lim. Fardos | Lím. Fardos | Bale Lim | Limite de Fardos | Límite de fardos | Bales Limit | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx x | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 57076 | 0 |
| DXN | 09 | DXN_DATA | D | 8 | 0 | Data | Fecha | Date | Data | Fecha | Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx x | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 57077 | 0 |
| DXN | 10 | DXN_HORA | C | 5 | 0 | Hora | Hora | Time | Hora | Hora | Time | @! 99:99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 57078 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DXN | 1 | DXN_FILIAL+DXN_CODIGO | Codigo | Codigo | Code | S | - | - | S | 2 | 3 | - | 8703 | 0 |
Ela é utilizada para instrucao de embarque 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
DXN_FILIAL,
DXN_CODIGO,
DXN_CLIENT,
DXN_LOJA,
DXN_SAFRA,
DXN_IECLI,
DXN_CODUNB,
DXN_QTD,
DXN_DATA,
DXN_HORA
FROM DXN
WHERE
D_E_L_E_T_ = ' '
AND DXN_FILIAL = 'VALOR'
AND DXN_CODIGO = 'VALOR'
AND DXN_CLIENT = 'VALOR'
AND DXN_LOJA = 'VALOR'
AND DXN_SAFRA = 'VALOR'
AND DXN_IECLI = 'VALOR'
AND DXN_CODUNB = 'VALOR'
AND DXN_QTD = 'VALOR'
AND DXN_DATA BETWEEN '20260401' AND '20260430'
AND DXN_HORA = 'VALOR'