on 11-29-2010 8:13 PM
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
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];
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Radhika,
Can you describe more elaborately that how you are going to use these 2 values to determine the target field.
Thanks,
Nabendu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
74 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.