cancel
Showing results for 
Search instead for 
Did you mean: 

Hash tables in PO

yeshuaq
Explorer
0 Kudos

Hello,

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.security.*;

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");

m.update(s.getBytes(),0,s.length());

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

}

}

i verified blogs and most of them are ABAP based .

Best Regards,yQ

Accepted Solutions (0)

Answers (1)

Answers (1)

yeshuaq
Explorer
0 Kudos

Hello Team,

please convert above code to UDF working format.

Can you please suggest on hash table in SAP PO, is it suggestible to have a hash table in SAP PO database to do lookup.

we have a millions of records to insert and do lookup.

Best Regards,yQ.