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

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

(7) ShareShare
ReportReport
Posted on by 84
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
    5,066 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
    95,307 Super User 2025 Season 2 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

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 3,175

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,476 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,435 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans