Hello Everyone,
Have a small issue with duplication checks on BP from the UI(and possibly elsewhere too)
We have added our logic to bring out duplicates based on telephones, emails and identification numbers in a Z implementation of address_search BADI.
Which works fine when an account is being created, we get some duplicate accounts in a Pop-Up where you can choose what to do with them.
But there is an issue when you update the account.
Lets say you update just the identification number on an account and save, the ADDRESS_SEARCH BADI is not invoked, as no changes were made to the address or BP Header.
So if you change address details or BP Header details along with the Identification numbers and save, you have duplication logic working during update.
But if you change just the identification numbers and save, you wont get any duplicates as the ADDRESS_SEARCH BADI is not invoked, which seems to be logical as there is no change in the address.
The question here is , is there any way we can get the ADDRESS_SEARCH BADI to be working when we change the identification numbers as well?
I tried manipulating address data during save via BOL , on the webui BP component but it does not seem to be a very good approach. Also it does not work if you just take a variable and assign it the same value that it already has on runtime(smart CRM, recognizes what you are doing and does not register a change).
So essentially , we are looking to find out a way we can ask the system to trigger that BADI so that our duplication check can run for Identification numbers as well.
Any suggestions are most welcome
Cheers
Nikunj Pathak