How to add a user date calculated field and a month name calculated field to any report in Dynamics GP
This article describes how to modify Microsoft Business Solutions – Great Plains reports to include a user date calculated field and a month name calculated field. To successfully modify reports, you must first create the two new calculated fields. After you create the calculated fields, you can add them to your report layout and then save your changes. Finally, you must grant security to the report. Detailed instructions are included for each of these steps.
Step 1: Back up the Reports.dic file
- Click Tools, point to Setup, point to System, and then click Edit Launch File.
- Type your system password if you are prompted to type a password.
- Click Great Plains. The Reports.dic file path is displayed in the Reports box.
- Back up the Reports.dic file.
Step 2: Open the report
- Click Tools, point to Customize, and then click Great Plains.
- In the Product list, click Great Plains to open Report Writer.
- In Report Writer, click Reports.
- Click the report that you want to modify in the Original Reports list, and then click Insert.
- Click the same report in the Modified Reports list, and then click Open.
Step 3: Create the first calculated field
- In the Report Definition window, click Layout.
- In the Toolbox list, click Calculated Fields, and then click New.
- In the Name box, type User Date Calc.
Note: In this step, we recommend that you name the calculated field “User Date Calc.” You do not have to use this name. However, this procedure refers to this field by this name. - In the Result Type list, click Integer. Then, click Calculated under Expression Type.
- Click the Fields tab. In the Resources list, click Globals.
- In the Field list, click User Date, and then click Add.
- Click OK to save the calculated field.
Step 4: Create the second calculated field
- In the Toolbox list, click Calculated Fields, and then click New.
- In the Name box, type Month Name.
Note In this step, we recommend that you name the calculated field “Month Name.” You do not have to use this name. However, this procedure refers to this field by this name. - In the Result Type list, click String. Then, click Calculated under Expression Type.
- Click the Functions tab, and then click System-Defined.
- In the Function list, click Month Name, and then click Add.
- Click the Fields tab. In the Resources list, click Calculated Fields.
- In the Field list, click User Date Calc, and then click Add.
- Click OK to save the calculated field.
Step 5: Add the calculated field to your report
- In the Toolbox list, click Calculated Fields.
- Drag Month Name to the PH section, to the RH section, or to both sections.
Step 6: Save your changes
- Close the report, and then save the changes when you are prompted to.
- Click File, and then click Microsoft Business Solutions-Great Plains.
Step 7: Grant security to the report
- Click Tools, point to Setup, point to System, and then click Advanced Security.
- Type your password if you are prompted to.
- Click View, and then click by Alternate, Modified and Custom.
- Expand the Great Plains node.
- Expand the Reports node.
- Expand the node for the series that your modified report applies to.
- Expand the node for the modified report.
- Click to select the Great Plains (Modified) check box.
- Click Apply, and then click OK.
For similar Report Writer tips, register for our Report Writer class.