Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Enhanced Reciever Determination Map problem

Hi,

i am working on enhanced reciever determination, i followed this blog for reference

/people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16

after the mapping recievers MT (predefined from BASIS) . i have tested with the following payload and it is working fine.i got my ERD is working

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

<ns0:MT_SampleFile_sx xmlns:ns0="urn:TestScenario">

<Person>

<name>mr</name>

<age>123</age>

</Person>

<Person>

<name>ms</name>

<age>12</age>

</Person>

</ns0:MT_SampleFile_sx>

if i give the payload with more mr or ms node like below, i am getting error.

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

<ns0:MT_SampleFile_sx xmlns:ns0="urn:TestScenario">

<Person>

<name>mr</name>

<age>123</age>

</Person>

<Person>

<name>mr</name>

<age>12</age>

</Person>

<Person>

<name>ms</name>

<age>1256</age>

</Person>

</ns0:MT_SampleFile_sx>

ERROR: Cannot produce target element /ns1:Receivers/Receiver[3]/Service. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd

can any one help me to solve this problem

Thank You,

Madhav

Former Member
Former Member replied

Hi,

I had checked UDF. As per UDF you want to give ,

<name>mr</name>

instead

<name>Mr</name>

.

Change the payload and map like below,

Receiver:

Name(Change Context to parent)--SplitByValue(ValueChange)--CollapseContext--Receiver

Service:

Name(Change Context to parent)--ServiceDetermination(UDF)--SplitByValue(EachValue)--Service

Regards,

Prakasu.M

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question