Skip to Content

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

UDF for graphical mapping

Hi,

The following is my source structure :

Recordset 1..1 -> Idoc 1..unbounded -> Segment 1..1

<Recordset>

<Idoc>

<segment>abcdefgh</segment>

</Idoc>

<Idoc>

<segment>klmno</segment>

</Idoc>

.

.

.

</Recordset>

I have a requirement where in I have to pass the data from the various segments as an input to the RFC.Is there any UDF which I can use to concatenate the values from the different segments and map it to the input for the RFC.There can be many idocs under one Recordset and each idoc has one segment.

Appreciate if you could help.

Thanks in advance.

Induja

replied

Hi,

Please use below TestUDF code

Here pass the input parameter as Segment ---> TestUDF ---> Target field

And select the cache parameter as queue


String temp = new String("");
for(int i = 0; i<a.length;i++)
{
temp = a<i> + temp;
}

result.addValue(temp);

Thanks

Swarup

0 View this answer in context

Helpful Answer

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