Duplicate BDOC's generated in CRM during IBASE save
Once we edit an IBASE ( even just description) and save it we find that duplicate BDOCS are generated of type 'CRM_IBASE_MESS'. The data in both the BDOC is same. When we debugged the Function module 'IB_CRM_BDOC_FILL' is used to populate the BDOC. But even this FM is hit only once so we are not sure where the other duplicate BDOC is created from.
Also this behavior is noticed in our test, production but not in Development system.
Can someone please help.
Thanks in advance,
I found the issue.Posting the same for your reference.
The issue was regarding the BADI-'IBASE_SAVE'. There was a standard implementation-'CRM_IBASE_
UPLOAD'(To create BDOC) which was deactivated in development system and a custom implementation with the same code was added.This deactivation part was not moved to test and production systems but the custom implementation was moved,so the same code was executed twice and hence 2 BDOCS were getting created.