Quantcast
Channel: SCN : Popular Discussions - SAP Cloud Applications Studio
Viewing all articles
Browse latest Browse all 1333

Save Failed error when deleting a BO instance

$
0
0

Hi Experts,

 

This is a weird one. 

 

Summary:

 

Validation:OnSave - is blocking the deletion of the BO.

 

 

Scenario:

I have written a SalesQuote extension with a couple of extra fields. One of the fields is a dropdown list that should have a selection before user can save the BO. This was accomplished using the standard code in the BeforeSave event:

 

 

BeforeSave:

 

if(this.ExampleField.IsInitial())

{

this.allowSave = false;   //allowSave is defined in the BO extension

}

else {this.allowSave= true}

 

 

Validation:OnSave:

 

return this.allowSave;

 

 

This is working perfectly fine when saving a new BO instance (salesQuote in this example) or modifying the existing SalesQuote. But I can't delete the BO's anymore from the OWL screen. 

After Selecting a BO in the OWL screen and clicking "Delete" the "Save Failed" error comes up and after refreshing the list the BO is still available.

 

I have tried a placing the true/false logic in the after modify or even in the OnSave event itself, still won't let me delete the BO.

 

Any ideas? Do I miss something obvious?

 

Cheers,

Paul


Viewing all articles
Browse latest Browse all 1333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>