cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping Issue

Former Member
0 Kudos

Dear SDN,

I am implementing a mapping like this:

From:

1. header (1..unbounded)

1.1 hfield1 (0..1)

1.2 detail (1..unbounded)

1.2.1 dfield1 (1..1)

To:

1. row (1..unbounded)

1.1 field1 (0..1)

1.2 field2 (1..1)

example from:

<header><detail><dfield1>abc</dfield></detail><detail><dfield1>def</dfield></detail></header>

<header><hfield1>2</hfield1><detail><dfield1>xyz</dfield></detail><detail><dfield1>123</dfield></detail></header>

example to:

<row><field2>abc</field2></row>

<row><field2>def</field2></row>

<row><field1>2</field1><field2>xyz</field2><field2>

<row><field1>2</field1><field2>123</field2><field2>

This is a typical useOneAsMany scenario, but when testing it the following exception raises:

Exception:[com.sap.aii.mappingtool.tf3.IllegalInstanceException: No value found in function useOneAsMany. The first queue must have one and only one value in each context] in class com.sap.aii.mappingtool.flib3.NodeFunctions method useOneAsMany[, , ]

Have anyone had this problem before?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Pabon,

Check this weblog where Claus have taken the scenario exactly as you want:

/people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool

---Satish

Answers (1)

Answers (1)

Former Member
0 Kudos

It is like if in the corresponding documentation:

http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/df564b6aa24fc9ab0d685460747de5/frameset.htm

occurrence of "type" were not 1..1, but 0..1

Does Anyone have a source code example of useOneAsMany? like the one for createIf in

http://help.sap.com/saphelp_nw2004s/helpdata/en/b1/83a09f668320419dbe00a741e0fe6a/frameset.htm

Former Member
0 Kudos

Hi Gustavo,

Please check this weblog:

/people/stefan.grube/blog/2005/12/29/new-functions-in-the-graphical-mapping-tool-xi-30-sp13