Archive for the ‘Segments’ Category
ACK is an Acknowledgement segment. It is commonly found on response transactions to Purchase Orders or 855. It is one of the lines found in the PO1 loop or group. As this line modifies the PO1 line data from the Purchase Order, what it can contain and how that data is handled is important for the stability of the supply chain integration. For clarity, we are going to use the 4010 x12 standard.
(more…)
Friday, October 23rd, 2009
Line Item, Segments No Comments
Like the PO1 segment, IT1 is another line item segment used in the supply chain. This is the line item segment found in invoices. And since invoices make up an important part of a supply chain, I wanted to spend another article on this segment. (IT1 is a group or loop so it is more than just a segment.) In this article we will discuss what data is found on the IT1 segment, and how it should be handled on both inbound and outbound document. For clarity, we are going to use the 4010 x12 standard.
(more…)
Thursday, October 15th, 2009
Segments No Comments
When we are dealing with supply chain or e-commerce related EDI, we probably will deal with line item data. On a Purchase Order, (PO) or 850, the line item data is contained on the PO1 segment or the PO1 group. (PO1 is a group or loop so it is more than just a segment.) In this article we will discuss what data is found on the PO1 segment, and how it should be handled on both inbound and outbound document. For clarity, we are going to use the 4010 x12 standard. The PO1 hasn’t changed in content for a while, but it has gotten longer, (you will see how this works when we talk about the PO1 elements). (more…)
Friday, October 2nd, 2009
EDI, Elements, Segments No Comments
In EDI there is a construct called a Loop. But this is not like you think of a loop using an while statement. EDI is a file format, not a programming language. When we speak of Loops in EDI, what we are really talking about is repeated structures, or segments.
EDI is not a flat file, but it does have repeated lines or segments. Some times this repetition comes in groups and sometimes its just a line that get repeated in part of the document. Repeating structured data is fundamental to EDI, but can become difficult to interpret at times. Understanding the types of repeating structures and when and where they may occur can save a lot of time. (more…)
Sunday, June 28th, 2009
Segments No Comments
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. (more…)
Tuesday, May 26th, 2009
EDI, Envelope, ST, Segments 1 Comment
EDI in its proper form is wrapped. This means that there is nothing between the segment terminator and the beginning of the next segment. Sometimes this is hard to read, for humans anyway. And at those times people will unwrap the EDI so that it looks more like a flat file. This is not hard to do, and is useful for debugging and trouble shooting processes. A good parser or validator should be able to read either file. (more…)
Monday, May 18th, 2009
EDI, Segments No Comments
What is an Element?
In the context of delimited data files, an element is the contents between two delimiters. Like in a spreadsheet, the element is the contents of a cell. In EDI, we have delimited segments, and just like a delimited file, the contents between the delimiters is the element.
So in this segment “PO1*1*8*EA*10**SW*H11510.REF*CT*089480-00-B-0336~”, the 5th element or PO1_04 is “10″, while the 6th element or PO1_05 is empty.
Empty elements are not necessarily null. Calling something null when the data type is know like an empty element can cause some data theory debates. I don’t want to start one here, but may write about that philosophical discussion at a later time.
(more…)
Tuesday, January 13th, 2009
Elements No Comments
Beyond just compliance with the EDI standards, good form is using good practices in planing the format of your EDI. Below are a set of rules or guidelines that will help you create EDI in good form. Good form helps others to received your EDI and process it without encountering common exceptions.
Eliminate trailing delimiters.
When EDI was first created, modems were much slower, and high speed internet and Wi-Fi didn’t exist. Moving large, verbose files over a network took time, and e-commerce solutions charged by the kilo-character. This means that having unneeded characters cost money. (more…)
Tuesday, August 19th, 2008
Delimiters, EDI, Segments 3 Comments
Why are segments Important?
The segment is what makes an EDI file an EDI file. They are at the very heart of EDI. There are hundreds of different types of segments and each holds a different type of data.
N1^BT^Bill Gates^01^123456789~
For instance the ‘N1′ segments holds some common data that is used in many EDI documents. First, the ‘N1′ type. This is the name type. The first elements following is the qualifier for the second field. If this is were an invoice it might be the code ‘BT’ indicating that the value in the second field is the name of the “Bill To’ party, in this case ‘Bill Gates’. Following the name is another qualifier that determines the type of the account number in the fourth filed. In this case we will use the DUNS Number, and so on. We stop now with the segment terminator to indicate to the parser that the next character will start a new segment. (more…)
Tuesday, August 12th, 2008
EDI, Segments No Comments
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 them. I also hope that people reading here may have questions that I haven’t thought to write about. Please let me know what your questions are and I will see what I can do about providing answers.
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
roy@TheIntegrationEngineer.com and i will see what I can do.
Thursday, August 7th, 2008
Delimiters, EDI, EDI Primer, Elements, Envelope, GS, ISA, ST, Segments No Comments