Skip to Content
4
Apr 21, 2020 at 07:58 AM

CheckForDuplicateAccounts Duplicate check badi in C4C

707 Views Last edit May 27, 2020 at 05:53 AM 6 rev

Hi Experts,

Please let us know if anyone has sample implementation of account duplicate check badi in c4c.

by looking at the following sample code from the duplicate check badi, i can see that we need to implement the complete logic within the badi and provide the duplicate check business partner guids as an output of the badi with the matching percentage.

with this i feel we have completely implement the duplicate check logic in badi and we wont be using any duplicate check algorithms provided by standard.

Also is there any possibility of extending the duplicate check logic other than the standard field mentioned in the badi?

We need to invoke the duplicate check via ERP to C4C interface which involves some custom field as well.

Please advise.

Return the found Duplicate Accounts...

	// Add 1st Potential Duplicate
	resultEntry.BusinessPartnerUUID.content = "00163E02EF341EE1BB93B81011CA532D";  
	resultEntry.SimilarityPercent = "90.85"; 

	result.Duplicates.Add(resultEntry);

	// Add 2nd Potential Duplicate
	resultEntry.BusinessPartnerUUID.content = "00163E12BA691ED5B6AEE937667DC1AA"; 
	resultEntry.SimilarityPercent = "85.13"; 

result.Duplicates.Add(resultEntry);