EDI - Pré-Fatura
A tabela DEB faz parte do sistema ERP Protheus da TOTVS e é utilizada para edi - pré-fatura.
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 DEB 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 DEB, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | DEB |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | DEB990 |
| X2_NOME | EDI - Pré-Fatura |
| X2_NOMESPA | EDI - Factura previa |
| X2_NOMEENG | EDI - Proforma Invoice |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | DEB_FILIAL+DEB_CGCDEV+DEB_NUMPRE+DEB_FILDOC+DEB_DOC+DEB_SERIE |
| X2_PYME | S |
| X2_MODULO | 43 |
| X2_DISPLAY | DEB_FILIAL+DEB_CGCREM+DEB_DOC+DEB_SERIE |
| X2_SYSOBJ | TMSAE45 |
| 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_ | 3182 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DEB | 01 | DEB_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 | - | - | - | N | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49326 | 0 |
| DEB | 02 | DEB_CGCREM | C | 14 | 0 | CGC Remet. | CGC Remit. | Remitt.CGC | CGC do Remetente | CGC del Remitente | Remitter CGC | @R! NN.NNN.NNN/NNNN-99 | Vazio() .Or. TMSAE45VLD() | x x x x x x xx x x x x x x x x | - | DE5 | 1 | x xxx | - | S | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 49327 | 0 |
| DEB | 03 | DEB_NOMREM | C | 50 | 0 | Nome Remet. | Nomb Remit. | Remitt.Name | Nome do Remetente | Nombre del Remitente | Remitter Name | @! | - | x x x x x x x x x x x x x x x x | If(!Inclui,Posicione("SA1",3,xFilial("SA1")+DEB->DEB_CGCREM,"A1_NREDUZ"),"") | - | 1 | x x xx x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("SA1",3,xFilial("SA1")+DEB->DEB_CGCREM,"A1_NREDUZ") | 175 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49328 | 0 |
| DEB | 04 | DEB_DOC | C | 9 | 0 | No Docto | No Docto | Doct. number | Numero do Documento | Numero del Documento | Document number | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xxx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | 018 | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 49329 | 0 |
| DEB | 05 | DEB_SERIE | C | 3 | 0 | Serie Docto | Serie Docto | Doct. Series | Serie do Documento | Serie del Documento | Document Series | !!! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 094 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49330 | 0 |
| DEB | 06 | DEB_CODDEP | C | 5 | 0 | Cod Deposito | Cod Deposito | Deposit Code | Codigo do Deposito | Codigo del Deposito | Deposit Code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49331 | 0 |
| DEB | 07 | DEB_CGCDES | C | 14 | 0 | CGC Destin. | CGC Destin. | Address. CGC | CGC do Destinatario | CGC del Destinatario | Addressee CGC | @R! NN.NNN.NNN/NNNN-99 | Vazio() .Or. TMSAE45VLD() | x x x x x x xx x x x x x x x x | - | DE5 | 1 | x xxx | - | S | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 49332 | 0 |
| DEB | 08 | DEB_NOMDES | C | 50 | 0 | Nome Dest. | Nombre Dest. | Addr. Name | Nome do Destinatario | Nombre del Destinatario | Addressee Name | @! | - | x x x x x x x x x x x x x x x x | If(!Inclui,Posicione("SA1",3,xFilial("SA1")+DEB->DEB_CGCDES,"A1_NREDUZ"),"") | - | 1 | x x xx x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("SA1",3,xFilial("SA1")+DEB->DEB_CGCDES,"A1_NREDUZ") | 175 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49333 | 0 |
| DEB | 09 | DEB_CODTRA | C | 3 | 0 | Cod Transp. | Cod Transp. | Carrier Code | Codigo da Transportadora | Codigo de Transportadora | Carrier Code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49334 | 0 |
| DEB | 10 | DEB_NUMPRE | C | 8 | 0 | No Pre-Fat. | No Fact Prev | Pre-Inv.Nbr. | Numero da Pre-Fatura | Numero de Factura Previa | Pre Invoice Number | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xxx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 49335 | 0 |
| DEB | 11 | DEB_TIPFRE | C | 1 | 0 | Tipo Frete | Tipo Flete | Freight Type | Tipo de Frete | Tipo de Flete | Freight Type | @! | Pertence("12") | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | - | - | - | - | 1=CIF;2=FOB | 1=CIF;2=FOB | 1=CIF;2=FOB | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49336 | 0 |
| DEB | 12 | DEB_MODALI | C | 1 | 0 | Modalidade | Modalidad | Modality | Modalidade | Modalidad | Modality | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49337 | 0 |
| DEB | 13 | DEB_DATVEN | D | 8 | 0 | Data Vencto | Fecha Vencto | Due Date | Data de Vencimento | Fecha de Vencimiento | Due Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49338 | 0 |
| DEB | 14 | DEB_VALOR | N | 12 | 2 | Valor Fatura | Valor Factur | Invoi. Value | Valor da Pre-Fatura | Valor de Factura Previa | Pre Invoice Value | @E 9,999,999.99 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49339 | 0 |
| DEB | 15 | DEB_DATINI | D | 8 | 0 | Data Inicio | Fecha Inicio | Initial Date | Data Inicio do Fechamento | Fecha Inicio del Cierre | Closing Initial Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49340 | 0 |
| DEB | 16 | DEB_DATFIM | D | 8 | 0 | Data Fim | Fecha Fin | End Date | Data Fim | Fecha Fin | End Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49341 | 0 |
| DEB | 17 | DEB_VLRBAC | N | 12 | 2 | Valor Blq Ac | Valor Blq Ac | Acc.Lock.Val | Valor Bloqueio Acumulado | Valor Bloqueo Acumulado | Accrued Lock Value | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49342 | 0 |
| DEB | 18 | DEB_VLRDSB | N | 12 | 2 | Valor Desbl. | Valor Desbl. | Unlock Value | Valor de Desbloqueio | Valor de Desbloqueo | Unlocking Value | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49343 | 0 |
| DEB | 19 | DEB_NUMPRO | C | 8 | 0 | No Protocolo | No Protocolo | Regist. Nbr. | Numero do Protocolo | Numero del Protocolo | Registration Number | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49344 | 0 |
| DEB | 20 | DEB_CHAPA | C | 8 | 0 | No Chapa | No Patente | Regist. Nbr. | Numero Chapa | Numero Patente | Rgistration Number | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49345 | 0 |
| DEB | 21 | DEB_SAICTR | D | 8 | 0 | Saida Conhec | Salida Conoc | Bill Lad.Out | Data Saida Conhecimento | Fecha Salida Conecimiento | Bill of Ladding Outg.Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49346 | 0 |
| DEB | 22 | DEB_QTDVOL | N | 8 | 2 | Qtde Vols | Cant Vols | Vols. Qty. | Quantidade de Volumes | Cantidad de Volumenes | Volumes Quantity | @E 99,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49347 | 0 |
| DEB | 23 | DEB_PESO | N | 8 | 2 | Peso | Peso | Weight | Peso | Peso | Weight | @E 99,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49348 | 0 |
| DEB | 24 | DEB_VALBRT | N | 12 | 2 | Valor Bruto | Valor Bruto | Gross Value | Valor Bruto | Valor Bruto | Gross Value | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49349 | 0 |
| DEB | 25 | DEB_FRTPES | N | 12 | 2 | Frete Peso | Flete Peso | Weight Frght | Frete Peso | Flete Peso | Weight Freight | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49350 | 0 |
| DEB | 26 | DEB_TAXA | N | 12 | 2 | Vlr Taxas | Vlr Tasas | Fees Value | Valor das Taxas | Valor de las Tasas | Fees Value | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49351 | 0 |
| DEB | 27 | DEB_TRIBUT | N | 12 | 2 | Vlr Tributo | Vlr Tributo | Tax Value | Valor do Tributo | Valor del Tributo | Tax Value | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49352 | 0 |
| DEB | 28 | DEB_PEDAG | N | 12 | 2 | Vlr Pedagio | Vlr Peaje | Toll Value | Valor do Pedagio | Valor del Peaje | Toll Value | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49353 | 0 |
| DEB | 29 | DEB_ADEME | N | 12 | 2 | Vlr Ademe | Vlr Ademe | Ademe Value | Valor do Ademe | Valor de Ademe | Ademe Value | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49354 | 0 |
| DEB | 30 | DEB_ICMS | N | 12 | 2 | Vlr ICMS | Vlr ICMS | ICMS Value | Valor do ICMS | Valor del ICMS | ICMS Value | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49355 | 0 |
| DEB | 31 | DEB_VALTOT | N | 12 | 2 | Vlr Total | Vlr Total | Total Value | Valor Total | Valor Total | Total Value | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49356 | 0 |
| DEB | 32 | DEB_FRTURB | C | 1 | 0 | Tipo Frt Urb | Tipo Flt Urb | Urb.Frgt.Tp. | Tipo do Frete Urbano | Tipo de Flete Urbano | Urban Freight Type | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49357 | 0 |
| DEB | 33 | DEB_EMINFC | D | 8 | 0 | Data Emissao | Fch Emision | Issue Date | Data de Emissao NF | Fecha de Emision Factura | Invoice Issue Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49358 | 0 |
| DEB | 34 | DEB_PESONF | N | 8 | 2 | Peso NF | Peso Fact | Inv. Weight | Peso da Nota Fiscal | Peso de la Factura | Invoice Weight | @E 99,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49359 | 0 |
| DEB | 35 | DEB_VALMER | N | 12 | 2 | Vlr Mercador | Vlr Mercad. | Goods Value | Valor da Mercadoria | Valor de la Mercaderia | Goods Value | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49360 | 0 |
| DEB | 36 | DEB_NUMROT | C | 10 | 0 | No Roteiro | No Itinerar. | Route Number | Numero do Roteiro | Numero del Itinerario | Route Number | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49361 | 0 |
| DEB | 37 | DEB_NOMCLI | C | 50 | 0 | Nome Cliente | Nomb Cli DDF | DDF Cust. Nm | Nome Cliente | Nombre Cliente DDF | DDF Customer Name | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | 175 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49362 | 0 |
| DEB | 38 | DEB_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 | - | - | - | 49363 | 0 |
| DEB | 39 | DEB_PREFIX | C | 3 | 0 | Prefixo Fat | Prefijo Fact | Inv Prefix | Prefixo Fatura | Prefijo Factura | Invoice Prefix | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | - | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 49364 | 0 |
| DEB | 40 | DEB_NUMFAT | C | 9 | 0 | Num Fatura | Núm factura | Invoice No. | Numero da Fatura | Número de la factura | Invoice Number | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | - | A | R | - | - | - | - | - | - | - | - | 018 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 49365 | 0 |
| DEB | 41 | DEB_TIPO | C | 3 | 0 | Tipo Fat. | Tipo Fact. | Inv Type | Tipo Fatura | Tipo de factura | Invoice Type | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 49366 | 0 |
| DEB | 42 | DEB_PARCEL | C | 2 | 0 | Parc Fatura | Cuota Factur | Inv Install | Parcela da Fatura | Cuota de la factura | Invoice Installment | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | - | A | R | - | - | - | - | - | - | - | - | 011 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 49367 | 0 |
| DEB | 43 | DEB_VLRDOC | N | 12 | 2 | Vlr Doc | Vlr Doc | Doc Val | Valor Documento | Valor Documento | Document Value | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | - | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 49368 | 0 |
| DEB | 44 | DEB_VLRDES | N | 12 | 2 | Vl Desconto | Val Descuent | Discount Amt | Valor do Desconto | Valor del descuento | Discount Amount | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | - | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 49369 | 0 |
| DEB | 45 | DEB_VLRACR | N | 12 | 2 | Vl Acrescimo | Val Incremen | Addition Amt | Valor Acréscimo | Valor Incremento | Addition Amt | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | - | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 49370 | 0 |
| DEB | 46 | DEB_STATUS | M | 10 | 0 | Status | Estatus | Status | Status Documento | Estatus Documento | Document Status | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | - | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 49371 | 0 |
| DEB | 47 | DEB_CGCDEV | C | 14 | 0 | CGC Devedor | RCPF Deudor | CGC Debtor | CGC do Devedor | RCPF del deudor | CGC Debtor | @R! NN.NNN.NNN/NNNN-99 | Vazio() .Or. CGC(M->DEB_CGCDEV) | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | S | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 49372 | 0 |
| DEB | 48 | DEB_NOMDEV | C | 50 | 0 | Nome Dev. | Nombre Deud. | Debtor Nm | Nome Devedor | Nombre deudor | Debtor Name | @! | - | x x x x x x xx x x x x x x x x | If(!Inclui,Posicione("SA1",3,xFilial("SA1")+DEB->DEB_CGCDEV,"A1_NREDUZ"),"") | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("SA1",3,xFilial("SA1")+DEB->DEB_CGCDEV,"A1_NREDUZ") | 175 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 49373 | 0 |
| DEB | 49 | DEB_FILDOC | C | 2 | 0 | Fil.Docto. | Suc.Docto. | Doc. Br. | Filial do Documento | Sucursal del documento | Document Branch | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 49374 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DEB | 1 | DEB_FILIAL+DEB_CGCREM+DEB_DOC+DEB_SERIE | CGC Remet. + No Docto + Serie Docto | CGC Remit. + No Docto + Serie Docto | Remitt.CGC + Doct. number + Doct. Series | S | - | - | S | 2 | 3 | - | 7643 | 0 |
| DEB | 2 | DEB_FILIAL+DEB_CGCREM+DEB_NUMPRE | CGC Remet. + No Pre-Fat. | CGC Remit. + No Fact Prev | Remitt.CGC + Pre-Inv.Nbr. | S | - | - | S | 2 | 3 | - | 7644 | 0 |
| DEB | 3 | DEB_FILIAL+DEB_CGCREM+DEB_DOC+DEB_SDOC | CGC Remet. + No Docto + Série Doc. | CGC Remit. + No Docto + Serie Doc. | Remitt.CGC + Doct. number + Inv.Series | S | - | - | N | 2 | 3 | - | 7645 | 0 |
| DEB | 4 | DEB_FILIAL+DEB_CGCDEV+DEB_NUMPRE+DEB_FILDOC+DEB_DOC+DEB_SERIE | CGC Devedor + No Pre-Fat. + Fil.Docto. + No Docto + Serie Docto | RCPF Deudor + No Fact Prev + Suc.Docto. + No Docto + Serie Docto | CGC Debtor + Pre-Inv.Nbr. + Doc. Br. + Doct. number + Doct. Series | S | - | - | S | 2 | 3 | - | 7646 | 0 |
Ela é utilizada para edi - pré-fatura 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
DEB_FILIAL,
DEB_CGCREM,
DEB_NOMREM,
DEB_DOC,
DEB_SERIE,
DEB_CODDEP,
DEB_CGCDES,
DEB_NOMDES,
DEB_CODTRA,
DEB_NUMPRE,
DEB_TIPFRE,
DEB_MODALI,
DEB_DATVEN,
DEB_VALOR,
DEB_DATINI,
DEB_DATFIM,
DEB_VLRBAC,
DEB_VLRDSB,
DEB_NUMPRO,
DEB_CHAPA,
DEB_SAICTR,
DEB_QTDVOL,
DEB_PESO,
DEB_VALBRT,
DEB_FRTPES,
DEB_TAXA,
DEB_TRIBUT,
DEB_PEDAG,
DEB_ADEME,
DEB_ICMS,
DEB_VALTOT,
DEB_FRTURB,
DEB_EMINFC,
DEB_PESONF,
DEB_VALMER,
DEB_NUMROT,
DEB_NOMCLI,
DEB_SDOC,
DEB_PREFIX,
DEB_NUMFAT,
DEB_TIPO,
DEB_PARCEL,
DEB_VLRDOC,
DEB_VLRDES,
DEB_VLRACR,
DEB_STATUS,
DEB_CGCDEV,
DEB_NOMDEV,
DEB_FILDOC
FROM DEB
WHERE
D_E_L_E_T_ = ' '
AND DEB_FILIAL = 'VALOR'
AND DEB_CGCREM = 'VALOR'
AND DEB_NOMREM = 'VALOR'
AND DEB_DOC = 'VALOR'
AND DEB_SERIE = 'VALOR'
AND DEB_CODDEP = 'VALOR'
AND DEB_CGCDES = 'VALOR'
AND DEB_NOMDES = 'VALOR'
AND DEB_CODTRA = 'VALOR'
AND DEB_NUMPRE = 'VALOR'
AND DEB_TIPFRE = 'VALOR'
AND DEB_MODALI = 'VALOR'
AND DEB_DATVEN BETWEEN '20261001' AND '20261031'
AND DEB_VALOR = 0
AND DEB_DATINI BETWEEN '20261001' AND '20261031'
AND DEB_DATFIM BETWEEN '20261001' AND '20261031'
AND DEB_VLRBAC = 0
AND DEB_VLRDSB = 0
AND DEB_NUMPRO = 'VALOR'
AND DEB_CHAPA = 'VALOR'
AND DEB_SAICTR BETWEEN '20261001' AND '20261031'
AND DEB_QTDVOL = 0
AND DEB_PESO = 0
AND DEB_VALBRT = 0
AND DEB_FRTPES = 0
AND DEB_TAXA = 0
AND DEB_TRIBUT = 0
AND DEB_PEDAG = 0
AND DEB_ADEME = 0
AND DEB_ICMS = 0
AND DEB_VALTOT = 0
AND DEB_FRTURB = 'VALOR'
AND DEB_EMINFC BETWEEN '20261001' AND '20261031'
AND DEB_PESONF = 0
AND DEB_VALMER = 0
AND DEB_NUMROT = 'VALOR'
AND DEB_NOMCLI = 'VALOR'
AND DEB_SDOC = 'VALOR'
AND DEB_PREFIX = 'VALOR'
AND DEB_NUMFAT = 'VALOR'
AND DEB_TIPO = 'VALOR'
AND DEB_PARCEL = 'VALOR'
AND DEB_VLRDOC = 0
AND DEB_VLRDES = 0
AND DEB_VLRACR = 0
AND DEB_CGCDEV = 'VALOR'
AND DEB_NOMDEV = 'VALOR'
AND DEB_FILDOC = 'VALOR'