10 Sep’17

Dynamics NAVProcedure to display the Amount in Words in a report of Microsoft Dynamics NAV


In this article, I will be explaining the procedure to display amount in words in a report of Microsoft Dynamics NAV.


Microsoft Dynamics NAV 2016


Step 1:
Declare the following variables in C/AL Globals:

  1. RepCheck’ is a variable of DataType ‘Report’ and Subtype ‘Check’ which is Report 1401.
  2. NoText’ is a variable of DataType ‘Text’ with Dimensions Value as 2 which is set by navigating to the properties of the ‘NoText’ variable.
  3. AmountInWords’ is a variable of DataType ‘Text’ which will store the final result of the amount in words.

Step 2:
Now in my custom purchase order report, I want to display the Amount to Vendor in Words.

So in the Purchase Header – OnAfterGetRecord() trigger, I have put the following code:

I have declared a variable ‘AmountVendor’ of DataType ‘Decimal’ in which I will be storing the ‘Amount to Vendor’. I have rounded off the Amount to 2 decimal places.

AmountVendor:= ROUND("Purchase Header"."Amount to Vendor",0.01);

Now add the following code to display the Amount in Words:


RepCheck.FormatNoText(NoText,AmountVendor,"Purchase Header"."Currency Code");


So the complete code looks like below:

Step 3:
Now get the variable ‘AmountInWords’ under the DataSource ‘Purchase Header’ in the report and display it in the design layout of the report.

After saving and running the report the Amount to Vendor will be displayed in Words as shown below:


Thus using the above procedure and the Report 1401 i.e. ‘Check’ report, the amount in words can be easily displayed in any report of Microsoft Dynamics NAV 2016.


Written by

Team Member


Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.

Want to streamline your business processes?

  • This field is for validation purposes and should be left unchanged.

Recent Articles

  • Dynamics 365 Client Diagnostics

    15 March’ 2018

    Main cause of Performance Issues: Bandwidth and latency are the primary characteristics which affects the performance o...

    Read more
  • Closing Blind Shift in MPOS and CPOS in Dynamics 365 for Retail

    15 March’ 2018

    Manual For closing Blind shift in POS: Blind shifts terminate the currently ongoing shift and when logged in a new shif...

    Read more
  • Persistent Filters in the Power BI Service

    13 March’ 2018

    Introduction: The feature is finally release, and it is power BI has announced general availability of persistent filt...

    Read more
  • Cause and Solution for Scribe MSMQ not receiving Message from AX

    10 March’ 2018

    Issue: Microsoft Message Queuing (MSMQ) service running on Server might be unable to receive messages. Therefore, messa...

    Read more
  • User Privileges on SharePoint – D365 Document Integration

    10 March’ 2018

    Overview: Often, we wonder what could be wrong where we see a generic error on Documents in Dynamics 365. Something lik...

    Read more