cancel
Showing results for 
Search instead for 
Did you mean: 

Hi Priyanka,Just like UPDATE_INSERT, Do SAP CPI supports DELETE_INSERT?

Sakshi_T
Explorer
View Entire Topic
rohitparihar
Discoverer
0 Kudos

Hi Sakshi..

To my knowledge, currently there is no direct equivalent operation like DELETE_INSERT(delete or insert at the same time). However you can achieve similar functionality by implementing a sequence of below steps in your integration flow by making sure the logic and exception handling are maintained properly. 

1. checking/validation of the existing object

2. delete/remove if necessary and

3. create/post/insert 

Hope it helps 🙂

Sakshi_T
Explorer
0 Kudos
Thank you, Rohit! I have a question—can we use UPDATE_INSERT in this case? The issue with INSERT occurs when a record is already present in the database, preventing insertion and causing an error. If we use UPDATE_INSERT, it will update the existing record if it's already in the database, avoiding the error. Please share your thoughts on this.
rohitparihar
Discoverer
Yes, you can do so, but since the function UPDATE_INSERT can handle the checks on its own, the above steps will not be required
Sakshi_T
Explorer
0 Kudos
Hi Rohit, Thanks for the help!