EDIdEv - Electronic Data Interchange Development      EDIdEv


 
UN/EDIFACT EDI Sample Programs

  EDI Tool for Developers

Sample Program Source Codes 
(You must have EDIdEv -
Framework EDI - installed on your machine to run the programs successfully.  An evaluation copy can be downloaded at www.edidev.com.)

Below are example programs to demonstrate how one can easily use the Framework EDI component in a programming language to generate, translate and acknowledge UN/EDIFACT EDI files.  (Please note that you need the appropriate programming language to view the source codes.)


UN/EDIFACT sample programs using the EDIdEv Framework EDI object

Excel

ExcelEdiEdifact

Generates and translates a UN/EDIFACT ORDERS (Purchase order message) EDI file from/to an Excel workbook

ExcelEdiCODECO

Generates and translates a UN/EDIFACT CODECO (Container Gate-In/Gate-Out Report Message)  EDI file from/to an Excel workbook

ExcelEdiIFTMIN

Generates and translates a UN/EDIFACT IFTMIN (Instruction message)  EDI file from/to an Excel workbook

ExcelEdiIFTSTA

Generates and translates a UN/EDIFACT IFTSTA (International multimodal status report message)  EDI file from/to an Excel workbook

ExcelEdiIFTSAI

Generates and translates a UN/EDIFACT IFTSAI (Forwarding and transport schedule and availability information message)  EDI file from/to an Excel workbook


Access

frediAccessORDERS.zip

Generates and translates an EDI file from/to an Access database


ASP Visual Basic .NET

  Run Program   Description
  vbNetEdifactGen   An example ASP VB.NET program that generates a UN/EDIFACT INVOIC Message.
  vbNetEdifactTran   Translates UN/EDIFACT Invoice Message (INVOIC)
  vbNetEdifactAck   Generates a CONTRL file after acknowledging an UN/EDIFACT file


Visual Basic .NET

Download Filename

Description

vbNetGenORDERS

Generates a UN/EDIFACT ORDERS EDI file in VB .NET view code

vbNetTranORDERS

Translates a UN/EDIFACT ORDERS S93A EDI file view code

vbNetGenDESADV

Generates a Despatch advice message DESADV D97A EDI file 

vbNetTranDESADV

Translates a Despatch advice message DESADV D97A EDI file 

vbNetGenIFTMCS

Generates an Instruction contract status message IFTMCS D99B EDI file 

vbNetTranIFTMCS

Translates an Instruction contract status message IFTMCS D99B EDI file 

vbNetGenIFTSAI

Generates a Forwarding and transport schedule and availability information message IFTSAI D99B EDI file 

vbNetTranIFTSAI

Translates a Forwarding and transport schedule and availability information message IFTSAI D99B EDI file 

vbNetGenBAPLIE

Generates a BAPLIE (Bayplan/stowage plan occupied and empty locations message) D04B EDI file

vbNetTranBAPLIE

Translates a BAPLIE (Bayplan/stowage plan occupied and empty locations message) D04B EDI file


Visual Basic 6

Download Filename

Description

frediGenINVOIC

Generates UN/EDIFACT INVOIC message in Visual Basic 6 view code

frediGenMultiINVOIC

An example program that shows how to create a UN/EDIFACT INVOIC file with multiple interchanges and messages using the Framework EDI component in VB6

frediTranINVOICseq

Translates UN/EDIFACT Invoice Message (INVOIC) view code

TranOrdersDB

An VB6 example program that shows how to translate a UN/EDIFACT ORDERS file with multiple messages into an Access database

frediControlAck

Generates a CONTRL file after acknowledging a UN/EDIFACT file view code


Delphi 5

frediDelphiGenINVOIC

Generates UN/EDIFACT Invoice Message (INVOIC)

frediDelphiGenMultiINVOIC

Generates multiple Invoice Messages (INVOIC) view code

frediDelphiTranINVOIC

Translates UN/EDIFACT Invoice Message (INVOIC) view code

frediDelphiAck

Acknowledges an EDIFACT file, and then creates a CONTRL acknowledgment file in Delphi using Framework EDI component view code

frediDelphiTranCONTRL

Translates a UN/EDIFACT CONTRL acknowledgment file in Delphi using Framework EDI component

delphiTranOrdersDB

Translates ORDERS with multiple messages into an Access database

frediDelphiGenORDRSP

Generates UN/EDIFACT Order Response Message (ORDRSP)

frediDelphiTranORDRSP

Translates UN/EDIFACT Order Response Message (ORDRSP)


C#   (C Sharp)

cSharpGenCOARRI

Generates UN/EDIFACT COARRI Container Discharge/Loading Report Message 

cSharpTranCOARRI

Translates UN/EDIFACT COARRI Container Discharge/Loading Report Message 

cSharpGenCODECO

Generates UN/EDIFACT CODECO Container Gate-In/Gate-Out Report Message

cSharpTranCODECO

Translates UN/EDIFACT CODECO Container Gate-In/Gate-Out Report Message

cSharpGenCUSCAR

Generates UN/EDIFACT CUSCAR Customs Cargo Report Message

cSharpTranCUSCAR

Translates UN/EDIFACT CUSCAR Customs Cargo Report Message

cSharpGenCUSDEC

Generates UN/EDIFACT CUSDEC Customs Declaration Message

cSharpTranCUSDEC

Translates UN/EDIFACT CUSDEC Customs Declaration Message

cSharpGenCUSRES

Generates UN/EDIFACT CUSRES Customs Response Message

cSharpTranCUSRES

Translates UN/EDIFACT CUSRES Customs Response Message

cSharpGenDESADV

Generates a Despatch advice message DESADV D97A EDI file in C#

cSharpTranDESADV

Translates a Despatch advice message DESADV D97A EDI file in C#

cSharpGenINVOIC

Generates UN/EDIFACT INVOIC (Invoice) Message in C# view code

cSharpTranINVOIC

Translates UN/EDIFACT INVOIC (Invoice) Message in C# view code

cSharpAckCONTRL

Program that acknowledges a UN/EDIFACT INVOIC file, and then creates a CONTRL acknowledgment file in C# using Framework EDI component view code


Generating a UN/EDIFACT EDI file

 


Acknowledging a UN/EDIFACT EDI file



Visual C++

GenInvoicSampleC++

Generates UN/EDIFACT Invoice Message (INVOIC)

TranInvoicSampleC++

Translates UN/EDIFACT Invoice Message (INVOIC)


 

Important:  Some of the above sample EDIFACT files may have a single quote  followed by a carriage return line feed characters as their data segment terminator.  To view them with the eFileManager, the 'Data Segment Terminator' field in the 'FileManager Properties' dialog box must be entered with the following characters: '{13:10} (A single quote, followed by the ASCII numbers for the carriage return and line feed, enclosed in squiggly brackets and separated by a colon.)


 

Click here to download Framework EDI 

 

Other Topics

 

EDIdEv provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. EDIdEv  support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs.

  Home

  Evaluate Framework EDI

  Source Code Examples
    HIPAA EDI
    Business X12 EDI
    Transportation X12 EDI
    Education X12 EDI
    Web EDI Application
    UN/EDIFACT EDI <
    Useful EDI Programs
    .NET
    Security X12.58
    EDI Transmission

  Purchase

  Support

  About EDIdEv LLC

EDIdEv - EDI Development
www.edidev.com