Code for Amount in words

tomy1980tomy1980 Member Posts: 12
Hi All,

How we can convert the amount in nav table to amount in words just to display in a report using C/AL.If you people have any code for that just forward it to me.
Any action taken will be highly appreciated.thanking all of you in advance.

Regards
Thomas

Comments

  • JedrzejTJedrzejT Member Posts: 267
    Var:
    Codeunit [Amount in Words] as AmountInWords
    Text [90 len, dimension 2] as AmountInWordsText

    Code;
    AmountInWords.AmountInWords(AmountInWordsText,DecVarWithAmount)
    

    Amount String is in text array
  • Miklos_HollenderMiklos_Hollender Member Posts: 1,598
    Report 1401 in standard NAV.
  • tomy1980tomy1980 Member Posts: 12
    JedrzejT wrote:
    Var:
    Codeunit [Amount in Words] as AmountInWords
    Text [90 len, dimension 2] as AmountInWordsText

    Code;
    AmountInWords.AmountInWords(AmountInWordsText,DecVarWithAmount)
    

    Amount String is in text array

    Dear Jedrzejt,

    Thanks a lot for your quick response and the solution provided.Basically I'm a GP consultant and very much new to this Nav.So can you just tell me where exactly i nedd to place this code and what all stepd i have to follow.

    Regards
    thomas
Sign In or Register to comment.