Tabela G3M

Postos de Atendimento
21camposNome físicoG3M010(empresa 01)

Campos da tabela G3M

21 campos no dicionário de dados do TOTVS Protheus.

21
CampoDescrição
G3M_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
G3M_CODIGO
Caractere (C)(6)
Cod. Posto
Máscara:
@!
Contexto:
Real
G3M_DESCR
Caractere (C)(60)
Descricao
Máscara:
@!
Contexto:
Real
G3M_END
Caractere (C)(60)
Endereco
Máscara:
@!
Contexto:
Real
G3M_COMPL
Caractere (C)(20)
Complemento
Máscara:
@!
Contexto:
Real
G3M_EST
Caractere (C)(2)
UF
Máscara:
@!
Contexto:
Real
Consulta F3:
12
Validação:
ExistCpo("SX5","12"+FWFldGet("G3M_EST"))
G3M_ESTADO
Caractere (C)(20)
Nome UF
Máscara:
@!
Contexto:
Virtual (não existe no banco)
G3M_CODMUN
Caractere (C)(5)
Cod. Mun.
Máscara:
@!
Contexto:
Real
Consulta F3:
G5S
Validação:
ExistCpo("G5S",FwFldGet("G3M_CODMUN"))
G3M_NOMMUN
Caractere (C)(50)
Municipio
Máscara:
@!
Contexto:
Virtual (não existe no banco)
G3M_CEP
Caractere (C)(8)
CEP
Máscara:
@R 99999-999
Contexto:
Real
G3M_DDI
Caractere (C)(3)
DDI
Máscara:
999
Contexto:
Real
G3M_DDD
Caractere (C)(3)
DDD
Máscara:
999
Contexto:
Real
G3M_FONE
Caractere (C)(9)
Telefone
Máscara:
@R 99999-9999
Contexto:
Real
G3M_FAX
Caractere (C)(9)
FAX
Máscara:
@R 99999-9999
Contexto:
Real
G3M_EMAIL
Caractere (C)(60)
E-mail
Máscara:
@!
Contexto:
Real
G3M_SITE
Caractere (C)(60)
Homepage
Máscara:
@!
Contexto:
Real
G3M_NIATA
Caractere (C)(10)
Num. IATA
Máscara:
@!
Contexto:
Real
G3M_ABREV
Caractere (C)(10)
Abrev. IATA
Máscara:
@!
Contexto:
Real
G3M_PCC
Caractere (C)(6)
PCC
Máscara:
@!
Contexto:
Real
G3M_MSBLQL
Caractere (C)(1)
Bloqueado
Contexto:
Real
Validação:
Pertence('12')
2 valores possíveis
  • 1Sim
  • 2Nao
G3M_CNPJ
Caractere (C)(14)
CNPJ
Máscara:
@R 99.999.999/9999-99
Contexto:
Real
Validação:
Vazio() .Or. CGC(FwFldGet("G3M_CNPJ"))

SELECT de exemplo da tabela G3M

No Protheus a tabela física leva o código da empresa (01 → 010) e registros excluídos ficam com D_E_L_E_T_ = '*'.

SQL · SQL Server
SELECT TOP 100
  G3M.G3M_FILIAL,
  G3M.G3M_CODIGO,
  G3M.G3M_DESCR,
  G3M.G3M_END,
  G3M.G3M_COMPL,
  G3M.G3M_EST,
  G3M.G3M_CODMUN,
  G3M.G3M_CEP
FROM G3M010 G3M
WHERE G3M.D_E_L_E_T_ = ' '

Tabelas próximas no índice do Protheus

O ERPSeeker é um projeto independente, sem vínculo com a TOTVS. A estrutura pode variar conforme a versão e as customizações do seu ambiente.