Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9369

Re: RFC Response Values

$
0
0

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-

  1. Remove the context before passing input fields to UDF from the RFC output using standard function RemoveContext
  2. For good performance store only unique values in HasMap table (add the code to remove repeated values from response)


Thanks,

Sandip


Viewing all articles
Browse latest Browse all 9369

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>