<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Integration Engineer &#187; Envelope</title>
	<atom:link href="http://www.theintegrationengineer.com/category/edi/envelope-edi/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theintegrationengineer.com</link>
	<description>When it just has to work.</description>
	<lastBuildDate>Tue, 27 Jul 2010 17:33:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The EDI Primer</title>
		<link>http://www.theintegrationengineer.com/the-edi-primer/</link>
		<comments>http://www.theintegrationengineer.com/the-edi-primer/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 19:32:20 +0000</pubDate>
		<dc:creator>Roy</dc:creator>
				<category><![CDATA[Delimiters]]></category>
		<category><![CDATA[EDI]]></category>
		<category><![CDATA[EDI Primer]]></category>
		<category><![CDATA[Elements]]></category>
		<category><![CDATA[Envelope]]></category>
		<category><![CDATA[GS]]></category>
		<category><![CDATA[ISA]]></category>
		<category><![CDATA[ST]]></category>
		<category><![CDATA[Segments]]></category>
		<category><![CDATA[b2b]]></category>
		<category><![CDATA[convention]]></category>
		<category><![CDATA[Element Notation]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[Enveloping]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[Good Form]]></category>
		<category><![CDATA[hierarchial]]></category>
		<category><![CDATA[loops]]></category>
		<category><![CDATA[notation]]></category>
		<category><![CDATA[Specification]]></category>
		<category><![CDATA[Unwrapped]]></category>
		<category><![CDATA[usage]]></category>
		<category><![CDATA[values]]></category>
		<category><![CDATA[version]]></category>
		<category><![CDATA[Wrapped]]></category>

		<guid isPermaLink="false">http://www.theintegrationengineer.com/?p=6</guid>
		<description><![CDATA[For those who may be unfamiliar with the EDI standard, and those who may have used EDI but have encountered a new, unfamiliar question.
This introduction aims at addressing the basic questions of convention and implementation of the EDI technology.  I have a list of topics, and hope that over time I can cover all of [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-18" title="pipes" src="http://www.theintegrationengineer.com/wp-content/uploads/2008/08/pipes.gif" alt="pipes The EDI Primer" width="76" height="95" />For those who may be unfamiliar with the EDI standard, and those who may have used EDI but have encountered a new, unfamiliar question.</p>
<p>This introduction aims at addressing the basic questions of convention and implementation of the EDI technology.  I have a list of topics, and hope that over time I can cover all of them.  I also hope that people reading here may have questions that I haven&#8217;t thought to write about.  Please let  me know what your questions are and I will see what I can do about providing answers.<span id="more-6"></span></p>
<ul>
<li><a href="http://www.theintegrationengineer.com/what-is-edi/">What is EDI?</a></li>
<li><a href="http://www.theintegrationengineer.com/the-parts-of-edi/">Parts of EDI</a></li>
<li><a href="http://www.theintegrationengineer.com/edi-segments/">Segments</a></li>
<li><a href="http://www.theintegrationengineer.com/edi-delimiters/">Delimiters</a></li>
<li>Conventions of EDI</li>
<li><a href="http://www.theintegrationengineer.com/why-are-there-more-than-one-version-of-edi/">Why are there more than one version of EDI?</a></li>
<li><a href="http://www.theintegrationengineer.com/usage-of-edi-specifications/">Standards and Usage</a></li>
<li>Encoded Values</li>
<li><a href="http://www.theintegrationengineer.com/edi-in-good-form/">EDI in Good Form</a></li>
<li><a href="http://www.theintegrationengineer.com/edi-elements/">Element Notation</a></li>
<li><a href=" http://www.theintegrationengineer.com/edi-wrapped-and-unwrapped/">Wrapped and Unwrapped EDI</a></li>
<li><a href="http://www.theintegrationengineer.com/edi-enveloping-part-one/">Enveloping Part One</a></li>
<li><a href="http://www.theintegrationengineer.com/edi-enveloping-part-two-the-isa/">Enveloping Part Two &#8211; ISA<br />
</a></li>
<li><a href="http://www.theintegrationengineer.com/edi-enveloping-part-three-the-gs">Enveloping Part Three &#8211; GS</a></li>
<li><a href="http://www.theintegrationengineer.com/edi-enveloping…rt-four-the-st/">Enveloping Part Four &#8211; ST</a></li>
<li><a href="http://www.theintegrationengineer.com/edi-repeated-segments/">Loops in EDI</a></li>
<li>Hierarchical Levels</li>
</ul>
<p>Of course understanding how EDI presents and represents data is the first step.  From here we may want to go to our Data Mapping Guide, or if we are familiar with mapping there are some examples in our mapping case studies of EDI to and from other formats.  Again, if you have an interesting problem or solution, I would love to here about it.  Please send it to<br />
<a href="mailto:roy@TheIntegrationEngineer.com">roy@TheIntegrationEngineer.com</a> and I will see what I can do.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theintegrationengineer.com/the-edi-primer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EDI Enveloping Part Four (The ST)</title>
		<link>http://www.theintegrationengineer.com/edi-enveloping-part-four-the-st/</link>
		<comments>http://www.theintegrationengineer.com/edi-enveloping-part-four-the-st/#comments</comments>
		<pubDate>Tue, 26 May 2009 16:00:44 +0000</pubDate>
		<dc:creator>Roy</dc:creator>
				<category><![CDATA[EDI]]></category>
		<category><![CDATA[Envelope]]></category>
		<category><![CDATA[ST]]></category>
		<category><![CDATA[Segments]]></category>
		<category><![CDATA[b2b]]></category>
		<category><![CDATA[Control Numbers]]></category>
		<category><![CDATA[counter]]></category>
		<category><![CDATA[Document]]></category>
		<category><![CDATA[Document Identifier]]></category>
		<category><![CDATA[Document Type]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[SE]]></category>
		<category><![CDATA[segment counter]]></category>
		<category><![CDATA[ST-SE]]></category>

		<guid isPermaLink="false">http://www.theintegrationengineer.com/?p=124</guid>
		<description><![CDATA[The 3rd layer of the EDI envelope is the ST segment.  The ST segment contains a Document Identifier, and a control number. The ST and its partner the SE segment define the beginning and ending of the Document.  The SE segment contains a counter of segments within the document, and the corresponding control number to [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-129" title="scroll" src="http://www.theintegrationengineer.com/wp-content/uploads/2009/05/scroll.jpg" alt="scroll EDI Enveloping Part Four (The ST)" width="76" height="101" />The 3rd layer of the EDI envelope is the ST segment.  The ST segment contains a Document Identifier, and a control number. The ST and its partner the SE segment define the beginning and ending of the Document.  The SE segment contains a counter of segments within the document, and the corresponding control number to the ST.  Relatively simple compared to the ISA and the GS.<span id="more-124"></span></p>
<p><strong>Document Identifier</strong></p>
<p>The document Identifier is not encoded.  That is to say, for an 850 the ST document ID is &#8220;850&#8243;.  For an 810, the Document Identifier is &#8220;810&#8243; and so on.  Thus if you open an EDI file, and don&#8217;t recognize the GS_01, skip to the ST_01 and it will tell you what standard you will need to find to read this document.</p>
<p>Good form would dictate that the GS_01 and the ST_01 would specify the same type of document.  The GS would specify it on a functional level, and the ST on the standard level.  Thus they would not be identical strings but would indeed convey the same message about what the document(s) would be.  Some EDI translator or processing software will validate this relationship and some may not.  But in the end consistency is the best policy.</p>
<p><strong>Control Number</strong></p>
<p>The control number is different for the ST than we saw in both the ISA and GS.  The ST_02 is a 3 to 9 digit number.  This means that it will start with 001 not 000000001.  Of course you can still use a 000000001 but don&#8217;t be surprised when you see less than 9 digits in the ST-SE control number.  Whichever you chose, you must do the same for both the ST and SE.</p>
<p>(Using 000 or 000000000 may be allowed, but is not recommended as any application that trims the zeroes will get an empty string and produce an error.  Be nice and only use values greater than zero.)</p>
<p><strong>Segment Counter</strong></p>
<p>The SE segment counter is the part of the ST-SE that gives people hand editing an EDI document the most trouble.  If the counter is inaccurate it indicates that the document is corrupted.  This should fail in all good translators as processing a corrupt EDI file is saying, &#8220;Its okay if we get bad data.&#8221;  This counter represents the number of segment between the ST and before the SE.</p>
<p>And it is just that simple.  Remember that you can have more than one GS-GE envelope inside an ISA-IEA, and you can have more than one ST-SE inside a GS-GE, but you can only have one document of one type in side a ST-SE envelope.</p>
<p>–</p>
<p>For an overview of Enveloping go <a href="http://www.theintegrationengineer.com/edi-enveloping-part-one/">here</a>.</p>
<p>Looking for the <a href="http://www.theintegrationengineer.com/edi-enveloping-part-two-the-isa/">ISA enveloping page</a>?</p>
<p>Looking for the  <a href="http://www.theintegrationengineer.com/edi-enveloping-part-three-the-gs">GS enveloping page?</a></p>
<p>Looking for something else relating to EDI?  Check out the <a href="http://www.theintegrationengineer.com/the-edi-primer/">EDI Primer</a> post</p>
<p><object id="Player_b2b49725-0564-4e90-a2d5-2f349cb25499" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400px" height="150px" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&amp;MarketPlace=US&amp;ID=V20070822%2FUS%2Ftheinteengi-20%2F8010%2Fb2b49725-0564-4e90-a2d5-2f349cb25499&amp;Operation=GetDisplayTemplate" /><param name="name" value="Player_b2b49725-0564-4e90-a2d5-2f349cb25499" /><param name="align" value="middle" /><embed id="Player_b2b49725-0564-4e90-a2d5-2f349cb25499" type="application/x-shockwave-flash" width="400px" height="150px" src="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&amp;MarketPlace=US&amp;ID=V20070822%2FUS%2Ftheinteengi-20%2F8010%2Fb2b49725-0564-4e90-a2d5-2f349cb25499&amp;Operation=GetDisplayTemplate" align="middle" name="Player_b2b49725-0564-4e90-a2d5-2f349cb25499" allowscriptaccess="always" bgcolor="#FFFFFF" quality="high"></embed></object> <noscript><A HREF="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&#038;MarketPlace=US&#038;ID=V20070822%2FUS%2Ftheinteengi-20%2F8010%2Fb2b49725-0564-4e90-a2d5-2f349cb25499&#038;Operation=NoScript" mce_HREF="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&amp;MarketPlace=US&amp;ID=V20070822%2FUS%2Ftheinteengi-20%2F8010%2Fb2b49725-0564-4e90-a2d5-2f349cb25499&amp;Operation=NoScript">Amazon.com Widgets</A></noscript></p>
]]></content:encoded>
			<wfw:commentRss>http://www.theintegrationengineer.com/edi-enveloping-part-four-the-st/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>EDI Enveloping Part Three (The GS)</title>
		<link>http://www.theintegrationengineer.com/edi-enveloping-part-three-the-gs/</link>
		<comments>http://www.theintegrationengineer.com/edi-enveloping-part-three-the-gs/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 17:04:07 +0000</pubDate>
		<dc:creator>Roy</dc:creator>
				<category><![CDATA[EDI]]></category>
		<category><![CDATA[GS]]></category>
		<category><![CDATA[b2b]]></category>
		<category><![CDATA[Envelope]]></category>
		<category><![CDATA[Enveloping]]></category>

		<guid isPermaLink="false">http://www.theintegrationengineer.com/?p=47</guid>
		<description><![CDATA[What is the GS segment?
The GS segment is the second mandatory enveloping segment.  It shares some properties with the ISA segment.  There is a sender and receiver, version Identifier, time stamp and control number.  But one thing that the GS has that the ISA does not is a Functional Identifier.
That&#8217;s right, Functional.  This means that [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-48" title="scratch-head" src="http://www.theintegrationengineer.com/wp-content/uploads/2008/10/scratch-head.jpg" alt="scratch head EDI Enveloping Part Three (The GS)" width="105" height="78" /><strong>What is the GS segment?</strong></p>
<p>The GS segment is the second mandatory enveloping segment.  It shares some properties with the <a href="http://www.theintegrationengineer.com/edi-enveloping-part-two-the-isa/">ISA segment</a>.  There is a sender and receiver, version Identifier, time stamp and control number.  But one thing that the GS has that the ISA does not is a Functional Identifier.</p>
<p>That&#8217;s right, Functional.  This means that within the GS envelope are only EDI messages or documents that have the same function.<span id="more-47"></span></p>
<p>Here is a GS segment:</p>
<p>GS*PO*901234572000*908887732000*081031*0835*1*T*004010!</p>
<p>Like all <a href="http://www.theintegrationengineer.com/edi-segments/">segments</a>, the first element is 0 and identifies the segment type.  This segment has a GS in this element, making it a GS segment.</p>
<p>Unlike the ISA segment, that does not change in any way from standard to standard, the GS may change a bit.</p>
<p>Here are the definitions of the GS segment for the 3020 X12 standard:</p>
<p><img class="aligncenter size-full wp-image-49" title="gs_elementdef_3020" src="http://www.theintegrationengineer.com/wp-content/uploads/2008/11/gs_elementdef_3020.jpg" alt="gs elementdef 3020 EDI Enveloping Part Three (The GS)" width="606" height="214" /></p>
<p>There are 8 elements.</p>
<p>And here is the definitions of the GS segment for the 4010 X12 standard:</p>
<p><img class="aligncenter size-full wp-image-50" title="gs_elementdef_4010" src="http://www.theintegrationengineer.com/wp-content/uploads/2008/11/gs_elementdef_4010.jpg" alt="gs elementdef 4010 EDI Enveloping Part Three (The GS)" width="615" height="219" /></p>
<p>Again there are 8 elements.</p>
<p>Now look at the size of the Date and Time elements in GS_04 and GS_05.  In the 3020 version, the Date is 6 char, and in 4010 it is 8 char.  The time also grows from a 6 to a possible 8 char size.</p>
<p>Version 4010 was considered the Y2K standard where the dates moved from a 6 char date, to and 8 char date to accommodate the century change.</p>
<p>Other than this change, the GS segments and usage are the same.</p>
<p><strong>Element by Element</strong></p>
<p><span style="color: #3366ff;">GS_01</span> is the Functional Identifier.  This designates the type of messages this envelope contains.  If it contains Purchase Orders, the GS_01 is &#8220;PO&#8221;  if it contains Invoices, it is &#8220;IN&#8221; as so forth.</p>
<p><span style="color: #3366ff;">GS_02</span> is the Sender Identifier.  This does not have to be the same as the <a href="http://www.theintegrationengineer.com/edi-enveloping-part-two-the-isa/">ISA</a> Sender, but it can be.  This element has the same restrictions on content, a 15 character alpha-numeric.  But unlike the ISA sender, this one is not fixed in size.  This means that the delimiters fit around the value without including any white space.  In many basic implementations, the value in the ISA sender, and the GS sender are the same value.</p>
<p><span style="color: #3366ff;">GS_03</span> is the Receiver Identifier.  This does not have to be the same as the <a href="http://www.theintegrationengineer.com/edi-enveloping-part-two-the-isa/">ISA</a> receiver, but it can be.  This element has the saem restrictions on content, a 15 character alpha-numeric.  But unlike the ISA sender, this one is not fixed in size.  This means that the delimiters fit around the values without including any white space.  In many basic implementations, the values in the ISA receiver and the GS receiver are the same value.</p>
<p><span style="color: #3366ff;">GS_04</span> is the Date.  It should be the date of the creation of the GS envelope.  Many times it is the same date as the ISA date.</p>
<p><span style="color: #3366ff;">GS_05</span> is the Time.  It should be the time of the creation of the GS envelope.  Many times it is the same as the ISA time.</p>
<p><span style="color: #3366ff;">GS_06</span> is the Control Number.  This is a 1 to 9 numeric value.  This is a number that needs to be unique inside the ISA envelope only.  Some implementations use an incrementing number that increments with the usage like the ISA control number.  Others just have a count of the number of GS envelopes inside an ISA.  Both are acceptable.  All that is required is that the GS control number be unique among other GS control numbers within the ISA envelope that it is contained in.</p>
<p><span style="color: #3366ff;">GS_07</span> is the Agency Code.  Basically for any X12 document that will be &#8220;T&#8221; or &#8220;X&#8221;.  I have only seen &#8220;X&#8221; indicating that it is really using X12.  Even when it is not.  Most of the time I ignore this value.</p>
<p><span style="color: #3366ff;">GS_08</span> is a Version identification value.  Just like the <a href="http://www.theintegrationengineer.com/edi-enveloping-part-two-the-isa/">ISA_12</a>, this identifies the standard, but identifies it to the next level.  Thus if you are 4010, this will be 004010 and so on.</p>
<p><strong>Too Much?</strong></p>
<p>No problem, there are really a few things to pay attention to as you begin to work with GS envelopes.  And if you are just needing to do a quick edit and resubmit you may not need to do much.</p>
<ul>
<li>Pay attention to the GS_02 and GS_03, these are the sender and receiver and need to be conrect to route documents and match with the profile for most systems.</li>
<li>Make sure the GS_01 is the type of document that you are really sending.  Some systems get cranky when they get an Invoice in a Purchase Order envelope.</li>
<li>And as always, make sure your GS and GE control numbers match and are unique inside the ISA-IEA envelope.</li>
</ul>
<p>–</p>
<p>For an overview of Enveloping go <a href="http://www.theintegrationengineer.com/edi-enveloping-part-one/">here</a>.</p>
<p>Looking for the <a href="http://www.theintegrationengineer.com/edi-enveloping-part-two-the-isa/">ISA enveloping page</a>?</p>
<p>Looking for the <a href="http://www.theintegrationengineer.com/edi-enveloping-part-four-the-st/">ST enveloping page</a>?</p>
<p>Looking for something else relating to EDI?  Check out the <a href="http://www.theintegrationengineer.com/the-edi-primer/">EDI Primer</a> post</p>
<p><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" id="Player_05c95da9-4dbe-4ee8-9e7f-c5da5f522b61"  WIDTH="400px" HEIGHT="150px"> <PARAM NAME="movie" VALUE="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%2Ftheinteengi-20%2F8010%2F05c95da9-4dbe-4ee8-9e7f-c5da5f522b61&Operation=GetDisplayTemplate"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#FFFFFF"><PARAM NAME="allowscriptaccess" VALUE="always"><embed src="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%2Ftheinteengi-20%2F8010%2F05c95da9-4dbe-4ee8-9e7f-c5da5f522b61&Operation=GetDisplayTemplate" id="Player_05c95da9-4dbe-4ee8-9e7f-c5da5f522b61" quality="high" bgcolor="#ffffff" name="Player_05c95da9-4dbe-4ee8-9e7f-c5da5f522b61" allowscriptaccess="always"  type="application/x-shockwave-flash" align="middle" height="150px" width="400px"></embed></OBJECT> <NOSCRIPT><A HREF="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%2Ftheinteengi-20%2F8010%2F05c95da9-4dbe-4ee8-9e7f-c5da5f522b61&Operation=NoScript">Amazon.com Widgets</A></NOSCRIPT></p>
]]></content:encoded>
			<wfw:commentRss>http://www.theintegrationengineer.com/edi-enveloping-part-three-the-gs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>EDI Enveloping Part Two (The ISA)</title>
		<link>http://www.theintegrationengineer.com/edi-enveloping-part-two-the-isa/</link>
		<comments>http://www.theintegrationengineer.com/edi-enveloping-part-two-the-isa/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 20:16:14 +0000</pubDate>
		<dc:creator>Roy</dc:creator>
				<category><![CDATA[EDI]]></category>
		<category><![CDATA[Envelope]]></category>
		<category><![CDATA[ISA]]></category>
		<category><![CDATA[b2b]]></category>

		<guid isPermaLink="false">http://www.theintegrationengineer.com/?p=29</guid>
		<description><![CDATA[What is in the ISA?
The ISA Segment is the first segment in any EDI document.  Once you understand what it is saying, This long random seeming string will make sense, and be very helpful in helping you relate EDI documents to the real world task that you need to do.
Here is an ISA segment.
ISA^00^   [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-33" title="question-key" src="http://www.theintegrationengineer.com/wp-content/uploads/2008/09/question-key.jpg" alt="question key EDI Enveloping Part Two (The ISA)" width="89" height="89" /><strong>What is in the ISA?</strong></p>
<p>The ISA Segment is the first segment in any EDI document.  Once you understand what it is saying, This long random seeming string will make sense, and be very helpful in helping you relate EDI documents to the real world task that you need to do.<span id="more-29"></span></p>
<p>Here is an ISA segment.</p>
<p>ISA^00^          ^00^          ^01^9012345720000  ^01^9088877320000  ^080902^1523^U^00401^000000001^0^T^|~</p>
<p>This is one long string, there is no linefeed or line break.</p>
<p>Like all <a href="http://www.theintegrationengineer.com/edi-segments/">segments</a>, the first element is 0 and identifies the segment type.  This is an ISA segment.</p>
<p>There are 16 ISA elements, here are the definition for the ISA</p>
<p><img class="aligncenter size-full wp-image-32" title="isa_elementdef1" src="http://www.theintegrationengineer.com/wp-content/uploads/2008/09/isa_elementdef1.jpg" alt="isa elementdef1 EDI Enveloping Part Two (The ISA)" width="500" height="360" /></p>
<p style="padding-left: 30px;"><strong>A note on Qualifiers</strong></p>
<p style="padding-left: 30px;">A qualifier is an element that precedes an element and defines the type of data will be found in the element that it precedes.  The Qualifier element is also an encoded element.  Encoded elements are elements that have a defined set of possible values.</p>
<p style="padding-left: 30px;">The Unit Of Measure is my favorite example of a qualifier.  The UOM precedes the quantity.  Thus when you have a quantity of 5, your will know that it is 5 boxes not five containers or eaches by knowing what the UOM qualifier is for that quantity.  For the Unit Of Measure, there is a specific set of them and what they mean.</p>
<p><strong>Element by Element</strong></p>
<p><span style="color: #3366ff;">ISA_01</span> is a qualifier.  The Authorization Information Qualifier can be one of 7 values from 00 to 06.  Most of the time it is 00 which means that ISA_02 will not contain meaningful data.  This field must be populated with one of these values.</p>
<p><span style="color: #3366ff;">ISA_02</span> is for Authorization Information.  If the ISA_01 is 00, this will normally be left blank.  If ISA_01 is one of the other 6 valid values, this field must be populated.  The value here will be used to determine the authorization of the document.  I have only seen this used with one trading partner.  You might not see this at all.</p>
<p><span style="color: #3366ff;">ISA_03</span> is also a Qualifier.  It is the Security Information Qualifier and can be one of two values, 00 or 01.  Most of the time it is 00 which means that ISA_04 contains no password.  This field must be populated with one of these values.</p>
<p><span style="color: #3366ff;">ISA_04</span> is for Security Information.  This is also called the password.  If the ISA_03 is 01, this must contain a value.  Most of the time this will be blank.</p>
<p><span style="color: #3366ff;">ISA_05</span> is an Interchange ID Qualifier.  There are two of these.  They qualify or define the Interchange ID field that they precede.  These are required to be present.  There are 41 valid options, and I won&#8217;t define them all here.  Some common usages are:</p>
<p style="padding-left: 150px;">01 = DUNS number</p>
<p style="padding-left: 150px;">12 = Phone number</p>
<p style="padding-left: 150px;">14 = Duns Number with Suffix</p>
<p style="padding-left: 150px;">16 = DUNS with 4 character suffix</p>
<p style="padding-left: 150px;">ZZ = mutually defined.</p>
<p><span style="color: #3366ff;">ISA_06</span> is the Sender&#8217;s Interchange Identifier.  This value will identify the sender to the receiver.  The receiver should have this as a unique value.  Thus some times it is necessary to have more than one option in case the value you have chosen is already in used by some other Trading Partner that the receiver exchanges documents with.</p>
<p><span style="color: #3366ff;">ISA_07</span> is an Interchange ID Qualifier.  It follows the same rule as ISA_05 but qualifies the receiver instead of the sender.</p>
<p><span style="color: #3366ff;">ISA_08</span> is the Receiver&#8217;s Interchange Identifier.  This values tells the sender&#8217;s system where the message is going, and tells the receiver&#8217;s system that this message is for them.  The sender will need to have a unique value for each trading partner.</p>
<p><span style="color: #3366ff;">ISA_09</span> is the Interchange date.  This is the date that the ISA envelope is created.  Sometimes this value is derived from the contents of the document, but ideally this should be the date of the interchange envelope.<br />
<img class="alignright size-medium wp-image-31" title="tick_tock" src="http://www.theintegrationengineer.com/wp-content/uploads/2008/09/tick_tock.jpg" alt="tick tock EDI Enveloping Part Two (The ISA)" width="95" height="72" /><br />
<span style="color: #3366ff;">ISA_10</span> is the interchange time.  This is the time that the ISA envelope is created. Sometimes this values is derived from the document, or is defaulted to midnight.  Ideally this should be the time of the interchange envelope.</p>
<p><span style="color: #3366ff;">ISA_11</span> is the Standard Identifier.  This will always be &#8216;U&#8217; identifying this as the US EDI standard.</p>
<p><span style="color: #3366ff;">ISA_12</span> is the Standard Version Number.  This relates to the major version of the EDI standard that is used.  This value needs to be accurate so that the receiver&#8217;s EDI system can expect the right size of fields in the GS segments.  This may not look like what it is, as you see this &#8216;00401&#8242; for a version of &#8216;4010&#8242;.  This only identifies the major version, not distinguishing between 4010, 4011 and 4012.</p>
<p><span style="color: #3366ff;">ISA_13</span> is the Interchange control number.  This is the way that an EDI system identifies the envelope.  This control number should not be random, but an incrementing number.  It is 9 digits padded with zeroes.  The combination of ISA Sender and Receiver Identifiers and the Control number should identify a distinct interchange transmission.  When 9 &#8216;9&#8217;s are reached, the control number should roll back to 1. Nine zeros should be avoided as some systems that may internally trim the zeros will them be presented with a null value.</p>
<p><span style="color: #3366ff;">ISA_14</span> is the Acknowledgment Request.  This lets the EDI file make a request for a functional acknowledgment or 997 to be transmitted. This is a binary option of 0 meaning &#8220;don&#8217;t send a 997.&#8221;  and 1 meaning &#8220;send a 997.&#8221;  In a perfect world any ISA with a 1 in this would get a 997 returned.  In the real world, most EDI systems require some setup to enable the 997, thus it is good to discuss this before sending the request.</p>
<p><span style="color: #3366ff;">ISA_15</span> is the usage indicator.  This can be one of three values.  P is for Production Data, T is for Test Data, and I is for Information Definition.  This is important as a EDI system should only process interchanges with the P as production data.</p>
<p><span style="color: #3366ff;">ISA_16</span> are the delimiters.  You may remember from the <a href="http://www.theintegrationengineer.com/edi-delimiters/">delimiter</a> discussion that these are in a fixed position.</p>
<p><strong>Too Much?</strong></p>
<p>Really there are only a few things that you need to worry about as you start working with EDI and the ISA.  If you are just needing to do a quick edit for a test or to resubmit a document, here is what is important.</p>
<ul>
<li>Pay attention to the ISA_05, 06, 07 and 08.  These are the sender and receiver fields.</li>
<li>Increment you control numbers to make sure that you EDI files don&#8217;t get booted as dupes.</li>
<li>Make sure the ISA and IEA have matching control numbers.</li>
</ul>
<p>&#8211;</p>
<p>There&#8217;s more!  Now we explain the <a href="http://www.theintegrationengineer.com/edi-enveloping-part-three-the-gs">GS envelope.</a></p>
<p>For an overview of Enveloping go <a href="http://www.theintegrationengineer.com/edi-enveloping-part-one/">here</a>.</p>
<p>Looking for the <a href="http://www.theintegrationengineer.com/edi-enveloping-part-four-the-st/">ST enveloping page</a>?</p>
<p>Looking for something else relating to EDI?  Check out the <a href="http://www.theintegrationengineer.com/the-edi-primer/">EDI Primer</a> post</p>
<p><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" id="Player_05c95da9-4dbe-4ee8-9e7f-c5da5f522b61"  WIDTH="400px" HEIGHT="150px"> <PARAM NAME="movie" VALUE="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%2Ftheinteengi-20%2F8010%2F05c95da9-4dbe-4ee8-9e7f-c5da5f522b61&Operation=GetDisplayTemplate"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#FFFFFF"><PARAM NAME="allowscriptaccess" VALUE="always"><embed src="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%2Ftheinteengi-20%2F8010%2F05c95da9-4dbe-4ee8-9e7f-c5da5f522b61&Operation=GetDisplayTemplate" id="Player_05c95da9-4dbe-4ee8-9e7f-c5da5f522b61" quality="high" bgcolor="#ffffff" name="Player_05c95da9-4dbe-4ee8-9e7f-c5da5f522b61" allowscriptaccess="always"  type="application/x-shockwave-flash" align="middle" height="150px" width="400px"></embed></OBJECT> <NOSCRIPT><A HREF="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%2Ftheinteengi-20%2F8010%2F05c95da9-4dbe-4ee8-9e7f-c5da5f522b61&Operation=NoScript">Amazon.com Widgets</A></NOSCRIPT></p>
]]></content:encoded>
			<wfw:commentRss>http://www.theintegrationengineer.com/edi-enveloping-part-two-the-isa/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>EDI Enveloping Part One</title>
		<link>http://www.theintegrationengineer.com/edi-enveloping-part-one/</link>
		<comments>http://www.theintegrationengineer.com/edi-enveloping-part-one/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 16:20:01 +0000</pubDate>
		<dc:creator>Roy</dc:creator>
				<category><![CDATA[EDI]]></category>
		<category><![CDATA[Envelope]]></category>
		<category><![CDATA[b2b]]></category>
		<category><![CDATA[EDI Document]]></category>
		<category><![CDATA[EDI File]]></category>
		<category><![CDATA[Enveloping]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[GS]]></category>
		<category><![CDATA[ISA]]></category>
		<category><![CDATA[ST]]></category>

		<guid isPermaLink="false">http://www.theintegrationengineer.com/?p=27</guid>
		<description><![CDATA[An EDI file contains a structure known as enveloping.  Everything that is necessary for the file transmission and parsing, is part of or inside of the envelope.
The first segment in and EDI file is the ISA segment.  The very last segment in and EDI file is the IEA.  For those of you familiar with XML, [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-28" title="envelope" src="http://www.theintegrationengineer.com/wp-content/uploads/2008/09/envelope-300x87.jpg" alt="envelope 300x87 EDI Enveloping Part One" width="225" height="65" />An EDI file contains a structure known as enveloping.  Everything that is necessary for the file transmission and parsing, is part of or inside of the envelope.</p>
<p>The first segment in and EDI file is the ISA segment.  The very last segment in and EDI file is the IEA.  For those of you familiar with XML, you may be thinking of this as &lt;File&gt; and &lt;/File&gt;.</p>
<p>This approach may make EDI seem familiar, but XML was not around when EDI was being created.  It is more like a Beginning Of File (BOF) and End Of File (EOF) marker.  However, there is no reason in EDI not to place multiple EDI envelopes in the same file.<span id="more-27"></span></p>
<p><strong>Structure of Enveloping</strong></p>
<p>The first part of and EDI envelope is the ISA-IEA.  As explained above, the ISA is the first segment, and the IEA is the last.</p>
<p>Directly below the ISA-IEA is the GS-GE envelope.  The second segment is the GS segment, and the segment before last is the GE segment.</p>
<p>Inside the GS-GE is the ST-SE.  The third segment is always the ST, and the third from last is always the SE.</p>
<p>If we were to explode the envelope, it would look something like this:</p>
<p style="padding-left: 30px;">ISA</p>
<p style="padding-left: 60px;">GS</p>
<p style="padding-left: 90px;">ST</p>
<p style="padding-left: 90px;">(data contents here)</p>
<p style="padding-left: 90px;">SE</p>
<p style="padding-left: 60px;">GE</p>
<p style="padding-left: 30px;">IEA</p>
<p>Three envelopes with three purposes.</p>
<p>If the illustration above were all there was to enveloping.  This would be over.  And it would also be pretty useless.</p>
<p>The ISA segment is the interchange envelope.  It contains information for the envelope and its contents.  The IEA completes the envelope, and contains a matching control number with the ISA and a counter indicating the number of GS-GE envelopes it contains.</p>
<p>The GE segment is the functional level.  It contains an encoded value indicating what the functional purpose is the contents of the GS envelope is.  It also has come functional delivery identifiers.  The GE, like the IEA, has a corresponding control number with the GS, and has a counter of the number of ST envelopes it contains.</p>
<p>The ST is the document level.  It does not contains any sender of receiver identifiers.  It does contains the document number that indicates the document type.  The SE like the IEA and the GE, contains a  corresponding control number with its partner the ST segment.  It also  contains a counter of the number of segments contained in the ST-SE document envelope.</p>
<p>These counter and control numbers serve important functions.  The indicate where the transitions are between logical sets of data, and they ensure that data is not lost in transmission or garbled with the end of one file being paired with the beginning of another.</p>
<p>Based on this, here are some other illustration of the EDI enveloping structures.</p>
<p><strong><em>Example 1:</em></strong></p>
<p style="padding-left: 30px;">ISA</p>
<p style="padding-left: 60px;">GS</p>
<p style="padding-left: 90px;">ST</p>
<p style="padding-left: 90px;">(data contents here)</p>
<p style="padding-left: 90px;">SE</p>
<p style="padding-left: 90px;">ST</p>
<p style="padding-left: 90px;">(data contents here)</p>
<p style="padding-left: 90px;">SE</p>
<p style="padding-left: 60px;">GE</p>
<p style="padding-left: 30px;">IEA</p>
<p><em><strong>Example 2:</strong></em></p>
<p style="padding-left: 30px;">ISA</p>
<p style="padding-left: 60px;">GS</p>
<p style="padding-left: 90px;">ST</p>
<p style="padding-left: 90px;">(data contents here)</p>
<p style="padding-left: 90px;">SE</p>
<p style="padding-left: 60px;">GE</p>
<p style="padding-left: 60px;">GS</p>
<p style="padding-left: 90px;">ST</p>
<p style="padding-left: 90px;">(data contents here)</p>
<p style="padding-left: 90px;">SE</p>
<p style="padding-left: 60px;">GE</p>
<p style="padding-left: 30px;">IEA</p>
<p><em><strong>Example 3:</strong></em></p>
<p style="padding-left: 30px;">ISA</p>
<p style="padding-left: 60px;">GS</p>
<p style="padding-left: 90px;">ST</p>
<p style="padding-left: 90px;">(data contents here)</p>
<p style="padding-left: 90px;">SE</p>
<p style="padding-left: 60px;">GE</p>
<p style="padding-left: 30px;">IEA</p>
<p style="padding-left: 30px;">ISA</p>
<p style="padding-left: 60px;">GS</p>
<p style="padding-left: 90px;">ST</p>
<p style="padding-left: 90px;">(data contents here)</p>
<p style="padding-left: 90px;">SE</p>
<p style="padding-left: 60px;">GE</p>
<p style="padding-left: 30px;">IEA</p>
<p>Each of these represents a valid way to send two EDI documents in the same physical file.</p>
<p>In Example 1, both documents are in the same ISA, therefore they are both going to the same interchagne receiver.  Both are also in the same GS, therefore they are of the same type and going to the same Functional receiver.</p>
<p>In Example 2, both documents are in the same ISA, therefore they are both going to the same interchange receiver.  They are not in the same GS, so they may be of different functional types and or destined for different functional receivers.  Say we receive an shipping notice and an invoice, we could get them together, and route the shipping notice at the GS or functional level to the receiving system.  And then route the invoice at the functional level to the accounting system.</p>
<p>In Example 3, both documents are in their own ISA envelope.  They may be destined for separate interchange entities or the same one.  They may be of different types or the same time.  They may be as different as any two files, but we are illustrating is that documents can be in the same file, and still be separate documents.</p>
<p><strong>Summary</strong></p>
<p>What is important to understand is what enveloping is.  Enveloping is the way EDI ensures file integrity and lets the message determine its destination and type. EDI enveloping segments are required, and follow a pattern that allows for a wide diversity in grouping of data for logical consumption.</p>
<p>Next we will dissect the elements of the enveloping segments, ISA-IEA, GS-GE, ST-SE.  And we will talk about the control numbers an how those relate to functional acknowledgements.</p>
<p>&#8211;</p>
<p>For more specifics on enveloping:</p>
<ul>
<li><a href="http://www.theintegrationengineer.com/edi-enveloping-part-two-the-isa/">Enveloping &#8211; ISA</a></li>
<li><a href="http://www.theintegrationengineer.com/category/edi/envelope-edi/gs-envelope-edi-edi/">Enveloping &#8211; GS</a></li>
<li><a href="http://www.theintegrationengineer.com/edi-enveloping-part-four-the-st/">Enveloping &#8211; ST</a></li>
</ul>
<p>Looking for something else relating to EDI?  Check out the <a href="http://www.theintegrationengineer.com/the-edi-primer/">EDI Primer</a> post</p>
<p><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" id="Player_05c95da9-4dbe-4ee8-9e7f-c5da5f522b61"  WIDTH="400px" HEIGHT="150px"> <PARAM NAME="movie" VALUE="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%2Ftheinteengi-20%2F8010%2F05c95da9-4dbe-4ee8-9e7f-c5da5f522b61&Operation=GetDisplayTemplate"><PARAM NAME="quality" VALUE="high"><PARAM NAME="bgcolor" VALUE="#FFFFFF"><PARAM NAME="allowscriptaccess" VALUE="always"><embed src="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%2Ftheinteengi-20%2F8010%2F05c95da9-4dbe-4ee8-9e7f-c5da5f522b61&Operation=GetDisplayTemplate" id="Player_05c95da9-4dbe-4ee8-9e7f-c5da5f522b61" quality="high" bgcolor="#ffffff" name="Player_05c95da9-4dbe-4ee8-9e7f-c5da5f522b61" allowscriptaccess="always"  type="application/x-shockwave-flash" align="middle" height="150px" width="400px"></embed></OBJECT> <NOSCRIPT><A HREF="http://ws.amazon.com/widgets/q?ServiceVersion=20070822&MarketPlace=US&ID=V20070822%2FUS%2Ftheinteengi-20%2F8010%2F05c95da9-4dbe-4ee8-9e7f-c5da5f522b61&Operation=NoScript">Amazon.com Widgets</A></NOSCRIPT><br />
&#8211;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theintegrationengineer.com/edi-enveloping-part-one/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
