Ordens de Serviços
A tabela AB6 faz parte do sistema ERP Protheus da TOTVS e é utilizada para ordens de serviços.
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 AB6 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 AB6, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | AB6 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | AB6990 |
| X2_NOME | Ordens de Serviços |
| X2_NOMESPA | Órdenes de Servicios |
| X2_NOMEENG | Service Orders |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | AB6_FILIAL+AB6_NUMOS |
| X2_PYME | S |
| X2_MODULO | 28 |
| X2_DISPLAY | AB6_NUMOS+AB6_CODCLI+AB6_LOJA |
| 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_ | 84 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AB6 | 01 | AB6_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 | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 952 | 0 |
| AB6 | 02 | AB6_NUMOS | C | 6 | 0 | O.S. | Orden Serv. | S.O. | N·mero da O.S. | Numero de la O.S. | S.O. Number | @! | ExistChav("AB6") | x x x x x x x x x x x x x x x x | GetSX8Num("AB6","AB6_NUMOS") | - | 1 | xx | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 953 | 0 |
| AB6 | 03 | AB6_CODCLI | C | 6 | 0 | Cliente | Cliente | Customer | Cliente | Cliente | Customer | @! | ExistCpo("SA1",M->AB6_CODCLI+RTRIM(M->AB6_LOJA),,,,!EMPTY(M->AB6_LOJA)) | x x x x x x x x x x x x x x x x x | - | SA1 | 1 | xx | - | S | - | S | - | - | - | - | - | - | - | - | - | - | 001 | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 954 | 0 |
| AB6 | 04 | AB6_LOJA | C | 2 | 0 | Loja | Tienda | Unit | Loja | Tienda | Unit | @! | ExistCpo("SA1",M->AB6_CODCLI+M->AB6_LOJA) | x x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | S | - | S | - | - | - | - | - | - | - | - | - | - | 002 | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 955 | 0 |
| AB6 | 05 | AB6_EMISSA | D | 8 | 0 | Emissao | Emision | Issue date | Emissao | Emision | Issue date | - | M->AB6_EMISSA>=dDataBase | x x x x x x x x x x x x x x x x | dDataBase | - | 1 | xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 956 | 0 |
| AB6 | 06 | AB6_ATEND | C | 25 | 0 | Atendente | Operador | Attendant | Atendente | Operador | Attendant | @! | - | x x x x x x x x x x x x x x x x | SubStr(cUsuario,7,15) | - | 1 | x | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 957 | 0 |
| AB6 | 07 | AB6_STATUS | C | 1 | 0 | Status | Estatus | Status | Status do Orçamento | Estatus del Presupuesto | Budget Status | @! | Pertence("ABE") | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | - | - | - | - | A=Aberto;B=Atendida;E=Encerrado | A=Pendiente;B=Atendida;E=Finalizado | A=Open;B=Serviced;E=Terminated | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 958 | 0 |
| AB6 | 08 | AB6_CONPAG | C | 3 | 0 | Cond.Pagto | Cond.Pago | Paym.Term | Cond.Pagto | Condicion de Pago | Payment Term | @! | ExistCpo("SE4") | x x x x x x x x x x x x x x x x | - | SE4 | 1 | xx | - | - | - | N | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 959 | 0 |
| AB6 | 09 | AB6_DESC1 | N | 5 | 2 | %Desconto 1 | %Descuento 1 | %Discount 1 | Desconto em Percentual 1 | Descuento en Porcentual 1 | Discount in Percentage 1 | @E 99.99 | Positivo().And.At450RDesc() | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | N | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 960 | 0 |
| AB6 | 10 | AB6_DESC2 | N | 5 | 2 | %Desconto 2 | %Descuento 2 | %Discount 2 | Desconto em Percentual 2 | Descuento en Porcentual 2 | Discount in Percentage 2 | @e 99.99 | Positivo().And.At450RDesc() | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | N | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 961 | 0 |
| AB6 | 11 | AB6_DESC3 | N | 5 | 2 | %Desconto 3 | %Descuento 3 | %Discount 3 | Desconto em Percentual 3 | Descuento en Porcentual 3 | Discount in Percentage 3 | @E 99.99 | Positivo().And.At450RDesc() | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | N | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 962 | 0 |
| AB6 | 12 | AB6_DESC4 | N | 5 | 2 | %Desconto 4 | %Descuento 4 | %Discount 4 | Desconto em Percentual 4 | Descuento en Porcentual 4 | Discount in Percentage 4 | @E 99.99 | Positivo().And.At450RDesc() | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | N | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 963 | 0 |
| AB6 | 13 | AB6_TABELA | C | 3 | 0 | Tabela | Tabla | List | Tabela de Preço | Tabla de Precios | Price List | @! | "Vazio().Or.(ExistCpo('DA0') .And. Teca450Tbl())" | x x x x x x x x x x x x x x x x | - | DA0 | 1 | x | - | - | - | N | - | - | - | - | - | - | - | - | - | - | 172 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 964 | 0 |
| AB6 | 14 | AB6_PARC1 | N | 12 | 2 | Parcela 1 | Cuota 1 | Installment1 | Parcela 1 | Cuota 1 | Installment 1 | @E 999,999,999.99 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | N | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 965 | 0 |
| AB6 | 15 | AB6_DATA1 | D | 8 | 0 | Vencimento 1 | Vencimiento1 | Due Date 1 | Vencimento da Parc. 1 | Vencimiento de 1a Cuota | Installment Due Date1 | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | N | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 966 | 0 |
| AB6 | 16 | AB6_PARC2 | N | 12 | 2 | Parcela 2 | Cuota 2 | Installment2 | Parcela 2 | Cuota 2 | Installment 2 | @E 999,999,999.99 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | N | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 967 | 0 |
| AB6 | 17 | AB6_DATA2 | D | 8 | 0 | Vencimento 2 | Vencimiento2 | Due Date 2 | Vencimento da Parc. 2 | Vencimiento de 2a Cuota | Installment Due Date2 | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | N | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 968 | 0 |
| AB6 | 18 | AB6_PARC3 | N | 12 | 2 | Parcela 3 | Cuota 3 | Installment3 | Parcela 3 | Cuota 3 | Installment 3 | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | N | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 969 | 0 |
| AB6 | 19 | AB6_DATA3 | D | 8 | 0 | Vencimento 3 | Vencimiento3 | Due Date 3 | Vencimento da Parc. 3 | Vencimiento de 3a Cuota | Installment Due Date3 | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | N | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 970 | 0 |
| AB6 | 20 | AB6_PARC4 | N | 12 | 2 | Parcela 4 | Cuota 4 | Installment4 | Parcela 4 | Cuota 4 | Installment 4 | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | N | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 971 | 0 |
| AB6 | 21 | AB6_DATA4 | D | 8 | 0 | Vencimento 4 | Vencimiento4 | Due Date 4 | Vencimento 4 | Vencimiento de 4a Cuota | Installment Due Date4 | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | N | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 972 | 0 |
| AB6 | 22 | AB6_OK | C | 2 | 0 | Ok | OK | OK | Ok | Ok | OK | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 973 | 0 |
| AB6 | 23 | AB6_HORA | C | 5 | 0 | Horario | Horario | Schedule | Horario | Horario | Schedule | 99:99 | - | x x x x x x x x x x x x x x x x | Time() | - | 1 | x | - | - | - | N | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 974 | 0 |
| AB6 | 24 | AB6_REGIAO | C | 3 | 0 | Regiao | Region | Area | Regiao | Region | Region | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 975 | 0 |
| AB6 | 25 | AB6_MSG | C | 60 | 0 | Mensagem | Mensaje | Message | Mensagem do Monitor da OS | Mensaje de OS en Monitor | S.O. Monitor Message | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | N | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | S | N | N | - | - | - | 1 | 2 | - | - | - | 976 | 0 |
| AB6 | 26 | AB6_MOEDA | N | 1 | 0 | Moeda | Moneda | Currency | Moeda da Ordem de Servico | Moneda Orden de Servicio | Service Order Currency | @E 9 | - | x x x x x x x x x x x x x x x x | 1 | - | 1 | xxxx | - | - | - | N | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 977 | 0 |
| AB6 | 27 | AB6_TXMOED | N | 11 | 4 | Taxa Moeda | Tasa Moneda | CurrencyRate | Taxa da Moeda | Tasa de Moneda | Currency rate | @E 999999.9999 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | - | - | N | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 978 | 0 |
| AB6 | 28 | AB6_NUMLOJ | C | 6 | 0 | Orc. Loja | Pres. Tienda | Quot. LOJA | Orçamento SIGALOJA | Presupuesto SIGALOJA | SIGALOJA Quotation | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 979 | 0 |
| AB6 | 29 | AB6_TPCONT | C | 1 | 0 | Tp.Contrato | Tp.Contrato | Tp.Contract | Tipo do Contrato | Tipo de contrato | Type of Contract | @! | Pertence("123") | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | S | - | N | A | R | - | - | 1=Manutenção;2=Serviços;3=Integração com GCT | 1=Mantenimiento;2=Servicios;3=Integracion con GCT | 1=Maintenance;2=Services;3=Integration with GCT | - | At450WTpCt() | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 980 | 0 |
| AB6 | 30 | AB6_CONTRT | C | 15 | 0 | Nr. Contrato | Nr. Contrato | Contract No. | Número do Contrato | Numero de contrato | Contract Number | @! | At450VCtrt() | x x x x x x x x x x x x x x x x | - | F3CTRT | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | At450WCtrt() | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 981 | 0 |
| AB6 | 31 | AB6_TPORCS | C | 1 | 0 | Vínculo | Vínculo | Assoc | Vínculo | Vínculo | Association | @9 | Pertence("123") | x x x x x x x x x x x x x x x x | "1" | - | 1 | x | - | S | - | N | A | R | - | - | 1=Orçamento;2=It. Locação;3=It. Rec. Humanos | 1=Presupuesto;2=Ít. Asignación;3=Ítem Rec. Humanos | 1=Budget;2=Rent Item;3=Human Resource Item | - | At450When("AB6_TPORCS") .And. INCLUI | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 982 | 0 |
| AB6 | 32 | AB6_FIORCS | C | 2 | 0 | Fil Orc Serv | Suc Pre Serv | Serv Budget | Filial Orcamento Servicos | Suc. Presup. Servicios | Service Budget Branch | - | ExistCpo("SM0", cEmpAnt+M->AB6_FIORCS) | x x x x x x x x x x x x x x x x | cFilAnt | SM0 | 1 | x xx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 983 | 0 |
| AB6 | 33 | AB6_CDORCS | C | 11 | 0 | Cod. Orc. Se | Cód. Pre. Se | Ser Bud Code | Codigo Orç. Serviços | Código Presup Servicios | Service Budget Code | @! | Vazio() .Or. At450Orcs() | x x x x x x x x x x x x x x x x | - | TFJ | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | INCLUI | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 984 | 0 |
| AB6 | 34 | AB6_ITORCS | C | 6 | 0 | It Orc. Serv | Ít Pres. Ser | Ser Bud Item | Item Orç. Serviços | Ítem Presup Servicios | Service Budget Item | @! | Vazio() .Or. At450Orcs() | x x x x x x x x x x x x x x x x | - | TFJ_IT | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | At450When("AB6_ITORCS") .And. INCLUI | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 985 | 0 |
| AB6 | 35 | AB6_ORCAME | C | 11 | 0 | Cód Orçam | Cód Presup | Budget Cd | Código Orçamento | Código presupuesto | Budget Code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 986 | 0 |
| AB6 | 36 | AB6_FILORC | C | 2 | 0 | Filial Orçam | Sucursal Pre | Budgt Brnch | Filial Orçamento | Sucursal presupuesto | Budget Branch | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 987 | 0 |
| AB6 | 37 | AB6_APPSTA | C | 1 | 0 | Status APP | Estat APP | APP Status | status atendimento APP | estatus atención APP | APP Service Status | @! | Pertence("123456") | x x x x x x x x x x x x x x x x | "1" | - | 1 | xx | - | - | - | - | V | R | - | - | 1=Aberto;2=Em Atendimento;3=Encerrada;4=Pendente;5=Improdutiva;6=Em Transito | 1=Abierto;2=En atención;3=Finalizada;4=Pendient;5=Improduct;6=En tránsito | 1=Open;2=In Service;3=Completed;4=Pending;5=Improductive;6=In Transit | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 988 | 0 |
| AB6 | 38 | AB6_APPDTI | D | 8 | 0 | Dt Ini APP | Fch Ini APP | APP St Dt | Dt Ini Atendimento APP | Fch Ini Atención APP | APP Service Start Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | - | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 989 | 0 |
| AB6 | 39 | AB6_APPHRI | C | 5 | 0 | Hr Ini App | Hr Ini App | App St Tm | Hr Ini Atendimento APP | Hr Ini Atención APP | APP Service Start Time | 99:99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | - | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 990 | 0 |
| AB6 | 40 | AB6_APPDCH | D | 8 | 0 | Dt Cheg APP | Fch Lleg APP | APP Arriv Dt | Dt Chegada atendimento | Fch Llegada atención | Service Arrival Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | - | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 991 | 0 |
| AB6 | 41 | AB6_APPHCH | C | 5 | 0 | Hr Cheg APP | Hr Lleg APP | APP Arriv Tm | Hr Cheg atendimento app | Hr Lleg atención app | App Service Arrival Time | 99:99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | - | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 992 | 0 |
| AB6 | 42 | AB6_PROJET | C | 22 | 0 | Projeto | Proyect | Project | Projeto Locação | Proyecto Alquiler | Lease Project | - | EXISTCPO("FP0",M->AB6_PROJET,1) | x x x x x x x x x x x x x x x x | - | FP0AB6 | 1 | x x | - | - | - | N | A | R | - | - | - | - | - | - | AB6When() | - | 164 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 993 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AB6 | 1 | AB6_FILIAL+AB6_NUMOS | O.S. | Orden Serv. | S.O. | S | - | - | S | 2 | 3 | - | 165 | 0 |
| AB6 | 2 | AB6_FILIAL+AB6_CODCLI+AB6_LOJA | Cliente + Loja | Cliente + Tienda | Customer + Unit | S | SA1 | - | S | 2 | 3 | - | 166 | 0 |
| AB6 | 3 | AB6_FILIAL+AB6_CODCLI+AB6_LOJA+DTOS(AB6_EMISSA) | Cliente + Loja + Emissao | Cliente + Tienda + Emision | Customer + Unit + Issue date | S | SA1 | - | S | 2 | 3 | - | 167 | 0 |
| AB6 | 4 | AB6_FILIAL+AB6_STATUS+AB6_CODCLI+AB6_LOJA | Status + Cliente + Loja | Estatus + Cliente + Tienda | Status + Customer + Unit | S | XXX+SA1 | - | S | 2 | 3 | - | 168 | 0 |
| AB6 | 5 | AB6_FILIAL+AB6_NUMLOJ | Orc. Loja | Pres. Tienda | Quot. LOJA | S | - | - | S | 2 | 3 | - | 169 | 0 |
| AB6 | 6 | AB6_FILIAL+AB6_TPCONT+AB6_CONTRT+AB6_NUMOS | Tp.Contrato + Nr. Contrato + O.S. | Tp.Contrato + Nr. Contrato + Orden Serv. | Tp.Contract + Contract No. + S.O. | S | - | - | N | 2 | 3 | - | 170 | 0 |
Ela é utilizada para ordens de serviços 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
AB6_FILIAL,
AB6_NUMOS,
AB6_CODCLI,
AB6_LOJA,
AB6_EMISSA,
AB6_ATEND,
AB6_STATUS,
AB6_CONPAG,
AB6_DESC1,
AB6_DESC2,
AB6_DESC3,
AB6_DESC4,
AB6_TABELA,
AB6_PARC1,
AB6_DATA1,
AB6_PARC2,
AB6_DATA2,
AB6_PARC3,
AB6_DATA3,
AB6_PARC4,
AB6_DATA4,
AB6_OK,
AB6_HORA,
AB6_REGIAO,
AB6_MSG,
AB6_MOEDA,
AB6_TXMOED,
AB6_NUMLOJ,
AB6_TPCONT,
AB6_CONTRT,
AB6_TPORCS,
AB6_FIORCS,
AB6_CDORCS,
AB6_ITORCS,
AB6_ORCAME,
AB6_FILORC,
AB6_APPSTA,
AB6_APPDTI,
AB6_APPHRI,
AB6_APPDCH,
AB6_APPHCH,
AB6_PROJET
FROM AB6
WHERE
D_E_L_E_T_ = ' '
AND AB6_FILIAL = 'VALOR'
AND AB6_NUMOS = 'VALOR'
AND AB6_CODCLI = 'VALOR'
AND AB6_LOJA = 'VALOR'
AND AB6_EMISSA BETWEEN '20260601' AND '20260630'
AND AB6_ATEND = 'VALOR'
AND AB6_STATUS = 'VALOR'
AND AB6_CONPAG = 'VALOR'
AND AB6_DESC1 = 0
AND AB6_DESC2 = 0
AND AB6_DESC3 = 0
AND AB6_DESC4 = 0
AND AB6_TABELA = 'VALOR'
AND AB6_PARC1 = 0
AND AB6_DATA1 BETWEEN '20260601' AND '20260630'
AND AB6_PARC2 = 0
AND AB6_DATA2 BETWEEN '20260601' AND '20260630'
AND AB6_PARC3 = 0
AND AB6_DATA3 BETWEEN '20260601' AND '20260630'
AND AB6_PARC4 = 0
AND AB6_DATA4 BETWEEN '20260601' AND '20260630'
AND AB6_OK = 'VALOR'
AND AB6_HORA = 'VALOR'
AND AB6_REGIAO = 'VALOR'
AND AB6_MSG = 'VALOR'
AND AB6_MOEDA = 0
AND AB6_TXMOED = 0
AND AB6_NUMLOJ = 'VALOR'
AND AB6_TPCONT = 'VALOR'
AND AB6_CONTRT = 'VALOR'
AND AB6_TPORCS = 'VALOR'
AND AB6_FIORCS = 'VALOR'
AND AB6_CDORCS = 'VALOR'
AND AB6_ITORCS = 'VALOR'
AND AB6_ORCAME = 'VALOR'
AND AB6_FILORC = 'VALOR'
AND AB6_APPSTA = 'VALOR'
AND AB6_APPDTI BETWEEN '20260601' AND '20260630'
AND AB6_APPHRI = 'VALOR'
AND AB6_APPDCH BETWEEN '20260601' AND '20260630'
AND AB6_APPHCH = 'VALOR'
AND AB6_PROJET = 'VALOR'