Skip to Content
0
Jan 16, 2006 at 03:59 PM

Splitting output to multiple files

374 Views

Hi,

I am trying to split an incoming message into multiple output files.

I can see from other postings how to split it into outputs of differnet types, but I want to split it into multiple outputs of the same type, with the split based on the content of the segments in the inbound idoc.

For example, suppose my inbound idoc is structured something like this.

ZVM01

....Customer.............101

....DateIn..................16-Jan-06

....DateEnd...............18-Jan-06

....ZVM02

........Title................346

........CoverPrice.......1.00

....ZVM02

........Title................387

........CoverPrice.......1.49

....ZVM02

........Title................402

........CoverPrice.......0.99

ZVM01

....Customer.............102

....DateIn..................16-Jan-06

....DateEnd...............21-Jan-06

....ZVM02

........Title................404

........CoverPrice.......0.49

....ZVM02

........Title................350

........CoverPrice.......0.17

I.e there are multiple customers each with multiple lines of orders.

I want to produce a separate output file for each customer.

Is this possible?, If so how?