Dynamically change decimal places in Crystal Reports

The May 2009 Flexible Solutions GP Reports Newsletter brings us a tip for dynamically changing decimal places in Crystal Reports. This can be really useful for creating Sales Order Processing (SOP) reports for Dynamics GP, where GP stores the number of decimal places for each line item in the SOP10200 and SOP30300 tables.

Here are the steps to have Crystal dynamically determine how many decimal places to use for the quantity fields:

  1. Right click on the report field and choose Formal Field
  2. Go to the Number tab and click Customize
  3. Click on the Formula button next to Decimals:decimals02
  4. Enter the formula that determines how many decimal places to use – the result of the formula will be the number of decimal places the report will use

In the Dynamics GP SOP example, for SOP quantities the formula should be:

{SOP10200.DECPLQTY}-1

If you want do use a formula for the currency amounts, use the following:

{SOP10200.DECPLCUR}-1

And check out the latest demo video for GP Reports Viewer showing how easy it is to replace Dynamics GP’s SOP reports with Crystal Reports!

 

 

Trackbacks/Pingbacks

  1. Dynamically Changing Decimal Places in Crystal Reports - DynamicAccounting.net - June 3, 2009

    [...] Changing Decimal Places in Crystal Reports Victoria Yudin has a new post up on how to Dynamically Change Decimal Places in Crystal Reports. I'm not using Crystal much anymore unless a client already has it in their environment but [...]

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

Please log in to WordPress.com to post a comment to your blog.

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 405 other followers