"Condições Receb Plano Vendas"
A tabela NCU faz parte do sistema ERP Protheus da TOTVS e é utilizada para "condições receb plano vendas".
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 NCU 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 NCU, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | NCU |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | NCU990 |
| X2_NOME | "Condições Receb Plano Vendas" |
| X2_NOMESPA | "Cond. Cobr. Plan ventas" |
| X2_NOMEENG | "Receiving Conditions Sales Pl |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | NCU_FILIAL+NCU_CODPLA+NCU_SEQITE+NCU_MESANO |
| X2_PYME | S |
| X2_MODULO | 67 |
| 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_ | 6730 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NCU | 01 | NCU_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 | - | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 106846 | 0 |
| NCU | 02 | NCU_SAFRA | C | 15 | 0 | Safra | Cosecha | Crop | Safra | Cosecha | Crop | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 130 | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 106847 | 0 |
| NCU | 03 | NCU_FILPLA | C | 2 | 0 | Filial Plano | Sucursal Pla | Filial Plano | Filial do Plano de Vendas | Sucursal del plan de vent | Sales Plan Branch | - | - | x x x x x x x x x x x x x x x | - | - | 1 | x x xx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 106848 | 0 |
| NCU | 04 | NCU_CODPLA | C | 15 | 0 | Cod Plano | Cód Plan | Plan Code | Codigo do Plano de Vendas | Código del plan de ventas | Sales Plan Code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 106849 | 0 |
| NCU | 05 | NCU_SEQITE | C | 10 | 0 | Seq Item Pla | Sec Ítem Pla | Plan Item Se | Item do Plano de Vendas | Ítem de plan de ventas | Sales Plan Item | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 106850 | 0 |
| NCU | 06 | NCU_MESANO | C | 7 | 0 | Período | Período | Period | Período Recebimento | Período de cobranza | Receipt Period | 99/9999 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 106851 | 0 |
| NCU | 07 | NCU_PERREC | N | 10 | 6 | % | % | % | Percentual | Porcentaje | Percentage | @E 999.999999 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 106852 | 0 |
| NCU | 08 | NCU_QTPRRE | N | 12 | 2 | Qt Prev | Cant Prev | Qty. Exp | Qtde Prevista | Cantidad prevista | Qty. Expected | @E 999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 106853 | 0 |
| NCU | 09 | NCU_DTATUA | D | 8 | 0 | Data Atualiz | Fch Actualiz | Upd Dt | Data de Atualização | Fecha de actualización | Date of Update | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 106854 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NCU | 1 | NCU_FILIAL+NCU_CODPLA+NCU_SEQITE+NCU_MESANO | Cod Plano + Seq Item Pla + Período | Cód Plan + Sec Ítem Pla + Período | Plan Code + Plan Item Se + Period | S | - | - | S | 2 | 3 | - | 15370 | 0 |
| NCU | 2 | NCU_FILIAL+NCU_SAFRA+NCU_SEQITE+NCU_MESANO | Safra + Seq Item Pla + Período | Cosecha + Sec Ítem Pla + Período | Crop + Plan Item Se + Period | S | - | - | S | 2 | 3 | - | 15371 | 0 |
| NCU | 3 | NCU_FILIAL+NCU_SAFRA+NCU_CODPLA+NCU_SEQITE | Safra + Cod Plano + Seq Item Pla | Cosecha + Cód Plan + Sec Ítem Pla | Crop + Plan Code + Plan Item Se | S | - | - | S | 2 | 3 | - | 15372 | 0 |
Ela é utilizada para "condições receb plano vendas" 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
NCU_FILIAL,
NCU_SAFRA,
NCU_FILPLA,
NCU_CODPLA,
NCU_SEQITE,
NCU_MESANO,
NCU_PERREC,
NCU_QTPRRE,
NCU_DTATUA
FROM NCU
WHERE
D_E_L_E_T_ = ' '
AND NCU_FILIAL = 'VALOR'
AND NCU_SAFRA = 'VALOR'
AND NCU_FILPLA = 'VALOR'
AND NCU_CODPLA = 'VALOR'
AND NCU_SEQITE = 'VALOR'
AND NCU_MESANO = 'VALOR'
AND NCU_PERREC = 0
AND NCU_QTPRRE = 0
AND NCU_DTATUA BETWEEN '20260501' AND '20260531'