cancel
Showing results for 
Search instead for 
Did you mean: 

PO 7.3.1 multi-mapping with AEX

Former Member
0 Kudos

Hi, all

I am having a hard time getting the 1:n interface working. Here is data example:

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

<ns0:source_mt xmlns:ns0="http://1ton_mapping">

   <records>

      <pernr>1111</pernr>

      <plans>aaaa</plans>

   </records>

   <records>

      <pernr>2222</pernr>

      <plans>bbbb</plans>

   </records>

</ns0:source_mt>

I want to split the xml into 2 parts and 2 different files using the receiver file adapter. So the contents should look like the following:

file1:

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

<ns0:output_mt xmlns:ns0="http://1ton_mapping">

   <records>

      <pernr>1111</pernr>

      <plans>aaaa</plans>

</ns0:source_mt>

file2:

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

<ns0:output_mt xmlns:ns0="http://1ton_mapping">

   <records>

      <pernr>2222</pernr>

      <plans>bbbb</plans>

</ns0:source_mt>

I have tried and followed the old blog and am getting mapping error:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/600b455f-01cd-2b10-0cab-a50e47a8f...

Do you know where I can find the new procedure? I have already seen thread http://scn.sap.com/thread/3356432 and it is not obvious to me what the fix is? OSS note 1774773 is irrelevant to us as we are on a higher SP already.

Thanks,

Jonathan.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Here are my mapping:

After going to signature, output_mt and change the occurrence to 0...unbounded, I got the following:

PI automatically put in the messages and message1 node on the target message automatically and I haven't found a way to stop that. When I test running the OM, I get the mapping error saying that the node messages cannot be created. That is understandable as the message type doesn't have those 2 nodes. By the way, I have followed the blog and saved the mapping as template before changing the occurence. It doesn't really help.

Thank you for your help in advance.

Jonathan.

Former Member
0 Kudos

Hello,

For multimapping, u have to change the occ of MTs under signature tab - So that's correct.

Similarly, u have to change the SI occurrence in OM also and once done then test ur OM.

Thanks

Amit Srivastava

Former Member
0 Kudos

Hi, Amit

That helps, but hasn't fixed the interface yet. After I change the occ of the OM target SI to 0..n, the OM test is working. So both the test on OM and MM are working. But the interface itself fails on the mapping error:

Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.service.mapping.MappingException: Runtime Exception when executing application mapping program com/sap/xi/tf/_One2N_MM_; Details: com.sap.aii.mappingtool.tf7.IllegalInstanceException; Cannot create target element /ns0:Messages. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD

Any idea?
Thanks,

Jonathan.

Former Member
0 Kudos

Hello,

I hope while testing ur scenario you are not including Messages/Messag1 tag in the source message? right?

PI automatically add these tags at runtime, so test you scenario with simple request message which corresponds to ur source MT structure.

Secondly, just update ur Interface Determination with the changed OM.

Thanks

Amit Srivastava

Former Member
0 Kudos

Hi, Amit

After re-adjusting the receiver determination in the IC, it fixes the error. I can see 2 files generated with the right data. Thanks! You have very good PI knowledge.

Regards,

Jonathan.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

What's the exception you are getting  and what's the SP of ur PO system?

Thanks

Amit Srivastava

Former Member
0 Kudos

Hi, Amit

Here is the error when running the OM:

Please advise.

Thanks,

Jonathan.