Skip to Content
0
Nov 20, 2019 at 01:25 PM

Multiple Mappings from Single Operation Mapping Including Java

201 Views

Hi,

could someone please clarify why the following scenario isn't working. I must have a wrong understanding of how single OM with one MM and one Java, or I can't get my head around how to do this.

I have single incoming payload

FieldA

FieldB

FieldC

FieldD

Depending upon the value in FieldA

I need to pass the contents of the payload where FieldA = File, unchanged, to a File Adapter in Message1

I need to pass the contents of the payload.FieldD, where FieldA = Email, to Mail Adapter - some dynamic parameters are also set, in Message2

I can get it working up to this point perfectly, in a single MM.

Before the finish I need to send the target structure from Message2 through some Java mapping, to replace some text with other values. i.e. I need just the content of FieldD, which is the Email text, minus the xml headers and tags.

Service Interfaces in OM looks as below

.Source1, Target1&2 relate to MM

Source2, Target3 relate to java mapping

Source1 is occurrence 1 Target1 is 1:unbounded

Target2 is 1:unbounded (and structure is changed at this point to FieldD)

Source 2 is occurrence 1:unbounded (FieldD) Target3 is 1:unbounded (FieldD)

What that gives me as a run time error is as follows. I have no idea what this means, or how to find out more about it.

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

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

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

<SAP:Codearea="MAPPING">GENERIC</SAP:Code>

<SAP:P1>Split-Mapping</SAP:P1>

<SAP:P2> 24</SAP:P2>

<SAP:P3>ns0:Messages(1)</SAP:P3>

<SAP:P4/>

<SAP:AdditionalText/>

<SAP:Stack>Split-Mapping 24ns0:Messages(1) </SAP:Stack>

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

</SAP:Error>

Thanks in advance for any help.

Elizabeth