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

Community site session details

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

Conversion of amount from digits to amount in words

(0) ShareShare
ReportReport
Posted on by

Hi All,

Am trying to convert amount from digit to words into words in Al. I have followed the link below but am getting lost somewhere in the middle. Am I supposed to access report 1401 and copy the two procedures or by mere declaration (which I can't understand) can sort me out?.


https://community.dynamics.com/nav/b/dynamicsnavcloudfronts/posts/procedure-to-display-the-amount-in-words-in-a-report-of-microsoft-dynamics-nav

Also is there any other alternative?

Kindly assist. 

I have the same question (0)
  • Verified answer
    tanya07 Profile Picture
    1,638 on at
    RE: Conversion of amount from digits to amount in words

    Hello,

    As per this mentioned post , this is calling(declaration) those two methods in a custom report from a standard report 1401 which has the definitions of the methods ( InitTextVariables , FormatNoText)

    Custom Report:

    ...

    Onaftergetrecord()

    {

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

    RepCheck.InitTextVariable;  //calling method 1 from report 1401

    RepCheck.FormatNoText(NoText,AmountVendor,"Purchase Header"."Currency Code"); //calling method 2 from report 1401

    AmountInWords:=NoText[1];

    }

    ...

    For an alternative you can try this - beginnersnav.blogspot.com/.../convert-number-to-words.html

    Hope this helps :)

    Thanks,

    Tanya

    Please verify the answer if it answers your query.

  • Romryan Profile Picture
    on at
    RE: Conversion of amount from digits to amount in words

    In addition I had to declare NoText too.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
Sumit Singh Profile Picture

Sumit Singh 2,056

#2
YUN ZHU Profile Picture

YUN ZHU 1,680 Super User 2025 Season 2

#3
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 1,679

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans