<p>I need to convert an x12 850 v4010 to a x12 940 v4010. Most of the tools convert from x12 to xml then I would need to map the xml to a 940. I am hoping there is a tool that could convert from one edi document to another.</p>

<p>EDIT FOR INFORMATION:</p>

<blockquote>
  <p><a href="http://www.rawlinsecconsulting.com/x12tutorial/index.html" rel="nofollow noreferrer">Quick Background</a></p>
  
  <p>Electronic Data Interchange (EDI) is
  classically defined as the
  application-to-application exchange of
  structured business data between
  organizations. X12 is an ANSI standard
  that supplies that structure. There
  are many good books concerned with the
  business benefits of EDI,
  implementation considerations, and
  operational aspects</p>
</blockquote>

[{'answer_id': 66746, 'author': 'Joel Coehoorn', 'author_id': 3043, 'author_profile': 'https://Stackoverflow.com/users/3043', 'pm_score': 1, 'selected': False, 'text': "<p>Mapping from one doc to another nearly always involves making a number of assumptions that are only <em>probably</em> true, and probably isn't usually good enough when you're talking about moving money around.</p>\n"}, {'answer_id': 66987, 'author': 'FortunateDuke', 'author_id': 453046, 'author_profile': 'https://Stackoverflow.com/users/453046', 'pm_score': 2, 'selected': False, 'text': '<p>Going to give Altova MapForce and Stylus Studio® a try. </p>\n\n<p><a href="http://www.altova.com/downloadtrialmapforce3.html" rel="nofollow noreferrer">http://www.altova.com/downloadtrialmapforce3.html</a></p>\n\n<p><a href="http://www.stylusstudio.com/xml_product_index.html" rel="nofollow noreferrer">http://www.stylusstudio.com/xml_product_index.html</a></p>\n'}, {'answer_id': 191134, 'author': 'Lukáš Rampa', 'author_id': 10560, 'author_profile': 'https://Stackoverflow.com/users/10560', 'pm_score': 1, 'selected': False, 'text': '<p><a href="http://servingxml.sourceforge.net" rel="nofollow noreferrer">Servingxml</a> library is also worth looking at, compared to Altova and Stylus it is FOC.</p>\n\n<p>It is able to parse EDI to XML and back, by chaining the steps together. Can be called from command line or embedded (written in Java).</p>\n\n<p>There is a lot of <a href="http://servingxml.sourceforge.net/examples" rel="nofollow noreferrer">examples</a> how to convert plain text to XML and back.</p>\n\n<p>The con compared to Altova and Stylus is probably lack of development GUI, you must declare the mapping by hand in XML-based configuration file.</p>\n'}, {'answer_id': 234912, 'author': 'Dave', 'author_id': 3095, 'author_profile': 'https://Stackoverflow.com/users/3095', 'pm_score': 1, 'selected': False, 'text': '<p>Also look at Symphonia software by Orion.  It is commercial software but does what you want.</p>\n'}, {'answer_id': 310668, 'author': 'Thomas Hansen', 'author_id': 29746, 'author_profile': 'https://Stackoverflow.com/users/29746', 'pm_score': 1, 'selected': False, 'text': '<p>I was project manager for something called EdiMatch when I worked for adra match asa (Norwegian company, I think it\'s at <a href="http://adramatch.com" rel="nofollow noreferrer">http://adramatch.com</a>) which could read EDI files and then you would get "concrete objects" (COM, Windows only though) back which you could serialize into "whatever" you wish later...</p>\n\n<p>I know they licensed it out to at least Agresso (Norwegian ERP vendor) back when I worked for them. I think they would be interested in licensing it out still to others, but not sure...</p>\n'}, {'answer_id': 314823, 'author': 'Marc Bernier', 'author_id': 23569, 'author_profile': 'https://Stackoverflow.com/users/23569', 'pm_score': 1, 'selected': False, 'text': "<p>I think the problem may be that the 850 won't have all the information necessary to correctly complete a 940. I never used a 940, but did use 856's (Advanced Ship Notice) a lot, which look to be similar to the 940. The 850 will contain information about the order (SKUs, quantities, ship to addresses, etc), but not information about how it was shipped (carrier, tracking ids, ship date, weights, packaging, etc). This information usually needs to be provided at the time of shipment, and combined with the information from the 850 to create a 940.</p>\n\n<p>There are some documents (like the 997) which can be created from a document with no 'outside assistance'. But I would be surprised if the 940 is one of them.</p>\n"}, {'answer_id': 344914, 'author': 'Victor', 'author_id': 42518, 'author_profile': 'https://Stackoverflow.com/users/42518', 'pm_score': 1, 'selected': False, 'text': '<p>Is this a one time conversion or part of a process?</p>\n\n<p>there are a few enterprise integration tools you can use like BizTalk.  </p>\n\n<p>Otherwise, If you can get a hold of the BizTalk 2006 R2 EDI schemas then you could have the XML representation of both documents. Then you could read the nodes for the segments that are common and copy those. I have not used a 940 before, but i am familiar with 810, 309 and its related documents, and 997; but you might have to fill in some of the data yourself to complete the 940 document. </p>\n'}, {'answer_id': 344950, 'author': 'jinsungy', 'author_id': 1316, 'author_profile': 'https://Stackoverflow.com/users/1316', 'pm_score': 1, 'selected': False, 'text': '<p>If you are willing to use a software package to do your EDI to EDI conversion, I would recommend using <a href="http://www.softshare.com/solutions/datatranslation/" rel="nofollow noreferrer">Softshare Delta</a>.  It is actually a great product that I\'ve used for several years.  It will take care of your translation needs, but it isn\'t free.  </p>\n'}, {'answer_id': 353850, 'author': 'Adam J.R. Erickson', 'author_id': 1858, 'author_profile': 'https://Stackoverflow.com/users/1858', 'pm_score': 1, 'selected': False, 'text': '<p>I see three issues here.  First, mapping between the purchase order and a warehouse shipping order.  The data doesn\'t match up exactly, but if you assume a one-to-one relationship between a purchase order and a shipping order, then that can be overcome.  I assume you can hard-code data like the warehouse id, hazardous materials codes, etc.</p>\n\n<p>The second problem is do you need one-time, or occasional transformation which you will do manually, or runtime translation that you set up once and integrate into a translation system?</p>\n\n<p>Third is based on that, what tool to use?  Either way, I would take a good look at Stylus Studio.  It has both an IDE for local testing or manual conversion, and a runtime component that you install on a server. My former company used it extensively, and it\'s cheaper than almost any other real-time translator (Mercator, Gentran, etc.)</p>\n\n<p>To use Stylus, you\'ll import the source file (the 850) and create a reusable schema which can be used to parse the file into XML.  Then, import an example of the output format (the 940) to create a schema which can be used to serialize the document back into X12.</p>\n\n<p>From there, you can use the mapping tools to get you close, then hand-edit the XSLT for complicated logic which may need to be tweaked (loops aren\'t perfectly handled, for instance).  Stylus Studio even allows you to create "pipelines" which can be used to chain multiple XSLT maps in a row, or pull in data from outside sources into the middle of a translation.</p>\n\n<p>Then, you can wrap all that up and export it to your realtime environment.  Better yet, if you\'re doing this manually, you can just run your files through the pipeline as you get them, and you\'ll be done.</p>\n'}, {'answer_id': 1424427, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>I would like to try out ALTOVA\'s mapforce tool to convert EDI 850 X12 to Oracle Apps. Is this a good choice.\nI hear that the most popular is <a href="http://www.sterlingcommerce.com/" rel="nofollow noreferrer">http://www.sterlingcommerce.com/</a>, but it is very costly..</p>\n\n<p>Please advice\nShashi</p>\n'}, {'answer_id': 5156950, 'author': 'eppye', 'author_id': 251208, 'author_profile': 'https://Stackoverflow.com/users/251208', 'pm_score': 0, 'selected': False, 'text': '<p>in bots open source edi translator you can map 850 v4010 to a x12 940 v4010 (http://bots.sourceforge.net).\nbasically and input can be mapped to any output.</p>\n'}]
['https://Stackoverflow.com/questions/66709', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/453046/']