<Gen. Journal Line> - OnPreDataItem() SETFILTER("Document No.","Payment Line".GETFILTER("Payment No.")); SETFILTER("Account Type",'<>Bank Account'); <Gen. Journal Line> - OnBeforeExportRecord() //CLEAR(genjour); Number1 := '7999-999'; CredittotAmount += "Credit Amount";-> here it does not create a total for the columns only shows every seperated line DebittotAmount += "Debit Amount";-> here it does not create a total for the columns only shows every seperated line TotAmount += Amount;-> here it does not create a total for the columns only shows every seperated line file1 := "Payment Line".COUNT; -> this one works and shows the correct numbers of lines in the dataport