we are creating leads from a third party tool into CRM via interface and using BAPI
CRM_ORDER_MAINTAIN
We are able to successfully create a new lead while updating lead instead of updating same lead a duplicate lead is getting created any advice how to just update an existing lead in this area is much appreciated.