cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Mulit Mapping/Message Split

Former Member
0 Kudos

Hi,

I am a newbie to XI trying to set up a file2file scenario with multi-mapping/message splitting without BPM.

System is XI 3.0 SP14

Scenario is:

read an XML-File and multiply it and write 2 XML-files using the File adaptor.

For reference I used "multimapping without BPM".

- setting occurancy of Message types to unbounded in both Message Mapping and Interface Mapping.

- using the RB_Split button

- setting up one business service containing 2 message interfaces and 2 communication channels for output.

Designing and Konfiguring worked fine.

File is read but no file is written.

XML-Moni tells me "Mapping did not create Messages"

I did extensive studies in sap.help, forum and various blogs. Also to verify Messagetypes and Kommunication channels I set up similar file2file scenario without splitting. Nothing really helped.

Any clues?

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

did you test your mapping ?

test if like this:

/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios

to use real messages

Regards,

michal

Answers (7)

Answers (7)

Former Member
0 Kudos

For duplication I use graphical mapping tool.

<?xml version="1.0" encoding="UTF-8"?>

Input file:

<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">

<ns0:Message1>

<ns1:MT_daten5_in xmlns:ns1="http://MyTutorial/SHeinz05">

<Name>1</Name>

<Anzahl>2</Anzahl>

<Preis>3</Preis>

</ns1:MT_daten5_in>

</ns0:Message1>

</ns0:Messages>

Output from mapping:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">

<ns0:Message1>

<ns1:MT_daten5_out_1 xmlns:ns1="http://MyTutorial/SHeinz05">

<Name>1</Name>

<Anzahl>2</Anzahl>

<Preis>3</Preis>

</ns1:MT_daten5_out_1>

</ns0:Message1>

<ns0:Message2>

<ns1:MT_daten5_out_2 xmlns:ns1="http://MyTutorial/SHeinz05">

<Name>1</Name>

<Anzahl>2</Anzahl>

<Preis>3</Preis>

</ns1:MT_daten5_out_2>

</ns0:Message2>

</ns0:Messages>

Regards,

S.

henrique_pinto
Active Contributor
0 Kudos

Oh,

so you do define different message interfaces, it's not just pure duplication (I mean, two occurrences of a same MI).

I guess you should open an OSS message for that. And make sure you let us know the results. 🐵

Regards,

Henrique.

Former Member
0 Kudos

I generated this message with "Test Mapping" ->save source - double checked it with Michals solution (cut&paste) main document from payload in XML-Moni.

S.

henrique_pinto
Active Contributor
0 Kudos

Sebastian,

would you explain what is exactly your duplication method?

For this, I guess you're using Java or XSLT mapping, is that so?

Regards,

Henrique.

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Adding to Henrique, if you are using Java / XSL mapping the target message is also encapsulated with the MESSAGES tag,

<b><?xml version="1.0" encoding="UTF-8"?>

<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">

<ns0:Message1></b>

<YOUR MESSAGE1>

</YOUR MESSAGE1>

<b></ns0:Message1>

<ns0:Message2></b>

<YOUR MESSAGE2>

</YOUR MESSAGE2>

<b></ns0:Message2>

</ns0:Messages></b>

Regards,

Bhavesh

Former Member
0 Kudos

File adapter on both sides.

More precisely:

1x file adapter at sender (read & archive) data.xml

2x file adapter at receiver (write) data1.xml data2.xml

It is right now just used to duplicate.

Regards,

Sebastian

Former Member
0 Kudos

Hi guys,

thanks for your ideas, these blogs and help.sap are very good and also helped me a lot collecting information before I did post this thread.

I followed all steps mentioned but same error everytime.

S.

Former Member
0 Kudos

Hi Bhavesh,

thanks for your idea.

But as posted in "Multi-Mapping without BPM - Yes, it’s possible!" I followed all steps ( which were explained ) in the blog.

There must be something wrong in my configuration which is not explained in detail.

henrique_pinto
Active Contributor
0 Kudos

Sebastian,

you tested the mappings with the exact message that is throwing this error or you just tested it with the default empty message?

Regards,

Henrique.

Former Member
0 Kudos

Hi again,

very efficient method to test XML-source file. - Thanks.

Unfortunately it did not solve my problem.

Again: "Split mapping did not create messages"

Below you can find a part of the trace created when processing this message:

<Trace level="3" type="T">Multi mapping required.</Trace>

<Trace level="3" type="T">Creating Java mapping com/sap/xi/tf/_MM_data_duplic_async_.</Trace>

<Trace level="3" type="T">Load ac6179b0-a92e-11da-be15-e51f0a000472, http://MyTutorial/SHeinz05, -1, com/sap/xi/tf/_MM_data_duplic_async_.class.</Trace>

<Trace level="3" type="T">Search com/sap/xi/tf/_MM_data_duplic_async_.class (http://MyTutorial/SHeinz05, -1) in swcv ac6179b0-a92e-11da-be15-e51f0a000472.</Trace>

<Trace level="3" type="T">Loaded class com.sap.xi.tf._MM_data_duplic_async_</Trace>

<Trace level="2" type="T">Call method execute of the application Java mapping com.sap.xi.tf._MM_data_duplic_async_</Trace>

<Trace level="2" type="T">Java mapping com/sap/xi/tf/_MM_data_duplic_async_ completed. (executeStep() of com.sap.xi.tf._MM_data_duplic_async_</Trace>

<Trace level="3" type="T">Nachrichtentyp 1 Anzahl der Nachrichten 0</Trace>

<Trace level="3" type="T">Nachrichtentyp 2 Anzahl der Nachrichten 0</Trace>

<Trace level="1" type="E">CL_XMS_PLSRV_MAPPING~ENTER_PLSRV</Trace>

</Trace>

- <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST">

<Trace level="3" type="T">Persisting message after plsrv call</Trace>

<Trace level="3" type="T">Message-Version = 005</Trace>

<Trace level="3" type="T">Message version 005</Trace>

<Trace level="3" type="T">Pipeline CENTRAL</Trace>

</Trace>

<Trace level="3" type="System_Error">Error exception return from pipeline processing!</Trace>

<Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />

- <!-- ************************************

-->

<Trace level="3" type="T">Persisting message Status = 014</Trace>

<Trace level="3" type="T">Message version 006</Trace>

<Trace level="3" type="T">Pipeline CENTRAL</Trace>

</SAP:Trace>

Test of MM and IM is always successful.

Any clues?

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

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

Use the above blog to cross check your steps. make sure that you changed the occurence.

Also, are you by any chance using Java Mapping?

Regards,

Bhavesh

henrique_pinto
Active Contributor
0 Kudos

Hi Sebastian,

does your multi-mapping generate different interfaces?

If yes, did you set enhanced Interface Determination?

Check this link: http://help.sap.com/saphelp_nw2004s/helpdata/en/42/ed364cf8593eebe10000000a1553f7/frameset.htm

Regards,

Henrique.

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Did you do the following,

1. Message Mapping, changed the occurence of the Target Messages to 0 to unbounded.

2. Interface mapping, changed the occurence of the target interfaces to 0 to unbounded.

Regards,

Bhavesh