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.