Skip to Content
Sep 21, 2018 at 06:48 PM

Hash tables in PO

295 Views Last edit Sep 23, 2018 at 08:09 PM 2 rev


i have a requirement to create a hash table concept in PO (singleStack 75) database table. so i will get input as 10 records and each record will have 5 fields and i want to concatenate and send that 5 fields as a string to the hash table in Database to check whether that is existing record or new. if new i have to insert that to hash table. if exist then i will not send that record to target.

So can you please help on, how to create hash table to database and how to do lookup that table from Message mapping (either by UDF ./Java code).

input (5 fields)-->concatenate-->UDF for HASH total--> look up to DB (if exist ignore, if record not exist craete that in hash table)

tried below code in UDF..but not working, can you please convert below code to UDF


import java.math.*;

public class MD5 {

public static void main(String args[]) throws Exception{

String s="This is a test";

MessageDigest m=MessageDigest.getInstance("MD5");


System.out.println("MD5: "+newBigInteger(1,m.digest()).toString(16));



i verified blogs and most of them are ABAP based .

Best Regards,yQ