Controle de Expedicao
A tabela TCP faz parte do sistema ERP Protheus da TOTVS e é utilizada para controle de expedicao.
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 TCP 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 TCP, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | TCP |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | TCP990 |
| X2_NOME | Controle de Expedicao |
| X2_NOMESPA | Control de Expedicion |
| X2_NOMEENG | Dispatch Control |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | TCP_FILIAL+TCP_CODEXP |
| X2_PYME | N |
| X2_MODULO | 56 |
| X2_DISPLAY | - |
| 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_ | 9211 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TCP | 01 | TCP_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 | - | - | - | - | - | - | - | - | - | - | 033 | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 153284 | 0 |
| TCP | 02 | TCP_CODEXP | C | 6 | 0 | Codigo | Codigo | Code | Codigo Cont. Expedicao | Codigo Cont. Expedicion | Dispatch Count. Code | @! | ExistChav('TCP') | x x x x x x x x x x x x x x x xx | IIF(INCLUI,GETSXENUM('TCP','TCP_CODEXP'),TCP->TCP_CODEXP) | - | 1 | x x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 153285 | 0 |
| TCP | 03 | TCP_CODLEG | C | 12 | 0 | Requisito | Requisito | Requirement | Codigo do Requisito | Codigo del Requisito | Code of Requirement | @! | ExistCpo('TA0',M->TCP_CODLEG) | x x x x x x x x x x x x x x x x | - | TA0 | 1 | x xxx | - | S | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 153286 | 0 |
| TCP | 04 | TCP_EMENTA | C | 80 | 0 | Ementa | Resumen | Summary | Ementa da Legislacao | Resumen de la Legislacion | Legislation Summary | @! | - | x x x x x x x x x x x x x x x x | TA0->(VDISP(TCP->TCP_CODLEG,'TA0->TA0_EMENTA')) | - | 1 | x xx x | - | - | - | S | V | V | - | - | - | - | - | - | - | IF(TA0->(DBSEEK(XFILIAL('TA0')+TCP->TCP_CODLEG)),TA0->TA0_EMENTA,'') | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 153287 | 0 |
| TCP | 05 | TCP_TIPO | C | 12 | 0 | Tipo Docto. | Tipo Doc. | Doc. Type | Tipo Documento de Expedic | Tipo Doc. de Expedicion | Dispatch Document Type | @! | - | x x x x x x x x x x x x x x x x | TA0->(VDISP(TCP->TCP_CODLEG,'TA0->TA0_TIPO')) | - | 1 | x xx x | - | - | - | S | V | V | - | - | - | - | - | - | - | IF(TA0->(DBSEEK(XFILIAL('TA0')+TCP->TCP_CODLEG)),TA0->TA0_TIPO,'') | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 153288 | 0 |
| TCP | 06 | TCP_OREMIS | C | 12 | 0 | Orgao Emiss. | Organo Emis. | Issuer Ag. | Orgao Ambiental Emissor | Organo Ambiental Emisor | Environm.Agency Issuer | @! | - | x x x x x x x x x x x x x x x x | TA0->(VDISP(TCP->TCP_CODLEG,'TA0->TA0_OREMIS')) | - | 1 | x xx x | - | - | - | S | V | V | - | - | - | - | - | - | - | IF(TA0->(DBSEEK(XFILIAL('TA0')+TCP->TCP_CODLEG)),TA0->TA0_OREMIS,'') | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 153289 | 0 |
| TCP | 07 | TCP_EST | C | 2 | 0 | Estado | Estado | State | Sigla da Federacao | Sigla de la Federacion | State of the Country | @! | - | x x x x x x x x x x x x x x x x | TA0->(VDISP(TCP->TCP_CODLEG,'TA0->TA0_EST')) | - | 1 | x xx x | - | - | - | S | V | V | - | - | - | - | - | - | - | IF(TA0->(DBSEEK(XFILIAL('TA0')+TCP->TCP_CODLEG)),TA0->TA0_EST,'') | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 153290 | 0 |
| TCP | 08 | TCP_DTVIGE | D | 8 | 0 | Vigencia | Vigencia | Effect.Date | Data de Vigencia | Fecha de Vigencia | Effective Date | 99/99/9999 | - | x x x x x x x x x x x x x x x x | TA0->(VDISP(TCP->TCP_CODLEG,'DTOC(TA0->TA0_DTVIGE)')) | - | 1 | x xx x | - | - | - | S | V | V | - | - | - | - | - | - | - | IF(TA0->(DBSEEK(XFILIAL('TA0')+TCP->TCP_CODLEG)),DTOC(TA0->TA0_DTVIGE),'') | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 153291 | 0 |
| TCP | 09 | TCP_DTVENC | D | 8 | 0 | Vencimento | Vencimiento | Due Date | Data de Vencimento | Fecha de Vencimiento | Due Date | 99/99/9999 | - | x x x x x x x x x x x x x x x x | TA0->(VDISP(TCP->TCP_CODLEG,'DTOC(TA0->TA0_DTVENC)')) | - | 1 | x xx x | - | - | - | S | V | V | - | - | - | - | - | - | - | IF(TA0->(DBSEEK(XFILIAL('TA0')+TCP->TCP_CODLEG)),DTOC(TA0->TA0_DTVENC),'') | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 153292 | 0 |
| TCP | 10 | TCP_CODRES | C | 15 | 0 | Resíduo | Residuo | Residue | Codigo do Residuo | Codigo del Residuo | Residue Code | @! | ExistCpo('TAX',M->TCP_CODRES) .And. SGA420Tran() | x x x x x x x x x x x x x x x xx | - | TAX | 1 | x xxx | - | S | - | S | A | R | - | - | - | - | - | - | Inclui | - | 030 | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 153293 | 0 |
| TCP | 11 | TCP_NOMRES | C | 50 | 0 | Descricao | Descripcion | Description | Descricao do Residuo | Descripcion del Residuo | Residue Description | @! | - | x x x x x x x x x x x x x x x x | SB1->(VDISP(TCP->TCP_CODRES,'SB1->B1_DESC')) | - | 1 | x xx x | - | - | - | S | V | V | - | - | - | - | - | - | - | IF(SB1->(DBSEEK(XFILIAL('SB1')+TCP->TCP_CODRES)),SB1->B1_DESC,'') | 171 | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 153294 | 0 |
| TCP | 12 | TCP_QUANTI | N | 9 | 2 | Qtde. Limite | Ctd. Limite | Max. Amount | Quantidade Limite | Cantidad Limite | Maximum Amount | @E 999,999.99 | Positivo() .And. SGA420VQtd() | x x x x x x x x x x x x x x x x | - | - | 1 | x xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 153295 | 0 |
| TCP | 13 | TCP_TOTAL | N | 9 | 2 | Total Exp. | Total Exp. | Tot.Dispatch | Total Expedido | Total Expedido | Total Dispatched | @E 999,999.99 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 153296 | 0 |
| TCP | 14 | TCP_SALDO | N | 9 | 2 | Saldo | Saldo | Balance | Saldo Disponível | Saldo Disponible | Balance Available | @E 999,999.99 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | x xx x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 153297 | 0 |
| TCP | 15 | TCP_CODREC | C | 6 | 0 | Receptor | Receptor | Recept. | Código Receptor | Codigo Receptor | Recept.Code | @! | ExistCpo("TB5",M->TCP_CODREC) .and. SGA420Tran() | x x x x x x x x x x x x x x x xxx | - | TB5 | 1 | x x | - | - | - | S | A | R | - | - | - | - | - | - | Inclui | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 153298 | 0 |
| TCP | 16 | TCP_DESFOR | C | 40 | 0 | Descricao | Descripcion | Description | Descricao do Fornecedor | Descripcion de Proveedor | Supplier Description | @! | - | x x x x x x x x x x x x x x x x | If(!Inclui,SG280INFD(TCP->TCP_CODREC,'NOME'),'') | - | 1 | x xx x | - | - | - | S | V | V | - | - | - | - | - | - | - | SG280INFD(TCP->TCP_CODREC,'NOME') | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 153299 | 0 |
| TCP | 17 | TCP_ATIVID | C | 25 | 0 | Atividade | Actividad | Activity | Atividade Industrial | Actividad Industrial | Industry Activity | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 153300 | 0 |
| TCP | 18 | TCP_DOCTO | N | 10 | 0 | Nr. Docto | Num.Doc. | Document Num | Numero Documento de Exped | Num. Documento de Expedic | Dispatch Document Number | 9999999999 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 153301 | 0 |
| TCP | 19 | TCP_FORNEC | C | 6 | 0 | Fornecedor | Proveedor | Supplier | Codigo do Fornecedor | Codigo del Proveedor | Supplier Code | @! | ExistCpo('SA2',M->TCP_FORNEC) .And. SGA420Tran() | x x x x x x x x x x x x x x x | - | SA2 | 1 | x xx | - | - | - | N | A | R | - | - | - | - | - | - | Inclui | - | 001 | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 153302 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TCP | 1 | TCP_FILIAL+TCP_CODEXP+TCP_CODLEG | Codigo + Requisito | Codigo + Requisito | Code + Requirement | S | - | - | S | 2 | 3 | - | 21912 | 0 |
| TCP | 2 | TCP_FILIAL+TCP_CODRES+TCP_CODREC | Resíduo + Receptor | Residuo + Receptor | Residue + Recept. | S | - | - | S | 2 | 3 | - | 21913 | 0 |
Ela é utilizada para controle de expedicao 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.