SeanHoppe.com > CLEO Tips > Cleo EDI Integrator > EXTOL Integrator - Performing Multiple Writes in a Single EDI Segment

EXTOL Integrator - Performing Multiple Writes in a Single EDI Segment

31st October 2013

There are time in EXTOL EDI Integrator (EEI) that we need to perform multiple writes to table/file, for a single segment.

Take the MSG segment and how data is sent in the MSG02 element. The MSG01 segment is 248 characters in length but our field: ENNTE is ONLY 60 characters in length.

In the example below we are capturing

  • The first 60 characters in the first MSG02 instance - position 1 thru 60
  • The 2nd set of 60 characters in the 2nd MSG02 instance - position 61 thru 120
  • The 3rd set of 60 characters in the 3rd MSG02 instance - position 121 thru 180
  • The 4th set of 60 characters in the 4th MSG02 instance - position 181 thru 240

image

Example of how we map multiple writes to a single segment



Copyright 2013 @ www.seanhoppe.com


By: on
load('http://www.seanhoppe.com/EXTOL-Blog-Feed2/'); $feed2 = array(); foreach ($rss2->getElementsByTagName('item') as $node2) { $item2 = array ( 'title' => $node2->getElementsByTagName('title')->item(0)->nodeValue, 'desc' => $node2->getElementsByTagName('description')->item(0)->nodeValue, 'link' => $node2->getElementsByTagName('link')->item(0)->nodeValue, 'date' => $node2->getElementsByTagName('pubDate')->item(0)->nodeValue, ); array_push($feed2, $item2); } $limit2 = 5; $rss3 = new DOMDocument(); $rss3->load('http://www.ebithree.com/EBIThree-RSS/'); $feed3 = array(); foreach ($rss3->getElementsByTagName('item') as $node3) { $item3 = array ( 'title' => $node3->getElementsByTagName('title')->item(0)->nodeValue, 'link' => $node3->getElementsByTagName('link')->item(0)->nodeValue, ); array_push($feed3, $item3); } $limit3 = 5; $rss4 = new DOMDocument(); //$rss4->load('http://www.ebithree.com/EBIThree-RSS/'); $rss4->load('http://www.ebiworld.com/EBI-Feed/'); $feed4 = array(); foreach ($rss4->getElementsByTagName('item') as $node4) { $item4 = array ( 'title' => $node4->getElementsByTagName('title')->item(0)->nodeValue, 'link' => $node4->getElementsByTagName('link')->item(0)->nodeValue, ); array_push($feed4, $item4); } $limit4 = 5; echo ' '; ?>