BAPI BUPA FS CREATE FROM DATA2
Hello SAP Experts,
While creating a business partners using function module BUPA_CREATE_FROM_DATA or using the BAPI BAPI_BUPA_FS_CREATE_FROM_DATA2. The BAPI BAPI_BUPA_FS_CREATE_FROM_DATA2 also gets processed during up-gradation of IDocs of the BUPAFS_FS_CREATE_FRM_DATA2 message types. But due to the validation error in the central partner data the creation of business partner fails at first instance. Now after trying to repeat the creation of the business partner with the correct data a runtime error SAPSQL_ARRAY_INSERT_DUPREC occurs.
The error you are facing occurred because the entry already exists in the table BP001 for the business partner to be created, but an entry does not exist in the table BUT000.These invalid entries in the table BP001 are caused due to the gap in the validation logic while creating new business partners using the BAPI channel.
Therefore to solve this issue please delete all the existing invalid entries from the table BP001 using the attached report Z_DEL_BP001_WO_BUT000.