I'm working to sort records from a temp table used for reporting.
When doing insert_recordset it ends up crashing.
I have the following code in the Extended ProcessReport method, any tips on what to do ?
public void processReport()
{
ttsbegin;
next processReport();
LedgerTransStatementTmp ledgerTransStatementTmp2, localLedgerTransStatementTmp = this.getLedgerTransStatementTmp();
insert_recordset ledgerTransStatementTmp2
(
MainFocusValue,
MainFocusName,
MainFocusDescription,
PeriodCode,
TransDate,
Voucher,
AmountDebit,
AmountCredit,
AccumulatedMST,
ReportingCurrencyAmountDebit,
ReportingCurrencyAmountCredit,
ReportingAccumulatedMST,
AmountCur,
TransactionCurrencyAmountDebit,
TransactionCurrencyAmountCredit,
AmountMSTDebCred,
CurrencyCode,
GeneralJournalAccountEntry,
GeneralJournalEntry,
GeneralJournalEntryDataArea,
PreviousCreditTotal,
PreviousDebitTotal,
Reversed,
SecondaryFocus,
SecondaryFocusName,
TaxAmount,
TaxCode,
TraceNum,
TransTxt,
OffsetAccount,
IsFinalRecord,
BudgetModelId,
LedgerPostingType,
RecordType,
BudgetTransactionStatus,
IsEndingBalance,
GroupRowNum,
AccountMain,
Active,
Currency,
CurrentCreditTotal,
CurrentDebitTotal,
DefaultDimension,
FromDate,
IsGroupedOpeningTrans,
LedgerDimension,
MainAccount,
MainFocus,
PostingLayer,
AccountName_PTR,
AccountNum_PTR,
AccountType_PTR,
DocumentDate_PTR
)
select
MainFocusValue,
MainFocusName,
MainFocusDescription,
PeriodCode,
TransDate,
Voucher,
AmountDebit,
AmountCredit,
AccumulatedMST,
ReportingCurrencyAmountDebit,
ReportingCurrencyAmountCredit,
ReportingAccumulatedMST,
AmountCur,
TransactionCurrencyAmountDebit,
TransactionCurrencyAmountCredit,
AmountMSTDebCred,
CurrencyCode,
GeneralJournalAccountEntry,
GeneralJournalEntry,
GeneralJournalEntryDataArea,
PreviousCreditTotal,
PreviousDebitTotal,
Reversed,
SecondaryFocus,
SecondaryFocusName,
TaxAmount,
TaxCode,
TraceNum,
TransTxt,
OffsetAccount,
isFinalTrue,
BudgetModelId,
LedgerPostingType,
RecordType,
BudgetTransactionStatus,
IsEndingBalance,
GroupRowNum,
AccountMain,
Active,
Currency,
CurrentCreditTotal,
CurrentDebitTotal,
DefaultDimension,
FromDate,
IsGroupedOpeningTrans,
LedgerDimension,
MainAccount,
MainFocus,
PostingLayer,
AccountName_PTR,
AccountNum_PTR,
AccountType_PTR,
DocumentDate_PTR
from ledgerTransStatementTmp
order by MainFocusValue, TransDate, IsEndingBalance, SecondaryFocus, GeneralJournalEntryDataArea, PeriodCode, RecordType, Voucher, TaxCode;
_ledgerTransStatementTmp = ledgerTransStatementTmp2;
ledgerTransStatementTmp2 = null;
ttscommit;
}