INTRODUCTION
This article describes how to use Report Writer to print tax detail totals on the SOP Blank Invoice Form report in Microsoft Dynamics GP.
More Information
Step 1: Back up the Reports.dic file
- 
                  Use the appropriate method: - 
                      In Microsoft Dynamics GP 2010 and GP 10.0, point to Tools on the Microsoft Dynamics GP menu, point to Setup, point to System, and then click Edit Launch File. 
 
- 
                      
- 
                  Type the system password if you are prompted to type a password. 
- 
                  Click Microsoft Dynamics GP. The path of the Reports.dic file is displayed in the Reports box. 
- 
                  Back up the Reports.dic file. 
Step 2: Open Report Writer
- 
                  Use the appropriate method: - 
                      In Microsoft Dynamics GP 10.0, point to Tools on the Microsoft Dynamics GP menu, point to Customize, and then click Report Writer. 
- 
                      In Microsoft Dynamics GP 9.0, point to Customize on the Tools menu, and then click Report Writer. 
 
- 
                      
- 
                  In the Product list, click Microsoft Dynamics GP, and then click OK. 
Step 3: Link the tables
- 
                  Click Tables. 
- 
                  In the Tables window, click SOP_LINE_WORK, and then click Open. 
- 
                  Click Relationships, and then click New. 
- 
                  Click the ellipsis button (...) next to the Secondary Table field, click Sales Taxes Work and History, and then click OK. 
- 
                  In the Secondary Table Key list, click SOP_TAX_WORK_HIST_Key1. 
- 
                  In the Primary Table: Sales Transaction Amounts Work column, click the following fields: - 
                      Click the SOP Type field to match the SOP Type field that is displayed in the Secondary Table column 
- 
                      Click the SOP Number field to match the SOP Number field that is displayed in the Secondary Table column 
 
- 
                      
- 
                  Click OK. 
- 
                  Close the Table Relationship window. 
- 
                  Click OK, and then close the Tables window. 
Step 4: Open the SOP Blank Invoice Form report
- 
                  Click Reports. 
- 
                  In the Original Reports pane, click SOP Blank Invoice Form, and then click Insert. 
- 
                  In the Modified Reports pane, click SOP Blank Invoice Form, and then click Open. 
Step 5: Add the linked table
- 
                  In the Report Definition window, click Tables. 
- 
                  Click Sales Serial/Lot Work and History, and then click Remove. When you are prompted to remove tables, click OK. 
- 
                  Click Sales Transaction Amounts Work, and then click New. 
- 
                  Click Sales Taxes Work and History, and then click OK. 
- 
                  Click Close. 
Step 6: Remove and create a new restriction
- 
                  In the Report Definition window, click Restrictions. 
- 
                  In the Report Restriction window, click Type and Number of SOP_Serial_Lot=self, and then click Delete. When you are prompted to delete the restriction, click Yes. 
- 
                  In the Report Restrictions window, click New. 
- 
                  In the Restriction Name field, type SOP_Tax_Work=self. 
- 
                  Click Sales Taxes Work and History in the Report Table list, click SOP Type in the Table Fields list, and then click Add Field. 
- 
                  In the Operators section, click =. 
- 
                  In the Fields section, click Add Field. The Restriction Expression box displays the following. SOP_Tax_WORK_HIST.SOP Type= SOP_Tax_WORK_HIST.SOP Type 
- 
                  Click OK, and then close the Report Restrictions window. 
Step 7: Create the calculated field
Note Create a calculated field for each tax detail.
- 
                  Click Layout. 
- 
                  In the Toolbox list, click Calculated Fields, and then click New. 
- 
                  In the Name field, type the tax detail name. 
- 
                  Click Currency in the Result Type list, and then click Conditional in the Expression Type list. 
- 
                  Click Sales Taxes Work and History in the Resources list, click Tax Detail ID in the Field list, and then click Add. 
- 
                  In the Operators area, click =. 
- 
                  Click Constants, click String in the Type list, type the tax detail ID in the Constant field, and then click Add. 
- 
                  In the Operators area, click AND. 
- 
                  Click the Fields tab. 
- 
                  In the Type field, enter Sales Transactions Amount Work. In the Field field, enter Component Sequence. Then, click Add. 
- 
                  Click Constants, click Integer in the Type list, type 0 in the Constant field, and then click Add. 
- 
                  Click the True Case expression box. 
- 
                  Click Fields, click Sales Taxes Work and History in the Resources list, click Sales Tax Amount in the Field list, and then click Add. 
- 
                  Click the False Case expression box. 
- 
                  Click Constants, click Currency in the Type list, type 0.0000 in the Constant field, and then click Add. The conditional calculated field appears as follows. SOP_TAX_WORK_HIST.TaxDetail ID="your tax detail ID" AND SOP_LINE_WORK.Component Sequence = 0 True Case: SOP_Tax_WORK_HIST.Sales Tax Amount False Case: 0.0000 
- 
                  Click OK. 
Step 8: Modify the (C) Serial Lot Quantity calculated field
- 
                  In the Toolbox list, click Calculated Fields, click (C) Serial Lot Quantity, and then click Open. 
- 
                  Remove the expressions in the following fields: - 
                      Conditional 
- 
                      True Case 
- 
                      False Case 
 
- 
                      
- 
                  Click Integer in the Result Type list, and then click Calculated in the Expression Type list. 
- 
                  Click Constants, click Integer in the Type list, type 0 in the Constant field, and then click Add. 
- 
                  Click OK. 
Step 9: Set the Report Section option
- 
                  On the Tools menu, click Section Options. 
- 
                  Click to clear the Body check box, and then click OK. 
Step 10: Configure the report layout
- 
                  In the Toolbox list, click Calculated Fields. 
- 
                  Click each tax detail calculated field that you created, and drag it to the RF section on the report layout. 
- 
                  In the report layout, double-click each field that you added to the report layout. 
- 
                  In the Report Field Options window, click Sum in the Display Type list. 
- 
                  Click OK. 
Step 11: Save the report, and then exit Report Writer
- 
                  Close the report. 
- 
                  Click Save when you are prompted to save the changes. 
- 
                  In the Report Definition window, click OK. 
- 
                  Click File, and then click Microsoft Dynamics GP. 
Step 12: Assign security permissions to the modified report
To assign security permissions to the modified report, use these steps:
- 
                  On the Microsoft Dynamics GP menu, point to Tools, point to Setup, point to System, and then click Alternate/Modified Forms and Reports. 
- 
                  In the ID box, type the Alternate/Modified Forms and Reports ID that is associated with the user ID that will print this modified report. 
- 
                  In the Product list, click Microsoft Dynamics GP. 
- 
                  In the Type list, click Reports. 
- 
                  Expand the Sales folder. 
- 
                  Expand the folder for the report that you modified. 
- 
                  Click to select Microsoft Dynamics GP (Modified). 
- 
                  Click Save. 
- 
                  On the Microsoft Dynamics GP menu, point to Tools, point to Setup, point to System, and then click User Security. 
- 
                  In the User list, click a user ID. 
- 
                  In the Company list, click a company. 
- 
                  In the Alternate/Modified Forms and Reports ID list, click the ID from step 2. 
 
                         
				 
				