Histórico da Página
...
Produto: | Datasul |
Ocorrência: | Documentação de API |
| Nome Físico | prgfin/apb/apb713za |
Objetivo
Validar a nova situação do período contábil para o módulo APB.
Funcionamento
Na forma padrão, realiza-se a chamada através de um comando RUN normal, passando-se as temp-tables carregadas com as informações necessárias.
...
output v_cod_return ).
Tabelas Temporárias
Tabela Temporária | Descrição | Entrada/Saída |
tt_integr_apb_lote_impl | Conterá as informações dos lotes de implantação, necessários para a vinculação dos itens. | Entrada |
(*) A partir da 5.07A o estabelecimento passa a ter cinco dígitos.
Atributo | Tipo | Formato | Descrição | Obrig. | Evol. |
tta_cod_estab | character | x(3) / x(5)* | Estabelecimento |
|
|
tta_cod_refer | character | x(10) | Referˆncia |
|
|
tta_cod_espec_docto | character | x(3) | Esp‚cie Documento |
|
|
tta_dat_transacao | date | 99/99/9999 | Data Transa‡Æo |
|
|
tta_ind_origin_tit_ap | character | X(03) | Origem |
|
|
tta_cod_estab_ext | character | x(8) | Estabelecimento Exte |
|
|
tta_val_tot_lote_impl_tit_ap | decimal | >>,>>>,>>>,>>9.99 | Total Movimento |
|
|
tta_cod_empresa | character | x(3) | Empresa |
|
|
ttv_cod_empresa_ext | character | x(3) | C¢digo Empresa Ext |
|
|
tta_cod_finalid_econ_ext | character | x(8) | Finalid Econ Externa |
|
|
tta_cod_indic_econ | character | x(8) | Moeda |
|
|
def
...
shared
...
temp-table
...
tt_integr_apb_lote_impl
...
no-undo
...
field
...
tta_cod_estab
...
as
...
character
...
format
...
"x(
...
5)"
...
label
...
"Estabelecimento"
...
column-label
...
"Estab"
...
field
...
tta_cod_refer
...
as
...
character
...
format
...
"x(10)"
...
label
...
"Referˆncia"
...
column-label
...
"Referˆncia"
...
field
...
tta_cod_espec_docto
...
as
...
character
...
format
...
"x(3)"
...
label
...
"Esp‚cie
...
Documento"
...
column-label
...
"Esp‚cie"
...
field
...
tta_dat_transacao
...
as
...
date
...
format
...
"99/99/9999"
...
initial
...
today
...
label
...
"Data
...
Transa‡Æo"
...
column-label
...
"Dat
...
Transac"
...
field
...
tta_ind_origin_tit_ap
...
as
...
character
...
format
...
"X(03)"
...
initial
...
"APB"
...
label
...
"Origem"
...
column-label
...
"Origem"
...
field
...
tta_cod_estab_ext
...
as
...
character
...
format
...
"x(8)"
...
label
...
"Estabelecimento
...
Exte"
...
column-label
...
"Estabelecimento
...
Ext"
...
field
...
tta_val_tot_lote_impl_tit_ap
...
as
...
decimal
...
format
...
">>,>>>,>>>,>>9.99"
...
decimals
...
2
...
initial
...
0
...
label
...
"Total
...
Movimento"
...
column-label
...
"Total
...
Movto"
...
field
...
tta_cod_empresa
...
as
...
character
...
format
...
"x(3)"
...
label
...
"Empresa"
...
column-label
...
"Empresa"
...
field
...
ttv_cod_empresa_ext
...
as
...
character
...
format
...
"x(3)"
...
label
...
"C¢digo
...
Empresa
...
Ext"
...
column-label
...
"C¢d
...
Emp
...
Ext"
...
field
...
tta_cod_finalid_econ_ext
...
as
...
character
...
format
...
"x(8)"
...
label
...
"Finalid
...
Econ
...
Externa"
...
column-label
...
"Finalidade
...
Externa"
...
field tta_cod_indic_econ
...
as
...
character
...
format
...
"x(8)"
...
label
...
"Moeda"
...
column-label
...
"Moeda"
...
index
...
tt_lote_impl_tit_ap_integr_id
...
is
...
primary
...
unique
...
tta_cod_estab
...
ascending
...
tta_cod_
...
refer ascending
...
tta_cod_estab_ext
...
ascending
...
.
(**) Liberado o número de documento com 16 posições e série com5, apartir de maio/2011.
Tabela Temporária |
Tabela Temporária | Descrição | Entrada/Saída |
tt_integr_apb_item_lote_impl | Conterá as informações dos itens dos lote de implantação a serem criados no Datasul-EMS5. | Entrada |
Atributo | Tipo | Formato | Descrição | Obrig. | Evol. |
ttv_rec_integr_apb_lote_impl | recid | >>>>>>9 |
|
|
|
tta_num_seq_refer | integer | >>>9 | Sequˆncia |
|
|
tta_cdn_fornecedor | Integer | >>>,>>>,>>9 | Fornecedor |
|
|
tta_cod_espec_docto | character | x(3) | Esp‚cie Documento |
|
|
tta_cod_ser_docto | character | x(3)/x(5)** | S‚rie Documento |
|
|
tta_cod_tit_ap | character | x(10)/x(16)** | T¡tulo |
|
|
tta_cod_parcela | character | x(02) | Parcela |
|
|
tta_dat_emis_docto | date | 99/99/9999 | Data EmissÆo |
|
|
tta_dat_vencto_tit_ap | date | 99/99/9999 | Data Vencimento |
|
|
tta_dat_prev_pagto | date | 99/99/9999 | Data Prevista Pgto |
|
|
tta_dat_desconto | date | 99/99/9999 | Data Desconto |
|
|
tta_cod_indic_econ | character | x(8) | Moeda |
|
|
tta_val_tit_ap | decimal | ->>>,>>>,>>9.99 | Valor T¡tulo |
|
|
tta_val_desconto | decimal | ->>>,>>>,>>9.99 | Valor Desconto |
|
|
tta_val_perc_desc | decimal | >9.9999 | Percentual Desconto |
|
|
tta_num_dias_atraso | integer | >9 | Dias Atraso |
|
|
tta_val_juros_dia_atraso | decimal | ->>>,>>>,>>9.99 | Valor Juro |
|
|
tta_val_perc_juros_dia_atraso | decimal | >9.999999 | Perc Jur Dia Atraso |
|
|
tta_val_perc_multa_atraso | decimal | >9.99 | Perc Multa Atraso |
|
|
tta_cod_portador | character | x(5) | Portador |
|
|
tta_cod_apol_seguro | character | x(12) | Ap¢lice Seguro |
|
|
tta_cod_seguradora | character | x(8) | Seguradora |
|
|
tta_cod_arrendador | character | x(6) | Arrendador |
|
|
tta_cod_contrat_leas | character | x(12) | Contrato Leasing |
|
|
tta_des_text_histor | character | x(2000) | Hist¢rico |
|
|
tta_num_id_tit_ap | integer | 1E+10 | Token Tit AP |
|
|
tta_num_id_movto_tit_ap | integer | 1E+10 | Token Movto Tit AP |
|
|
tta_num_id_movto_cta_corren | integer | 1E+10 | ID Movto Conta |
|
|
ttv_qtd_parc_tit_ap | decimal | >>9 | Quantidade Parcelas |
|
|
ttv_num_dias | integer | >>>>,>>9 | N£mero de Dias |
|
|
ttv_ind_vencto_previs | character | X(4) | C lculo Vencimento |
|
|
ttv_log_gerad | logical | Sim/NÆo |
|
|
|
tta_cod_finalid_econ_ext | character | x(8) | Finalid Econ Externa |
|
|
tta_cod_portad_ext | character | x(8) | Portador Externo |
|
|
tta_cod_modalid_ext | character | x(8) | Modalidade Externa |
|
|
tta_cod_cart_bcia | character | x(3) | Carteira |
|
|
tta_cod_forma_pagto | character | x(3) | Forma Pagamento |
|
|
def
...
shared
...
temp-table
...
tt_integr_apb_item_lote_impl
...
no-undo
...
field
...
ttv_rec_integr_apb_lote_impl
...
as
...
recid
...
format
...
">>>>>>9"
...
field
...
tta_num_seq_refer
...
as
...
integer
...
format
...
">>>9"
...
initial
...
0
...
label
...
"Sequˆncia"
...
column-label
...
"Seq"
...
field
...
tta_cdn_fornecedor
...
as
...
Integer
...
format
...
">>>,>>>,>>9"
...
initial
...
0
...
label
...
"Fornecedor"
...
column-label
...
"Fornecedor"
...
field
...
tta_cod_espec_docto
...
as
...
character
...
format
...
"x(3)"
...
label
...
"Esp‚cie
...
Documento"
...
column-label
...
"Esp‚cie"
...
field
...
tta_cod_ser_docto
...
as
...
character
...
format
...
"x(3)"
...
label
...
"S‚rie
...
Documento"
...
column-label
...
"S‚rie"
...
field
...
tta_cod_tit_ap
...
as
...
character
...
format
...
"x(10)"
...
label
...
"T¡tulo"
...
column-label
...
"T¡tulo"
...
field
...
tta_cod_parcela
...
as
...
character
...
format
...
"x(02)"
...
label
...
"Parcela"
...
column-label
...
"Parc"
...
field
...
tta_dat_emis_docto
...
as
...
date
...
format
...
"99/99/9999"
...
initial
...
today
...
label
...
"Data
...
EmissÆo"
...
column-label
...
"Dt
...
EmissÆo"
...
field
...
tta_dat_vencto_tit_ap
...
as
...
date
...
format
...
"99/99/9999"
...
initial
...
today
...
label
...
"Data
...
Vencimento"
...
column-label
...
"Dt
...
Vencto"
...
field
...
tta_dat_prev_pagto
...
as
...
date
...
format
...
"99/99/9999"
...
initial
...
today
...
label
...
"Data
...
Prevista
...
Pgto"
...
column-label
...
"Dt
...
Prev
...
Pagto"
...
field
...
tta_dat_desconto
...
as
...
date
...
format
...
"99/99/9999"
...
initial
...
?
...
label
...
"Data
...
Desconto"
...
column-label
...
"Dt
...
Descto"
...
field
...
tta_cod_indic_econ
...
as
...
character
...
format
...
"x(8)"
...
label
...
"Moeda"
...
column-label
...
"Moeda"
...
field
...
tta_val_tit_
...
ap as decimal format "->>>,>>>,>>9.99"
...
decimals
...
2
...
initial
...
0
...
label
...
"Valor
...
T¡tulo"
...
column-label
...
"Valor
...
T¡tulo"
...
field
...
tta_val_desconto
...
as
...
decimal
...
format
...
"->>>,>>>,>>9.99"
...
decimals
...
2
...
initial
...
0
...
label
...
"Valor
...
Desconto"
...
column-label
...
"Valor
...
Desconto"
...
field
...
tta_val_perc_desc
...
as
...
decimal
...
format
...
">9.9999"
...
decimals
...
4
...
initial
...
0
...
label
...
"Percentual
...
Desconto"
...
column-label
...
"Perc
...
Descto"
...
field
...
tta_num_dias_atraso
...
as
...
integer
...
format
...
">9"
...
initial
...
0
...
label
...
"Dias
...
Atraso"
...
column-label
...
"Dias
...
Atr"
...
field
...
tta_val_juros_dia_atraso
...
as
...
decimal
...
format
...
"->>>,>>>,>>9.99"
...
decimals
...
2
...
initial
...
0
...
label
...
"Valor
...
Juro"
...
column-label
...
"Vl
...
Juro"
...
field
...
tta_val_perc_juros_dia_atraso
...
as
...
decimal
...
format
...
">9.999999"
...
decimals
...
6
...
initial00.00label
...
"Perc
...
Jur
...
Dia
...
Atraso"
...
column-label
...
"Perc
...
Dia"
...
field
...
tta_val_perc_multa_atraso
...
as
...
decimal
...
format
...
">9.99"
...
decimals
...
2
...
initial00.00label
...
"Perc
...
Multa
...
Atraso"
...
column-label
...
"Multa
...
Atr"
...
field
...
tta_cod_portador
...
as
...
character
...
format
...
"x(5)"
...
label
...
"Portador"
...
column-label
...
"Portador"
...
field
...
tta_cod_apol_seguro
...
as
...
character
...
format
...
"x(12)"
...
label
...
"Ap¢lice
...
Seguro"
...
column-label
...
"Apolice
...
Seguro"
...
field
...
tta_cod_seguradora
...
as
...
character
...
format
...
"x(8)"
...
label
...
"Seguradora"
...
column-label
...
"Seguradora"
...
field
...
tta_cod_arrendador
...
as
...
character
...
format
...
"x(6)"
...
label
...
"Arrendador"
...
column-label
...
"Arrendador"
...
field
...
tta_cod_contrat_leas
...
as
...
character
...
format
...
"x(12)"
...
label
...
"Contrato
...
Leasing"
...
column-label
...
"Contr
...
Leas"
...
field
...
tta_des_text_histor
...
as
...
character
...
format
...
"x(2000)"
...
label
...
"Hist¢rico"
...
column-label
...
"Hist¢rico"
...
field
...
tta_num_id_tit_
...
ap as integer format "9999999999"
...
initial
...
0
...
label
...
"Token
...
Tit
...
AP"
...
column-label
...
"Token
...
Tit
...
AP"
...
field
...
tta_num_id_movto_tit_ap
...
as
...
integer
...
format
...
"9999999999"
...
initial
...
0
...
label
...
"Token
...
Movto
...
Tit
...
AP"
...
column-label
...
"Id
...
Tit
...
AP"
...
field
...
tta_num_id_movto_cta_corren
...
as
...
integer
...
format
...
"9999999999"
...
initial
...
0
...
label
...
"ID
...
Movto
...
Conta"
...
column-label
...
"ID
...
Movto
...
Conta"
...
field
...
ttv_qtd_parc_tit_ap
...
as
...
decimal
...
format
...
">>9"
...
initial
...
1
...
label
...
"Quantidade
...
Parcelas"
...
column-label
...
"Quantidade
...
Parcelas"
...
field
...
ttv_num_dias
...
as
...
integer
...
format
...
">>>>,>>9"
...
label
...
"N£mero
...
de
...
Dias"
...
column-label
...
"N£mero
...
de
...
Dias"
...
field
...
ttv_ind_vencto_previs
...
as
...
character
...
format
...
"X(4)"
...
initial
...
"Mˆs"
...
label
...
"C lculo
...
Vencimento"
...
column-label
...
"C lculo
...
Vencimento"
...
field
...
ttv_log_gerad
...
as
...
logical
...
format
...
"Sim/NÆo"
...
initial
...
no
...
field
...
tta_cod_finalid_econ_ext
...
as
...
character
...
format
...
"x(8)"
...
label
...
"Finalid
...
Econ
...
Externa"
...
column-label
...
"Finalidade
...
Externa"
...
field
...
tta_cod_portad_
...
ext as character format "x(8)"
...
label
...
"Portador
...
Externo"
...
column-label
...
"Portador
...
Externo"
...
field
...
tta_cod_modalid_ext
...
as
...
character
...
format
...
"x(8)"
...
label
...
"Modalidade
...
Externa"
...
column-label
...
"Modalidade
...
Externa"
...
field
...
tta_cod_cart_
...
bcia as character format "x(3)"
...
label
...
"Carteira"
...
column-label
...
"Carteira"
...
field
...
tta_cod_forma_pagto
...
as
...
character
...
format
...
"x(3)"
...
label
...
"Forma
...
Pagamento"
...
column-label
...
"F
...
Pagto"
...
index
...
tt_item_lote_impl_ap_integr_id
...
is
...
primary
...
unique
...
ttv_rec_integr_apb_lote_impl
...
ascending
...
tta_num_seq_refer
...
ascending
.
Tabela Temporária | Descrição | Entrada/Saída |
tt_integr_apb_abat_antecip_vouc | Conterá as informações referentes a abatimentos de Antecipações. | Entrada |
(*) A partir da 5.07A o estabelecimento passa a ter cinco dígitos.
(**) Liberado o número de documento com 16 posições e série com5, apartir de maio/2011.
Atributo | Tipo | Formato | Descrição | Obrig. | Evol. |
ttv_rec_integr_apb_item_lote | recid | >>>>>>9 |
|
|
|
tta_cod_estab | character | x(3) / x(5)* | Estabelecimento |
|
|
tta_cod_espec_docto | character | x(3) | Esp‚cie Documento |
|
|
tta_cod_ser_docto | character | x(3)/x(5)** | S‚rie Documento |
|
|
tta_cdn_fornecedor | Integer | >>>,>>>,>>9 | Fornecedor |
|
|
tta_cod_tit_ap | character | x(10)/x(16)** | T¡tulo |
|
|
tta_cod_parcela | character | x(02) | Parcela |
|
|
tta_val_abat_tit_ap | decimal | ->>>,>>>,>>9.99 | Valor Abatimento |
|
|
def
...
shared
...
temp-table
...
tt_integr_apb_abat_antecip_vouc
...
no-undo
...
field
...
ttv_rec_integr_apb_item_lote
...
as
...
recid
...
format
...
">>>>>>9"
...
field
...
tta_cod_
...
estab as character format "x(
...
5)"
...
label
...
"Estabelecimento"
...
column-label
...
"Estab"
...
field
...
tta_cod_espec_docto
...
as
...
character
...
format
...
"x(3)"
...
label
...
"Esp‚cie
...
Documento"
...
column-label
...
"Esp‚cie"
...
field
...
tta_cod_ser_docto
...
as
...
character
...
format
...
"x(3)"
...
label
...
"S‚rie
...
Documento"
...
column-label
...
"S‚rie"
...
field
...
tta_cdn_fornecedor
...
as
...
Integer
...
format
...
">>>,>>>,>>9"
...
initial
...
0
...
label
...
"Fornecedor"
...
column-label
...
"Fornecedor"
...
field
...
tta_cod_tit_ap
...
as
...
character
...
format
...
"x(10)"
...
label
...
"T¡tulo"
...
column-label
...
"T¡tulo"
...
field
...
tta_cod_parcela
...
as
...
character
...
format
...
"x(02)"
...
label
...
"Parcela"
...
column-label
...
"Parc"
...
field
...
tta_val_abat_tit_ap
...
as
...
decimal
...
format
...
"->>>,>>>,>>9.99"
...
decimals
...
2
...
initial
...
0
...
label
...
"Valor
...
Abatimento"
...
column-label
...
"Vl
...
Abatimento"
...
index
...
tt_integr_apb_abat_antecip_vouc
...
is
...
primary
...
unique
...
ttv_rec_integr_apb_item_lote
...
ascending
...
tta_cod_estab
...
ascending
...
tta_cod_espec_docto
...
ascending
...
tta_cod_ser_
...
docto ascending
...
tta_cdn_fornecedor
...
ascending
...
tta_cod_tit_
...
ap ascending
...
tta_cod_parcela
...
ascending
...
.
Tabela Temporária | Descrição | Entrada/Saída |
tt_integr_apb_abat_prev_provis | Conterá as informações referentes a abatimentos de Previsões ou Provisões. | Entrada |
(*) A partir da 5.07A o estabelecimento passa a ter cinco dígitos.
(**) Liberado o número de documento com 16 posições e série com5, apartir de maio/2011.
Atributo | Tipo | Formato | Descrição | Obrig. | Evol. |
ttv_rec_integr_apb_item_lote | recid | >>>>>>9 |
|
|
|
ttv_rec_antecip_pef_pend | recid | >>>>>>9 |
|
|
|
tta_cod_estab | character | x(3) / x(5)* | Estabelecimento |
|
|
tta_cod_espec_docto | character | x(3) | Esp‚cie Documento |
|
|
tta_cod_ser_docto | character | x(3)/x(5)** | S‚rie Documento |
|
|
tta_cdn_fornecedor | Integer | >>>,>>>,>>9 | Fornecedor |
|
|
tta_cod_tit_ap | character | x(10)/x(16)** | T¡tulo |
|
|
tta_cod_parcela | character | x(02) | Parcela |
|
|
tta_val_abat_tit_ap | decimal | ->>>,>>>,>>9.99 | Valor Abatimento |
|
|
def
...
shared
...
temp-table
...
tt_integr_apb_abat_prev_provis
...
no-undo
...
field
...
ttv_rec_integr_apb_item_lote
...
as
...
recid
...
format
...
">>>>>>9"
...
field
...
ttv_rec_antecip_pef_pend
...
as
...
recid
...
format
...
">>>>>>9"
...
field
...
tta_cod_estab
...
as
...
character
...
format
...
"x(
...
5)"
...
label
...
"Estabelecimento"
...
column-label
...
"Estab"
...
field
...
tta_cod_espec_docto
...
as
...
character
...
format
...
"x(3)"
...
label
...
"Esp‚cie
...
Documento"
...
column-label
...
"Esp‚cie"
...
field
...
tta_cod_ser_docto
...
as
...
character
...
format
...
"x(3)"
...
label
...
"S‚rie
...
Documento"
...
column-label
...
"S‚rie"
...
field
...
tta_cdn_fornecedor
...
as
...
Integer
...
format
...
">>>,>>>,>>9"
...
initial
...
0
...
label
...
"Fornecedor"
...
column-label
...
"Fornecedor"
...
field
...
tta_cod_tit_ap
...
as
...
character
...
format
...
"x(10)"
...
label
...
"T¡tulo"
...
column-label
...
"T¡tulo"
...
field
...
tta_cod_parcela
...
as
...
character
...
format
...
"x(02)"
...
label
...
"Parcela"
...
column-label
...
"Parc"
...
field
...
tta_val_abat_tit_ap
...
as
...
decimal
...
format
...
"->>>,>>>,>>9.99"
...
decimals
...
2
...
initial
...
0
...
label
...
"Valor
...
Abatimento"
...
column-label
...
"Vl
...
Abatimento"
...
index tt_integr_apb_abat_prev
...
is
...
unique
...
ttv_rec_antecip_pef_pend
...
ascending
...
tta_cod_estab
...
ascending
...
tta_cod_espec_docto
...
ascending
...
tta_cod_ser_docto
...
ascending
...
tta_cdn_fornecedor
...
ascending
...
tta_cod_tit_ap
...
ascending
...
tta_cod_parcela
...
ascending
...
index
...
tt_integr_apb_abat_prev_provis
...
is
...
primary
...
unique
...
ttv_rec_integr_apb_item_lote
...
ascending
...
tta_cod_estab
...
ascending
...
tta_cod_espec_docto
...
ascending
...
tta_cod_ser_docto
...
ascending
...
tta_cdn_fornecedor
...
ascending
...
tta_cod_tit_ap
...
ascending
...
tta_cod_parcela
...
ascending
.
Tabela Temporária | Descrição | Entrada/Saída |
tt_integr_apb_aprop_ctbl_pend | Conterá as informações referentes a apropriações contábeis dos títulos. | Entrada |
(*) Liberado o centro de custo com 20 posições, a partir de maio/2011.
Atributo | Tipo | Formato | Descrição | Obrig. | Evol. |
ttv_rec_integr_apb_item_lote | recid | >>>>>>9 |
|
|
|
ttv_rec_antecip_pef_pend | recid | >>>>>>9 |
|
|
|
ttv_rec_integr_apb_impto_pend | recid | >>>>>>9 |
|
|
|
tta_cod_plano_cta_ctbl | character | x(8) | Plano Contas |
|
|
tta_cod_cta_ctbl | character | x(20) | Conta Cont bil |
|
|
tta_cod_unid_negoc | character | x(3) | Unid Neg¢cio |
|
|
tta_cod_plano_ccusto | character | x(8) | Plano Centros Custo |
|
|
tta_cod_ccusto | Character | x(11)/x(20)* | Centro Custo |
|
|
tta_cod_tip_fluxo_financ | character | x(12) | Tipo Fluxo Financ |
|
|
tta_val_aprop_ctbl | decimal | ->>>,>>>,>>9.99 | Valor Aprop Ctbl |
|
|
tta_cod_pais | character | x(3) | Pa¡s |
|
|
tta_cod_unid_federac | character | x(3) | Unidade Federa‡Æo |
|
|
tta_cod_imposto | character | x(5) | Imposto |
|
|
tta_cod_classif_impto | character | x(05) | Class Imposto |
|
|
ttv_cod_tip_fluxo_financ_ext | character | x(12) | Tipo Fluxo Financ |
|
|
tta_cod_cta_ctbl_ext | character | x(20) | Conta Contab Extern |
|
|
tta_cod_sub_cta_ctbl_ext | character | x(15) | Sub Conta Externa |
|
|
tta_cod_ccusto_ext | character | x(8)/x(20)* | Centro Custo Externo |
|
|
tta_cod_unid_negoc_ext | character | x(8) | Unid Neg¢cio Externa |
|
|
def
...
shared
...
temp-table
...
tt_integr_apb_aprop_ctbl_pend
...
no-undo
...
field
...
ttv_rec_integr_apb_item_lote
...
as
...
recid
...
format
...
">>>>>>9"
...
field
...
ttv_rec_antecip_pef_pend
...
as
...
recid
...
format
...
">>>>>>9"
...
field
...
ttv_rec_integr_apb_impto_pend
...
as
...
recid
...
format
...
">>>>>>9"
...
field
...
tta_cod_plano_cta_ctbl
...
as
...
character
...
format
...
"x(8)"
...
label
...
"Plano
...
Contas"
...
column-label
...
"Plano
...
Contas"
...
field
...
tta_cod_cta_ctbl
...
as
...
character
...
format
...
"x(20)"
...
label
...
"Conta
...
Cont bil"
...
column-label
...
"Conta
...
Cont bil"
...
field
...
tta_cod_unid_negoc
...
as
...
character
...
format
...
"x(3)"
...
label
...
"Unid
...
Neg¢cio"
...
column-label
...
"Un
...
Neg"
...
field
...
tta_cod_plano_ccusto
...
as
...
character
...
format
...
"x(8)"
...
label
...
"Plano
...
Centros
...
Custo"
...
column-label
...
"Plano
...
Centros
...
Custo"
...
field
...
tta_cod_ccusto
...
as
...
Character
...
format
...
"x(11)"
...
label
...
"Centro
...
Custo"
...
column-label
...
"Centro
...
Custo"
...
field
...
tta_cod_tip_fluxo_financ
...
as
...
character
...
format
...
"x(12)"
...
label
...
"Tipo
...
Fluxo
...
Financ"
...
column-label
...
"Tipo
...
Fluxo
...
Financ"
...
field
...
tta_val_aprop_ctbl
...
as
...
decimal
...
format
...
"->>>,>>>,>>9.99"
...
decimals
...
2
...
initial
...
0
...
label
...
"Valor
...
Aprop
...
Ctbl"
...
column-label
...
"Vl
...
Aprop
...
Ctbl"
...
field
...
tta_cod_pais
...
as
...
character
...
format
...
"x(3)"
...
label
...
"Pa¡s"
...
column-label
...
"Pa¡s"
...
field
...
tta_cod_unid_federac
...
as
...
character
...
format
...
"x(3)"
...
label
...
"Unidade
...
Federa‡Æo"
...
column-label
...
"UF"
...
field
...
tta_cod_imposto
...
as
...
character
...
format
...
"x(5)"
...
label
...
"Imposto"
...
column-label
...
"Imposto"
...
field
...
tta_cod_classif_impto
...
as
...
character
...
format
...
"x(05)"
...
initial
...
"00000"
...
label
...
"Class
...
Imposto"
...
column-label
...
"Class
...
Imposto"
...
field
...
ttv_cod_tip_fluxo_financ_ext
...
as
...
character
...
format
...
"x(12)"
...
label
...
"Tipo
...
Fluxo
...
Financ"
...
column-label
...
"Tipo
...
Fluxo
...
Financ"
...
field
...
tta_cod_cta_ctbl_ext
...
as
...
character
...
format
...
"x(20)"
...
label
...
"Conta
...
Contab
...
Extern"
...
column-label
...
"Conta
...
Contab
...
Extern"
...
field
...
tta_cod_sub_cta_ctbl_ext
...
as
...
character
...
format
...
"x(15)"
...
label
...
"Sub
...
Conta
...
Externa"
...
column-label
...
"Sub
...
Conta
...
Externa"
...
field
...
tta_cod_ccusto_ext
...
as
...
character
...
format
...
"x(8)"
...
label
...
"Centro
...
Custo
...
Externo"
...
column-label
...
"CCusto
...
Externo"
...
field
...
tta_cod_unid_negoc_ext
...
as
...
character
...
format
...
"x(8)"
...
label
...
"Unid
...
Neg¢cio
...
Externa"
...
column-label
...
"Unid
...
Neg¢cio
...
Externa"
...
index
...
tt_aprop_ctbl_pend_ap_integr_ant
...
ttv_rec_antecip_pef_pend
...
ascending
...
ttv_rec_integr_apb_impto_pend
...
ascending
...
tta_cod_plano_cta_ctbl
...
ascending
...
tta_cod_cta_
...
ctbl ascending
...
tta_cod_unid_negoc
...
ascending
...
tta_cod_plano_ccusto
...
ascending
...
tta_cod_ccusto
...
ascending
...
tta_cod_tip_fluxo_financ
...
ascending
...
index
...
tt_aprop_ctbl_pend_ap_integr_id
...
ttv_rec_integr_apb_item_lote
...
ascending
...
ttv_rec_integr_apb_impto_pend
...
ascending
...
tta_cod_plano_cta_ctbl
...
ascending
...
tta_cod_cta_ctbl
...
ascending
...
tta_cod_unid_
...
negoc ascending
...
tta_cod_plano_ccusto
...
ascending
...
tta_cod_ccusto
...
ascending
...
tta_cod_tip_fluxo_financ
...
ascending
.
Tabela Temporária | Descrição | Entrada/Saída |
tt_integr_apb_impto_impl_pend | Conterá as informações referentes aos Impostos vinculados aos títulos importados. | Entrada |
(**) Liberado o número de documento com 16 posições e série com5, apartir de maio/2011.
Atributo | Tipo | Formato | Descrição | Obrig. | Evol. |
ttv_rec_integr_apb_item_lote | recid | >>>>>>9 |
|
|
|
ttv_rec_antecip_pef_pend | recid | >>>>>>9 |
|
|
|
tta_cod_pais | character | x(3) | Pa¡s |
|
|
tta_cod_unid_federac | character | x(3) | Unidade Federa‡Æo |
|
|
tta_cod_imposto | character | x(5) | Imposto |
|
|
tta_cod_classif_impto | character | x(05) | Class Imposto |
|
|
tta_ind_clas_impto | character | X(14) | Classe Imposto |
|
|
tta_cod_plano_cta_ctbl | character | x(8) | Plano Contas |
|
|
tta_cod_cta_ctbl | character | x(20) | Conta Cont bil |
|
|
tta_cod_espec_docto | character | x(3) | Esp‚cie Documento |
|
|
tta_cod_ser_docto | character | x(3)/x(5)** | S‚rie Documento |
|
|
tta_cod_tit_ap | character | x(10)/x(16)** | T¡tulo |
|
|
tta_cod_parcela | character | x(02) | Parcela |
|
|
tta_val_rendto_tribut | decimal | >,>>>,>>>,>>9.99 | Rendto Tribut vel |
|
|
tta_val_deduc_inss | decimal | >,>>>,>>>,>>9.99 | Dedu‡Æo Inss |
|
|
tta_val_deduc_depend | decimal | >,>>>,>>>,>>9.99 | Dedu‡Æo Dependentes |
|
|
tta_val_deduc_pensao | decimal | >,>>>,>>>,>>9.99 | Deducao PensÆo |
|
|
tta_val_outras_deduc_impto | decimal | >,>>>,>>>,>>9.99 | Outras Dedu‡äes |
|
|
tta_val_base_liq_impto | decimal | >,>>>,>>>,>>9.99 | Base L¡quida Imposto |
|
|
tta_val_aliq_impto | decimal | >9.99 | Al¡quota |
|
|
tta_val_impto_ja_recolhid | decimal | >,>>>,>>>,>>9.99 | Imposto J Recolhido |
|
|
tta_val_imposto | decimal | >,>>>,>>>,>>9.99 | Valor Imposto |
|
|
tta_dat_vencto_tit_ap | date | 99/99/9999 | Data Vencimento |
|
|
tta_cod_indic_econ | character | x(8) | Moeda |
|
|
tta_val_impto_indic_econ_impto | decimal | ->>>,>>>,>>9.99 | Val Finalid Impto |
|
|
tta_des_text_histor | character | x(2000) | Hist¢rico |
|
|
tta_cdn_fornec_favorec | Integer | >>>,>>>,>>9 | Fornec Favorecido |
|
|
tta_val_deduc_faixa_impto | decimal | >,>>>,>>>,>>9.99 | Valor Deducao |
|
|
tta_num_id_tit_ap | integer | 1E+10 | Token Tit AP |
|
|
tta_num_id_movto_tit_ap | integer | 1E+10 | Token Movto Tit AP |
|
|
tta_num_id_movto_cta_corren | integer | 1E+10 | ID Movto Conta |
|
|
tta_cod_pais_ext | character | x(20) | Pa¡s Externo |
|
|
tta_cod_cta_ctbl_ext | character | x(20) | Conta Contab Extern |
|
|
tta_cod_sub_cta_ctbl_ext | character | x(15) | Sub Conta Externa |
|
|
ttv_cod_tip_fluxo_financ_ext | character | x(12) | Tipo Fluxo Financ |
|
|
tta_cod_espec_docto | character | x(3) | Esp‚cie Documento |
|
|
def
...
shared
...
temp-table
...
tt_integr_apb_impto_impl_pend
...
no-undo
...
field
...
ttv_rec_integr_apb_item_lote
...
as
...
recid
...
format
...
">>>>>>9"
...
field
...
ttv_rec_antecip_pef_pend
...
as
...
recid
...
format
...
">>>>>>9"
...
field
...
tta_cod_pais
...
as
...
character
...
format
...
"x(3)"
...
label
...
"Pa¡s"
...
column-label
...
"Pa¡s"
...
field
...
tta_cod_unid_federac
...
as
...
character
...
format
...
"x(3)"
...
label
...
"Unidade
...
Federa‡Æo"
...
column-label
...
"UF"
...
field tta_cod_imposto
...
as
...
character
...
format
...
"x(5)"
...
label
...
"Imposto"
...
column-label
...
"Imposto"
...
field
...
tta_cod_classif_impto
...
as
...
character
...
format
...
"x(05)"
...
initial
...
"00000"
...
label
...
"Class
...
Imposto"
...
column-label
...
"Class
...
Imposto"
...
field
...
tta_ind_clas_impto
...
as
...
character
...
format
...
"X(14)"
...
initial
...
"Retido"
...
label
...
"Classe
...
Imposto"
...
column-label
...
"Classe
...
Imposto"
...
field
...
tta_cod_plano_cta_ctbl
...
as
...
character
...
format
...
"x(8)"
...
label
...
"Plano
...
Contas"
...
column-label
...
"Plano
...
Contas"
...
field
...
tta_cod_cta_ctbl
...
as
...
character
...
format
...
"x(20)"
...
label
...
"Conta
...
Cont bil"
...
column-label
...
"Conta
...
Cont bil"
...
field
...
tta_cod_espec_docto
...
as
...
character
...
format
...
"x(3)"
...
label
...
"Esp‚cie
...
Documento"
...
column-label
...
"Esp‚cie"
...
field
...
tta_cod_ser_docto
...
as
...
character
...
format
...
"x(3)"
...
label
...
"S‚rie
...
Documento"
...
column-label
...
"S‚rie"
...
field
...
tta_cod_tit_ap
...
as
...
character
...
format
...
"x(10)"
...
label
...
"T¡tulo"
...
column-label
...
"T¡tulo"
...
field
...
tta_cod_parcela
...
as
...
character
...
format
...
"x(02)"
...
label
...
"Parcela"
...
column-label
...
"Parc"
...
field
...
tta_val_rendto_tribut
...
as
...
decimal
...
format
...
">,>>>,>>>,>>9.99"
...
decimals
...
2
...
initial
...
0
...
label
...
"Rendto
...
Tribut vel"
...
column-label
...
"Vl
...
Rendto
...
Tribut"
...
field
...
tta_val_deduc_inss
...
as
...
decimal
...
format
...
">,>>>,>>>,>>9.99"
...
decimals
...
2
...
initial
...
0
...
label
...
"Dedu‡Æo
...
Inss"
...
column-label
...
"Dedu‡Æo
...
Inss"
...
field
...
tta_val_deduc_depend
...
as
...
decimal
...
format
...
">,>>>,>>>,>>9.99"
...
decimals
...
2
...
initial
...
0
...
label
...
"Dedu‡Æo
...
Dependentes"
...
column-label
...
"Dedu‡Æo
...
Dependentes"
...
field
...
tta_val_deduc_pensao
...
as
...
decimal
...
format
...
">,>>>,>>>,>>9.99"
...
decimals
...
2
...
initial
...
0
...
label
...
"Deducao
...
PensÆo"
...
column-label
...
"Deducao
...
PensÆo"
...
field
...
tta_val_outras_deduc_impto
...
as
...
decimal
...
format
...
">,>>>,>>>,>>9.99"
...
decimals
...
2
...
initial
...
0
...
label
...
"Outras
...
Dedu‡äes"
...
column-label
...
"Outras
...
Dedu‡äes"
...
field
...
tta_val_base_liq_impto
...
as
...
decimal
...
format
...
">,>>>,>>>,>>9.99"
...
decimals
...
2
...
initial
...
0
...
label
...
"Base
...
L¡quida
...
Imposto"
...
column-label
...
"Base
...
L¡quida
...
Imposto"
...
field
...
tta_val_aliq_impto
...
as
...
decimal
...
format
...
">9.99"
...
decimals
...
2
...
initial0.00label
...
"Al¡quota"
...
column-label
...
"Aliq"
...
field
...
tta_val_impto_ja_recolhid
...
as
...
decimal
...
format
...
">,>>>,>>>,>>9.99"
...
decimals
...
2
...
initial
...
0
...
label
...
"Imposto
...
J
...
Recolhido"
...
column-label
...
"Imposto
...
J
...
Recolhido"
...
field
...
tta_val_imposto
...
as
...
decimal
...
format
...
">,>>>,>>>,>>9.99"
...
decimals
...
2
...
initial
...
0
...
label
...
"Valor
...
Imposto"
...
column-label
...
"Vl
...
Imposto"
...
field
...
tta_dat_vencto_tit_ap
...
as
...
date
...
format
...
"99/99/9999"
...
initial
...
today
...
label
...
"Data
...
Vencimento"
...
column-label
...
"Dt
...
Vencto"
...
field
...
tta_cod_indic_econ
...
as
...
character
...
format
...
"x(8)"
...
label
...
"Moeda"
...
column-label
...
"Moeda"
...
field
...
tta_val_impto_indic_econ_impto
...
as
...
decimal
...
format
...
"->>>,>>>,>>9.99"
...
decimals
...
2
...
initial
...
0
...
label
...
"Val
...
Finalid
...
Impto"
...
column-label
...
"Val
...
Finalid
...
Impto"
...
field
...
tta_des_text_histor
...
as
...
character
...
format
...
"x(2000)"
...
label
...
"Hist¢rico"
...
column-label
...
"Hist¢rico"
...
field
...
tta_cdn_fornec_favorec
...
as
...
Integer
...
format
...
">>>,>>>,>>9"
...
initial
...
0
...
label
...
"Fornec
...
Favorecido"
...
column-label
...
"Fornec
...
Favorecido"
...
field
...
tta_val_deduc_faixa_impto
...
as
...
decimal
...
format
...
">,>>>,>>>,>>9.99"
...
decimals
...
2
...
initial
...
0
...
label
...
"Valor
...
Deducao"
...
column-label
...
"Valor
...
Dedu‡Æo"
...
field
...
tta_num_id_tit_ap
...
as
...
integer
...
format
...
"9999999999"
...
initial
...
0
...
label
...
"Token
...
Tit
...
AP"
...
column-label
...
"Token
...
Tit
...
AP"
...
field
...
tta_num_id_movto_tit_ap
...
as
...
integer
...
format
...
"9999999999"
...
initial
...
0
...
label
...
"Token
...
Movto
...
Tit
...
AP"
...
column-label
...
"Id
...
Tit
...
AP"
...
field
...
tta_num_id_movto_cta_corren
...
as
...
integer
...
format
...
"9999999999"
...
initial
...
0
...
label
...
"ID
...
Movto
...
Conta"
...
column-label
...
"ID
...
Movto
...
Conta"
...
field
...
tta_cod_pais_ext
...
as
...
character
...
format
...
"x(20)"
...
label
...
"Pa¡s
...
Externo"
...
column-label
...
"Pa¡s
...
Externo"
...
field
...
tta_cod_cta_ctbl_
...
ext as character format "x(20)"
...
label
...
"Conta
...
Contab
...
Extern"
...
column-label
...
"Conta
...
Contab
...
Extern"
...
field
...
tta_cod_sub_cta_ctbl_ext
...
as
...
character
...
format
...
"x(15)"
...
label
...
"Sub
...
Conta
...
Externa"
...
column-label
...
"Sub
...
Conta
...
Externa"
...
field
...
ttv_cod_tip_fluxo_financ_ext
...
as
...
character
...
format
...
"x(12)"
...
label
...
"Tipo
...
Fluxo
...
Financ"
...
column-label
...
"Tipo
...
Fluxo
...
Financ"
...
index
...
tt_impto_impl_pend_ap_integr
...
is
...
primary
...
unique
...
ttv_rec_integr_apb_item_lote
...
ascending
...
tta_cod_
...
pais ascending
...
tta_cod_unid_federac
...
ascending
...
tta_cod_imposto
...
ascending
...
tta_cod_classif_impto
...
ascending
...
index
...
tt_impto_impl_pend_ap_integr_ant
...
is
...
unique
...
ttv_rec_antecip_pef_pend
...
ascending
...
tta_cod_pais
...
ascending
...
tta_cod_unid_federac
...
ascending
...
tta_cod_imposto
...
ascending
...
tta_cod_classif_
...
impto ascending
...
.
...
Tabela Temporária | Descrição | Entrada/Saída |
tt_integr_apb_aprop_relacto | Conterá as informações das apropriações contábeis referentes a notas de crédito e notas de débito. | Entrada |
Atributo | Tipo | Formato | Descrição | Obrig. | Evol. |
ttv_rec_integr_apb_relacto_pend | recid | >>>>>>9 |
|
|
|
tta_cod_plano_cta_ctbl | character | x(8) | Plano Contas |
|
|
tta_cod_cta_ctbl | character | x(20) | Conta Cont bil |
|
|
tta_val_aprop_ctbl | decimal | ->>>,>>>,>>9.99 | Valor Aprop Ctbl |
|
|
tta_ind_tip_aprop_ctbl | character | x(30) | Tipo Aprop Ctbl |
|
|
def
...
shared
...
temp-table
...
tt_integr_apb_aprop_relacto
...
no-undo
...
field
...
ttv_rec_integr_apb_relacto_pend
...
as
...
recid
...
format
...
">>>>>>9"
...
field
...
tta_cod_plano_cta_ctbl
...
as
...
character
...
format
...
"x(8)"
...
label
...
"Plano
...
Contas"
...
column-label
...
"Plano
...
Contas"
...
field
...
tta_cod_cta_
...
ctbl as character format "x(20)"
...
label
...
"Conta
...
Cont bil"
...
column-label
...
"Conta
...
Cont bil"
...
field
...
tta_val_aprop_ctbl
...
as
...
decimal
...
format
...
"->>>,>>>,>>9.99"
...
decimals
...
2
...
initial
...
0
...
label
...
"Valor
...
Aprop
...
Ctbl"
...
column-label
...
"Vl
...
Aprop
...
Ctbl"
...
field
...
tta_ind_tip_aprop_ctbl
...
as
...
character
...
format
...
"x(30)"
...
initial
...
"Saldo"
...
label
...
"Tipo
...
Aprop
...
Ctbl"
...
column-label
...
"Tipo
...
Aprop
...
Ctbl"
...
index
...
tt_integr_apb_aprop_relacto
...
is
...
primary
...
unique
...
ttv_rec_integr_apb_relacto_pend
...
ascending
...
tta_cod_plano_cta_ctbl
...
ascending
...
tta_cod_cta_ctbl
...
ascending
...
.
Tabela Temporária | Descrição | Entrada/Saída |
tt_integr_apb_relacto_pend | Conterá as informações referentes às Notas de Débito e Notas de Crédito. | Entrada |
(*) A partir da 5.07A o estabelecimento passa a ter cinco dígitos.
Atributo | Tipo | Formato | Descrição | Obrig. | Evol. |
ttv_rec_integr_apb_item_lote | recid | >>>>>>9 |
|
|
|
tta_cod_estab_tit_ap_pai | character | x(3) / x(5)* | Estab Tit Pai |
|
|
tta_num_id_tit_ap_pai | integer | 1E+10 | Token |
|
|
tta_val_relacto_tit_ap | decimal | ->>>,>>>,>>9.99 | Valor |
|
|
tta_ind_motiv_acerto_val | character | X(12) | Motivo Acerto Valor |
|
|
def
...
shared
...
temp-table
...
tt_integr_apb_relacto_pend
...
no-undo
...
field
...
ttv_rec_integr_apb_item_lote
...
as
...
recid
...
format
...
">>>>>>9"
...
field
...
tta_cod_estab_tit_ap_pai
...
as
...
character
...
format
...
"x(
...
5)"
...
label
...
"Estab
...
Tit
...
Pai"
...
column-label
...
"Estab
...
Tit
...
Pai"
...
field
...
tta_num_id_tit_ap_pai
...
as
...
integer
...
format
...
"9999999999"
...
initial
...
0
...
label
...
"Token"
...
column-label
...
"Token"
...
field
...
tta_val_relacto_tit_ap
...
as
...
decimal
...
format
...
"->>>,>>>,>>9.99"
...
decimals
...
2
...
initial
...
0
...
label
...
"Valor"
...
column-label
...
"Valor"
...
field
...
tta_ind_motiv_acerto_val
...
as
...
character
...
format
...
"X(12)"
...
initial
...
"Altera‡Æo"
...
label
...
"Motivo
...
Acerto
...
Valor"
...
column-label
...
"Motivo
...
Acerto
...
Valor"
...
index
...
tt_integr_apb_relacto_pend
...
is
...
primary
...
unique
...
ttv_rec_integr_apb_item_lote
...
ascending
...
tta_cod_estab_tit_ap_pai
...
ascending
...
tta_num_id_tit_ap_pai
...
ascending
...
.
Tabela Temporária | Descrição | Entrada/Saída |
tt_log_erros_atualiz | Conterá as informações referentes aos erros encontrados durante as validações para a criação dos títulos. | Entrada |
(*) A partir da 5.07A o estabelecimento passa a ter cinco dígitos.
Atributo | Tipo | Formato | Descrição | Obrig. | Evol. |
tta_cod_estab | character | x(3) / x(5)* | Estabelecimento |
|
|
tta_cod_refer | character | x(10) | Referˆncia |
|
|
tta_num_seq_refer | integer | >>>9 | Sequˆncia |
|
|
ttv_num_mensagem | integer | >>>>,>>9 | N£mero |
|
|
ttv_des_msg_erro | character | x(60) | Mensagem Erro |
|
|
ttv_des_msg_ajuda | character | x(40) | Mensagem Ajuda |
|
|
ttv_ind_tip_relacto | character | X(15) | Tipo Relacionamento |
|
|
ttv_num_relacto | integer | >>>>,>>9 | Relacionamento |
|
|
def
...
shared
...
temp-table
...
tt_log_erros_atualiz
...
no-undo
...
field
...
tta_cod_
...
estab as character format "x(
...
5)"
...
label
...
"Estabelecimento"
...
column-label
...
"Estab"
...
field
...
tta_cod_
...
refer as character format "x(10)"
...
label
...
"Referˆncia"
...
column-label
...
"Referˆncia"
...
field
...
tta_num_seq_refer
...
as
...
integer
...
format
...
">>>9"
...
initial
...
0
...
label
...
"Sequˆncia"
...
column-label
...
"Seq"
...
field
...
ttv_num_mensagem
...
as
...
integer
...
format
...
">>>>,>>9"
...
label
...
"N£mero"
...
column-label
...
"N£mero
...
Mensagem"
...
field
...
ttv_des_msg_erro
...
as
...
character
...
format
...
"x(60)"
...
label
...
"Mensagem
...
Erro"
...
column-label
...
"Inconsistˆncia"
...
field
...
ttv_des_msg_ajuda
...
as
...
character
...
format
...
"x(40)"
...
label
...
"Mensagem
...
Ajuda"
...
column-label
...
"Mensagem
...
Ajuda"
...
field
...
ttv_ind_tip_relacto
...
as
...
character
...
format
...
"X(15)"
...
label
...
"Tipo
...
Relacionamento"
...
column-label
...
"Tipo
...
Relac"
...
field
...
ttv_num_relacto
...
as
...
integer
...
format
...
">>>>,>>9"
...
label
...
"Relacionamento"
...
column-label
...
"Relacionamento"
...
.