cancel
Showing results for 
Search instead for 
Did you mean: 

Graphical Mapping Issue

former_member200267
Participant
0 Kudos

Hi,

I follwed the blog

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii and created MM & DT as mentioned in the blog.

But when I tested the MM with the following input

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

<ns0:MT_SRC xmlns:ns0="urn:practice:FFToXML">

<Header>

<MatNo>123</MatNo>

<MatDesc>Test Material</MatDesc>

</Header>

<item>

<Matno>123</Matno>

<Itemno>10</Itemno>

<Matgroup>A</Matgroup>

<MatType>T</MatType>

<Plant>se80</Plant>

</item>

<item>

<Matno>123</Matno>

<Itemno>20</Itemno>

<Matgroup>A</Matgroup>

<MatType>T</MatType>

<Plant>se80</Plant>

</item>

<item>

<Matno>123</Matno>

<Itemno>30</Itemno>

<Matgroup>A</Matgroup>

<MatType>T</MatType>

<Plant>se80</Plant>

</item>

</ns0:MT_SRC>

The following error had occured and no output is generated.

16:32:18 Start of test

Compilation of Mat_MM successful Cannot produce target element /ns0:MT_TRG/Header[2]/MatNo. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd Cannot produce target element /ns0:MT_TRG/Header[2]/MatNo. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd

16:32:20 End of test

ur help is appreciated

Thanks

RDS

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Check /Header[2]/MatNo....has mapped to the Traget or not

And also check the value you are providing to that is valid or not

REgards

Seshagiri

Answers (5)

Answers (5)

former_member200267
Participant
0 Kudos

Hi,

Now its working.

I was mapping target Header/Matno & Header/Item/Matno from source Header/Matno

But it seems we have to map from source Item/Matno.

Thanks

RDS

Former Member
0 Kudos

hi ,

check whether target side mandatory fields are mapped...and it is cumpulsory....

regards

chandra

former_member556603
Active Contributor
0 Kudos

Hi,

Compilation of Mat_MM successful Cannot produce target element /ns0:MT_TRG/Header[2]/MatNo. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd Cannot produce target element /ns0:MT_TRG/Header[2]/MatNo. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd?

Check this point in the blog You have to generate target header nodes equal to the number of occurrences of item in the source node.

Check u r Souce Item Material Number is mapped to Target or not.

Satya.

Edited by: SATYA KUMAR AKKARABOYANA on May 13, 2008 1:15 PM

Former Member
0 Kudos

Make sure that you have mapped the MT_TRG/Header/MatNo with MatNo from Header in the strcuture.

Former Member
0 Kudos

Hi,

Check the mapping between ur matno

from the error it is showing the problem in /ns0:MT_TRG/Header[2]/MatNo

chirag.