Software Information

EDI: Electronic Document Interchange for Microsoft Great Plains - Overview for Software Developer/Pr


Microsoft Great Plains - Microsoft Business Solutions accounting and ERP system, originally targeted to mid-size - now, with advancements and increasing reliability of its database - Microsoft SQL Server, Great Plains is attractive solution for large corporation. Big companies usually have purchasing and order processing automation via so-called Electronic Document Interchange or EDI. EDI was introduced long time ago for UNIX systems and in most of the cases appears in the form of Header, Lines and Trailer of predefined fixed position fields.

We would like to give you - programmer, software developer, database administrator the primary clues on producing EDI formatted text from Microsoft Great Plains database. Please, note however that Great Plains here is taken as the example, similar approach will work for other SQL based systems: Navision (SQL Database or C/SIDE database), Microsoft RMS, Solomon as well as Oracle and other non-Microsoft products. In the case of non-SQL system, such as old Great Plains Dynamics, ACCPAC on Pervasive SQL - IDE interface will involve ADO/ODBC or Microsoft Access programming.

1. Sample Query - The query below uses CAST construction to make the result fixed length and meet the positioning. Plus the unionizing allows to produce Header and Detail in one select statement. Here we are dealing with work Sales Documents

select

case

when b.LNITMSEQ=c.LNITMSEQ+1 and b.CMPNTSEQ=c.CMPNTSEQ+1 then CAST('Header' as char(10))

else CAST('Detail' as char(10))

end

as FIELD0,

case

when b.LNITMSEQ=c.LNITMSEQ+1 and b.CMPNTSEQ=c.CMPNTSEQ+1 then cast(a.CUSTNAME as char(65))

else cast(cast(b.QTYDMGED as decimal(19,5)) as char(65))

end

as FIELD01,

case

when b.LNITMSEQ=c.LNITMSEQ+1 and b.CMPNTSEQ=c.CMPNTSEQ+1 then CONVERT(char(51), a.DOCDATE, 101)

else cast(b.ITEMDESC as char(51))

end

as FIELD03

--Additional fields go here

from SOP10100 a join SOP10200 b on a.SOPTYPE=b.SOPTYPE and a.SOPNUMBE=b.SOPNUMBE join

RM00101 d on a.CUSTNMBR=d.CUSTNMBR

join

(select SOPTYPE as SOPTYPE, SOPNUMBE as SOPNUMBE,

LNITMSEQ

as LNITMSEQ,

CMPNTSEQ

as CMPNTSEQ from SOP10200

union

select SOPTYPE as SOPTYPE, SOPNUMBE as SOPNUMBE, MIN(LNITMSEQ)-1 as LNITMSEQ, MIN(CMPNTSEQ)-1 as CMPNTSEQ from SOP10200

group by SOPTYPE, SOPNUMBE

) c on a.SOPTYPE=c.SOPTYPE and a.SOPNUMBE=c.SOPNUMBE

and ((b.LNITMSEQ=c.LNITMSEQ and b.CMPNTSEQ=c.CMPNTSEQ) or (b.LNITMSEQ=c.LNITMSEQ+1 and b.CMPNTSEQ=c.CMPNTSEQ+1))

left join SOP10106 udf on a.SOPTYPE=udf.SOPTYPE and a.SOPNUMBE=udf.SOPNUMBE

where a.ADDRESS3'Exported' and

a.SOPTYPE=3 and upper(d.USERDEF2)='YES'

order by a.SOPTYPE, a.SOPNUMBE, b.LNITMSEQ asc

2. Mark processed documents - for this reason we use SOP10100.ADDRESS3 field - which was not used in Great Plains Dynamics/eEnterprise version 6.0:

update SOP10100 set ADDRESS3='Exported' where SOPTYPE=3

3. Communication with UNIX EDI Client or Server - each case requires individual approach. You may have to assign the file directory, exposed to the UNIX system or use old DOS command to move the file, or you can have automatic email. Good idea is to write communication application in your favorite programming language

4. Scheduled DTS Package - you should probably create DTS package to do all the steps: call SQL Query and save it as a file, then call DOS command or simple EXE application - which does communicate with UNIX

Happy programming! if you want us to do the job - give us a call 1-866-528-0577! help@albaspectrum.com

About The Author

Andrew Karasev is Chief Technology Officer in Alba Spectrum Technologies - USA nationwide Great Plains, Microsoft CRM customization company, based in Chicago, California, Colorado, Arizona, New York, Texas, Florida, Georgia and having locations in multiple states and internationally (www.albaspectrum.com), he is Dexterity, Transact SQL, C#.Net, Crystal Reports and Microsoft CRM SDK developer; akarasev@albaspectrum.com


MORE RESOURCES:

India offers software support to unravel Big Bang secrets
Business Standard, India - 6 hours ago
... Bhaba Atomic Research Centre, Saha Institute, and Punjab University were involved in providing software and quality-testing services of detectors. ...


SilkRoad technology Expands Global Footprint in Asia Pacific ...
MarketWatch - 3 hours ago
With over ten years experience in technology and software, Earnshaw is based in Singapore and will lead the overall sales and marketing efforts for the ...


PokerNews.com

PokerStars Launches Full Version of Mac-Compatible Software
PokerNews.com - 19 hours ago
The software that brings the hugely popular online poker site PokerStars.net into the homes of over 15 million players worldwide will now have a Mac version ...
PokerStars offers dedicated Mac client PokerListings.com
Sunday's WCOOP Action Boasts $5 Million in Guaranteed Prizes PocketFives.com
RaiNKhAN and scarface_79 Final Table WCOOP Events PocketFives (press release)
PokerNews.com - PokerListings.com
all 8 news articles


Software Engineers In Demand
Fox 12 Boise, ID - 23 hours ago
Software engineering keeps on beating the odds. It's an industry that's boasting an unemployment rate that's nearly fifty percent lower than the national ...


A Charity Fails Families Of Fallen Firefighters After 9/11
Hartford Courant, United States - 16 hours ago
Careaga, a one-time volunteer firefighter and reserve police officer, had been trying to make money selling computer software to rural fire departments in ...


Software helps 'observant'choppers
Times of India, India - Sep 6, 2008
The researchers have revealed that their software could learn and flawlessly replicate more than 20 years of radio-controlled helicopter expertise in just ...


Canada.com

Open Sauce Software
ZDNet UK, UK - Sep 5, 2008
Chrome is still my default browser, and there are everyday things I can't do so easily in it as in Firefox. Perversely. I think what I want is a Google ...
Video: Tech Test: Google Chrome Lacks Polish AssociatedPress
Google sees new browser displacing desktop software Reuters
Google Chrome: A Hit with Online Software Vendors CIO
Seeking Alpha - Chicago Tribune
all 3,447 news articles


Govt forms society to develop software in Bangla
Kolkata Newsline, India - 2 hours ago
The West Bengal government is forming an autonomous society to develop systems and software in Bangla and other regional languages. “The Society for Natural ...


No Download Casino (Flash Casino) VS. Downloadable Software
Corsavoo.com, France - 7 hours ago
For instance, a software download casino tends to offer more game variety, where a no download casino is typically more limited. On the other hand, ...


Canada.com

Beyond the Ads, a Fevered Campaign to Improve Vista
RedOrbit, TX - 8 hours ago
Corps of Microsoft engineers, for example, have been dispatched to tweak hardware and software to make Vista PCs faster and less prone to crashing. ...
Microsoft Works to Perfect Windows Vista New York Times
Geeky Gates joins deadpan Seinfeld to save Windows Vista from ... Economic Times
Critics Boo Microsoft's Seinfeld-Gates Ad Red Herring
InformationWeek - Adweek
all 553 news articles

Software - Google News

home | site map
© 2006