Lote de Entrada Notas Fiscais
A tabela DTP faz parte do sistema ERP Protheus da TOTVS e é utilizada para lote de entrada notas fiscais.
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 DTP 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 DTP, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | DTP |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | DTP990 |
| X2_NOME | Lote de Entrada Notas Fiscais |
| X2_NOMESPA | Lote de entrada facturas |
| X2_NOMEENG | Batch of Incoming Invoice |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | - |
| X2_PYME | S |
| X2_MODULO | 43 |
| X2_DISPLAY | DTP_FILIAL+DTP_FILORI+DTP_TIPLOT+DTP_STATUS+ALLTRIM(STR(DTP_QTDDIG))+DTP_LOTNFC |
| X2_SYSOBJ | TMSA170 |
| 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_ | 3504 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DTP | 01 | DTP_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 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 54367 | 0 |
| DTP | 02 | DTP_FILORI | C | 2 | 0 | Fil.Origem | Suc.Origen | Orig.Branch | Filial de Origem | Sucursal de Origen | Origin Branch | - | - | x x x x x x xx x x x x x x x x | cFilAnt | - | 1 | xx | - | - | - | S | V | - | - | - | - | - | - | - | - | - | 033 | 1 | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 54368 | 0 |
| DTP | 03 | DTP_LOTNFC | C | 6 | 0 | No.Lote | Nº Lote | Batch No. | Numero do Lote | Numero de Lote | Batch Number | @! | - | x x x x x x xx x x x x x x x x | GetSx8Num("DTP","DTP_LOTNFC") | - | 1 | xx | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 54369 | 0 |
| DTP | 04 | DTP_DATLOT | D | 8 | 0 | Data Lote | Fecha Lote | Batch Dt. | Data Digitacao do Lote | Fecha Digitacion de Lote | Batch Typing Date | - | - | x x x x x x x x x x x x x x x x | dDatabase | - | 1 | xxx | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 54370 | 0 |
| DTP | 05 | DTP_HORLOT | C | 4 | 0 | Hora Lote | Hora Lote | Batch Time | Hora Digitacao Lote | Hora Digitacion Lote | Batch Typing Time | @R 99:99 | - | x x x x x x x x x x x x x x x x | Substr( Time(), 1, 2 ) + Substr( Time(), 4, 2 ) | - | 1 | xxx | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 54371 | 0 |
| DTP | 06 | DTP_QTDLOT | N | 3 | 0 | Qtd.Lote | Cant.Lote | Lot Amt. | Qtd. Notas por Lote | Ctd. Facturas por Lote | No. of Invoices per Lot | 999 | TmsA170Vld() | x x x x x x xx x x x x x x x x | - | - | 1 | xx xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 54372 | 0 |
| DTP | 07 | DTP_QTDDIG | N | 3 | 0 | Qtd.Digitada | Cant.Digit. | Entered Amt. | Qtd. Doctos. Digitados | Ctd. Documentos Digitados | No. of Docum. Typed | 999 | TmsA170Vld() | x x x x x x xx x x x x x x x x | - | - | 1 | xx x | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 54373 | 0 |
| DTP | 08 | DTP_NUMSOL | C | 9 | 0 | No.Sl.Coleta | No.Sl.Colect | CollecReqNo | No.Sol.Coleta | No.Sol.Colecta | Collec.Req.No. | @! | Vazio() .Or. ExistCpo("DT5",M->DTP_FILORI+M->DTP_NUMSOL) .And. TMSA170Vld() | x x x x x x xx x x x x x x x x | - | DLX | 1 | x | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 018 | 1 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 54374 | 0 |
| DTP | 09 | DTP_STATUS | C | 1 | 0 | Status Lote | Estatus Lote | Batch Status | Status do Lote | Estatus del Lote | Batch Status | @! | Pertence("12345") | x x x x x x xx x x x x x x x x | "1" | - | 1 | x x | - | - | - | - | V | - | - | - | 1=Aberto;2=Digitado;3=Calculado;4=Bloqueado;5=Erro de Gravacao | 1=Pendiente;2=Digitado;3=Calculado;4=Bloqueado;5=Error de Grabacion | 1=Open;2=Typed;3=Calculated;4=Blocked;5=Write Error | - | - | - | - | 1 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 54375 | 0 |
| DTP | 10 | DTP_VIAGEM | C | 6 | 0 | Viagem | Viaje | Trip | Numero da Viagem | Numero de Viaje | Trip Number | - | Vazio() .Or. Tmsa170Vld() | x x x x x x x x x x x x x x x x | TMSA144VGE() | DTQTMS | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | TmsExp() .AND. TMSA170Whe("M->DTP_VIAGEM") | - | 143 | 3 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 54376 | 0 |
| DTP | 11 | DTP_TIPLOT | C | 1 | 0 | Tipo Lote | Tipo lote | Batch Type | Tipo de Lote | Tipo de lote | Batch Type | @! | Pertence("12345") .And. TmsA170Vld() | x x x x x x xx x x x x x x x x | "1" | - | 1 | x | - | - | - | S | A | R | - | - | 1=Normal;2=Refaturamento;3=Eletronico;4=CTe Unico(Globalizado);5=Coleta | 1=Normal;2=Refacturación;3=Electrónico;4=eCT único(Globalizado);5=Recol. | 1=Regular;2=Re-invoicing;3=Electronic;4=Single CTe (Globalized);5=Pick up | - | - | - | - | 1 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 54377 | 0 |
| DTP | 12 | DTP_NUMCOT | C | 6 | 0 | No.Cotacao | Nº Cotizac. | Quot. No. | No.Cotacao de Frete | Nº Cotizacion de Flete | Freight Quotation No. | @! | TMSA170Vld() | x x x x x x xx x x x x x x x x | - | DT4 | 1 | xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 54378 | 0 |
| DTP | 13 | DTP_SITCTE | C | 1 | 0 | Situacao CTe | Situac CTe | CTe Status | Situacao CTe | Situacion CTe | CTe Status | @! | Pertence("0123456") | x x x x x x x x x x x x x x x | "0" | - | 1 | x | - | - | - | N | V | R | - | - | 0=Nao Se Aplica;1=Aguardando;2=Autorizado;3=Nao Autorizado;4=Em Contingencia;5=Falha Comunicacao;6=Nao Transmitido | 0=No Se Aplica;1=Aguardando;2=Autorizado;3=No Autorizado;4=En Contingencia;5=Falla Comunicacion;6=No Transmitido | 0=Not Applicable;1=Waiting;2=Authorized;3=Not Authorized;4=In Contingency;5=Communication Failure;6=Not Transmitted | - | - | - | - | 1 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 54379 | 0 |
| DTP | 14 | DTP_RATEIO | C | 1 | 0 | Rateio? | Prorrateo | Apportionmnt | Rateio? | Prorrateo | Apportionment | @! | Pertence("12") | x x x x x x x x x x x x x x x x | "2" | - | 1 | xxx | - | - | - | S | A | R | - | - | 1=Sim;2=Nao | 1=Si;2=No | 1=Yes;2=No | - | TMSA170Whe("M->DTP_RATEIO") | - | - | 2 | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 54380 | 0 |
| DTP | 15 | DTP_VIACOL | C | 6 | 0 | Viag. Coleta | Viaj. Recol | Collect Trip | Viagem de Coleta | Viaje de recolección | Collection Trip | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 143 | 3 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 54381 | 0 |
| DTP | 16 | DTP_BACRAT | C | 1 | 0 | Base Calc.Ra | Base Calc.Pr | Calc.Bas.App | Base Calc.Rat. | Base Calc.Prorrateo | Apportionment Calc. Basis | - | Pertence('123') | x x x x x x x x x x x x x x x x | "1" | - | 1 | xx | - | - | - | N | V | R | - | - | 1=Nao Utiliza;2=Ponto a Ponto;3=Consolidado | 1=No Utiliza;2=Punnto por Punto;3=Consolidado | 1=Does Not Use;2=Point to Point;3=Consolidated | - | - | - | - | 2 | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 54382 | 0 |
| DTP | 17 | DTP_CRIRAT | C | 1 | 0 | Crit.Calc.Ra | Crit.Calc.Pr | App.Calc.Cri | Criterio Calc.Rat. | Criterio Calc.Prorrateo | App.Calc.Criteria | - | Pertence('123456789ABC') | x x x x x x x x x x x x x x x x | "1" | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 54383 | 0 |
| DTP | 18 | DTP_DECRIR | C | 30 | 0 | Desc.Cri.Cal | Desc.Cri.Cal | Cal Cri Desc | Descricao Crit.Cal. Ratei | Descrip. Crit.Cál. Prorra | Apport Calc Crit Descrip | @! | - | x x x x x x x x x x x x x x x x | If(!Inclui,TMSValField('DTP->DTP_CRIRAT',.F.,'DTP_DECRIR'),'') | - | 1 | xx | - | - | - | S | V | V | - | - | - | - | - | - | - | TMSValField('DTP->DTP_CRIRAT',.F.,'DTP_DECRIR') | - | 2 | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 54384 | 0 |
| DTP | 19 | DTP_PRORAT | C | 1 | 0 | Criterio Rat | Criterio Pro | App.Criteria | Criterio Rateio | Criterio Prorrateo | Apportionment Criteria | - | Pertence('123456789ABCD') | x x x x x x x x x x x x x x x x | "1" | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 54385 | 0 |
| DTP | 20 | DTP_ORIRAT | C | 6 | 0 | Cod.Origem R | Cod.Origen P | App.Src.Code | Cod.Origem Rateio | Cod.Origen prorrateo | Apportionment Source Code | @! | - | x x x x x x x x x x x x x x x x | - | DUY | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 54386 | 0 |
| DTP | 21 | DTP_DEPROR | C | 30 | 0 | Desc.Cri.Rat | Desc.Cri.Pro | App Cri Desc | Descricao Criterio Rateio | Descrip. Criterio Prorrat | Apport Criteria Descrip | @! | - | x x x x x x x x x x x x x x x x | If(!Inclui,TMSValField('DTP->DTP_PRORAT',.F.,'DTP_DEPROR'),'') | - | 1 | xx | - | - | - | S | V | V | - | - | - | - | - | - | - | TMSValField('DTP->DTP_CRIRAT',.F.,'DTP_DECRIR') | - | 2 | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 54387 | 0 |
| DTP | 22 | DTP_CALRAT | C | 6 | 0 | Cod.Calc. Ra | Cod.Calc. Pr | App.Calc.Cod | Cod.Calc. Rateio | Cod.Calc. Prorrateo | Apportionment Calc. Code | @! | - | x x x x x x x x x x x x x x x x | - | DUY | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 54388 | 0 |
| DTP | 23 | DTP_TABRAT | C | 4 | 0 | Tab.Frete Ra | Tab.Flete Pr | Ap.Freight.T | Tabela de Frete Rat. | Tabla de flete prorrateo | App. Freight Table | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 54389 | 0 |
| DTP | 24 | DTP_TIPRAT | C | 2 | 0 | Tp.Tab.Fre.R | Tp.Tab.Fle.P | AppFr.Tab.Tp | Tp.Tab.Fre.Rat. | Tp.Tab.Fle.Pror. | App.Freight Table Type | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 54390 | 0 |
| DTP | 25 | DTP_TBARAT | C | 4 | 0 | Tab.Alter.Ra | Tab.Alter.Pr | App.Alt.Tabl | Tabela Alternativa de Rat | Tabla Alternativa de Pror | App Alternative Table | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 54391 | 0 |
| DTP | 26 | DTP_TPARAT | C | 2 | 0 | Tp.Tab.Alt.R | Tp.Tab.Alt.P | Tp.Alt.Tab.A | Tp.Tab.Alt.Rat. | Tp.Tab.Alt.Prorat. | Tp.Tab.Alt.App. | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 54392 | 0 |
| DTP | 27 | DTP_CRDVFA | C | 1 | 0 | Crit.Dev.Fal | Crit.Deu.Fal | Miss Deb Cri | Criterio Devedor Faltante | Criterio deudor faltante | Missing Debtor Criteria | @! | Pertence('012') | x x x x x x x x x x x x x x x x | '0' | - | 1 | xx | - | - | - | N | V | R | - | - | 0=Não Utiliza;1=Divisão Aritmetica;2=Divisão Proporcional | 0=No utiliza;1=División aritmética;2=División proporcional | 0=Does not use;1=Arithmetic Division;2=Proportional Division | - | - | - | - | 2 | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 54393 | 0 |
| DTP | 28 | DTP_CRDVDC | C | 1 | 0 | Cri.Pro.Col. | Cri.Pro.Rec. | Col Pro Cri | Criterio Prop.Vlr. Coleta | Criterio Prop.Val. Recol. | Collection Val Prop Crit | @! | Pertence('01234567') | x x x x x x x x x x x x x x x x | '1' | - | 1 | xx | - | - | - | N | V | R | - | - | 0=Não Utiliza;1=Peso Real;2=Peso Cubado;3=Vlr Mercadoria;4=Volumes;5=M3;6=Qtd Doctos | 0=No utiliza;1=Peso real;2=Peso cubicado;3=Val Mercadería;4=Volúmenes;5=M3;6=Ctd Doctos | 0=Not Used;1=Actual Weight;2=Cubed Weight;3=Goods Value;4=Volumes;5=M3;6=Docs Qty | - | - | - | - | 2 | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 54394 | 0 |
| DTP | 29 | DTP_NCONTR | C | 15 | 0 | No.Contrato | Nº Contrato | Contract No. | No.Contrato Cli.Dev. | Nº Contrato Cli.Dev. | Deb Cust Contract No. | @! | Vazio() .Or. ExistCpo("AAM") | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | 2 | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 54395 | 0 |
| DTP | 30 | DTP_KM | N | 7 | 1 | KM | KM | KM | KM | KM | KM | @E 99,999.9 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | 2 | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 54396 | 0 |
| DTP | 31 | DTP_ROTA | C | 6 | 0 | Rota | Ruta | Route | Codigo da Rota | Código de la ruta | Route Code | @! | TMSA170VLD() | x x x x x x x x x x x x x x x x | - | DU5 | 1 | xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | 041 | 3 | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 54397 | 0 |
| DTP | 32 | DTP_ROTEIR | C | 9 | 0 | Roteiro | Itinerario | Itinerary | Codigo do Roteiro | Código del itinerario | Itinerary Code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | 3 | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 54398 | 0 |
| DTP | 33 | DTP_CODNEG | C | 2 | 0 | Cod Negociac | Cód Negociac | Negot Code | Codigo da Negociação | Código de la negociación | Negotiation Code | @! | Existcpo("DDB") | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 119 | 2 | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 54399 | 0 |
| DTP | 34 | DTP_SERVIC | C | 3 | 0 | Serviço | Servicio | Service | Serviço de Negociação | Servicio de negociación | Negotiation Service | @! | ExistCpo("DC5",,1) | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 012 | 2 | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 54400 | 0 |
| DTP | 35 | DTP_SERTMS | C | 1 | 0 | Servic TMS | Servic TMS | TMS Servic | Serviço do TMS | Servicio del TMS | TMS Service | @! | TMSA170VLD() | x x x x x x x x x x x x x x x x | "3" | - | 1 | x x | - | - | - | N | A | R | - | - | 1=Coleta;2=Transferência;3=Entrega | 1=Recolección;2=Transferencia;3=Entrega | 1=Pickup;2=Transfer;3=Delivery | - | - | - | - | 3 | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 54401 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DTP | 1 | DTP_FILIAL+DTP_LOTNFC | No.Lote | Nº Lote | Batch No. | S | - | - | S | 2 | 3 | - | 8318 | 0 |
| DTP | 2 | DTP_FILIAL+DTP_FILORI+DTP_LOTNFC | Fil.Origem + No.Lote | Suc.Origen + Nº Lote | Orig.Branch + Batch No. | S | - | - | S | 2 | 3 | - | 8319 | 0 |
| DTP | 3 | DTP_FILIAL+DTP_FILORI+DTP_VIAGEM | Fil.Origem + Viagem | Suc.Origen + Viaje | Orig.Branch + Trip | S | - | - | S | 2 | 3 | - | 8320 | 0 |
| DTP | 4 | DTP_FILIAL+DTP_FILORI+DTP_TIPLOT+DTP_STATUS | Fil.Origem + Tipo Lote + Status Lote | Suc.Origen + Tipo lote + Estatus Lote | Orig.Branch + Batch Type + Batch Status | S | - | - | S | 2 | 3 | - | 8321 | 0 |
Ela é utilizada para lote de entrada notas fiscais 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
DTP_FILIAL,
DTP_FILORI,
DTP_LOTNFC,
DTP_DATLOT,
DTP_HORLOT,
DTP_QTDLOT,
DTP_QTDDIG,
DTP_NUMSOL,
DTP_STATUS,
DTP_VIAGEM,
DTP_TIPLOT,
DTP_NUMCOT,
DTP_SITCTE,
DTP_RATEIO,
DTP_VIACOL,
DTP_BACRAT,
DTP_CRIRAT,
DTP_DECRIR,
DTP_PRORAT,
DTP_ORIRAT,
DTP_DEPROR,
DTP_CALRAT,
DTP_TABRAT,
DTP_TIPRAT,
DTP_TBARAT,
DTP_TPARAT,
DTP_CRDVFA,
DTP_CRDVDC,
DTP_NCONTR,
DTP_KM,
DTP_ROTA,
DTP_ROTEIR,
DTP_CODNEG,
DTP_SERVIC,
DTP_SERTMS
FROM DTP
WHERE
D_E_L_E_T_ = ' '
AND DTP_FILIAL = 'VALOR'
AND DTP_FILORI = 'VALOR'
AND DTP_LOTNFC = 'VALOR'
AND DTP_DATLOT BETWEEN '20261001' AND '20261031'
AND DTP_HORLOT = 'VALOR'
AND DTP_QTDLOT = 0
AND DTP_QTDDIG = 0
AND DTP_NUMSOL = 'VALOR'
AND DTP_STATUS = 'VALOR'
AND DTP_VIAGEM = 'VALOR'
AND DTP_TIPLOT = 'VALOR'
AND DTP_NUMCOT = 'VALOR'
AND DTP_SITCTE = 'VALOR'
AND DTP_RATEIO = 'VALOR'
AND DTP_VIACOL = 'VALOR'
AND DTP_BACRAT = 'VALOR'
AND DTP_CRIRAT = 'VALOR'
AND DTP_DECRIR = 'VALOR'
AND DTP_PRORAT = 'VALOR'
AND DTP_ORIRAT = 'VALOR'
AND DTP_DEPROR = 'VALOR'
AND DTP_CALRAT = 'VALOR'
AND DTP_TABRAT = 'VALOR'
AND DTP_TIPRAT = 'VALOR'
AND DTP_TBARAT = 'VALOR'
AND DTP_TPARAT = 'VALOR'
AND DTP_CRDVFA = 'VALOR'
AND DTP_CRDVDC = 'VALOR'
AND DTP_NCONTR = 'VALOR'
AND DTP_KM = 0
AND DTP_ROTA = 'VALOR'
AND DTP_ROTEIR = 'VALOR'
AND DTP_CODNEG = 'VALOR'
AND DTP_SERVIC = 'VALOR'
AND DTP_SERTMS = 'VALOR'