on 2018 Sep 21 7:48 PM
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: "
+
new
BigInteger(
1
,m.digest()).toString(
16
));
}
}
i verified blogs and most of them are ABAP based .
Best Regards,yQ
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
30 | |
9 | |
8 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.