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

Notifications

Announcements

No record found.

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 490
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,708 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,664

#2
YUN ZHU Profile Picture

YUN ZHU 960 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans