cancel
Showing results for 
Search instead for 
Did you mean: 

Graphical Mapping, using values within 0 to Unbound

Former Member
0 Kudos

Hi experts,

I have a structure something like this:

<Node1>

<Key>L1</Key>

<Value>ABCDEF</Value>

</Node1>

<Node1>

<Key>L2</Key>

<Value>XYZ</Value>

</Node1>

Here Node1 is 0 to Unbounded.

Could someone please help me understand how I can use the values "ABCDEF" and "XYZ" together for determining the target node.

Thank you.

Radhika

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Is your requirement to do a single RFC lookup call and fetch the values ?

In that case refer this blog

[How you can design lookups for multiple values to be retrieved in a single call|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/17683] [original link is broken] [original link is broken] [original link is broken];

former_member518917
Participant
0 Kudos
Could someone please help me understand how I can use the values "ABCDEF" and "XYZ" together for determining the target node.

U can write UDF to achive this..

UDF CODE.

// <INPUT> field "Value" ; change its context to "root note"; UDF type "QUEUE"

//public void ConcatValues(String[] Value, ResultList result, Container container) throws StreamTransformationException{

String concatValue = "";

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

concatValue = concatValue + Value<i> +",";

}

result.addValue(concatValue);

Thanks

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Radhika,

You could try to loop your RFC lookup. In this way you can call it multiple times for each occurrence of the <VALUE> node. I think looping is only possible using the UDF LookUp and not the pre-defined mapping lookup. Please feel free to correct me if I am wrong.

Hope this helps,

Mark

nabendu_sen
Active Contributor
0 Kudos

Hi Radhika,

Can you describe more elaborately that how you are going to use these 2 values to determine the target field.

Thanks,

Nabendu.

Former Member
0 Kudos

Hi,

Actually, these two values would be used to do a RFC lookup. The return value would be populated in the target field.

As mentioned before these values come under the same node under different occurrences, hence am facing the difficulty to use it in the mapping.

Please let me know if you need any further information.

Thank you.

Radhika