Hi Amit,
You can use Hashmap in graphical mapping to store and reuse the multiple values.
Define it as global Hashmap in mapping Functions -> Attributes and Methods
Using UDF store RFC response into this hashmap table and reuse where ever required.
Below sample code snippet may help you.
HashMap newmap =newHashMap();// define this in Attributes and methods to make it global
// populate hash map in UDF
for(int i=0;i<CountryCode.lenght;i++);
{
map.put(CountryCode [i], CountryName[i]);
}
result.addValue("");
// get value of key IN
String val=(String)newmap.get(“IN”);
Key points-
- Remove the context before passing input fields to UDF from the RFC output using standard function RemoveContext
- For good performance store only unique values in HasMap table (add the code to remove repeated values from response)
Thanks,
Sandip