Skip to Content

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

XI: Splitting of one node on some

Somebody knows as to make mapping the following structure?

(IN)

N
   |_ a1; a2; a3   
N
   |_ b1; b2

(OUT)

ITEM
   |_ a1
ITEM
   |_ a2
ITEM
   |_ a3
ITEM
   |_ b1
ITEM
   |_ b2

thanks in advance.

Kimersent

Former Member
Former Member replied

Hey,

You need to have same udf for both the header node(item) and the value node.

UDF:-

public void SplitbySemicolon(String[] a,ResultList result,Container container)

{

String arr[];

int i;

arr = a[0].split(";");

for(i=0;i<arr.length;i++)

result.addValue(arr<i>);

}

N --> SplitbySemicolon(udf) --> Item.

N --> SplitbySemicolon(udf) --> SplitByValue(node func) --> value.

if this is not working try splitByvalue for header node as well.

regards,

Milan

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question