Doc. Transporte x Doc. Cliente
A tabela DY4 faz parte do sistema ERP Protheus da TOTVS e é utilizada para doc. transporte x doc. cliente.
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 DY4 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 DY4, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | DY4 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | DY4990 |
| X2_NOME | Doc. Transporte x Doc. Cliente |
| X2_NOMESPA | Doc.Transporte vs. Doc. Client |
| X2_NOMEENG | Transport Doc. x Customer Doc. |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | DY4_FILIAL+DY4_FILDOC+DY4_DOC+DY4_SERIE+DY4_NUMNFC+DY4_SERNFC+DY4_CODPRO |
| X2_PYME | S |
| X2_MODULO | 43 |
| X2_DISPLAY | DY4_FILIAL+DY4_FILDOC+DY4_DOC+DY4_SERIE+DY4_NUMNFC+DY4_SERNFC+DY4_CODPRO |
| 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_ | 3655 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DY4 | 01 | DY4_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 | - | - | - | - | N | A | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 57268 | 0 |
| DY4 | 02 | DY4_FILORI | C | 2 | 0 | Fil.Origem | Suc. Origen | Origin Br. | Filial de Origem | Sucursal de Origen | Origin Branch | - | - | x x x x x x x xx x x x x x x x x | - | - | 1 | x x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 57269 | 0 |
| DY4 | 03 | DY4_LOTNFC | C | 6 | 0 | No.Lote | No.Lote | Lot No. | No.Lote | No.Lote | Lot No. | @! | - | x x x x x x x xx x x x x x x x x | - | - | 1 | x x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 57270 | 0 |
| DY4 | 04 | DY4_NUMNFC | C | 9 | 0 | Doc.Cliente | Doc.Cliente | Customer Doc | Doc.Cliente | Doc.Cliente | Customer Doc | @! | - | x x x x x x x xx x x x x x x x x | - | - | 1 | x x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 019 | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 57271 | 0 |
| DY4 | 05 | DY4_SERNFC | C | 3 | 0 | Serie Dc.Cli | Serie Dc.Cli | Cus.Dc.Ser. | Serie Docto. Cliente | Serie Docto. Cliente | Customer Doc. Series | !!! | - | x x x x x x x xx x x x x x x x x | - | - | 1 | x x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 094 | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 57272 | 0 |
| DY4 | 06 | DY4_CODPRO | C | 15 | 0 | Cod. Produto | Cod. Product | Product Cd. | Codigo do Produto | Codigo del Producto | Product Code | @! | - | x x x x x x x xx x x x x x x x x | - | - | 1 | x x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | 030 | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 57273 | 0 |
| DY4 | 07 | DY4_QTDVOL | N | 5 | 0 | Qtd.Volumes | Ctd.Volumen | Volume Amt | Qtd.Volumes | Ctd.Volumen | Volume Amount | 99999 | - | x x x x x x x xx x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 57274 | 0 |
| DY4 | 08 | DY4_CLIREM | C | 6 | 0 | Remetente | Remitente | Sender | Remetente | Remitente | Sender | @! | - | x x x x x x x xx x x x x x x x x | - | - | 1 | x x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 001 | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 57275 | 0 |
| DY4 | 09 | DY4_LOJREM | C | 2 | 0 | Loja Remet. | Tienda Remit | Sender Store | Loja Remetente | Tienda Remitente | Sender Store | @! | - | x x x x x x x xx x x x x x x x x | - | - | 1 | x x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 002 | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 57276 | 0 |
| DY4 | 10 | DY4_FILDOC | C | 2 | 0 | Fil.Docto. | Suc.Docto. | Doc. Branch | Filial do Documento | Sucursal del Documento | Document Branch | - | - | x x x x x x x xx x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 57277 | 0 |
| DY4 | 11 | DY4_DOC | C | 9 | 0 | No.Docto. | No.Docto. | Doc. No. | Numero do Documento | Numero del Documento | Document Number | @! | - | x x x x x x x xx x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 018 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 57278 | 0 |
| DY4 | 12 | DY4_SERIE | C | 3 | 0 | Serie Docto. | Serie Docto. | Doc. Series | Serie do Documento | Serie de Documento | Document Series | !!! | - | x x x x x x x xx x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 094 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 57279 | 0 |
| DY4 | 13 | DY4_FILOCO | C | 2 | 0 | Fil.Ocorre. | Suc.Ocurre. | Occurr Branc | Filial da Ocorrencia | Sucursal de la ocurrencia | Occurrence Branch | - | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | N | A | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 57280 | 0 |
| DY4 | 14 | DY4_NUMOCO | C | 6 | 0 | No. Ocorre. | Nº Ocurre. | Occurr No | Numero da Ocorrencia | Número de la ocurrencia | Occurrence Number | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 57281 | 0 |
| DY4 | 15 | DY4_FILVIA | C | 2 | 0 | Fil.Viagem | Suc.Viaje | Trip Branch | Filial de Viagem | Sucursal de viaje | Trip Branch | - | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | N | A | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 57282 | 0 |
| DY4 | 16 | DY4_VIAGEM | C | 6 | 0 | Viagem | Viaje | Trip | Numero da Viagem | Número del viaje | Trip Number | - | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | N | A | R | - | - | - | - | - | - | - | - | 143 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 57283 | 0 |
| DY4 | 17 | DY4_SEQOCO | C | 4 | 0 | Sequencia | Secuencia | Sequence | Sequencia | Secuencia | Sequence | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 57284 | 0 |
| DY4 | 18 | DY4_SDOC | C | 3 | 0 | Série Doc. | Serie Doc. | Inv. Series | Série do Documento Fiscal | Serie de Documento Fiscal | Invoice Series | !!! | - | x x x x x x x x x x x x x x x | - | - | 1 | xx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 095 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 57285 | 0 |
| DY4 | 19 | DY4_SDOCC | C | 3 | 0 | Serie Dc.Cli | Serie Dc.Cli | Cst.Inv.Seri | Serie Docto. Cliente | Serie Docto. Cliente | Customer Invoice Series | !!! | - | x x x x x x x x x x x x x x x | - | - | 1 | xx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 095 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 57286 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DY4 | 1 | DY4_FILIAL+DY4_FILDOC+DY4_DOC+DY4_SERIE+DY4_NUMNFC+DY4_SERNFC+DY4_CODPRO | Fil.Docto. + No.Docto. + Serie Docto. + Doc.Cliente + Serie Dc.Cli + C | Suc.Docto. + No.Docto. + Serie Docto. + Doc.Cliente + Serie Dc.Cli + C | Doc. Branch + Doc. No. + Doc. Series + Customer Doc + Cus.Dc.Ser. + Pr | S | - | - | S | 2 | 3 | - | 8723 | 0 |
| DY4 | 2 | DY4_FILIAL+DY4_LOTNFC+DY4_NUMNFC+DY4_SERNFC+DY4_CODPRO+DY4_CLIREM+DY4_LOJREM | No.Lote + Doc.Cliente + Serie Dc.Cli + Cod. Produto + Remetente + Loja | No.Lote + Doc.Cliente + Serie Dc.Cli + Cod. Product + Remitente + Tien | Lot No. + Customer Doc + Cus.Dc.Ser. + Product Cd. + Sender + Sender S | S | - | - | N | 2 | 3 | - | 8724 | 0 |
| DY4 | 3 | DY4_FILIAL+DY4_NUMNFC+DY4_SERNFC+DY4_CLIREM+DY4_LOJREM+DY4_CODPRO+DY4_FILORI+DY4_LOTNFC | Doc.Cliente + Serie Dc.Cli + Remetente + Loja Remet. + Cod. Produto + | Doc.Cliente + Serie Dc.Cli + Remitente + Tienda Remit + Cod. Product + | Customer Doc + Cus.Dc.Ser. + Sender + Sender Store + Product Cd. + Ori | S | - | NFC | N | 2 | 3 | - | 8725 | 0 |
| DY4 | 4 | DY4_FILIAL+DY4_FILOCO+DY4_NUMOCO+DY4_FILVIA+DY4_VIAGEM+DY4_SEQOCO | Fil.Ocorre. + No. Ocorre. + Fil.Viagem + Viagem + Sequencia | Suc.Ocurre. + Nº Ocurre. + Suc.Viaje + Viaje + Secuencia | Occurr Branc + Occurr No + Trip Branch + Trip + Sequence | S | - | OCOR | N | 2 | 3 | - | 8726 | 0 |
Ela é utilizada para doc. transporte x doc. cliente 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
DY4_FILIAL,
DY4_FILORI,
DY4_LOTNFC,
DY4_NUMNFC,
DY4_SERNFC,
DY4_CODPRO,
DY4_QTDVOL,
DY4_CLIREM,
DY4_LOJREM,
DY4_FILDOC,
DY4_DOC,
DY4_SERIE,
DY4_FILOCO,
DY4_NUMOCO,
DY4_FILVIA,
DY4_VIAGEM,
DY4_SEQOCO,
DY4_SDOC,
DY4_SDOCC
FROM DY4
WHERE
D_E_L_E_T_ = ' '
AND DY4_FILIAL = 'VALOR'
AND DY4_FILORI = 'VALOR'
AND DY4_LOTNFC = 'VALOR'
AND DY4_NUMNFC = 'VALOR'
AND DY4_SERNFC = 'VALOR'
AND DY4_CODPRO = 'VALOR'
AND DY4_QTDVOL = 0
AND DY4_CLIREM = 'VALOR'
AND DY4_LOJREM = 'VALOR'
AND DY4_FILDOC = 'VALOR'
AND DY4_DOC = 'VALOR'
AND DY4_SERIE = 'VALOR'
AND DY4_FILOCO = 'VALOR'
AND DY4_NUMOCO = 'VALOR'
AND DY4_FILVIA = 'VALOR'
AND DY4_VIAGEM = 'VALOR'
AND DY4_SEQOCO = 'VALOR'
AND DY4_SDOC = 'VALOR'
AND DY4_SDOCC = 'VALOR'