cancel
Showing results for 
Search instead for 
Did you mean: 

Splitting using Java mapping

Former Member
0 Kudos

Hi,

I am working on a file to IDOC scenario.In the input file am getting data for multiple idocs.The file structure is such that in the sender communication channel am not able to identify the recordsets and hence cannot set the number of recordsets per message parameter,else would have generated multiple messages there itself.

I want to implement java mapping.

Can any one please tell me is splitting possible in java mapping, such that once the data for one idoc is over I will generate another idoc.

Thnx,

Pravesh Puria.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Pravesh,

If your target messages are of same type (Say five MATMAS Idoc messages) then you can use IDoc bundling technique suggested in <a href="/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change's blog: XI: IDOC bundling</a>.

If you want to send different types of IDocs you have to use BPM.

Regards,

Ananth

stefan_grube
Active Contributor
0 Kudos

The output of your mapping has to provide a node <i>IDOC</i> for each IDOC in the receiving system.

Look at the xml structure in Michal's blog:

/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change

Regards

Stefan

udo_martens
Active Contributor
0 Kudos

Hi Puria,

have a look to <a href="/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible without BPM - Yes, it’s possible!</a>. Instead of the message mapping use your java mapping. You have to build your result XML like:


<Messages xmlns:ns="myNamespace">
<Message1>
</MyFirstMessage>
</Message1>
<Message2> and so on

Regards,

Udo

stefan_grube
Active Contributor
0 Kudos

Unfortunately the Multi-Mapping cannot be used with IDOC-Adapter.

http://help.sap.com/saphelp_nw04/helpdata/en/42/f3b31d48fb1bc8e10000000a11466f/frameset.htm

"Messages that result from the split in a mapping-based message split are sent using one Adapter Engine. For this reason, <b>only those adapters that run on the Adapter Engine are supported</b>."

Stefan

Former Member
0 Kudos

Hi,

Its possible to generate message according to the requirement in Java mapping. So you can create 2 messages that's can be used in interface mapping for splitting. Refer that in Interface mapping. It works.

Regards,

Kavita