web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

EFT payment File export

(1) ShareShare
ReportReport
Posted on by 534
Hello,
 
Can anyone advise if there is a place that I can change the extension of the EFT payment file. At the moment it exports as txt, but my client insists that they want it exported as an aba file for Australian banks.
 
Regards
Debbie
I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,784 Moderator on at
    Hi,
     
    In my case I have created a separate button on EFT Register page and took the new file extension as ".aba", see below if it help you
     action("CreateFile")
                {
                    ApplicationArea = all;
                    Caption = 'Create EFT File';
                    Image = "Report";
                    Promoted = true;
                    PromotedCategory = "Process";
                    PromotedIsBig = true;
                    Visible = CreateEFTExternalDocVisible;
                    ToolTip = 'Executes the Create EFT File action.';
                    trigger OnAction()
                    var
                        BankAcc: Record "Bank Account";
                        EFTManagement: Codeunit <YourCU>
                    begin
                        if not Confirm(ConfirmExportQst, false, rec."No.") then
                            Error('');
    
                        if BankAcc.Get(rec."Bank Account Code") then
                            EFTManagement.CreateFileFromEFTRegister(Rec, rec."File Description", BankAcc);
                    end;
    
                }
    
    
     procedure CreateFileFromEFTRegister(var EFTRegister: Record "EFT Register";FileDescription: Text[12];var BankAcc: Record "Bank Account")
        begin
            GetSetup;
            if EFTRegister."EFT Payment" then begin
                EFTRegister.TestField(Canceled, false);
                OpenFile;
                //CreateFileEFTPayment(EFTRegister, FileDescription, BankAcc);
                CloseFile(EFTRegister, FileDescription, BankAcc);
            end;
        end;
    
      procedure CloseFile(EFTRegister: Record "EFT Register";    FileDescription: Text[12];    BankAccount: Record "Bank Account")
        var
            NewStream: InsTream;
            FileMgt: Codeunit "File Management";
        begin
            EFTRegister.LockTable();
            EFTRegister.Find;
            EFTRegister."Total Amount (LCY)" := TotalAmountLCY;
            EFTRegister."File Created" := Today;
            EFTRegister.Time := Time;
            EFTRegister."File Description" := FileDescription;
            EFTRegister."Bank Account Code" := BankAccount."No.";
            EFTRegister.Modify();
            Tempblob.CreateInStream(EFTFileInstream);
            ServerFileName := gvfileDescription + '.aba';
            IF CanDownloadFile THEN BEGIN
                DOWNLOADFROMSTREAM(EFTFileInstream, 'Export', '', '', ServerFileName);
                MESSAGE(Text11002, TotalAmountLCY);
            END;
        end;
     
     
     
     
     
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,155 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,043 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 955 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans