Software informational articles

Edi: electronic authenticate intersection for microsoft great plains ? overview for software developer/pr - software

 

Microsoft Great Plains - Microsoft Affair Solutions accounting and ERP system, firstly under attack to mid-size - now, with advancements and escalating reliability of its catalog - Microsoft SQL Server, Great Plains is appealing elucidation for large corporation. Big companies as a rule have purchasing and order dealing out mechanization via so-called Electronic Certificate Exchange 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 Preview of predefined fixed attitude fields.

We would like to give you - programmer, software developer, folder commissioner the core clues on producing EDI formatted text from Microsoft Great Plains database. Please, note but that Great Plains here is taken as the example, alike advance will work for other SQL based systems: Navision (SQL Folder or C/SIDE database), Microsoft RMS, Solomon as well as Foreshadowing and other non-Microsoft products. In the case of non-SQL system, such as old Great Plains Dynamics, ACCPAC on All-encompassing SQL - IDE boundary will affect ADO/ODBC or Microsoft Admittance programming.

1. Appraise Query - The query below uses CAST construction to make the conclusion fixed distance end to end and meet the positioning. Plus the unionizing allows to be the source of Description and Allocate in one choose statement. Here we are industry 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 id - for this aim we use SOP10100. ADDRESS3 field - which was not used in Great Plains Dynamics/eEnterprise account 6. 0:

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

3. Announcement with UNIX EDI Client or Ma?tre d' - each case requires characteristic approach. You may have to assign the file directory, exposed to the UNIX arrangement or use old DOS be in charge to move the file, or you can have certain email. Good idea is to write communiqu? appliance in your desired indoctrination language

4. Scheduled DTS Embalm - you be supposed to in all probability construct DTS box up to do all the steps: call SQL Query and save it as a file, then call DOS authority or clean EXE appliance - which does be in contact 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 Expertise Administrator in Alba Spectrum Technologies - USA countrywide Great Plains, Microsoft CRM customization company, based in Chicago, California, Colorado, Arizona, New York, Texas, Florida, Georgia and having locations in compound states and globally (www. albaspectrum. com), he is Dexterity, Deal with SQL, C#. Net, Gem Hearsay and Microsoft CRM SDK developer; akarasev@albaspectrum. com


MORE RESOURCES:
Developed by:
home | site map
goldenarticles.net © 2018