Estoque de Abertura
A tabela CF9 faz parte do sistema ERP Protheus da TOTVS e é utilizada para estoque de abertura.
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 CF9 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 CF9, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | CF9 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | CF9990 |
| X2_NOME | Estoque de Abertura |
| X2_NOMESPA | Stock de Apertura |
| X2_NOMEENG | Opening Stock |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | CF9_FILIAL+CF9_CODBCC+DTOS(CF9_PERING)+CF9_CSTPIS+STR(CF9_ALQPIS)+CF9_CSTCOF+STR(CF9_ALQCOF)+CF9_CODCTA |
| X2_PYME | S |
| X2_MODULO | 9 |
| 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_ | 2259 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CF9 | 01 | CF9_FILIAL | C | 2 | 0 | Filial | Sucursal | Branch | Filial do Sistema | Sucursal del Sistema | Branch System | - | - | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 35665 | 0 |
| CF9 | 02 | CF9_CODBCC | C | 2 | 0 | Cod.BC Cred. | Cod.BC Cred. | Cred BC Code | Cod.BC Cred. | Cod.BC Cred. | Cred BC Code | @! | - | x x x x x x x x x x x x x x x x | - | MZ | 1 | x x | - | S | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 35666 | 0 |
| CF9 | 03 | CF9_PERING | D | 8 | 0 | Per.Ingresso | Per.Ingreso | Entry Per. | Periodo de Ingresso | Periodo de Ingreso | Entry Period | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 35667 | 0 |
| CF9 | 04 | CF9_VLTEST | N | 14 | 2 | Vl.Tot.Estoq | Vl.Tot.Stock | StockTot.Vl. | Valor Total do Estoque | Valor Total de Stock | Stock Total Value | @E 99,999,999,999.99 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | S | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 35668 | 0 |
| CF9 | 05 | CF9_SCRED | N | 14 | 2 | Vl.Sem Cred. | Vl.Sin Cred. | Vl. w/o Cred | Valor sem direito credito | Valor sin derecho credito | Value w/o right to credit | @E 99,999,999,999.99 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | S | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 35669 | 0 |
| CF9 | 06 | CF9_BASCAL | N | 14 | 2 | Base Calculo | Base Calculo | Calc. Base | Base de Calculo | Base de Calculo | Calculation Base | @E 99,999,999,999.99 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 35670 | 0 |
| CF9 | 07 | CF9_BASMES | N | 14 | 2 | Base Mensal | Base Mensual | Monthly Base | Base de Calculo Mensal | Base de Calculo Mensual | Monthly Calculation Base | @E 99,999,999,999.99 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | S | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 35671 | 0 |
| CF9 | 08 | CF9_CSTPIS | C | 2 | 0 | Sit.Trib.PIS | Sit.Trib.PIS | PIS Tax Stat | Sit.Trib.PIS | Sit.Trib.PIS | PIS Tax Status | @! | ExistCpo('SX5','SX'+M->CF9_CSTPIS) | x x x x x x x x x x x x x x x x | - | SX | 1 | x x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 35672 | 0 |
| CF9 | 09 | CF9_ALQPIS | N | 8 | 4 | Aliquota PIS | Alicuota PIS | PIS Aliquot | Aliquota do PIS | Alicuota del PIS | PIS Aliquot | @E 999.9999 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | xxx x | - | S | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 35673 | 0 |
| CF9 | 10 | CF9_VALPIS | N | 14 | 2 | Vl.PIS Mes | Vl.PIS Mes | PIS Mon. Vl. | Valor de PIS Mensal | Valor de PIS Mensual | PIS Monthly Value | @E 99,999,999,999.99 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 35674 | 0 |
| CF9 | 11 | CF9_CSTCOF | C | 2 | 0 | Sit.Trib.COF | Sit.Trib.COF | COF Tax Stat | Sit.Trib.Cofins | Sit.Trib.Cofins | COFINS Tax Status | @! | ExistCpo('SX5','SX'+M->CF9_CSTCOF) | x x x x x x x x x x x x x x x x | - | SX | 1 | x x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 35675 | 0 |
| CF9 | 12 | CF9_ALQCOF | N | 8 | 4 | Aliq. COFINS | Alic COFINS | COFINS Aliq. | Aliquota da COFINS | Alicuota COFINS | COFINS Aliquot | @E 999.9999 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | xxx x | - | S | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 35676 | 0 |
| CF9 | 13 | CF9_VALCOF | N | 14 | 2 | Vl. COF. Mes | Vl. COF. Mes | COF. Mon. Vl | Valor da COFINS mensal | Valor COFINS mensual | COFINS Monthly Value | @E 99,999,999,999.99 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 35677 | 0 |
| CF9 | 14 | CF9_DESCPR | C | 100 | 0 | Desc. Oper. | Desc. Oper. | Oper. Desc. | Descricao Operacao | Descripcion Operacion | Operation Description | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 35678 | 0 |
| CF9 | 15 | CF9_CODCTA | C | 20 | 0 | Ct. Contabil | Ct. Contable | Ledger Acc. | Conta Contabil | Cuenta Contable | Ledger Account | @! | - | x x x x x x x x x x x x x x x x | - | CT1 | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 003 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 35679 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CF9 | 1 | CF9_FILIAL+CF9_CODBCC+DTOS(CF9_PERING)+CF9_CSTPIS+STR(CF9_ALQPIS)+CF9_CSTCOF+STR(CF9_ALQCOF)+CF9_CODCTA | Cod.BC Cred. + Per.Ingresso + Sit.Trib.PIS + Aliquota PIS + Sit.Trib.C | Cod.BC Cred. + Per.Ingreso + Sit.Trib.PIS + Alicuota PIS + Sit.Trib.CO | Cred BC Code + Entry Per. + PIS Tax Stat + PIS Aliquot + COF Tax Stat | S | - | - | S | 2 | 3 | - | 5469 | 0 |
Ela é utilizada para estoque de abertura 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
CF9_FILIAL,
CF9_CODBCC,
CF9_PERING,
CF9_VLTEST,
CF9_SCRED,
CF9_BASCAL,
CF9_BASMES,
CF9_CSTPIS,
CF9_ALQPIS,
CF9_VALPIS,
CF9_CSTCOF,
CF9_ALQCOF,
CF9_VALCOF,
CF9_DESCPR,
CF9_CODCTA
FROM CF9
WHERE
D_E_L_E_T_ = ' '
AND CF9_FILIAL = 'VALOR'
AND CF9_CODBCC = 'VALOR'
AND CF9_PERING BETWEEN '20261001' AND '20261031'
AND CF9_VLTEST = 0
AND CF9_SCRED = 0
AND CF9_BASCAL = 0
AND CF9_BASMES = 0
AND CF9_CSTPIS = 'VALOR'
AND CF9_ALQPIS = 0
AND CF9_VALPIS = 0
AND CF9_CSTCOF = 'VALOR'
AND CF9_ALQCOF = 0
AND CF9_VALCOF = 0
AND CF9_DESCPR = 'VALOR'
AND CF9_CODCTA = 'VALOR'