Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

Report writer function - RW_Strip

Posted on by Microsoft Employee

Hi,

I'm having an error in report Writer (Illegal Syntax) when I tried to use function RW_Strip for Global - Functional Currency.

RW_5F00_Strip.JPG

Is there anything wrong in this?

Thank you.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Report writer function - RW_Strip

    Hi All,

    Issue solved.

    Thank you.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Report writer function - RW_Strip

    Hi Mariano,

    Thank you for your reply.

    Instead of using a Functional Currency, I've create another calculated field to be used in this function. And it works.

    Another problem is, currently I'm using this function to add bracket in between functional currency. Eg: (USD). But it only show '(USD'. Closing bracket is missing. I've made width of the field long enough but it still didn't show.

    Thank you.

  • Verified answer
    Mariano Gomez Profile Picture
    Mariano Gomez 26,225 on at
    RE: Report writer function - RW_Strip

    So, are you saying you are trying to strip blank spaces out of the global Functional Currency variable? For example, if your Functional Currency is expressed, i.e., as "Z - US $", you want the result returned to be "Z-US$". If this is the case then RW_Strip should work. 

    RWStrip.png

    1. In the Calculated Field Definition window, enter a name for your calculated field

    2. Set the Result Type to String and the Expression Type to Calculated

    3. From the Functions tab, select User-Defined. In the Function drop-down, locate RW_Strip, then click Add

    4. Click on the Fields tab, from the Resources drop-down select Globals. From the Field drop down, choose Functional Currency

    5. Click on the Constants tab. From the Type drop-down, select String. In the Constant field, press the space bar on your keyboard, then click Add.

    This completes the expression. Do not attempt to insert any spaces manually between the parenthesis or try to insert parenthesis on your own. Report Writer will do this as you build the expression.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans