Home. 
.

transparent

transparent

transparent

Altova User Forum

Important: this forum was designed to allow Altova users to exchange their experiences with each other; therefore, your question might remain unanswered.
If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Multiple CSV Files from Single EDI Input File Options · View
aptrdennis
Posted: Friday, November 06, 2009 9:10:50 PM
Rank: Newbie

Joined: 6/18/2008
Posts: 8
Location: Canada
I have a situation where I need to split a single EDI 850 (Purchase Order) into 1 or more Sales Orders based on the items listed on the PO.

The mapping uses a single ANSI X.12 4010 850 EDI PO for the input, and a single CSV for the output.

The CSV file is structured as follows

SH....(Sales Order Header for order 1)
SD....(Sales Order Line for order 1)
SD....(Sales Order Line for order 1)
SH....(Sales Order Header for order 2)

and so on

What I would like to do is, split the incoming PO into multiple outbound Sales Orders based on the Item Keys.

For example, all Items that Start with A* should be grouped together in one Sales Order and all Items that Start with B* should be grouped toghether in a second Sales Order.

This is because we create a separate Sales Order for each warehouse location and all A* items are in one warehouse, and all B* items are in another warehouse.


The incoming PO's may have 5 lines for example, in a random order, so

Line 1 A*
Line 2 A*
Line 3 B*
Line 4 A*
Line 5 B*
and so on...

I would like to group all the all A*'s from the single PO into one Sales Order, and all the B* items into another Sales Order.

Any help to point me in the right direction would be greatly appreciated.
vlad
Posted: Friday, November 06, 2009 9:23:38 PM
Rank: Advanced Member

Joined: 12/13/2005
Posts: 551
Location: Mauritius
First of all, you need MapForce v2010.

Then everything should be easy: you use a group-by function with an input key built as a substring(item-name,1,1), i.e. the first character. You can use output key node to build a file name and this will automatically generate you a file per different key.

Vlad
aptrdennis
Posted: Friday, November 06, 2009 9:29:28 PM
Rank: Newbie

Joined: 6/18/2008
Posts: 8
Location: Canada
Thank you, I do have a couple of questions. Please forgive my ignorance. Also, I am using Mapforce 2010 Enterprise Edition.

1. Where do I connect the output node Groups?
2. Where do I connect the output node key?

Thanks
vlad
Posted: Friday, November 06, 2009 9:31:12 PM
Rank: Advanced Member

Joined: 12/13/2005
Posts: 551
Location: Mauritius
As I said in my answer, you use the output key node to build file name. Just as a trial you can simply connect key to the file name directly, and once you understand what happens, make the file name properly constructed by using concat and constants.

Vlad
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova User Forums Terms of Service.

Powered by Yet Another Forum.net version 1.0.0 RC3 - 9/24/2005
Copyright © 2003-2005 Yet Another Forum.net. All rights reserved.
This page was generated in 0.096 seconds.



transparent
Print
Mail
Digg
delicious
Welcome
.

The Altova User Forum(s) were launched so that our users have the possibility to interact and exchange their experiences regarding Altova's product line with one another. Although the Altova User Forum(s) are moderated by Altova employees and Altova permits support and software engineers to respond to postings, this is NOT a replacement for the regular support mechanism, and accordingly there is no guarantee that a question will be answered. If you need to contact Altova's technical support team please do so by using the online support center. Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova User Forum(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Altova User Forum Terms of Service and the Altova Website Terms of Use

.
.

transparent

transparent