Langsung ke konten utama

Microsoft Great Plains Integration Manager - Working With Text File

Microsoft Business Solutions main middle market ERP application - Microsoft Great Plains has multiple integration options: MS SQL Scripting (stored procedures and views), ADO.Net programming, Microsoft SQL Server DTS packages. You certainly can deploy such SDK tools as eConnect. However here we would like to show you how to program the simplest user friendly tool: Microsoft Great Plains Integration Manager.
Multiple times in our consulting practice we saw the need to integrate General Ledger transactions from one text file and here we give you this and even more complex case, when credit and debit amounts are present on the same line with their own account numbers. Let's assume that we have tab delimited text file, GLSOURCE.txt. Here is how the line looks:

"11242004" (date) "11020016000" (debit account) 212446.68 (debit amount) "15260005400" (credit account) 212446.68 (credit amount)

Pretty challenging, isn't it?

Let's begin

First of all and this is probably easy - you need ODBC DSN, use Microsoft Text Driver, change default directory, select the file and switch to tab delimited type.

Next, open Microsoft Great Plains Integration Manager and create two new queries - one will be for the Header and the second for distribution lines in GL transaction. In both cases use Advanced ODBC type of text queries.

GL Header should aggregate by date, so in its SQL window enter this:

select F1 from GLSOURCE.txt group by F1

Now the lines - here we need unionizing and checking if amount is not zero:

select F1, F2, F3, 0 from GLSOURCE.txt
where F3''
union
select F1 F4, 0,F5 from GLSOURCE.txt
where F5''

The one above is the most difficult part of this article. Please understand it - we are splitting line into two by union, first we create debit part and then we attach credit part, plus we are weeding out 0 amounts.

Next - we need to link two queries - simply link them by F1 field (date). Do it in query relationship. When you are done with linking, right click on the arrow, open properties and in Select Relationship Type window change to:

There can be 0 or more records in the child for each record in the master.

This is important - we'll have more than one line in GL distribution.

The rest should be familiar for IM consultant.

Select destination as GL Journal, assign transaction date and batch ID as F1 from Header query, switch to entries and select them from debit and credit parts of the lines query.

As additional tools in filtering your text query you could use VBA scripting and even translation.

Translation is the way to go when you need to replace account numbers from the text file with different or translated accounts in Great Plains.




Komentar

Postingan populer dari blog ini

Computer Data Backup - Data Backup Solution Will Give You A Peace Of Mind

Imagine that you have been working on a file for the entire day and there was a power surge that caused your computer to 'black out'. It would have been a frustrating experience for us as we had put in a lot of time and effort into it. I am sure that many of us would have experienced data loss in some form or another and have learnt to be wiser to backup our data to avoid any form of data loss. Have you ever thought of a worst case scenario where a fire broke up and destroy your computer or where your laptop got stolen? Should that happen, the first thing that comes into your mind is the thousands of dollars that you spend on your computer or laptop and you would feel very upset about it. However, when you thought for a second moment, you started to realize that what is really valuable are the amount of data that you have built up over the years in it. Though hardware can always be replaced, even at no cost to you if you have insurance, but lost data is gone forever. Lost data

The Constantly Changing World of Inkjet Technology

We have finally advanced to a time when technology can greatly improve graphics and printing. The technology we have at our disposal now is so advanced we are able to produce inkjet printers capable of printing proofs so accurate they can actually represent the end product. This type of advanced technology has provided businesses with a major advantage over the competition in today's cut throat business world. The printer industry has come a long way since the antiquated days of dot matrix printers. Even the early inkjet printers suffered from numerous problems such as clogging the print heads with dried ink when not in use and constant ink leaks. The amazing advances in inkjet technology has allowed many businesses to become far more self sufficient in terms of producing their own brochures and sales material. For example, the new Epson Stylus Pro series printer uses chrome seven color ink advancement technology. With this product, users are still able to make use of the usual CMY

What Everybody Should Know About An Inkjet Printer: The One-Year Cost Of Printing

You can purchase an inkjet printer for as little as $39. With a rebate, it may even be less. Not many people would argue about the good deal they got when they purchased their printer. However, the purchase price of an inkjet printer really doesn't tell you much about your cost of printing. After all, you do need paper and inkjet cartridges to keep your printer printing. If you go to a local car lot and look at the sticker price of a car, you'd see some of the following items: the base price of the car, the cost for each additional feature or package, the number of miles per gallon for both city and road, and the cost of gasoline for one year under normal driving conditions. What if you got this same type of information for your printer? Would you still buy the same inkjet printer? How would you feel if you knew you would pay more for gas and oil, in the first year you owned your car, than you paid for the car? Well the fact is, unless you do very little printing, you will pay