Skip to Content

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

Mapping problem

Hi guys,

I'm trying to satisfy following mapping condition but I can't achieve it:

if NodaA(1..1) exists, repeat per each NodeX, else repeat it per each NodeY.

The problem is EXISTS function returns only one item in the queue and NodeX and NodeY have different number of occurence. If these would be the same I could use OneAsMany, byt if NodeX is there 5times and NodeY 7, I'm not able to do it.

Any ideas, how to acjieve this?

Thanks a lot,


Former Member
Former Member replied

Hi Peter,

You can do this using a ADVANCED UDF. Try this.

The UDF will have three inputs:

1. NodeX>Remove Context>

2. NodeY>Remove Context>UDF

3. NodeA> Exist>

The UDF Cache Value will be queue.

Public Sample(String[] NodeX,String[] NodeY,String[] NodeA Container.....) {



for (int i=0;i<NodeX.length;i++)





for (int j=0;j<NodeX.length;j++)



}// end of class



Note:Award Points if found useful

Edited by: Bhargav Srinadh Gundabolu on Sep 3, 2008 12:43 PM

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