cancel
Showing results for 
Search instead for 
Did you mean: 

SP14 Multi-mapping - error in receiver idoc adapter

Former Member
0 Kudos

Hi,

I have a scenario where a business service should send some XML to SAP CRM. I get the file via a sender JMS adapter and try to post it to CRM via a receiver IDOC adapter.

I have created a multimapping (1:N - 1 XML file to many Idocs) as should in the repository.

In the configuration under Interface Determination, I have chosen 'RB_SPLIT' and selected the interface multimapping.

It should be pointed out, that when testing both interface and message mapping i get no error. All idocs seem to be created as they should.

When testing the setup 'real life' the message fails. The error message in the monitor says:

- <!-- Call Adapter

-->

- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">

<SAP:Category>XIAdapter</SAP:Category>

<SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_WRONG_INTF</SAP:Code>

<SAP:P1>InterfaceCollection</SAP:P1>

<SAP:P2 />

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>Unable to interpret IDoc interface InterfaceCollection</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

Notice that the above error is when trying to send only 1 record, which in turn then should result in only 1 idoc.

If trying to send multiple XML records, i get the following error:

- <!-- Technical Routing

-->

- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">

<SAP:Category>XIServer</SAP:Category>

<SAP:Code area="OUTBINDING">MMF_ENGINETYPE</SAP:Code>

<SAP:P1 />

<SAP:P2 />

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>A system error occurred in the outbound binding</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

In the monitor in the payload of 'Request message mapping' I see as many Maindocument, Submaindocument pairs as should be Idocs.

Now i really don't know how to interpret the error messages in both cases, so I'm a little lost here...

It should be pointed out that the idoc being used everywhere in this scenario, has not been modified - from all places it is being used (and only exists) in the 'Imported objects | Idocs' place.

Also the Idoc is also being used as Inbound interface - so no mistakes here either.

I really hope someone can help me here, as I'm otherwise pretty stuck in this case.

Best regards,

Daniel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Daniel,

I have exactly the same type of scenario (under SPS14 and now also SPS15), sending an XML message over JMS to XI and trying a multi-mapping to many IDocs (actually a list of orders in XML is mapped to n ORDERS Idocs).

I also face problems doing so, when I use the IDoc Adapter as outbound in the Receiver Agreement. I receive the following error:

<i>CO_TXT_MMF_ENGINETYPE
Messages in multi message format can be sent to one adapter engine only</i>

However, I tested the same scenario by just changing the Receiver Agreement to a File Communication Channel and - surprise, surprise - it works. One file per IDoc is created.

Of course, this is not what we want to accomplish, but when I checked this piece of documentation (sorry another link

http://help.sap.com/saphelp_nw04/helpdata/en/42/ed364cf8593eebe10000000a1553f7/content.htm

the IDoc adapter is not listed in the list of Adapters that are supported. Does that mean, that this feature is not supported for generating IDocs? Maybe that's a question for a SAP OSS Message?

I hope that helped you a little further - if you find out more I'd be happy to learn about it.

regards,

Peter

Former Member
0 Kudos

Hi Peter,

Thanks for your reply. Even though I had seen the link myself before, I never actually stopped and looked at the list of adapters as such.

After your message I created an OSS for SAP regarding the issue, and correctly it is not possible to do what I wanted using the IDOC adapter:-(

I gave you a couple of points for your reply as it was usefull in convincing me that is is not possibleto do what I wanted, though it didn't really solve anything:-)

Went back and did it the "old faschioned" way using BPM instead.

Best regards,

Daniel

stefan_grube
Active Contributor
0 Kudos

Hi Daniel,

You can use message split for IDOC's without BPM with a "trick":

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

Regards

Stefan

Former Member
0 Kudos

Hi,

Thanks for your reply - however this is not what I wanted, I wanted to create "seperate" idocs to be sent, not bundled in one message.

Regards,

Daniel

Answers (2)

Answers (2)

former_member91687
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi chandravadhana,

Also thanks for your reply. I don't feel the links are too helpful, as they more address multimappings using XSLT or BPM. I'm doing it outside of BPM using the new feature introduced in SP 14 - the method is described in the link that Prashanth sent.

Regards,

Daniel

Former Member
0 Kudos
Former Member
0 Kudos

Hi Prashanth,

Thanks for your reply. I think you posted the same link to times:-) However I have already read the documentation found there, and feel convinced that I did it this exactly way.

Refards,

Daniel