cancel
Showing results for 
Search instead for 
Did you mean: 

1 input msg, 2 output files

Former Member
0 Kudos

Hi Everyone:

The scenario is as follows, I have an input msg which looks like this:

<ACCOUNT>

<HEADER>

...

</HEADER>

<DETAIL> <--- occurence 1:unbounded

...

</DETAIL>

</ACCOUNT>

and somehow after doing the necessary mapping, etc I need to end up with 2 output files, one with the HEADER data (header.txt) and the other with the DETAIL data (detail.txt). Can I use File Content Conversion to do this? if so, how? I'm new to this environment so I'll appreciate any help

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Carlos,

If you are on SP14 then you could go for multimapping even

without bpm.

First create a message mapping with one source and two target msgs.And then create ur interface mapping. In the create the sender agreement and recvr determination and recvr agreements as usual.While doing the interface detremination chk the 'extended' box and specify ur interface mapping.

You could also do content conversion if u prefer nonxml output.

good Luck!!

Priyanka

Former Member
0 Kudos

Hi carlos,

I think in any version (surely after SP13, I am not sure if it was on SP10 or earlier) You can do this WITHOUT BPM. so try out in any version, you are in.

1) 2 mappings with 2 Receiver Interfaces (one map will pick up header & give the output of Header and the other set for Detail)

2) In Interface determination, you can add any number of interfaces for your receiver service. You can execute all of them unconditionally (or with conditions as well).

This way, you can have One input to get two outputs (one with Hdr & one with Dtl)

Regards

Vishnu

Former Member
0 Kudos

Thank you all for your prompt answers! Problem solved. Awarded you points.

Regards,

Carlos

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi Carlos,

you have to use BPM (business process) to do this:

you can send several file from BPM

you can do 2 mappings:

input file to first file (header)

input file to second file (detail)

this way you'll have you scenario done:)

BTW

you use: File Content Conversion only when you send/receive data to XI inside you handle everything in XML

but sure you have to use File Content Conversion to map

inbound file to xml file representation in XI

and later on use File Content Conversion again to

map two aboutbound files from XML structures to flat

destination files

Regards,

michal

Message was edited by: Michal Krawczyk