Localizações Físicas
A tabela AGW faz parte do sistema ERP Protheus da TOTVS e é utilizada para localizações físicas.
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 AGW 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 AGW, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | AGW |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | AGW990 |
| X2_NOME | Localizações Físicas |
| X2_NOMESPA | Ubicaciones fisica |
| X2_NOMEENG | Physical Locations |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | AGW_FILIAL+AGW_CODFAB+AGW_LOJAFA+AGW_PRODUT+AGW_NUMSER+AGW_CONTRA |
| X2_PYME | S |
| X2_MODULO | 28 |
| X2_DISPLAY | AGW_CODFAB+AGW_LOJAFA+AGW_PRODUT+AGW_NUMSER+AGW_CONTRA |
| 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_ | 267 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AGW | 01 | AGW_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 | V | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 4035 | 0 |
| AGW | 02 | AGW_CONTRA | C | 15 | 0 | Contrato | Contrato | Contract | Código do Contrato | Codigo del contrato | Contract Code | @! | AT110VlCtr() | x x x x x x x x x x x x x x x xxx | - | CN9 | 1 | x xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 4036 | 0 |
| AGW | 03 | AGW_PLANIL | C | 6 | 0 | Planilha | Planilla | Worksheet | Código da Planilha | Codigo de la planilla | Worksheet Code | @! | AT110VlPla() | x x x x x x x x x x x x x x x xxx | - | CNBAGW | 1 | x x | - | - | - | N | A | R | - | - | - | - | - | - | !Empty(M->AGW_CONTRA) | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 4037 | 0 |
| AGW | 04 | AGW_ITEM | C | 3 | 0 | Item | Item | Item | Item da Planilha | Item de la planilla | Worksheet Item | @! | AT110VlPla() | x x x x x x x x x x x x x x x xxx | - | - | 1 | x x | - | - | - | N | A | R | - | - | - | - | - | - | !Empty(M->AGW_PLANIL) | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 4038 | 0 |
| AGW | 05 | AGW_CLIENT | C | 6 | 0 | Cliente | Cliente | Customer | Cód. do Cliente | Cod. del cliente | Code of Customer | @! | ExistCpo("SA1",M->AGW_CLIENT+M->AGW_LOJA,,,,!EMPTY(M->AGW_LOJA)) | x x x x x x x x x x x x x x x xx | - | SA1 | 1 | x x x | - | - | - | S | A | R | - | - | - | - | - | - | Empty(M->AGW_CONTRA) | - | 001 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 4039 | 0 |
| AGW | 06 | AGW_LOJA | C | 2 | 0 | Loja | Tienda | Store | Loja do Cliente | Tienda del cliente | Store of Customer | @! | ExistCpo("SA1",M->AGW_CLIENT+M->AGW_LOJA) | x x x x x x x x x x x x x x x xx | - | - | 1 | x x x | - | - | - | S | A | R | - | - | - | - | - | - | Empty(M->AGW_CONTRA) | - | 002 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 4040 | 0 |
| AGW | 07 | AGW_PRODUT | C | 15 | 0 | Produto | Producto | Product | Código do Produto | Codigo del producto | Code of Product | @! | AT110VlPrd() | x x x x x x x x x x x x x x x xx | - | SB1 | 1 | x xxx | - | - | - | S | A | R | - | - | - | - | - | - | Empty(M->AGW_CONTRA) | - | 030 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 4041 | 0 |
| AGW | 08 | AGW_DESCRI | C | 50 | 0 | Descrição | Descripcion | Description | Descrição do Produto | Descripcion del producto | Description of Product | @! | - | x x x x x x x x x x x x x x x x | If(!INCLUI,Posicione("SB1",1,xFilial("SB1")+AGW->AGW_PRODUT,"B1_DESC"),"") | - | 1 | x x xx x | - | - | - | N | V | V | - | - | - | - | - | - | - | - | 171 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 4042 | 0 |
| AGW | 09 | AGW_NUMSER | C | 20 | 0 | Número Série | Numero serie | SerialNumber | Número de Série | Numero de serie | Serial Number | @! | ExistCpo("AA3",,6) .AND. AT110VlSer() | x x x x x x x x x x x x x x x xx | - | AA3_01 | 1 | x x xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 4043 | 0 |
| AGW | 10 | AGW_ENDERE | C | 40 | 0 | Endereço | Direccion | Address | Endereço | Direccion | Address | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 4044 | 0 |
| AGW | 11 | AGW_BAIRRO | C | 30 | 0 | Bairro | Barrio | District | Bairro | Barrio | District | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 4045 | 0 |
| AGW | 12 | AGW_MUN | C | 30 | 0 | Município | Municipio | Municipality | Município | Municipio | Municipality | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 4046 | 0 |
| AGW | 13 | AGW_EST | C | 2 | 0 | Estado | Departa. | State | Estado | Departamento | State | @! | ExistCpo("SX5","12"+M->AGW_EST) | x x x x x x x x x x x x x x x x | - | 12 | 1 | x x xx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | 010 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 4047 | 0 |
| AGW | 14 | AGW_CEP | C | 8 | 0 | CEP | CP | Postal Code | Cod. Endereçamento Postal | Codigo direccion postal | Post Code | @R 99999-999 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 4048 | 0 |
| AGW | 15 | AGW_SETOR | C | 20 | 0 | Setor | Sector | Sector | Setor | Sector | Sector | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 4049 | 0 |
| AGW | 16 | AGW_DDD | C | 3 | 0 | DDD | DDD | Long-distanc | Código do DDD | Codigo telefonico DDD | DDD Code | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 4050 | 0 |
| AGW | 17 | AGW_TELEFO | C | 20 | 0 | Telefone | Telefono | Phone | Telefone | Telefono | Telephone | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 4051 | 0 |
| AGW | 18 | AGW_CONTAT | C | 15 | 0 | Responsável | Responsable | Responsible | Responsável | Responsable | Person In Charge | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 4052 | 0 |
| AGW | 19 | AGW_EMAIL | C | 50 | 0 | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 4053 | 0 | ||||||
| AGW | 20 | AGW_CODFAB | C | 6 | 0 | Fabricante | Fabricante | Manufacturer | Código do Fabricante | Codigo del fabricante | Code of Manufacturer | @! | ExistCpo("SA1",M->AGW_CODFAB+RTRIM(M->AGW_LOJAFA),,,,!EMPTY(M->AGW_LOJAFA)) | x x x x x x x x x x x x x x x xx | - | SA1 | 1 | x x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | 001 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 4054 | 0 |
| AGW | 21 | AGW_LOJAFA | C | 2 | 0 | Loja | Tienda | Store | Loja Fabric. | Tienda Fabric. | Manufacturer Store | @! | ExistCpo("SA1",M->AGW_CODFAB+M->AGW_LOJAFA) | x x x x x x x x x x x x x x x xx | - | - | 1 | x x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | 002 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 4055 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AGW | 1 | AGW_FILIAL+AGW_NUMSER+AGW_CONTRA+AGW_PRODUT+AGW_CODFAB+AGW_LOJAFA | Número Série + Contrato + Produto + Fabricante + Loja | Numero serie + Contrato + Producto + Fabricante + Tienda | SerialNumber + Contract + Product + Manufacturer + Store | S | - | AGW01 | S | 2 | 3 | - | 732 | 0 |
| AGW | 2 | AGW_FILIAL+AGW_CONTRA+AGW_PLANIL+AGW_ITEM | Contrato + Planilha + Item | Contrato + Planilla + Item | Contract + Worksheet + Item | S | - | AGW02 | S | 2 | 3 | - | 733 | 0 |
| AGW | 3 | AGW_FILIAL+AGW_CLIENT+AGW_LOJA+AGW_PRODUT+AGW_NUMSER | Cliente + Loja + Produto + Número Série | Cliente + Tienda + Producto + Numero serie | Customer + Store + Product + SerialNumber | S | - | - | S | 2 | 3 | - | 734 | 0 |
| AGW | 4 | AGW_FILIAL+AGW_CODFAB+AGW_LOJAFA+AGW_PRODUT+AGW_NUMSER | Fabricante + Loja + Produto + Número Série | Fabricante + Tienda + Producto + Numero serie | Manufacturer + Store + Product + SerialNumber | S | - | - | S | 2 | 3 | - | 735 | 0 |
Ela é utilizada para localizações físicas 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
AGW_FILIAL,
AGW_CONTRA,
AGW_PLANIL,
AGW_ITEM,
AGW_CLIENT,
AGW_LOJA,
AGW_PRODUT,
AGW_DESCRI,
AGW_NUMSER,
AGW_ENDERE,
AGW_BAIRRO,
AGW_MUN,
AGW_EST,
AGW_CEP,
AGW_SETOR,
AGW_DDD,
AGW_TELEFO,
AGW_CONTAT,
AGW_EMAIL,
AGW_CODFAB,
AGW_LOJAFA
FROM AGW
WHERE
D_E_L_E_T_ = ' '
AND AGW_FILIAL = 'VALOR'
AND AGW_CONTRA = 'VALOR'
AND AGW_PLANIL = 'VALOR'
AND AGW_ITEM = 'VALOR'
AND AGW_CLIENT = 'VALOR'
AND AGW_LOJA = 'VALOR'
AND AGW_PRODUT = 'VALOR'
AND AGW_DESCRI = 'VALOR'
AND AGW_NUMSER = 'VALOR'
AND AGW_ENDERE = 'VALOR'
AND AGW_BAIRRO = 'VALOR'
AND AGW_MUN = 'VALOR'
AND AGW_EST = 'VALOR'
AND AGW_CEP = 'VALOR'
AND AGW_SETOR = 'VALOR'
AND AGW_DDD = 'VALOR'
AND AGW_TELEFO = 'VALOR'
AND AGW_CONTAT = 'VALOR'
AND AGW_EMAIL = 'VALOR'
AND AGW_CODFAB = 'VALOR'
AND AGW_LOJAFA = 'VALOR'