PARTICIPAÇÃO DO CLIENTE
A tabela NU9 faz parte do sistema ERP Protheus da TOTVS e é utilizada para participaÇÃo do cliente.
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 NU9 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 NU9, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | NU9 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | NU9990 |
| X2_NOME | PARTICIPAÇÃO DO CLIENTE |
| X2_NOMESPA | PARTICIPACION DEL CLIENTE |
| X2_NOMEENG | CUSTOMER PARTICIPATION |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | NU9_FILIAL+NU9_CCLIEN+NU9_CLOJA+NU9_CPART+NU9_CTIPO |
| X2_PYME | N |
| X2_MODULO | 77 |
| 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_ | 7085 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NU9 | 01 | NU9_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 | A | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 112415 | 0 |
| NU9 | 02 | NU9_COD | C | 6 | 0 | Código | Codigo | Code | Código do participação | Coigo de participacion | Participation code | - | - | x x x x x x x x x x x x x x x x | GETSXENUM("NU9","NU9_COD") | - | 1 | x xxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 112416 | 0 |
| NU9 | 03 | NU9_CCLIEN | C | 6 | 0 | Cód cliente | Cod cliente | Cust. code | Código do cliente | Codigo del cliente | Customer code | @! | - | x x x x x x x x x x x x x x x x | - | SA1 | 1 | xx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 001 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 112417 | 0 |
| NU9 | 04 | NU9_CLOJA | C | 2 | 0 | Cód loja | Cod tienda | Unit code | Código da loja | Codigo de la tienda | Unit code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 002 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 112418 | 0 |
| NU9 | 05 | NU9_SIGLA | C | 5 | 0 | Sigla part | Sigla part | PartcpAcrnm | Sigla do Participante | Sigla Participante | Participator Acronym | - | Vazio().Or.(ExistCpo('RD0',FWFLDGET('NU9_SIGLA'),9).And.JURRD0('NU9DETAIL','NU9_SIGLA',JA148TPORI(),.T.)) | x x x x x x x x x x x x x x x x | IF(!INCLUI,POSICIONE('RD0',1,XFILIAL('RD0')+NU9->NU9_CPART,'RD0_SIGLA'),'') | RD0NU9 | 1 | x | - | S | - | S | A | V | - | - | - | - | - | - | - | Posicione('RD0',1,xFilial('RD0')+NU9->NU9_CPART,'RD0_SIGLA') | 073 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 112419 | 0 |
| NU9 | 06 | NU9_CPART | C | 6 | 0 | Cód part | Cód part | Part. code | Código do participante | Codigo del participante | Participant code | - | Vazio().Or.Iif(JurIsRest(),(ExistCpo('RD0',FWFLDGET('NU9_CPART'),1).And.JURRD0('NU9DETAIL','NU9_CPART','1')), .T.) | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | S | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 112420 | 0 |
| NU9 | 07 | NU9_DPART | C | 50 | 0 | Nome part | Nombre part | Part. name | Nome do participante | Nombre del participante | Participant name | @! | - | x x x x x x x x x x x x x x x x | IF(!INCLUI,Posicione("RD0",1,xFilial("RD0")+NU9->NU9_CPART,"RD0_NOME"),'') | - | 1 | xx x x | - | - | - | S | V | V | - | - | - | - | - | - | - | GETADVFVAL('RD0','RD0_NOME', xFilial('RD0')+NU9->NU9_CPART) | 174 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 112421 | 0 |
| NU9 | 08 | NU9_CTIPO | C | 3 | 0 | Cód tipo ori | Cod tipo ori | Orig. tp cd | Código tipo originação | Codigo tipo origen | Origin type code | - | Vazio().Or.(ExistCpo('NRI',M->NU9_CTIPO,1).AND.JA148VLDCP("NU9_CTIPO")) | x x x x x x x x x x x x x x x x | - | NRINU9 | 1 | x xxx | - | S | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 112422 | 0 |
| NU9 | 09 | NU9_DTIPO | C | 100 | 0 | Desc tipo | Desc tipo | Orig desc | Descrição tipo originação | Descrição tipo origen | Origin type description | - | - | x x x x x x x x x x x x x x x x | IF(!INCLUI,Posicione("NRI",1,xFilial("NRI")+NU9->NU9_CTIPO,"NRI_DESC"),'') | - | 1 | xx x x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("NRI",1,xFilial("NRI")+NU9->NU9_CTIPO,"NRI_DESC") | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 112423 | 0 |
| NU9 | 10 | NU9_PERC | N | 16 | 4 | % Particip | % Particip | % Partic. | % de Participação | % de Participacion | % of Participation | @E 99,999,999,999.9999 | FwFldGet("NU9_PERC") <=100.And.Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | xx xxx | - | S | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 112424 | 0 |
| NU9 | 11 | NU9_DTINI | D | 8 | 0 | Data inicial | Fch inicial | Initial date | Data inicial | Fecha inicial | Initial date | - | - | x x x x x x x x x x x x x x x x | JIniPdr("NU9_DTINI") | - | 1 | x xxx | - | S | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 112425 | 0 |
| NU9 | 12 | NU9_DTFIM | D | 8 | 0 | Data fina | Fecha final | Final date | Data fina | Fecha final | Final date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 112426 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NU9 | 1 | NU9_FILIAL+NU9_CCLIEN+NU9_CLOJA+NU9_CPART+NU9_CTIPO | Cód cliente + Cód loja + Cód part + Cód tipo ori | Cod cliente + Cod tienda + Cód part + Cod tipo ori | Cust. code + Unit code + Part. code + Orig. tp cd | S | - | - | S | 2 | 3 | - | 16147 | 0 |
Ela é utilizada para participaÇÃo do cliente 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
NU9_FILIAL,
NU9_COD,
NU9_CCLIEN,
NU9_CLOJA,
NU9_SIGLA,
NU9_CPART,
NU9_DPART,
NU9_CTIPO,
NU9_DTIPO,
NU9_PERC,
NU9_DTINI,
NU9_DTFIM
FROM NU9
WHERE
D_E_L_E_T_ = ' '
AND NU9_FILIAL = 'VALOR'
AND NU9_COD = 'VALOR'
AND NU9_CCLIEN = 'VALOR'
AND NU9_CLOJA = 'VALOR'
AND NU9_SIGLA = 'VALOR'
AND NU9_CPART = 'VALOR'
AND NU9_DPART = 'VALOR'
AND NU9_CTIPO = 'VALOR'
AND NU9_DTIPO = 'VALOR'
AND NU9_PERC = 0
AND NU9_DTINI BETWEEN '20260501' AND '20260531'
AND NU9_DTFIM BETWEEN '20260501' AND '20260531'