Contas a Pagar Credenciado
A tabela NU4 faz parte do sistema ERP Protheus da TOTVS e é utilizada para contas a pagar credenciado.
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 NU4 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 NU4, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | NU4 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | NU4990 |
| X2_NOME | Contas a Pagar Credenciado |
| X2_NOMESPA | Cuentas por Pagar Autorizado |
| X2_NOMEENG | Accredited P. Accounts Payable |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | NU4_FILIAL+NU4_COD |
| X2_PYME | N |
| X2_MODULO | 76 |
| X2_DISPLAY | - |
| X2_SYSOBJ | - |
| X2_USROBJ | - |
| X2_POSLGT | 1 |
| X2_CLOB | 1 |
| 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_ | 7080 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NU4 | 01 | NU4_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 | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 112355 | 0 |
| NU4 | 02 | NU4_CFORNE | C | 6 | 0 | Cod Forne | Cod Prov | Supplier Cd | Codigo Fornecedor | Codigo Proveedor | Supplier Code | @! | ExistCpo('SA2',M->NU4_CFORNE,1).Or. Vazio() | x x x x x x x x x x x x x x x x | IIf(IsInCallStack('JURA132'), SA2->A2_COD,'') | - | 1 | xxxxxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 001 | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 112356 | 0 |
| NU4 | 03 | NU4_LFORNE | C | 2 | 0 | Loja Forne | Tda Prov. | Sup. Store | Cod Loja Fornecedor | Cod Tienda Proveedor | Supplier Store Code | @! | - | x x x x x x x x x x x x x x x x | IIf(IsInCallStack('JURA132'), SA2->A2_LOJA,'') | - | 1 | xxxxxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 002 | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 112357 | 0 |
| NU4 | 04 | NU4_COD | C | 5 | 0 | Cod Notas | Cod Notas | Invoice Cd | Codigo Notas Forncedor | Codigo Notas Proveedor | Supplier Invoice Code | - | ExistChav('NU4',M->NU4_COD,1) | x x x x x x x x x x x x x x x x | GETSXENUM("NU4","NU4_COD") | - | 1 | xxxxxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 112358 | 0 |
| NU4 | 05 | NU4_NUMNOT | C | 50 | 0 | Numero Nota | Numero Fact | Invoice No | Numero Da Nota Fiscal | Numero De Factura | Invoice Number | - | JA132TamNota(M->NU4_NUMNOT) | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 112359 | 0 |
| NU4 | 06 | NU4_PARCEL | C | 5 | 0 | Nº Parcela | Nº Cuota | Inst. Number | Numero da Parcela | Numero de Cuota | Installment Number | @ 99999 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 112360 | 0 |
| NU4 | 07 | NU4_DATAEM | D | 8 | 0 | Data Emissao | Fecha Emisio | Issue Date | Data Emissao Nota | Fecha Emision Factura | Invoice Issue Date | - | JA132VldDt(Fwfldget('NU4_DATAEM')) .Or. Vazio() | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 112361 | 0 |
| NU4 | 08 | NU4_DATAVE | D | 8 | 0 | Vencimento | Vencimiento | Due Date | Data Vencimento | Fecha Vencimiento | Due Date | - | VAZIO().OR.J132VDts() | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 112362 | 0 |
| NU4 | 09 | NU4_DATARF | D | 8 | 0 | Dt Referen. | Fc Referen. | Refer Date | Dt Referencia | Fc Referencia | Reference Date | - | JA132VldDt(Fwfldget('NU4_DATARF')) .Or. Vazio() | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 112363 | 0 |
| NU4 | 10 | NU4_CMOEHO | C | 2 | 0 | Cod Moe Hono | Cod MonHono | Fee Cur Cd | Codigo Moeda Honorarios | Codigo Moneda Honorarios | Fee Currency Code | - | (ExistCpo('CTO',FWFLDGET('NU4_CMOEHO'),1).AND.(JAVLDCAMPO('NU4DETAIL', 'NU4_CMOEHO','CTO', 'CTO_BLOQ', '2' ))).OR.Vazio() | x x x x x x x x x x x x x x x x | - | JURCTO | 1 | xxxx x | - | S | - | S | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 112364 | 0 |
| NU4 | 11 | NU4_DMOEHO | C | 10 | 0 | Simb Moe Hon | Simb MonHon | Fee Cur Sym | Simbolo Moeda Honorarios | Simbolo Moneda Honorarios | Fee Currency Symbol | - | - | x x x x x x x x x x x x x x x x | IF(!INCLUI,Posicione('CTO',1,xFilial('CTO')+NU4->NU4_CMOEHO,'CTO_SIMB'),'') | - | 1 | xxxx x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione('CTO',1,xFilial('CTO')+NU4->NU4_CMOEHO,'CTO_SIMB') | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 112365 | 0 |
| NU4 | 12 | NU4_VLRHON | N | 16 | 2 | Valor Hon | Valor Hon | Fee Value | Valor Honorario | Valor Honorario | Fee Value | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | S | - | N | A | R | - | - | - | - | - | - | JA132WHEN("NU4_VLRHON") | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 112366 | 0 |
| NU4 | 13 | NU4_CMOEDE | C | 2 | 0 | Cod Moe Des | Cod Mon Des | Exp Cur Cd | Codigo Moeda Despesa | Codigo Moneda Gasto | Expense Currency Code | - | (ExistCpo('CTO',FWFLDGET('NU4_CMOEDE'),1).AND.(JAVLDCAMPO('NU4DETAIL', 'NU4_CMOEDE', 'CTO', 'CTO_BLOQ', '2' ))).OR.Vazio() | x x x x x x x x x x x x x x x x | - | JURCTO | 1 | xxxx x | - | S | - | N | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 112367 | 0 |
| NU4 | 14 | NU4_DMOEDE | C | 10 | 0 | Simb Moe Des | Simb Mon Des | Exp Cur Sym | Simbolo Moeda Despesa | Simbolo Moneda Gasto | Expense Currency Symbol | - | - | x x x x x x x x x x x x x x x x | IF(!INCLUI,Posicione('CTO',1,xFilial('CTO')+NU4->NU4_CMOEDE,'CTO_SIMB'),'') | - | 1 | xxxx x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione('CTO',1,xFilial('CTO')+NU4->NU4_CMOEDE,'CTO_SIMB') | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 112368 | 0 |
| NU4 | 15 | NU4_VLRDES | N | 16 | 2 | Valor Desp | Valor Gasto | Expense Vl | Valor Despesa | Valor Gasto | Expense Value | @e 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | S | - | S | A | R | - | - | - | - | - | - | JA132WHEN("NU4_VLRDES") | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 112369 | 0 |
| NU4 | 16 | NU4_VLRNOT | N | 15 | 2 | Valor Nota | Valor Fact | Invoice Vl | Valor da Nota Fiscal | Valor de Factura | Invoice Value | @E 999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | - | - | S | V | R | - | - | - | - | - | - | JA132WHEN("NU4_VLRNOT") | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 112370 | 0 |
| NU4 | 17 | NU4_STSJUR | C | 1 | 0 | Status Pagam | Estatus Pago | Paym. Status | Status do Pagamento | Estatus del Pago | Payment Status | @! | Pertence("12345") | x x x x x x x x x x x x x x x x | "1" | - | 1 | xxxx x | - | - | - | S | V | R | - | - | 1=Incompleto;2=Pendente Aprovacao;3=Aprovado;4=Cancelado;5=Pago | 1=Incompleto;2=Pendiente Aprobacion;3=Aprobado;4=Anulado;5=Pago | 1=Outstanding;2=Pending Approval;3=Approved;4=Canceled;5=Paid | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 112371 | 0 |
| NU4 | 18 | NU4_NOTDES | C | 1 | 0 | Nota Desdob? | ¿Nota Desd? | Breakd. Inv? | Nota desdobrada? | ¿Nota desdoblada? | Breakdown Invoice? | @! | Pertence("12") | x x x x x x x x x x x x x x x x | "2" | - | 1 | xxxx x | - | - | - | S | V | R | - | - | 1=Sim;2=Nao | 1=Si;2=No | 1=Yes;2=No | - | - | - | - | - | N | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 112372 | 0 |
| NU4 | 19 | NU4_CUSERA | C | 6 | 0 | Usuário Alt | Usuario Alt | User Chg | Usuário de Alteração | Usuario de Alteracion | User of Change | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 112373 | 0 |
| NU4 | 20 | NU4_DATAUL | D | 8 | 0 | Dt Alteração | Fc. Modific. | Change Dt | Data de Alteração da Obs | Fecha de Modif. de la Obs | Note Change Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 112374 | 0 |
| NU4 | 21 | NU4_DUSERA | C | 30 | 0 | Des Usu Alt | Des Usu Mod. | Ch User Des | Desc usuário de alteração | Desc usuario de modific. | Change user description | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 112375 | 0 |
| NU4 | 22 | NU4_OBS | M | 10 | 0 | Observações | Observac. | Notes | Observações da nota | Observaciones de la fact. | Invoice notes | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 112376 | 0 |
| NU4 | 23 | NU4__USUAP | C | 6 | 0 | Usu. Apr. | Usu. Apr. | Appr. User | Usuário Aprovação | Usuario Aprobacion | Approval User | - | - | x x x x x x x x x x x x x x x | - | - | 1 | x x | N | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 112377 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NU4 | 1 | NU4_FILIAL+NU4_COD+NU4_CFORNE+NU4_LFORNE | Cod Notas + Cod Forne + Loja Forne | Cod Notas + Cod Prov + Tda Prov. | Invoice Cd + Supplier Cd + Sup. Store | S | - | - | S | 2 | 3 | - | 16141 | 0 |
| NU4 | 2 | NU4_FILIAL+NU4_NUMNOT | Numero Nota | Numero Fact | Invoice No | S | - | NUMNOTA | S | 2 | 3 | - | 16142 | 0 |
Ela é utilizada para contas a pagar credenciado 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
NU4_FILIAL,
NU4_CFORNE,
NU4_LFORNE,
NU4_COD,
NU4_NUMNOT,
NU4_PARCEL,
NU4_DATAEM,
NU4_DATAVE,
NU4_DATARF,
NU4_CMOEHO,
NU4_DMOEHO,
NU4_VLRHON,
NU4_CMOEDE,
NU4_DMOEDE,
NU4_VLRDES,
NU4_VLRNOT,
NU4_STSJUR,
NU4_NOTDES,
NU4_CUSERA,
NU4_DATAUL,
NU4_DUSERA,
NU4_OBS,
NU4__USUAP
FROM NU4
WHERE
D_E_L_E_T_ = ' '
AND NU4_FILIAL = 'VALOR'
AND NU4_CFORNE = 'VALOR'
AND NU4_LFORNE = 'VALOR'
AND NU4_COD = 'VALOR'
AND NU4_NUMNOT = 'VALOR'
AND NU4_PARCEL = 'VALOR'
AND NU4_DATAEM BETWEEN '20260501' AND '20260531'
AND NU4_DATAVE BETWEEN '20260501' AND '20260531'
AND NU4_DATARF BETWEEN '20260501' AND '20260531'
AND NU4_CMOEHO = 'VALOR'
AND NU4_DMOEHO = 'VALOR'
AND NU4_VLRHON = 0
AND NU4_CMOEDE = 'VALOR'
AND NU4_DMOEDE = 'VALOR'
AND NU4_VLRDES = 0
AND NU4_VLRNOT = 0
AND NU4_STSJUR = 'VALOR'
AND NU4_NOTDES = 'VALOR'
AND NU4_CUSERA = 'VALOR'
AND NU4_DATAUL BETWEEN '20260501' AND '20260531'
AND NU4_DUSERA = 'VALOR'
AND NU4__USUAP = 'VALOR'