...
def temp-table tt_retorna_sdo_ctbl no-undo
field tta_num_seq as seq as integer format ">>>,>>9" initial 0 label "Sequência" column-label "NumSeq"
field tta_cod_empresa as empresa as character format "x(3)" label "Empresa" column-label "Empresa"
field tta_cod_finalid_econ econ as character format "x(10)" label "Finalidade" column-label "Finalidade"
field tta_cod_plano_cta_ctbl ctbl as character format "x(8)" label "Plano Contas" column-label "Plano Contas"
field tta_cod_cta_ctbl ctbl as character format "x(20)" label "Conta Contábil" column-label "Conta Contábil"
field tta_cod_plano_ccusto ccusto as character format "x(8)" label "Plano Centros Custo" column-label "Plano Centros Custo"
field tta_cod_ccusto ccusto as Character format "x(11)" label "Centro Custo" column-label "Centro Custo"
field tta_cod_proj_financ as financ as character format "x(20)" label "Projeto" column-label "Projeto"
field tta_cod_cenar_ctbl ctbl as character format "x(8)" label "Cenário Contábil" column-label "Cenário Contábil"
field tta_cod_estab as field tta_cod_estab as character format "x(3)" label "Estabelecimento" column-label "Estab"
field tta_cod_unid_negoc as negoc as character format "x(3)" label "Unid Negócio" column-label "Un Neg"
field tta_dat_sdo_ctbl ctbl as date format "99/99/9999" initial ? label "Data Saldo Contábil" column-label "Data Saldo Contábil"
field tta_val_sdo_ctbl_db as db as decimal format "->>,>>>,>>>,>>9.99" decimals 2 initial 0 label "Movto Débito" column-label "Movto Débito"
field tta_val_sdo_ctbl_cr cr as decimal format "->>,>>>,>>>,>>9.99" decimals 2 initial 0 label "Movto Crédito" column-label "Movto Crédito"
field tta_val_sdo_ctbl_fim _ctbl_fim as decimal format "->>,>>>,>>>,>>9.99" decimals 2 initial 0 label "Saldo Contábil Final" column-label "Saldo Contábil Final"
field tta_val_apurac_restdo restdo as decimal format "->>,>>>,>>>,>>9.99" decimals 2 initial 0 label "Apuração Resultado" column-label "Apuração Resultado"
field tta_val_apurac_restdo_db db as decimal format "->>,>>>,>>>,>>9.99" decimals 2 initial 0 label "Apuração Restdo DB" column-label "Apuração Restdo DB"
field tta_val_apurac_restdo_cr as cr as decimal format "->>,>>>,>>>,>>9.99" decimals 2 initial 0 label "Apuração Restdo CR" column-label "Apuração Restdo CR"
field tta_val_apurac_restdo_acum acum as decimal format "->>>>,>>>,>>>,>>9.99" decimals 2 initial 0 label "Apuracao Final" column-label "Apuracao Final"
field tta_val_sdo_ctbl_db_sint sint as decimal format "->>,>>>,>>>,>>9.99" decimals 2 initial 0 label "Movto Débito Sint" column-label "Movto Débito Sint"
field tta_val_sdo_ctbl_cr_sint as sint as decimal format "->>,>>>,>>>,>>9.99" decimals 2 initial 0 label "Movto Crédito Sint" column-label "Movto Crédito Sint"
field tta_val_sdo_ctbl_fim_sint as sint as decimal format "->>>>,>>>,>>>,>>9.99" decimals 2 initial 0 label "Saldo Sintético" column-label "Saldo Sintético"
field tta_val_apurac_restdo_sint sint as decimal format "->>,>>>,>>>,>>9.99" decimals 2 initial 0 label "Apuracao Resultado" column-label "Apuracao Resultado"
field tta_val_apurac_restdo_sint_db as db as decimal format "->>,>>>,>>>,>>9.99" decimals 2 initial 0 label "Apur Restdo Sint DB" column-label "Apur Restdo Sint DB"
field tta_val_apurac_restdo_sint_cr cr as decimal format "->>,>>>,>>>,>>9.99" decimals 2 initial 0 label "Apur Restdo Sint CR" column-label "Apur Restdo Sint CR"
field tta_val_apurac_restdo_sint_acum as decimal format "->>>>,>>>,>>>,>>9.99" decimals 2 initial 0 label "Apur Result Sint" column-label "Apur Result Sint"
field tta_val_movto_empenh empenh as decimal format "->>,>>>,>>>,>>9.99" decimals 9 initial 0 label "Movto Empenhado" column-label "Movto Empenhado"
field tta_qtd_sdo_ctbl_db db as decimal format ">>>,>>>,>>9.99" decimals 2 initial 0 label "Quantidade DB" column-label "Quantidade DB"
field tta_qtd_sdo_ctbl_cr as decimal format ">>>,>>>,>>9.99" decimals 2 initial 0 label "Quantidade CR" column-label "Quantidade CR"
field tta_qtd_sdo_ctbl_fim fim as decimal format "->>>,>>>,>>9.99" decimals 2 initial 0 label "Quantidade Final" column-label "Quantidade Final"
field ttv_val_movto_ctbl as decimal format ">>>,>>>,>>>,>>9.99" decimals 2
field tta_qtd_movto_empenh empenh as decimal format "->>>>,>>9.9999" decimals 4 initial 0 label "Qtde Movto Empenhado" column-label "Qtde Movto Empenhado"
...
tta_cod_plano_cta_ctbl ascending
tta_cod_cta_ctbl ascendingascending
index tt_id id is primary unique
tta_cod_empresa ascending
tta_cod_finalid_econ ascending ascending
tta_cod_plano_cta_ctbl ascending
tta_cod_cta_ctbl ascending
tta_cod_plano_ccusto ascending
tta_cod_ccusto ascending ascending
tta_cod_proj_financ ascending ascending
tta_cod_cenar_ctbl ascending ascending
tta_cod_estab ascending ascending
tta_cod_unid_negoc ascending
tta_dat_sdo_ctbl ascending
tta_num_seq seq ascendingascending
index tt_id2
tta_cod_empresa ascending
tta_cod_finalid_econ ascending ascending
tta_cod_plano_cta_ctbl ascending
tta_cod_cta_ctbl ascending ascending
tta_cod_proj_financ ascending
tta_cod_cenar_ctbl ascending
tta_cod_estab ascending
tta_cod_unid_negoc ascending
tta_dat_sdo_ctbl ctbl ascending
index tt_seq
tta_num_seq ascending ascending
.
3) Tabela de erros
Tabela Temporária | Descrição | Entrada/Saída |
tt_log_erros | Retorna os erros do processo. | Saída |
...