cancel
Showing results for 
Search instead for 
Did you mean: 

Exception in useOneAsMany function

Former Member
0 Kudos

Hi Experts,

I have a scenario IDoc (ORDERS05) to cXML.

to map the E1CUCFG (SO configuration data) to CXML.I have used the below mapping

Please click the link: [http://www.flickr.com/photos/25429360@N07/2466275133/]

Everything works fine, but if a IDoc comes without the E1CUCFG segment, it throws exception as below

Runtime exception during processing target field mapping /cXML/Req/OrderR/Item/It/Ext. The message is: Exception:[com.sap.aii.mappingtool.tf3.IllegalInstanceException: Too many values in first queue in function useOneAsMany. It must have the same number of contexts as second queue .] in class com.sap.aii.mappingtool.flib3.NodeFunctions method useOneAsMany[, , ]

Please help to resolve the issue.

Thanks in advance,

MK

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanks All.

I have resolved the issue by doing following

source-><mapWithDefault>> <UseOneAsMany>--->target

It will avoid the suppress value.

Former Member
0 Kudos

Hi,

1) Check whether 1st value, 2nd value context is same node or not. error may be because of that only.

2) For useOneAsMany function context of 1st and 2nd value should be same. 3rd value node context is just on its upper node.

Regards,

Rohit.

Reward points if helpful.

Former Member
0 Kudos

Hi,

/people/riyaz.sayyad/blog/2006/04/23/introduction-to-context-handling-in-message-mapping

hope this may help you.

regards,

pradeep A.

Former Member
0 Kudos

Hi,

I couldn't open the link you have given!!

When you use UseOneAsMany the contexts of the arguments need to be taken care of.

Please go through this blog.

It has got good explanation of the function UseOneAsMany.

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

Regards,

Manjusha.