Tabela BTW

Solicitação de Procedimento
7camposNome físicoBTW010(empresa 01)

Campos da tabela BTW

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

CampoDescrição
BTW_FILIAL
Caractere (C)(2)
Filial
BTW_CODPAC
Caractere (C)(16)
Cod Paciente
Máscara:
@R !.!!!-!!!!.!!!!!!-!!
BTW_CODPAD
Caractere (C)(2)
Cod. Tabela
Máscara:
@!
Consulta F3:
B41PLS
Validação:
ExistCpo("BR4",M->BTW_CODPAD,1)
BTW_CODPRO
Caractere (C)(16)
Cod. Proc.
Máscara:
@!
Consulta F3:
BVHPLS
Validação:
ExistCpo("BR8",M->BTW_CODPAD+M->BTW_CODPRO,1)
BTW_DESCRI
Caractere (C)(40)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BTW_QTD
Numérico (N)(3)
Qtd
Máscara:
999
BTW_DATA
Data (D)(8)
Data
Máscara:
@D

SELECT de exemplo da tabela BTW

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
  BTW.BTW_FILIAL,
  BTW.BTW_CODPAC,
  BTW.BTW_CODPAD,
  BTW.BTW_CODPRO,
  BTW.BTW_QTD,
  BTW.BTW_DATA
FROM BTW010 BTW
WHERE BTW.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.