cancel
Showing results for 
Search instead for 
Did you mean: 

Multi-mappings for IDoc receiver

Former Member
0 Kudos

Hi ALL,

Im working on a scenario in which multiple purchase orders are selected from a database and i want to post an idoc for each purchase order.

Im using JDBC and IDOC adapters respectively.

I tried to split the source message using Multi-mapping (Enhanced Interface Determination), but according to SAP Documentation, you cannot use IDOC adapter in case of multi-mappings.

Is there a way to do this?

Please help.

Thanks n Regards

Akshay

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Akshay,

Create an external definition as specified in the note 814393.

2)Import the external definition for Message Mapping.

3)Use the standard IDOC Definition imported from R/3 in Interface mapping for Target Interface.

4) While selecting the Mapping Message in interface Mapping Select Any from the drop of Search Criteria of message mapping window. This should display the Message mapping that you have created with External definition.

Select the Message mapping.

I hope this should work.

Thanks,

Yoganand.

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

you need to use a BPM to do it

have a look at my weblog:

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

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

HI,

There is a BPM example in SWCV SAP BASIS where in the example is given. The same is explained in Help:

http://help.sap.com/saphelp_nw04/helpdata/en/11/13283fd0ca8443e10000000a114084/content.htm

Regards

Vijaya

bhavesh_kantilal
Active Contributor
0 Kudos

Michal,

<i>you need to use a BPM to do it</i>

Is it a typo? Coz if you use IDOC bundling / packaging BPM is not needed right?

Akshay,

apart from michals blog, take a look at this note, 814393

Regards,

Bhavesh

Former Member
0 Kudos

Hi ALL,

I referred the note 814393 and did my design as specified in it. But im getting the following error

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

- <!-- 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>Inbound_XSD_ORDERS</SAP:P1>

<SAP:P2 />

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText />

<SAP:ApplicationFaultMessage namespace="" />

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

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

</SAP:Error></b>

But i had one query...the note doesn't mention abt creating message interface for the external definition.

Do we need to create one?

Michal & Vijaya,

BPM is a good solution...but wht do u think abt the other solution?

bhavesh_kantilal
Active Contributor
0 Kudos

Hi

You will have to create a Message Interface and the message type for it will be your XSD you have created.

Also, BPM should be avoided if possible because, it can cause perfromance issues.

Regards,

Bhavesh