Doc Exigidos Fornecedores
A tabela DD5 faz parte do sistema ERP Protheus da TOTVS e é utilizada para doc exigidos fornecedores.
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 DD5 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 DD5, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | DD5 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | DD5990 |
| X2_NOME | Doc Exigidos Fornecedores |
| X2_NOMESPA | Doc Exigidos proveedores |
| X2_NOMEENG | Supplier Demanded Docs |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | - |
| X2_PYME | N |
| X2_MODULO | 43 |
| X2_DISPLAY | DD5_FILIAL+DD5_CODFOR+DD5_LOJFOR+DD5_CODDOC |
| X2_SYSOBJ | TMSAD40 |
| 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_ | 3144 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DD5 | 01 | DD5_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 x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 033 | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 48695 | 0 |
| DD5 | 02 | DD5_CODFOR | C | 6 | 0 | Fornecedor | Proveedor | Vendor | Codigo do Fornecedor | Codigo del Proveedor | Vendor code | @! | - | x x xx x x x xx x x x x x x x x | - | - | 1 | x xxx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 001 | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 48696 | 0 |
| DD5 | 03 | DD5_LOJFOR | C | 2 | 0 | Loja | Tienda | Store | Loja do Fornecedor | Tienda del Proveedor | Vendor store | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | x xxx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 002 | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 48697 | 0 |
| DD5 | 04 | DD5_NOMFOR | C | 50 | 0 | Nome fornec. | Nombre Prov. | Vendor name | Nome do Fornecedor | Nombre del Proveedor | Vendor name | @! | - | x x x x x x xx x x x x x x x x | IF(!INCLUI,POSICIONE('SA2',1,xFilial('SA2')+DD5->(DD5_CODFOR+DD5_LOJFOR),'A2_NOME'), '') | - | 1 | x xx | - | - | - | N | V | V | - | - | - | - | - | - | - | - | 177 | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 48698 | 0 |
| DD5 | 05 | DD5_CODDOC | C | 3 | 0 | Cod. Docto. | Cod. Docto. | Doc. code | Codigo do Documento | Codigo de Documento | Document code | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | x xxx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 48699 | 0 |
| DD5 | 06 | DD5_DESDOC | C | 30 | 0 | Desc. Docto. | Desc. Docto. | Doc. descr. | Descrição do Documento | Descripcion del Documento | Document description | @! | - | x x x x x x xx x x x x x x x x | IF(!INCLUI,POSICIONE('DD0',1,xFilial('DD0')+DD5->DD5_CODDOC,'DD0_DESDOC'),'') | - | 1 | x xx | - | - | - | N | V | V | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 48700 | 0 |
| DD5 | 07 | DD5_DTAAPR | D | 8 | 0 | Data Apres. | Fcha Pres. | Pres. date | Data da Apresentação | Fecha de Presentacion | Presentation date | @D | - | x x x x x x xx x x x x x x x x | - | - | 1 | x xxx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 48701 | 0 |
| DD5 | 08 | DD5_RESPON | C | 15 | 0 | Usuar. Resp. | Usuar. Resp. | Resp. user | Usuario Responsavel | Usuario Responsable | Responsible user | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | x xxx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 48702 | 0 |
| DD5 | 09 | DD5_TIPO | C | 1 | 0 | Tipo da Bx. | Tipo de Bj. | Posting Type | Tipo da Baixa | Tipo de Baja | Posting Type | @! | Pertence('12') | x x x x x x xx x x x x x x x x | - | - | 1 | xx | - | - | - | N | A | R | - | - | 1=Baixa;2=Tolerancia | 1=Baja;2=Tolerancia | 1=Posting;2=Tolerance | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 48703 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DD5 | 1 | DD5_FILIAL+DD5_CODFOR+DD5_LOJFOR+DD5_CODDOC | Fornecedor + Loja + Cod. Docto. | Proveedor + Tienda + Cod. Docto. | Vendor + Store + Doc. code | S | - | - | S | 2 | 3 | - | 7569 | 0 |
Ela é utilizada para doc exigidos fornecedores 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
DD5_FILIAL,
DD5_CODFOR,
DD5_LOJFOR,
DD5_NOMFOR,
DD5_CODDOC,
DD5_DESDOC,
DD5_DTAAPR,
DD5_RESPON,
DD5_TIPO
FROM DD5
WHERE
D_E_L_E_T_ = ' '
AND DD5_FILIAL = 'VALOR'
AND DD5_CODFOR = 'VALOR'
AND DD5_LOJFOR = 'VALOR'
AND DD5_NOMFOR = 'VALOR'
AND DD5_CODDOC = 'VALOR'
AND DD5_DESDOC = 'VALOR'
AND DD5_DTAAPR BETWEEN '20260601' AND '20260630'
AND DD5_RESPON = 'VALOR'
AND DD5_TIPO = 'VALOR'