Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

How to make Hash Map/Hash Table as global in a mapping

$
0
0

Hi Friends,

 

I have one requirement. It needs to lookup a custom table in ECC for  Legacy Customer Number to SAP Customer Number through RFC lookup in PI. Now, the input file contains huge amount of records. Many of the records have same Legacy Customer Number.

 

To reduce the no.of look up calls to ECC , we think that take the unique Legacy customer number from source and call the RFC, pass these entries at one call. The RFC will return the Legacy Customer Number along with SAP customer Number. This works fine.

 

But, this RFC should be executed only one per file. i.e Store the result values (Legacy Customer Number, SAP Customer Number) in Hash Map (or) Hash Table before mapping starts.

 

Then during mapping execution, for each record, it will refer the Hash table to get the SAP Customer Number.

 

If we pass the RFC return results as array to UDF and inside UDF, define the Hash table and store the result, once return from UDF, will that hash table be removed from memory? that is my doubt.

 

Now, my query is 1) How to make the Hash Table as global  2) How do we refer Hash table when each record is executed in the XML.

 

Could you please clarify?

 

Thanking you.

 

Kind regards,

Jegathees P.


Viewing all articles
Browse latest Browse all 7030

Trending Articles



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