Mass Update GL Account Segments in Microsoft Dynamics GP

By - January 6, 2017

Chances are when you began using Microsoft Dynamics GP and loaded the chart of accounts, you may not have thought about populating the GL Segment Descriptions which are stored in a separate table called the Segment Description Master.  Populating your segment descriptions is useful when setting up new GL accounts using the Mass Modify feature and for reporting purposes in Management Reporter.  Unfortunately, Integration Manager does not insert or update the Segment Description Master table, and the Table Import tool does not have update capabilities.  Luckily, you can use the Data Import tools in SQL to accomplish this task by creating a temporary table and then joining it to the GL40200 to process the update.  Below are the steps:

  1. Create a SmartList in Dynamics GP from the Financial > Accounts folder. Use the default * Accounts SmartList, and remove all the columns.  Add the column called Main Account Segment.  Export the results to Excel, and change the name of the column Main Account Segment to SGMNTID. Then insert 2 additional columns for the segment number and segment description using the headers SGMTNUMB and DSCRIPTN as shown below.  Column headers must be exact in order to sync with the fields in the SQL tables. Enter the segment number of your main account in the first column and copy it down to each cell in the spreadsheet.  For example, if the main account is segment 2, enter a 2 for the SGMNTNUMB column for each line.  Then populate the DSCRIPTN column with the segment descriptions you want to update in GP.   See example below:
    how-to-mass-update-gl-account-1
    Save the file as csv with the name SegmentDescriptions.
    how-to-mass-update-gl-account-2
  2. In SQL Server Management Studio make a backup of GL40200 table by running the following script against the company database:
    how-to-mass-update-gl-account-15
  3. You will now proceed to create the temporary table called [SegmentDescriptions]. First expand the databases, and right click on the company database.  Then go to Tasks > Import Data to open the SQL Server Import/Export Wizard.
    how-to-mass-update-gl-account-3
    how-to-mass-update-gl-account-4Click Next.
  4. Select Flat File Source for the data source. Browse out and select the file called [SegmentDescriptions] you saved in step 1.  Mark the checkbox to display column names in the first row.
    how-to-mass-update-gl-account-5
  5. Highlight Preview to preview your file. Double check the column headers to make sure they match exactly to the fields in the GL40200 table.  If any corrections are necessary, make the changes to the file, and restart the import wizard.  If the preview of the data is correct, click Next.
    how-to-mass-update-gl-account-6
  6. The destination and server name will default in the window. Select Use SQL Server Authentication, and enter the sa user credentials.  Select the company database to import the file.  Click Next.
    how-to-mass-update-gl-account-7
  7. Review the Select Source Tables and Views window, and make sure the table name is [SegmentDescriptions] with no spaces. You can also click the Preview button to preview the data.  Click Next.
    how-to-mass-update-gl-account-8
  8. Accept the default to run the package file immediately, and click Next.
    how-to-mass-update-gl-account-9
  9. Verify the selections made in the wizard and click Finish.
    how-to-mass-update-gl-account-10
  10. Review the results of the import for any errors, messages, and the number of rows affected. If you receive any errors, review your source file, make the necessary corrections, and re-import the file.  Otherwise click the Close button.
    how-to-mass-update-gl-account-11
  11. Run the script below against the company database to update the GL40200 from the SegmentsDescriptions table created in the wizard.
    how-to-mass-update-gl-account-12
  12. Run the script below against the company database to review the updated contents of the GL40200 table:how-to-mass-update-gl-account-13Replace the X with the number that represents the main account segment.The results should contain the segment descriptions from your source file in the DSCRIPTN field.
  13. If you are satisfied with the results, you can delete the temporary SegmentDescriptions table and the backup of the GL40200 table you created by running the following scripts against the company database:
    how-to-mass-update-gl-account-14

If you’re looking for quick and easy business solutions for your Microsoft Dynamics GP system, RSM offers access to Certified Microsoft Professionals, help desk and phone support, knowledge and experience with third party products and dedicated account management.  Please contact our professionals for more information at erp@rsmus.com or by phone at 855.437.7202.

by Nancy Hogan for RSM

 

Receive Posts by Email

Subscribe and receive notifications of new posts by email.