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 :
Microsoft Dynamics GP (Archived)

Convert Numbers to Words in Report Writer GP 10

(0) ShareShare
ReportReport
Posted on by 14,855

Dear 

I am using GP 10 , and trying to use the RW_ConvertToWordsAndNumbers() in the Purchase Order report, 

i am using the following syntax and i am still getting Wrong when i am generating the report ,


Function Script( RW_ConvertToWordsAndNumbers(POP_PO.Currency ID cyPrintTotal 0 )

am i missing something ?

Your feedback is appreciated 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    L Vail Profile Picture
    65,271 on at

    Hi Abdo,

    It looks like you have an extra parenthesis.  Try this:

    FUNCTION_SCRIPT(RW_ConvertToWordsAndNumbers  cyPrintTotal  POP_PO.Currency ID  0)

    Kind regards,

    Leslie

  • Abdo Khoury Profile Picture
    14,855 on at

    Hello

    thank you for your feedback

    i did it exactly the same as you suggested and got the below error

    "User Defined Function Failed in execution"

    any idea why ?

  • L Vail Profile Picture
    65,271 on at

    Exactly which RW report are you using? Have you made any other modifications to the report? If  yes try it with a clean report.

    You can send me the package file and I'll be happy to take a look at it. leslievail@earthlink.net

    Kind regards,

    Leslie

  • L Vail Profile Picture
    65,271 on at

    Another thing,

    Check the data types of the parameters you're passing to the report, as well as the calculated field itself. It should be a string.

    Leslie

  • Suggested answer
    L Vail Profile Picture
    65,271 on at

    Hi again,

    Here is the definition in the SDK regarding this function. You can see the data type of the parameters expected.

    Leslie

    RW_ConvertToWordsAndNumbers

    Module:

    System Manager

    Series:

    System

    Script type:

    Global function

    Form (If a form global):

    Category:

    Numeric Manipulation

    Description:

    Convert currency value to Words and Numbers, using descriptive terms from the Currency ID supplied.

    Prerequisites:

    none

    Parameters:

    in currency IN_Value. { Value of Currency }

    in string IN_Currency. { Currency ID of Currency - Leave Blank for Functional }

    in integer IN_Mode. { non-zero = Use Numbers and Words instead of only Words }

    Return Value:

    function returns string OUT_string.

  • Community Member Profile Picture
    on at

    Hi Leslie Vail  

    Thanks for your information. The function is working fine for me. But in case of billion dollar conversion the sting value not displaying after 80 digit!i have used RW_substing ,RW_Parsestring but same problem!!. Please help me..

    Thanks in advance

    Belraj

  • Community Member Profile Picture
    on at

    And I am using dynamic GP 2010.

  • Community Member Profile Picture
    on at

    please help .....!

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

    Check the below link

    http://congruentdynamics.blogspot.in/2013/02/converting-dollars-and-cents-to-words.html

  • Community Member Profile Picture
    on at

    Mr .pragadeeswaran pramasivam,

    Thank you very much for your response.That link is good.But my problem is,while  passing Billions dollar amount through 'Orginating Document Amount ' field ,Nothing is displying After 80 digit, when I use the function RW_ConvertToWordsAndNumbers .And spliting the string by RW_substing , RW_Parsestring  not helped.!

    Please help!

    Thanks in advance

    Belraj

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 > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans