Looping

The concept of looping refers to the repetition of a given segment or transaction set in one EDI record.

ISA*00*          *00*          *08*6120930000     *12*9197472911     *06071
0*192
5*U*00401*000000258*0*P*<~
GS*PO*6120930000*9197472911*20060710*1925*258*X*004010~
ST*850*2580001~
BEG*00*SA*1005061183**20060710~
REF*IA*513141~
CSH*N~
SAC*N**VI*OHNS~
ITD*08**1.000**10**30*****1.000 % 10 Net 30~
DTM*001*20060729~
DTM*010*20060722~

N1*BY*TSC*92*1113~
N3*115 GREYSTONE POWER BOULEVARD~
N4*DALLAS*GA*30157~
PO1*10*12*EA*3.14**IN*2405670*VN*1057*UP*023851010578~
CTT*1~
SE*14*2580001~
GE*1*258~
IEA*1*000000258~

  • Here, the DTM segment demonstrates looping as it is repeated twice. In this example, the first DTM occurance signifies the "Cancel After Date," while the second signals the "Requested Ship Date." These are sample values that may be decided by referencing the corresponding trading partner's EDI Guide.

Looping may also be used to allow an EDI record to contain more than one transaction. For example, two purchase orders could be contained in one EDI record when the purchase order set is repeated within the text of the record.

Next Page
Previous Page
Table of Contents