Tabela TWR

Itens Pedidos X Movimentos
30camposNome físicoTWR010(empresa 01)

Campos da tabela TWR

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

30
CampoDescrição
TWR_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
TWR_CODMOV
Caractere (C)(10)
Movimento
Máscara:
@!
Contexto:
Real
TWR_DESTIN
Caractere (C)(1)
Dest. Pedido
Máscara:
@9
Contexto:
Real
Validação:
Vazio() .Or. Pertence("12")
2 valores possíveis
  • 1Filial
  • 2Cliente
TWR_FILPED
Caractere (C)(2)
Fil Pedido
Contexto:
Real
TWR_NUMPED
Caractere (C)(6)
Num. Pedido
Máscara:
@X
Contexto:
Real
TWR_PEDIT
Caractere (C)(2)
Item Ped.
Máscara:
@!
Contexto:
Real
TWR_ATUFIL
Caractere (C)(1)
Atu. Fil.
Máscara:
@9
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
TWR_NUMSER
Caractere (C)(20)
Num Serie
Máscara:
@!
Contexto:
Virtual (não existe no banco)
TWR_CLIENT
Caractere (C)(6)
Cod Cliente
Máscara:
@!
Contexto:
Real
Consulta F3:
TFI820
TWR_LOJACL
Caractere (C)(2)
Loja Cliente
Máscara:
@!
Contexto:
Real
TWR_CNPJ
Caractere (C)(14)
CNPJ
Máscara:
@R 99.999.999/9999-99
Contexto:
Virtual (não existe no banco)
TWR_NOME
Caractere (C)(40)
Nome
Máscara:
@!
Contexto:
Virtual (não existe no banco)
TWR_CONDPG
Caractere (C)(3)
Cond. Pagto
Máscara:
@!
Contexto:
Virtual (não existe no banco)
Consulta F3:
TFI820
TWR_PRODUT
Caractere (C)(15)
Produto
Máscara:
@!
Contexto:
Virtual (não existe no banco)
TWR_TES
Caractere (C)(3)
TES
Máscara:
@9
Contexto:
Virtual (não existe no banco)
Consulta F3:
TFI820
TWR_CLENTR
Caractere (C)(6)
Cli Entrega
Máscara:
@!
Contexto:
Virtual (não existe no banco)
Consulta F3:
TFI820
TWR_LOJENT
Caractere (C)(2)
Lj Entrega
Máscara:
@!
Contexto:
Virtual (não existe no banco)
TWR_CNPJEN
Caractere (C)(14)
CNPJ
Máscara:
@R 99.999.999/9999-99
Contexto:
Virtual (não existe no banco)
TWR_NOMENT
Caractere (C)(40)
Nome Cl Ent
Máscara:
@!
Contexto:
Virtual (não existe no banco)
TWR_CODTFI
Caractere (C)(6)
Item Locacao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
TWR_SAIDOC
Caractere (C)(9)
Doc. Saida
Máscara:
@!
Contexto:
Real
TWR_SAISER
Caractere (C)(3)
Serie Saida
Máscara:
!!!
Contexto:
Real
TWR_SAIITE
Caractere (C)(3)
Item Saida
Máscara:
@!
Contexto:
Real
TWR_SDOCS
Caractere (C)(3)
Novo Id Said
Máscara:
!!!
Contexto:
Real
TWR_ENTDOC
Caractere (C)(9)
Doc. Entrada
Máscara:
@!
Contexto:
Real
TWR_ENTSER
Caractere (C)(3)
Serie Entrad
Máscara:
!!!
Contexto:
Real
TWR_ENTITE
Caractere (C)(3)
Item Entrada
Máscara:
@!
Contexto:
Real
TWR_SDOCE
Caractere (C)(3)
Novo Id Ent
Máscara:
!!!
Contexto:
Real
TWR_QTDSAI
Numérico (N)(11)
Qtd Saida
Máscara:
@E 99,999,999,999
Contexto:
Real
TWR_QTDRET
Numérico (N)(11)
Qtd Retorno
Máscara:
@E 99,999,999,999
Contexto:
Real

SELECT de exemplo da tabela TWR

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
  TWR.TWR_FILIAL,
  TWR.TWR_CODMOV,
  TWR.TWR_DESTIN,
  TWR.TWR_FILPED,
  TWR.TWR_NUMPED,
  TWR.TWR_PEDIT,
  TWR.TWR_ATUFIL,
  TWR.TWR_CLIENT
FROM TWR010 TWR
WHERE TWR.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.