cancel
Showing results for 
Search instead for 
Did you mean: 

File Split to Multiple IDocs

0 Kudos

Hi all

I have a problem with splitting an flat file into multiple IDocs. My attempt was to do this without BPM as mentioned in some similar posts, but I am not sure about how to get the file splitted. The flat file has multiple orders with multiple line items and each order should create a single IDoc of type ORDERS.ORDERS05. I have imported the IDoc as external definition with IDOC being 0...unbounded. My input file looks as following:

ORDER1|LINE1|SOMETHING

ORDER1|LINE2|SOMETHING

ORDER1|LINE3|SOMETHING

ORDER2|LINE1|SOMETHING

ORDER2|LINE2|SOMETHING

...

I have been getting this into the appropriate PI XML structure like:

MT_Order

...OrderRecordSet (0...unbounded)

......OrderRecord (1...1)

How do I get this into multiple IDocs for each ORDERx with its n LINE items? I was thinking of SplitByValue with value change on PO, but this doesn't seem to work.

Any feedback appreciated. Thanks,

Daniel

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Dear Daniel,

You can achieve the required by using MultiMapping without BPM. Pls refer to the following blog for the same,

/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

Apart from the above, if allowd you can changed the IDOC occurrence and change the XSD of the IDOC and you can achieve the requirement with the simple message mapping.

Thanks

Prasanna

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

@Prasanna :Multi mapping will not help ,

you closer to solution , you have to write mapping logic to repeat your IDoc multiple Times.

Regards,

Raj