Compl Item Esp Modelos 21 e 22
A tabela C38 faz parte do sistema ERP Protheus da TOTVS e é utilizada para compl item esp modelos 21 e 22.
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 C38 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 C38, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | C38 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | C38990 |
| X2_NOME | Compl Item Esp Modelos 21 e 22 |
| X2_NOMESPA | Compl Item Esp Modelos 21 y 22 |
| X2_NOMEENG | Sp. Item Comp Templates 21/22 |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | C38_FILIAL+C38_CHVNF+C38_NUMITE+C38_CODITE+C38_CCLASS+C38_INDREC |
| X2_PYME | S |
| X2_MODULO | 84 |
| X2_DISPLAY | - |
| X2_SYSOBJ | TAFA062 |
| X2_USROBJ | - |
| X2_POSLGT | 1 |
| X2_CLOB | 1 |
| X2_AUTREC | 1 |
| 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_ | 1881 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| C38 | 01 | C38_FILIAL | C | 2 | 0 | Filial | Sucursal | Branch | Filial | Sucursal | Branch | - | - | x x x x x x x x x x x x x x x | - | XM0 | 1 | - | - | - | - | - | - | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 30404 | 0 |
| C38 | 02 | C38_CHVNF | C | 36 | 0 | Cód. Doc. | Cod. Doc. | Doc. Code | Cód. Documento Fiscal | Cod. Documento Fiscal | Tax Document Code | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | - | - | R | - | - | - | - | - | - | - | - | 062 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 30405 | 0 |
| C38 | 03 | C38_NUMITE | C | 4 | 0 | Núm.Item | Num.Item | Item Number | Número do Item | Numero de Item | Item Number | - | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | - | - | R | - | - | - | - | - | - | - | - | 168 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 30406 | 0 |
| C38 | 04 | C38_CODITE | C | 36 | 0 | Cód.Item | Cod. Item | Item Code | Código do Item | Codigo de Item | Item Code | - | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | - | - | R | - | - | - | - | - | - | - | - | 085 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 30407 | 0 |
| C38 | 05 | C38_CCLASS | C | 6 | 0 | ID Clas Item | ID Clas Item | Item Clas ID | Cod. Class. Item | Cod. Clas. Item | Item Class. Cd. | @! | XFUNVldCmp("C0K",4) | x x x x x x x x x x x x x x x x | - | C0K | 1 | x x | - | S | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 30408 | 0 |
| C38 | 06 | C38_DCCLAS | C | 220 | 0 | D.Clas.It. | D.Clas.It. | It.Clas.D. | Descr. Classif. Item | Descr. Clasif. Item | Item Classif. Descr. | @! | - | x x x x x x x x x x x x x x x x | IF(!INCLUI.AND.!EMPTY(C38->C38_CCLASS),POSICIONE("C0K",4,xFilial("C0K")+C38->C38_CCLASS,"C0K_CODIGO+' - '+C0K_DESCRI"),"") | - | 1 | x | - | - | - | - | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 30409 | 0 |
| C38 | 07 | C38_CODPAR | C | 36 | 0 | Id Par Recep | Id Par Recep | Recip Par Id | Id. Participante Receptor | Id. Participante Receptor | Recipient Participant Id | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | S | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 30410 | 0 |
| C38 | 08 | C38_CPARTI | C | 60 | 0 | Cod Par Rece | Cód Par Rece | Rec part cod | Participante Receptor | Participante receptor | Receiving participant | @! | XFUNNWFunc("XFUNMEMVAR") .And. XFUNVldCmp("C1H",1) | x x x x x x x x x x x x x x x x | XFUNRELAC(15,'C38_CODPAR', 1) | C1HA | 1 | x x | - | S | - | S | A | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 30411 | 0 |
| C38 | 09 | C38_DCODPA | C | 220 | 0 | Descr. Part. | Descr. Part. | Empl. Desc. | Descr. Participante | Descr. Participante | Employee Description | @! | - | x x x x x x x x x x x x x x x x | IF(!INCLUI.AND.!EMPTY(C38->C38_CODPAR),POSICIONE("C1H",5, xFilial("C1H")+C38->C38_CODPAR,"TRIM(C1H_CODPAR)+' - '+C1H_NOME"),"") | - | 1 | x | - | - | - | - | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 30412 | 0 |
| C38 | 10 | C38_INDREC | C | 1 | 0 | Tipo Receita | Tipo Ingreso | Income Type | Indicador do Tipo de rec | Indicador de Tipo de ing | Income Tp Indicator | @! | Pertence("0123459") | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | 0=R.P. Ser Pres;1=R.P. Cob Déb;2=R.P. Vnd Mer;3=R.P. Vnd Ser Pré-Pgto;4=Out Rec Próp;5=Rec Ter (co-faturamento);9=Out Rec Ter; | 0=R.P. Ser Pres;1=R.P. Cob Deb;2=R.P. Vnt Mer;3=R.P. Vnt Ser Pago previo;4=Ot Ing Prop;5=Ing Ter (co-facturacion);9=Ot Ing | 0=R.P. Ser Pres;1=R.P. Cob Deb;2=R.P. Sal Mer;3=R.P. Sal Ser Pre-Pay;4=Out Own Res;5=Rec T (co-invoicing);9=Out Rec T; | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 30413 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| C38 | 1 | C38_FILIAL+C38_CHVNF+C38_NUMITE+C38_CODITE+C38_CCLASS+C38_INDREC | Cód. Doc. + Núm.Item + Cód.Item + ID Clas Item + Tipo Receita | Cod. Doc. + Num.Item + Cod. Item + ID Clas Item + Tipo Ingreso | Doc. Code + Item Number + Item Code + Item Clas ID + Income Type | S | - | - | S | 2 | 3 | - | 4367 | 0 |
| C38 | 2 | C38_FILIAL+C38_CCLASS+C38_INDREC | ID Clas Item + Tipo Receita | ID Clas Item + Tipo Ingreso | Item Clas ID + Income Type | S | - | - | S | 2 | 3 | - | 4368 | 0 |
| C38 | 3 | C38_FILIAL+C38_INDREC | Tipo Receita | Tipo Ingreso | Income Type | S | - | - | S | 2 | 3 | - | 4369 | 0 |
Ela é utilizada para compl item esp modelos 21 e 22 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
C38_FILIAL,
C38_CHVNF,
C38_NUMITE,
C38_CODITE,
C38_CCLASS,
C38_DCCLAS,
C38_CODPAR,
C38_CPARTI,
C38_DCODPA,
C38_INDREC
FROM C38
WHERE
D_E_L_E_T_ = ' '
AND C38_FILIAL = 'VALOR'
AND C38_CHVNF = 'VALOR'
AND C38_NUMITE = 'VALOR'
AND C38_CODITE = 'VALOR'
AND C38_CCLASS = 'VALOR'
AND C38_DCCLAS = 'VALOR'
AND C38_CODPAR = 'VALOR'
AND C38_CPARTI = 'VALOR'
AND C38_DCODPA = 'VALOR'
AND C38_INDREC = 'VALOR'