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

Business Central RDLC: Running Total Issue with Currency Field in Customer Statement Default Report

(7) ShareShare
ReportReport
Posted on by 120
Hi,
I am working with a Business Central default Customer Statement report that uses RDLC Default layout:
1. When the currency field is empty, one table is shown in the report output.
2. When the currency field has a value, a separate table is shown in the report output.
Below is a screenshot example of the default report format.
 
My requirement:
I want the report to always show only one format (one table), regardless of whether the currency field is empty or not.
How can I modify the RDLC to display only one table for all cases?
I am trying this code to display the output as shown in the screenshot below.
I have created a report using one table, but I am facing running total issues. I tried the following Report Extension code
  modify(DtldCustLedgEntries)
        {
            RequestFilterFields = "Initial Entry Global Dim. 1", "Initial Entry Global Dim. 2";
            trigger OnAfterAfterGetRecord()
            var
                custledentries: Record "Cust. Ledger Entry";
                GLSetup: Record "General Ledger Setup";
            begin
               
                if "Currency Code" = '' then begin
                    "Currency Code" := GLSetup."LCY Code";
                end;
            end;
        }
 
        modify(CustLedgEntry2)
        {
            trigger OnAfterAfterGetRecord()
            var
                GLSetup: Record "General Ledger Setup";
            begin
                if "Currency Code" = '' then begin
                    "Currency Code" := GLSetup."LCY Code";
                end;
            end;
        }
Below is the screenshot of my required format.
I have highlighted the Original Amount and Running Total columns in green.
 
I have the same question (0)
  • Suggested answer
    OussamaSabbouh Profile Picture
    10,972 Super User 2026 Season 1 on at
    Hello,
     
    To show one single table in the Customer Statement RDLC, ignore currency splitting and do this:
     
    1. Delete the two separate tablixes in the RDLC and keep only one.
     
     
    2. Remove any filters on Currency Code in that tablix.
     
     
    3. Add a display field (e.g., PrintCurrencyCode) in AL instead of changing "Currency Code".
     
     
    4. Use that field in the RDLC to always show LCY or FCY.
     
     
    5. Use RunningValue() in RDLC to calculate the running total in one table.
     
     
     
    This gives you the unified format you want.
     
    Regards,
    Oussama Sabbouh
  • Suggested answer
    YUN ZHU Profile Picture
    97,970 Super User 2026 Season 1 on at
    Deleting another table would solve the problem.
    However, your requirements almost necessitate rebuilding the entire layout, which I personally don't recommend.
     
    Thanks
    ZHU

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,161 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,046 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 932 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans